Enhancing Energy Consumption Forecasting with a Multi-Model Deep Learning Approach

Authors

  • Haidar Ahmad Fajri Braincore Indonesia, Jakarta, Indonesia
  • Kirey Oleisan Departement of Mathematics, Faculty of Mathematics and Natural Sciences, University of Brawijaya, Malang, Indonesia

DOI:

https://doi.org/10.21776/ub.ijma.2025.003.01.5

Keywords:

Convolutional Neural Network (CNN), Bidirectional Long Short-Term Memory (Bi-LSTM), Transformer

Abstract

 High energy consumption highlights the need for accurate primary energy forecasts to be critical for policy development, resource optimization and sustainable growth. Indonesia, the fourth largest energy-consuming country in Asia-Pacific, will face challenges in managing energy consumption for economic advancement if it does not conduct proper forecasts with large and limited data. Deep learning models, such as Convolutional Neural Network (CNN), Bidirectional Long Short-Term Memory (Bi-LSTM), and Transformer, excel at extracting insights and modelling temporal dependencies with minimal error, making them ideal for energy forecasting. The hybrid CNN-Bi-LSTM-Transformer model leverages complementary strengths: CNN captures initial patterns, Bi-LSTM manages temporal dependencies, and Transformer enhance global relationships. This model outperforms others model, including Linear Regression, CNN, Bi-LSTM, LSTM, CNN-LSTM, CNN-Bi-LSTM, CNN-Transformer, LSTM-Transformer, Bi-LSTM-Transformer, and hybrid CNN-LSTM-Transformer. It achieves a Mean Squared Error (MSE) of $\num{6.0006e-4}$ on train data, $\num{3.4485e-4}$ on test data and computation time of 8.20 minutes from 25 iterations, with 128 units of CNN layer, 150 units of LSTM layer, and four heads of attention in Transformer. The model also reports a Mean Absolute Error (MAE) of $\num{1.4000e-4}$ for training and $\num{1.5000e-4}$ test data and a Mean Absolute Percentage Error (MAPE) of $1.56$\% for train data and $1.75$\% for test data. This model also effectively tracks energy consumption trends with minimal fluctuations, accurately mirroring the original data and avoiding irregular variations, ensuring reliable future predictions in the long- and short-term.

References

A. I. Osman, L. Chen, M. Yang, , G-l. Msigwa, M. Farghali, S. Fawzy, D. W. Rooney, and P-S. Yap, Cost, Environmental Impact, and Resilience of Renewable Energy Under a Changing Climate: a Review, Environmental Chemistry Letters 21 (2023) 741–764.

F. Febrianto, C. Dewi, and B. Rahayudi, Pemodelan Regresi Linear Untuk Prediksi Konsumsi Energi Primer Indonesia Menggunakan Hybrid Particle Swarm Optimization Dan Continuous Ant Colony Optimization, Jurnal Pengembangan Teknologi Informasi dan Ilmu Komputer 2(9) (2018) 2760–2769.

A. A. Solikah and B. Bramastia, Systematic Literature Review: Kajian Potensi dan Pemanfaatan Sumber Daya Energi Baru dan Terbarukan Di Indonesia, J. Energi Baru Terbarukan 5(1) (2024) 27–43.

J. C. Adiatama, P. Simamora, P. I. Gardian, R. P. M. Putra, F. S. Ragina, and N. Siahaan, Kebutuhan Investasi Energi di Indonesia. Studi Kasus: Rencana Umum Energi Nasional (RUEN), (IESR & IIEE, Jakarta, 2019).

S. Barak and S. S. Sadegh, Forecasting Energy Consumption Using Ensemble ARIMA–ANFIS Hybrid Algorithm, International Journal of Electrical Power & Energy Systems 82 (2016) 92–104.

M. S. Kiran, E. Özceylan, M. Gündüz, and T. Paksoy, A Novel Hybrid Approach Based on Particle Swarm Optimization and Ant Colony Algorithm to Forecast Energy Demand of Turkey, Energy Conversion and Management 53(1) (2012) 75–83.

M. M. Lawson, Predicting Educational Attainment Based on Forensic Psychiatric Patients’ Age at First Hospitalization, (2019), https://core.ac.uk/download/217235451.pdf .

P. D. D. Phan, M. A. Nguyen, and B. H. H. Nguyen, Using Linear Regression Analysis to Predict Energy Consumption, Research Square (2024).

D. Wang, The Impact of Outliers on Regression Coefficients: A Sensitivity Analysis, The International Journal of Accounting 56(03) (2021) 2150014.

K. Yang, J. Tu, and T. Chen, Homoscedasticity: An Overlooked Critical Assumption for Linear Regression, General Psychiatry 32(5) (2019) e100148.

I. Westphal, Short-Term Load Forecasting With Deep Learning: Improving Performance With Post-Training Specialization, The Electricity Journal 38(1) (2025) 107449.

A. Irwansyah, E. Muhammad, F. Arifin, B. N. Iman, and H. Hermawan, Power Consumption Predictive Analytics and Automatic Anomaly Detection Based on CNN-LSTM Neural Networks, Jurnal Rekayasa Elektrika 19(14) (2023) 127-134.

