IDEAS home Printed from https://ideas.repec.org/a/plo/pone00/0310465.html
   My bibliography  Save this article

An ensemble deep learning framework for energy demand forecasting using genetic algorithm-based feature selection

Author

Listed:
  • Mohd Sakib
  • Tamanna Siddiqui
  • Suhel Mustajab
  • Reemiah Muneer Alotaibi
  • Nouf Mohammad Alshareef
  • Mohammad Zunnun Khan

Abstract

Accurate energy demand forecasting is critical for efficient energy management and planning. Recent advancements in computing power and the availability of large datasets have fueled the development of machine learning models. However, selecting the most appropriate features to enhance prediction accuracy and robustness remains a key challenge. This study proposes an ensemble approach that integrates a genetic algorithm with multiple forecasting models to optimize feature selection. The genetic algorithm identifies the optimal subset of features from a dataset that includes historical energy consumption, weather variables, and temporal characteristics. These selected features are then used to train three base learners: Long Short-Term Memory (LSTM), Bi-directional Long Short-Term Memory (BiLSTM), and Gated Recurrent Unit (GRU). The predictions from these models are combined using a stacking ensemble technique to generate the final forecast. To enhance model evaluation, we divided the dataset into weekday and weekend subsets, allowing for a more detailed analysis of energy consumption patterns. To ensure the reliability of our findings, we conducted ten simulations and applied the Wilcoxon Signed Rank Test to the results. The proposed model demonstrated exceptional precision, achieving a Root Mean Square Error (RMSE) of 130.6, a Mean Absolute Percentage Error (MAPE) of 0.38%, and a Mean Absolute Error (MAE) of 99.41 for weekday data. The model also maintained high accuracy for weekend predictions, with an RMSE of 137.41, a MAPE of 0.42%, and an MAE of 105.67. This research provides valuable insights for energy analysts and contributes to developing more sophisticated demand forecasting methods.

