This repository contains code for forecasting energy demand using a forecasting model for electricity consumption in Finland using LSTM (Long Short-Term Memory) neural network.
Energy demand forecasting is crucial for efficient energy management and planning. This project aims to predict future energy demand using historical data and machine learning techniques.
This project involves the use of various machine learning models to forecast energy demand. The models are trained on historical energy consumption data to predict future demand accurately.
-
Data Collection: Gather historical energy consumption data.
-
Data Preprocessing: Clean and preprocess the data for model training.
-
Model Training: Train various machine learning models on the preprocessed data.
-
Model Evaluation: Evaluate the performance of the trained models.
-
Prediction: Use the best-performing model to forecast future energy demand.
-
Clone the Repository.
-
Open Command Prompt and Docker.
-
Direct to the folder.
-
Build the Docker Image in Command Prompt.
docker build -t electricity-forecast-app .
- Run docker Image using Command Prompt.
docker run -p 5000:5000 electricity-forecast-app
- The app will run on http://127.0.0.1:5000/
Below are screenshots of the application:
This is the first page that appears when the application loads and user enters the previous days to consider and no of days to forecast.
Here, the forecast for next required no of days are displayed after getting from the trained LSTM Model.
This graph shows the forecasting results after getting it from the trained LSTM Model as well as the previous data from the csv file.
This page displays the Statistics obtained from the above forecasts.
-
The code demonstrates a time series forecasting model for electricity consumption in Finland using LSTM (Long Short-Term Memory) neural network.
-
The model is trained on historical data from 2016 to 2021, and evaluated using train, validation, and test datasets.
-
The performance of the model is measured using Root Mean Squared Error (RMSE).
-
The results show that the LSTM model is able to predict the electricity consumption with a reasonable level of accuracy, both for training and testing datasets.
-
The model is also capable of forecasting future electricity consumption.
-
The visualizations help understand the electricity consumption patterns and the model's predictions over time.
-
Overall, the code provides a comprehensive framework for building and evaluating an LSTM model for time series forecasting.