Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/grascya/forecasting-electricity-by-hour-rnn-vs-lstm

Explore the Production and Consumption of Electricity produced by different types of energy sources and build an RNN and LSTM to forecast them
https://github.com/grascya/forecasting-electricity-by-hour-rnn-vs-lstm

deep-neural-networks electricity keras lstm-neural-networks rnn-model tensorflow2

Last synced: 28 days ago
JSON representation

Explore the Production and Consumption of Electricity produced by different types of energy sources and build an RNN and LSTM to forecast them

Awesome Lists containing this project

README

        

# Forecasting Electricity by Hour
## About Dataset

Hourly Electricity Consumption and Production by Type in Romania for 5.5 years.
It includes the hourly consumption and production, and the production is split into one of the categories: Nuclear, Wind, Hydroelectric, Oil and Gas, Coal, Solar, and Biomass.
When the production is greater than the consumption it means we are exporting electricity, when the value is smaller it means we are importing electricity.

All values are in MWs.


**Objective**: Explore the Production and Consumption of Electricity produced by different types of energy sources and build an RNN and LSTM to forecast them

**Methods Used**: Exploratory Data Analysis, time series analysis, Data Visualization, deep learning, Predictive Modeling .

**Type of Problem**: Multivariate Regression.

**Language, Libraries, technologies used**: Python, Pandas, Matplotlib, Seaborn, Numpy, Scikit-learn, TensorFlow, Keras

## Key Insights
- I first loaded and Displayed the Dataset and then created the plots to explore the dataset and gain insights about ELectricity Consumption. Here are some Insights:
- The country imports a little more electricity than it exports.
- On average 1291 Mws of nuclear energy is produced per hour.
- In 2023, 32.4% of electricity production was hydroelectric.
- Hydroelectric and Nuclear have a Negative Correlation meaning when the production of one is increasing the second decreases
- Then I apply the RNN na LSTM to forecast Electricity production and consumption.
- Both of this gives amazing results but the LSTM performs slightly better with a coefficient of determination of 0.98 on Consumption and 0.96 on Production than the RNN.