Suggested Citation

  • Mohd Sakib & Tamanna Siddiqui & Suhel Mustajab & Reemiah Muneer Alotaibi & Nouf Mohammad Alshareef & Mohammad Zunnun Khan, 2025. "An ensemble deep learning framework for energy demand forecasting using genetic algorithm-based feature selection," PLOS ONE, Public Library of Science, vol. 20(1), pages 1-28, January.
  • Handle: RePEc:plo:pone00:0310465
    DOI: 10.1371/journal.pone.0310465
    as

    Download full text from publisher

    File URL: https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0310465
    Download Restriction: no

    File URL: https://journals.plos.org/plosone/article/file?id=10.1371/journal.pone.0310465&type=printable
    Download Restriction: no

    File URL: https://libkey.io/10.1371/journal.pone.0310465?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Kulshrestha, Anurag & Krishnaswamy, Venkataraghavan & Sharma, Mayank, 2020. "Bayesian BILSTM approach for tourism demand forecasting," Annals of Tourism Research, Elsevier, vol. 83(C).
    2. Faisal Mohammad & Young-Chon Kim, 2020. "Energy load forecasting model based on deep neural networks for smart grids," International Journal of System Assurance Engineering and Management, Springer;The Society for Reliability, Engineering Quality and Operations Management (SREQOM),India, and Division of Operation and Maintenance, Lulea University of Technology, Sweden, vol. 11(4), pages 824-834, August.
    3. Bernard Rosner & Robert J. Glynn & Mei-Ling T. Lee, 2006. "The Wilcoxon Signed Rank Test for Paired Comparisons of Clustered Data," Biometrics, The International Biometric Society, vol. 62(1), pages 185-192, March.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. José M. Liceaga-Ortiz-De-La-Peña & Jorge A. Ruiz-Vanoye & Juan M. Xicoténcatl-Pérez & Ocotlán Díaz-Parra & Alejandro Fuentes-Penna & Ricardo A. Barrera-Cámara & Daniel Robles-Camarillo & Marco A. Márq, 2025. "Advancing Smart Energy: A Review for Algorithms Enhancing Power Grid Reliability and Efficiency Through Advanced Quality of Energy Services," Energies, MDPI, vol. 18(12), pages 1-33, June.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Dounia El Bourakadi & Hiba Ramadan & Ali Yahyaouy & Jaouad Boumhidi, 2023. "A robust energy management approach in two-steps ahead using deep learning BiLSTM prediction model and type-2 fuzzy decision-making controller," Fuzzy Optimization and Decision Making, Springer, vol. 22(4), pages 645-667, December.
    2. Daniel A Adler & Fei Wang & David C Mohr & Tanzeem Choudhury, 2022. "Machine learning for passive mental health symptom prediction: Generalization across different longitudinal mobile sensing studies," PLOS ONE, Public Library of Science, vol. 17(4), pages 1-20, April.
    3. Peng, Tian & Zhang, Chu & Zhou, Jianzhong & Nazir, Muhammad Shahzad, 2021. "An integrated framework of Bi-directional long-short term memory (BiLSTM) based on sine cosine algorithm for hourly solar radiation forecasting," Energy, Elsevier, vol. 221(C).
    4. Anna Urbanek & Anna Losa & Monika Wieczorek-Kosmala & Karel Hlaváček & Aleš Lokaj, 2023. "Did the Quality of Digital Communication Skills in Education Improve after the Pandemic? Evidence from HEIs," Sustainability, MDPI, vol. 15(15), pages 1-22, August.
    5. Zhang, Dongxue & Wang, Shuai & Liang, Yuqiu & Du, Zhiyuan, 2023. "A novel combined model for probabilistic load forecasting based on deep learning and improved optimizer," Energy, Elsevier, vol. 264(C).
    6. Bagkavos, Dimitrios & Patil, Prakash N., 2021. "Improving the Wilcoxon signed rank test by a kernel smooth probability integral transformation," Statistics & Probability Letters, Elsevier, vol. 171(C).
    7. Sonthalia, Ankit & Femilda Josephin, J.S. & Varuvel, Edwin Geo & Chinnathambi, Arunachalam & Subramanian, Thiyagarajan & Kiani, Farzad, 2025. "A deep learning multi-feature based fusion model for predicting the state of health of lithium-ion batteries," Energy, Elsevier, vol. 317(C).
    8. Ghimire, Sujan & Deo, Ravinesh C. & Casillas-Pérez, David & Salcedo-Sanz, Sancho, 2022. "Improved Complete Ensemble Empirical Mode Decomposition with Adaptive Noise Deep Residual model for short-term multi-step solar radiation prediction," Renewable Energy, Elsevier, vol. 190(C), pages 408-424.
    9. Ming Yin & Feiya Lu & Xingxuan Zhuo & Wangzi Yao & Jialong Liu & Jijiao Jiang, 2024. "Prediction of daily tourism volume based on maximum correlation minimum redundancy feature selection and long short‐term memory network," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 43(2), pages 344-365, March.
    10. del Campo, Cristina & Urquía-Grande, Elena & Pascual-Ezama, David, 2023. "Internationalizing the business school: A comparative analysis of English-medium and Spanish-medium instruction impact on student performance," Evaluation and Program Planning, Elsevier, vol. 98(C).
    11. Yu, Ling & Zhao, Pengjun & Tang, Junqing & Pang, Liang, 2023. "Changes in tourist mobility after COVID-19 outbreaks," Annals of Tourism Research, Elsevier, vol. 98(C).
    12. Sandipan Dutta, 2022. "Robust Testing of Paired Outcomes Incorporating Covariate Effects in Clustered Data with Informative Cluster Size," Stats, MDPI, vol. 5(4), pages 1-13, December.
    13. Zhang, Chu & Ma, Huixin & Hua, Lei & Sun, Wei & Nazir, Muhammad Shahzad & Peng, Tian, 2022. "An evolutionary deep learning model based on TVFEMD, improved sine cosine algorithm, CNN and BiLSTM for wind speed prediction," Energy, Elsevier, vol. 254(PA).
    14. Bi, Jian-Wu & Li, Hui & Fan, Zhi-Ping, 2021. "Tourism demand forecasting with time series imaging: A deep learning model," Annals of Tourism Research, Elsevier, vol. 90(C).
    15. Jasleen Kaur & Khushdeep Dharni, 2022. "Assessing efficacy of association rules for predicting global stock indices," DECISION: Official Journal of the Indian Institute of Management Calcutta, Springer;Indian Institute of Management Calcutta, vol. 49(3), pages 329-339, September.
    16. Xu, Shilin & Liu, Yang & Jin, Chun, 2023. "Forecasting daily tourism demand with multiple factors," Annals of Tourism Research, Elsevier, vol. 103(C).
    17. Yusuf A Sha’aban, 2024. "Predictive models for short-term load forecasting in the UK’s electrical grid," PLOS ONE, Public Library of Science, vol. 19(4), pages 1-23, April.
    18. Tarek Numair & Daniel Toshio Harrell & Nguyen Tien Huy & Futoshi Nishimoto & Yvonne Muthiani & Samson Muuo Nzou & Angkhana Lasaphonh & Khomsonerasinh Palama & Tiengkham Pongvongsa & Kazuhiko Moji & Ke, 2021. "Barriers to the Digitization of Health Information: A Qualitative and Quantitative Study in Kenya and Lao PDR Using a Cloud-Based Maternal and Child Registration System," IJERPH, MDPI, vol. 18(12), pages 1-15, June.
    19. Zheng, Weimin & Huang, Liyao & Lin, Zhibin, 2021. "Multi-attraction, hourly tourism demand forecasting," Annals of Tourism Research, Elsevier, vol. 90(C).
    20. Zaki Masood & Rahma Gantassi & Ardiansyah & Yonghoon Choi, 2022. "A Multi-Step Time-Series Clustering-Based Seq2Seq LSTM Learning for a Single Household Electricity Load Forecasting," Energies, MDPI, vol. 15(7), pages 1-11, April.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:plo:pone00:0310465. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: plosone (email available below). General contact details of provider: https://journals.plos.org/plosone/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.