Enhancing Electricity Load Forecasting with Machine Learning and Deep Learning
Abstract
:1. Introduction
- Short-term forecasting (STF): the time frame of STF starts from a few minutes or hours ahead, up to one day or a week ahead. The purpose of this group of forecasting is economic dispatching and optimum generator unit obligation, and it also supports security analyses and real-time operation.
- Medium-term forecasting (MTF): the time period of MTF starts from a week up to one year ahead. The purpose of this group of forecasting is to support scheduling maintenance, coordination of dispatching load and price settlement, and balanced load and generation.
- Long-term forecasting (LTF): the time period of LTF starts from a few years up to 10 years ahead. The scope of this type of forecasting is system planning, like the generation, transmission, and distribution, and further induces investment in new generating units.
- A methodology for forecasting load on a short-term time frame. This methodology relies on innovative LR and LSTM algorithms.
- The methodology was created to improve load forecasting accuracy and will be used in the Pristina district of Kosovo. This methodology avoids using traditional techniques that use historical data and need a significant amount of computing time.
2. Linear Regression, Long Short-Term Memory, and Evaluation Index
2.1. Linear Regression Algorithm
- Supervised Learning: in this algorithm, we put data labeled as input, where the output values are already known beforehand, and the ML algorithms learn the mapping function from input to output. The usually supervised algorithms are two forms: Classification (Naive Bayes, Logistic Regression, SVM, etc.) which uses an algorithm to accurately assign test data to specific categories; and Regression (Linear Regression, Random Forest Regression, etc.) which is employed to comprehend how dependent and independent variables relate to one another.
- Unsupervised Learning: it is a type whereby there are input data to put, but we don’t have associated output data. The usual unsupervised algorithms are three types: Clustering (k-Means, Hierarchical Clustering, etc.) which groups a set of objects in a way that objects in the same group are more comparable to each other than to those in other groups; Dimensionality Reduction (PCA—Principal Component Analyses, LDA—Linear Discriminant Analysis etc.) which is a method to reduce the total dimensions and analyze the data; Association (Apriori Algorithm, Eclat Algorithm) is about discovering rules to explain large pieces of data.
- Reinforcement Learning: this algorithm is qualified as human learning, and acts as a virtual agent in the known spaces where agents choose possible options to act. There are three types: Model-Free Methods (Q-Learning, Deep Q-Network, etc.); Model-Based Methods (Deep Deterministic Policy Gradient, etc.); and Value-Based Methods (Monte Carlo Methods, etc.).
- Semi-supervised Learning: in this category, only part of the given data input has been labeled.
2.2. Long Short-Term Memory Algorithm
- CNN has multiple layers, and it is used mostly for image processing and object detection.
- Recurrent Neural Networks (RNN) recognize patterns in data sequences such as time series, natural language, etc.
- Long Short-Term Memory Networks it is a special type of RNN, that is designed to avoid long-term dependency issues.
- Generative Adversarial Networks (GAN) generate the data using training of two neural networks in competitions.
- Autoencoders: it is a type of feed-forward neural network in which both input and output are identical.
2.3. The Evaluation Index of Forecast Model
3. Data Collection, Load Forecast Approach and Model Creation
3.1. Data Collection
3.2. Load Forecast Approach and Model Creation
- Phase 1: Data collection. Different types of data have been gathered and stored in the graph database: load data (MWh) and temperature (°C) as meteorological data as main parameters; the next step is preparing necessary files in csv format.
- Phase 2: Choosing models. The LR model and LSTM model have been selected for load forecasting.
- Phase 3: Input parameters. The parameters for load are prepared and inputted on the LR and LSTM model.
- Phase 4. Model creation. LR and LSTM models have been trained and tested.
- Phase 5. Results. The outcomes of the LSTM method and LR are analyzed.
- Phase 6. The load forecast’s accuracy is based on the outcomes of two algorithms, selecting the approach with the highest accuracy.
3.3. Dataset Analyses
4. Results and Discussions
4.1. LR Results
4.2. LSMT Results
5. The Comparison Results of the Proposed Model and Results from Paper’s Reviewed
6. Conclusions
Institutional Reviewed Board Statement
Author Contributions
Funding
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
Abbreviations
AI | Artificial Intelligence |
ARIMA | Auto Regressive Integrated Moving Average |
CNN | Convolutional Neural Networks |
CSV | Comma-Separated Value |
DL | Deep Learning |
DNN | Deep Neural Network |
GA | Genetic Algorithm |
GAN | Generative Adversarial Networks |
LTF | Long-Term Forecasting |
LR | Linear Regression |
LSTM | Long Short-Term Memory |
LDA | Linear Discriminant Analyses |
LSTM-NP | Long Short-Term Memory- Neural Prophet |
ML | Machine Learning |
MLR | Multiple Linear Regression |
MFT | Medium-Term Forecasting |
MAE | Mean Absolute Error |
MSE | Mean Squared Error |
MWh | Mega Wat hour |
Matplotlib | MATLAB, Plot, and Library |
NumPy | Numerical Python |
PSO | Particle Swarm Optimization |
PCA | Principal Component Analyses |
RNN | Recurrent Neural Network |
RMSE | Root Mean Square Error |
RLS | Recursive Least Squares |
RES | Renewable Energy Sources |
STD | Standard Deviation |
STF | Short-Term Forecasting |
STLF | Short-Term Load Forecasting |
SVM | Support Vector Machine |
TSO | Transmission System Operator |
References
- Kang, C.; Xia, Q.; Zhang, B. Review of power system load forecasting and its development. Autom. Electr. Power Syst. 2004, 28, 1–11. [Google Scholar]
- Shi, T.; Mei, F.; Lu, F.; Lu, J.; Pan, J.; Zhou, Y.; Wu, C.; Zheng, J. Phase Space Reconstruction Algorithm and Deep Learning-Based Very Short-Term Bus Load Forecasting. Energies 2019, 12, 4349. [Google Scholar] [CrossRef]
- Habbak, H.; Mahmoud, M.; Metwally, K.; Fouda, M.M.; Ibrahem, M.I. Load Forecasting Techniques and Their Applications in Smart Grids. Energies 2023, 16, 1480. [Google Scholar] [CrossRef]
- Chen, H.; Canizares, C.A.; Singh, A. ANN-based short-term load forecasting in electricity markets. In Proceedings of the Power Engineering Society Winter Meeting, Columbus, OH, USA, 28 January–1 February 2001; IEEE: New York, NY, USA, 2001; Volume 2, pp. 411–415. [Google Scholar]
- Jung, S.M.; Park, S.; Jung, S.W.; Hwang, E. Monthly Electric Load Forecasting Using Transfer Learning for Smart Cities. Sustainability 2020, 12, 6364. [Google Scholar] [CrossRef]
- Tudose, A.M.; Picioroaga, I.I.; Sidea, D.O.; Bulac, C.; Boicea, V.A. Short-term load forecasting using convolutional neural networks in COVID-19 context: The Romanian case study. Energies 2021, 14, 4046. [Google Scholar] [CrossRef]
- Lee, G.C. Regression-Based Methods for Daily Peak Load Forecasting in South Korea. Sustainability 2022, 14, 3984. [Google Scholar] [CrossRef]
- Dudek, G. Pattern-based local linear regression models for short-term load forecasting. Electr. Power Syst. Res. 2016, 130, 139–147. [Google Scholar] [CrossRef]
- Chen, B.J.; Chang, M.W. Load forecasting using support vector machines: A study on EUNITE competition 2001. IEEE Trans. Power Syst. 2004, 19, 1821–1830. [Google Scholar] [CrossRef]
- Amral, N.; Ozveren, C.S.; King, D. Short Term Load Forecasting using Multiple Linear Regression. In Proceedings of the 42nd International Universities Power Engineering Conference, Brighton, UK, 4–6 September 2007. [Google Scholar]
- Farsi, B.; Amayri, M.; Bouguila, N.; Eicker, U. On Short-Term Load Forecasting Using Machine Learning Techniques and a Novel Parallel Deep LSTM-CNN Approach. IEEE Access 2021, 9, 31191–31212. [Google Scholar] [CrossRef]
- Pavlatos, C.; Makris, E.; Fotis, G.; Vita, V.; Mladenov, V. Utilization of Artificial Neural Networks for Precise Electrical Load Prediction. Technologies 2023, 11, 70. [Google Scholar] [CrossRef]
- Bouktif, B.; Fiaz, A.; Ouni, A.; Serhani, M.A. Multi-Sequence LSTM-RNN Deep Learning and Metaheuristics for Electric Load Forecasting. Energies 2020, 13, 391. [Google Scholar] [CrossRef]
- Nespoli, A.; Ogliari, E.; Pretto, S.; Gavazzeni, M.; Vigani, S.; Paccanelli, F. Electrical Load Forecast by Means of LSTM: The Impact of Data Quality. Forecasting 2021, 3, 91–101. [Google Scholar] [CrossRef]
- Rafi, S.F.; Masood, N.A.; Deeba, S.R.; Hossain, E. A Short-Term Load Forecasting Method Using Integrated CNN and LSTM Network. IEEE Access 2021, 9, 32436–32448. [Google Scholar] [CrossRef]
- Wang, Y.; Zhang, N.; Chen, X. A Short-Term Residential Load Forecasting Model Based on LSTM Recurrent Neural Network Considering Weather Features. Energies 2021, 14, 2737. [Google Scholar] [CrossRef]
- Shohan, J.A.; Faruque, O.; Foo, S.Y. Forecasting of Electric Load Using a Hybrid LSTM-Neural Prophet Model. Energies 2022, 15, 2158. [Google Scholar] [CrossRef]
- Gigoni, L.; Betti, A.; Crisostomi, E.; Franco, A.; Tucci, M.; Bizzari, F.; Mucci, D. Day-Ahead Hourly Forecasting of Power Generation from Photovoltaic Plants. IEEE Trans. Sustain. Energy 2017, 9, 831–842. [Google Scholar] [CrossRef]
- Vinasco, J.L.; Bacher, P.; Moller, J.K. Probabilistic load forecasting considering temporal correlation: Online models for the prediction of households’ electrical load. Appl. Energy 2021, 303, 117594. [Google Scholar] [CrossRef]
- Fekri, M.N.; Patel, H.; Grolinger, K.; Sharma, V. Deep learning for load forecasting with smart meter data: Online Adaptive Recurrent Neural Network. Appl. Energy 2021, 282, 116177. [Google Scholar] [CrossRef]
- Muzaffar, S.; Afshari, A. Short-Term Load Forecast Using LSTM Networks. Energy Procedia 2019, 158, 2922–2927. [Google Scholar] [CrossRef]
- Available online: https://trends.google.com/trends (accessed on 2 September 2024).
- Olive, D. Linear Regression; Springer International Publishing: Cham, Switzerland, 2017. [Google Scholar]
- Hochreiter, S.; Schmidhuber, J. Long short-term memory. Neural Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef]
- Hyndman, R.J. Another look at forecast accuracy metrics for intermittent demand. Foresight Int. J. Appl. Forecast. 2006, 4, 43–46. [Google Scholar]
- Available online: https://kostt.com/Home/Index (accessed on 1 August 2024).
- Sarker, I.H. Machine Learning: Algorithms, Real-World Applications and Research Directions. SN Comput. Sci. 2021, 2, 160. [Google Scholar] [CrossRef] [PubMed]
- Sevlian, R.; Rajagopal, R. A Scaling Law for Short Term Load Forecasting on Varying Levels of Aggregation. Int. J. Electr. Power Energy Syst. 2018, 98, 350–361. [Google Scholar] [CrossRef]
- Skowron, M.; Frankiewicz, O.; Jan Jarosz, J.J.; Wolkiewicz, M.; Dybkowski, M.; Weisse, S.; Valire, J.; Wyłomaanska, A.; Zimroz, R.; Szabat, K. Detection and Classification of Rolling Bearing Defects Using Direct Signal Processing with Deep Convolutional Neural Network. Electronics 2024, 13, 1772. [Google Scholar] [CrossRef]
- Taylor, W.J. Short-Term Electricity Demand Forecasting Using Double Seasonal Exponential Smoothing. J. Oper. Res. Soc. 2003, 54, 799–805. [Google Scholar] [CrossRef]
- Groß, A.; Lenders, A.; Schwenker, F.; Braun, D.A.; Fischer, D. Comparison of short-term electrical load forecasting methods for different building types. Energy Inform. 2021, 4, 13. [Google Scholar] [CrossRef]
- Nti, I.K.; Teimeh, M.; Boateng, O.N.; Adekoya, A.F. Electricity load forecasting: A systematic review. J. Electr. Syst. Inf. Technol. 2020, 7, 13. [Google Scholar] [CrossRef]
- Beichter, M.; Phipps, K.; Frysztacki, M.M.; Mikut, R.; Hagenmeyer, V.; Ludwig, N. Net load forecasting using different aggregation levels. Energy Inform. 2022, 5, 19. [Google Scholar] [CrossRef]
- Hahn, H.; Nieberg, S.M.; Pickl, S. Electric load forecasting methods: Tools for decision making. Eur. J. Oper. Res. 2009, 199, 902–907. [Google Scholar] [CrossRef]
Algorithm | The Technique Used | Authors |
---|---|---|
ML and DL | DNN | Jung et al. [5] |
CNN | Tudose et al. [6] | |
LR | Lee [7], Dudek [8] | |
SVM, MLR | Chen et al. [9], Amral et al. [10] | |
LSTM-CNN, RNN | Farsi et al. [11], Pavlatos et al. [12], Bouktif et al. [13], Fekri et al. [20] | |
LSTM, CNN LSTM | Nespoli et al. [14], Rafi et al. [15], Wang et al. [16], Shohan et al. [17], Muzaffar et al. [21] | |
DL | Gigoni et al. [18] | |
RLS | Vinasco et al. [19] |
Winter Week | Summer Week | |||||
---|---|---|---|---|---|---|
Model | MAE | MSE | RMSE | MAE | MSE | RMSE |
LR (training data) | 0.355 | 0.141 | 0.376 | 0.352 | 0.140 | 0.374 |
LR (test data) | 0.340 | 0.134 | 0.367 | 0.297 | 0.117 | 0.343 |
Model | Winter Week | Summer Week | ||||
---|---|---|---|---|---|---|
MAE | MSE | RMSE | MAE | MSE | RMSE | |
LSTM | 6.231 | 70.873 | 8.418 | 9.305 | 117.639 | 10.846 |
Model | Winter Week | Summer Week | ||||
---|---|---|---|---|---|---|
MAE | MSE | RMSE | MAE | MSE | RMSE | |
LR | 0.355 | 0.141 | 0.367 | 0.352 | 0.140 | 0.374 |
LSTM | 6.231 | 70.873 | 8.418 | 9.305 | 117.639 | 10.846 |
Model | Evaluation Indexes | ||||
---|---|---|---|---|---|
MAE | MSE | RMSE | MAPE | ||
LR (this paper) | 0.355 | 0.141 | 0.367 | - | - |
LSTM (this paper) | 6.231 | 70.873 | 8.418 | - | |
DNN [5] (Jongno d.) | - | - | - | 3.74 | |
CNN [6] | 104 | 20841 | 144.36 | 1.37 | |
LR [7] (dynamic) | 17.69 | - | - | 1.96 | |
LR [8] (average) | - | - | - | 2.50 | |
SVM [9] (winter, yes) | - | - | - | 3.14 | |
MLR [10] (dry season) | - | - | 3.52 | ||
CNN [11] (January) | 567.99 | - | 8.99 | 0.911 | |
LSTM [12] (time st. 72) | 0.163 | - | 0.054 | - | |
LSTM-RNN [13] (GA) | 231.50 | - | 311.44 | - | |
LSTM [14] (holiday r.) | 3.70 | - | 6.43 | - | |
LSTM [15] (January) | 486.49 | - | 577.94 | 5.71 | |
LSTM [16] (aggr. build.) | - | - | 1148.9 | 9.42 | |
LSTM [17] (winter) | - | - | 5.45 | 1.58 | |
RLS [19] (k horizon) | - | 0.325 | - | - | |
RNN [20] | - | - | 0.686 | 20.53 | |
CNN LSTM [21] (7 days) | - | - | 374 | 5.97 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Perçuku, A.; Minkovska, D.; Hinov, N. Enhancing Electricity Load Forecasting with Machine Learning and Deep Learning. Technologies 2025, 13, 59. https://doi.org/10.3390/technologies13020059
Perçuku A, Minkovska D, Hinov N. Enhancing Electricity Load Forecasting with Machine Learning and Deep Learning. Technologies. 2025; 13(2):59. https://doi.org/10.3390/technologies13020059
Chicago/Turabian StylePerçuku, Arbër, Daniela Minkovska, and Nikolay Hinov. 2025. "Enhancing Electricity Load Forecasting with Machine Learning and Deep Learning" Technologies 13, no. 2: 59. https://doi.org/10.3390/technologies13020059
APA StylePerçuku, A., Minkovska, D., & Hinov, N. (2025). Enhancing Electricity Load Forecasting with Machine Learning and Deep Learning. Technologies, 13(2), 59. https://doi.org/10.3390/technologies13020059