H. S. Oliveira and H. P. Oliveira, Transformers for Energy Forecast, Sensors 23(15) (2023) 6840.

A. Mohammed and G. Corzo, Retracted: Spatiotemporal Convolutional Long Short-Term Memory For Regional Streamflow Predictions, Journal of Environmental Management 350 (2024) 119585.

L. Ni, D. Wang, V. P. Singh, J. Wu, Y. Wang, Y. Tao, and J. Zhang, Streamflow and Rainfall Forecasting by Two Long Short-Term Memory-Based Models, Journal of Hydrology 583 (2020) 124296.

T. Le, M. T. Vo, B. Vo, E. Hwang, S. Rho, and S. W. Baik, Improving Electric Energy Consumption Prediction Using CNN and Bi-LSTM, Applied Sciences 9(20) (2019) 4237.

I. B. Akkaya, S. S. Kathiresan, E. Arani, and B. Zonooz, Enhancing Performance of Vision Transformers on Small Datasets Through Local Inductive Bias Incorporation, Pattern Recognition 153 (2024) 110510.

K. Morita, T. Mizuno, and H. Kusuhara, Investigation of a Data Split Strategy Involving the Time Axis in Adverse Event Prediction Using Machine Learning, J. Chem. Inf. Model. 62(17) (2022) 3982-3992.

L. C. Chen, J. T. Sheu, Y. Tsao, and Y. J. Chuang, Deep Learning and Explainable Artificial Intelligence to Predict Patients’ Choice of Hospital Levels in Urban and Rural Areas, Studies in Health Technology and Informatics 290 (2022) 734-738.

L. Alzubaidi, J. Zhang, A. J. Humaidi, A. Al-Dujaili, Y. Duan, O. Al-Shamma, J. Santamaría, M. A. Fadhel, M. Al-Amidie, and L. Farhan, Review of Deep Learning: Concepts, CNN Architectures, Challenges, Applications, Future Directions, J. Big Data 8(53) (2021) 53.

J. Yang, Z. Li, Z. Gu, and W. Li, Research on Floating Object Classification Algorithm Based on Convolutional Neural Network, Scientific Reports 14(32086) (2024).

P. Mudjirahardjo, Real Time 2D Convolution and Max Pooling Process, International Journal of Computer Applications Technology and Research, 13(06) (2024) 18–23.

I. Salehin and D-K. Kang, A Review on Dropout Regularization Approaches for Deep Neural Networks Within the Scholarly Domain, Electronics 12(14) (2023) 3106.

F. Qian, L. Chen, J. Li, C. Ding, X. Chen, and J. Wang, Direct Prediction of the Toxic Gas Diffusion Rule in a Real Environment Based on LSTM, International Journal of Environmental Research and Public Health 16(12) (2019) 2133.

Z. Wang, J. Hu, G. Min, Z. Zhao and J. Wang, Data-Augmentation-Based Cellular Traffic Prediction in Edge-Computing-Enabled Smart City, IEEE Transactions on Industrial Informatics 17(6) (2021) 4179-4187.

T. T. Aurpa, K. N. Fariha, K. Hossain, S. M. Jeba, M. S. Ahmed, M. R. S. Adib, F. Islam, and F. Akte, Deep Transformers-Based Architecture for the Recognition of Mathematical Equations From Real-World Math Problems, Heliyon 10(20) (2024) e39089.

S. E. Sorour, A. Alojail, A. El-Shora, A. E. Amin, and A. A. Abohany, A Hybrid Deep Learning Approach for Enhanced Sentiment Classification and Consistency Analysis in Customer Reviews, Mathematics 12(23) (2024) 3856.

S. N. Qasem and S. M. Alzanin, An Effective Forecasting Approach of Temperature Enabling Climate Change Analysis in Saudi Arabia, International Journal of Advanced Computer Science and Applications (IJACSA) 15(3) (2024).

D. Li and Z. Luo, An Improved Transformer-Based Neural Machine Translation Strategy: Interacting-Head Attention, Computational Intelligence and Neuroscience 2022 (2022) 2998242 .

R. Jin, B. Hou, J. Xiao, W. J. Su, and L. Shen, Fine-Tuning Attention Modules Only: Enhancing Weight Disentanglement in Task Arithmetic, The Thirteenth International Conference on Learning Representations (2025).

M. Reyad, A. Sarhan and M. Arafa, A Modified Adam Algorithm for Deep Neural Network Optimization, Neural Computing and Applications 35 (2023) 17095–17112.

B. Brost, I. J. Cox, Y. Seldin, and C. Lioma, An Improved Multileaving Algorithm for Online Ranker Evaluation, arXiv preprint, arXiv:1608.00788, (2016).

M. Choi, An Empirical Study on the Optimal Batch Size for the Deep Q-Network, Robot Intelligence Technology and Applications 5 751 (Springer, Berlin/Heidelberg, 2019) 73–81.

Downloads

Published

2025-04-10

How to Cite

Enhancing Energy Consumption Forecasting with a Multi-Model Deep Learning Approach. (2025). Indonesian Journal of Mathematics and Applications, 3(1), 55-68. https://doi.org/10.21776/ub.ijma.2025.003.01.5

Similar Articles

1-10 of 16

You may also start an advanced similarity search for this article.