IDEAS home Printed from https://ideas.repec.org/a/eee/energy/v326y2025ics0360544225016925.html

A robust energy flow predictor based on CNN-LSTM for prosumer-oriented microgrids considering changes in biogas generation

Author

Listed:
  • Maślak, Grzegorz
  • Orłowski, Przemysław

Abstract

Information, such as reliable demand and generation forecasts is crucial for appropriate energy management in microgrids. However, the most valuable data is the aggregate energy flow in the managed network, rather than its components. The large share of renewable energy in such installations is associated with fluctuations. A promising renewable source that helps counteract them is biogas. However, a source subject to uncertainties which should be taken into account. The work focuses on developing a method for obtaining a CNN-LSTM microgrid energy flow predictor dedicated to energy management systems. The selection of the hyper-parameters of the artificial neural network is formulated as a robust meta-optimisation problem and solved using surrogate optimisation. The solution ensures obtaining a CNN-LSTM network providing the lowest prediction error with the largest change in the share of biogas in the microgrid. Detailed analyses have shown that in addition to obtaining high robustness to biogas, the solution does not lose accuracy while changing the number of prosumers with photovoltaic installations. Beyond meta-optimisation, ranges of certain hyper-parameters providing adequate prediction quality for all analysed prediction horizons are identified.

Suggested Citation

  • Maślak, Grzegorz & Orłowski, Przemysław, 2025. "A robust energy flow predictor based on CNN-LSTM for prosumer-oriented microgrids considering changes in biogas generation," Energy, Elsevier, vol. 326(C).
  • Handle: RePEc:eee:energy:v:326:y:2025:i:c:s0360544225016925
    DOI: 10.1016/j.energy.2025.136050
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S0360544225016925
    Download Restriction: Full text for ScienceDirect subscribers only

    File URL: https://libkey.io/10.1016/j.energy.2025.136050?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
    ---><---

    As the access to this document is restricted, you may want to

    for a different version of it.

    References listed on IDEAS

    as
    1. Shanmugarajah Vinothine & Lidula N. Widanagama Arachchige & Athula D. Rajapakse & Roshani Kaluthanthrige, 2022. "Microgrid Energy Management and Methods for Managing Forecast Uncertainties," Energies, MDPI, vol. 15(22), pages 1-22, November.
    2. Sekhar, Charan & Dahiya, Ratna, 2023. "Robust framework based on hybrid deep learning approach for short term load forecasting of building electricity demand," Energy, Elsevier, vol. 268(C).
    3. Sovacool, Benjamin K. & Kivimaa, Paula & Hielscher, Sabine & Jenkins, Kirsten, 2017. "Vulnerability and resistance in the United Kingdom's smart meter transition," Energy Policy, Elsevier, vol. 109(C), pages 767-781.
    4. Zha, Wenshu & Liu, Yuping & Wan, Yujin & Luo, Ruilan & Li, Daolun & Yang, Shan & Xu, Yanmei, 2022. "Forecasting monthly gas field production based on the CNN-LSTM model," Energy, Elsevier, vol. 260(C).
    5. Alvarado-Barrios, Lázaro & Rodríguez del Nozal, Álvaro & Boza Valerino, Juan & García Vera, Ignacio & Martínez-Ramos, Jose L., 2020. "Stochastic unit commitment in microgrids: Influence of the load forecasting error and the availability of energy storage," Renewable Energy, Elsevier, vol. 146(C), pages 2060-2069.
    6. Wang, Delu & Gan, Jun & Mao, Jinqi & Chen, Fan & Yu, Lan, 2023. "Forecasting power demand in China with a CNN-LSTM model including multimodal information," Energy, Elsevier, vol. 263(PE).
    7. Aslam, Sheraz & Herodotou, Herodotos & Mohsin, Syed Muhammad & Javaid, Nadeem & Ashraf, Nouman & Aslam, Shahzad, 2021. "A survey on deep learning methods for power load and renewable energy forecasting in smart microgrids," Renewable and Sustainable Energy Reviews, Elsevier, vol. 144(C).
    8. Arash Moradzadeh & Sahar Zakeri & Maryam Shoaran & Behnam Mohammadi-Ivatloo & Fazel Mohammadi, 2020. "Short-Term Load Forecasting of Microgrid via Hybrid Support Vector Regression and Long Short-Term Memory Algorithms," Sustainability, MDPI, vol. 12(17), pages 1-17, August.
    9. Fahad R. Albogamy & Ghulam Hafeez & Imran Khan & Sheraz Khan & Hend I. Alkhammash & Faheem Ali & Gul Rukh, 2021. "Efficient Energy Optimization Day-Ahead Energy Forecasting in Smart Grid Considering Demand Response and Microgrids," Sustainability, MDPI, vol. 13(20), pages 1-29, October.
    10. Kim, Tae-Young & Cho, Sung-Bae, 2019. "Predicting residential energy consumption using CNN-LSTM neural networks," Energy, Elsevier, vol. 182(C), pages 72-81.
    11. Rahman, Aowabin & Srikumar, Vivek & Smith, Amanda D., 2018. "Predicting electricity consumption for commercial and residential buildings using deep recurrent neural networks," Applied Energy, Elsevier, vol. 212(C), pages 372-385.
    12. Nikolaos Koltsaklis & Ioannis P. Panapakidis & David Pozo & Georgios C. Christoforidis, 2021. "A Prosumer Model Based on Smart Home Energy Management and Forecasting Techniques," Energies, MDPI, vol. 14(6), pages 1-32, March.
    13. Agga, Ali & Abbou, Ahmed & Labbadi, Moussa & El Houm, Yassine, 2021. "Short-term self consumption PV plant power production forecasts based on hybrid CNN-LSTM, ConvLSTM models," Renewable Energy, Elsevier, vol. 177(C), pages 101-112.
    14. Tawn, R. & Browell, J., 2022. "A review of very short-term wind and solar power forecasting," Renewable and Sustainable Energy Reviews, Elsevier, vol. 153(C).
    15. Şenol, Halil & Çolak, Emre & Oda, Volkan, 2024. "Forecasting of biogas potential using artificial neural networks and time series models for Türkiye to 2035," Energy, Elsevier, vol. 302(C).
    16. Qu, Jiaqi & Qian, Zheng & Pei, Yan, 2021. "Day-ahead hourly photovoltaic power forecasting using attention-based CNN-LSTM neural network embedded with multiple relevant and target variables prediction pattern," Energy, Elsevier, vol. 232(C).
    17. Konečná, Eva & Teng, Sin Yong & Máša, Vítězslav, 2020. "New insights into the potential of the gas microturbine in microgrids and industrial applications," Renewable and Sustainable Energy Reviews, Elsevier, vol. 134(C).
    18. Shahid, Farah & Zameer, Aneela & Muneeb, Muhammad, 2021. "A novel genetic LSTM model for wind power forecast," Energy, Elsevier, vol. 223(C).
    19. Dittmer, Celina & Krümpel, Johannes & Lemmer, Andreas, 2021. "Power demand forecasting for demand-driven energy production with biogas plants," Renewable Energy, Elsevier, vol. 163(C), pages 1871-1877.
    20. Su-Chang Lim & Jun-Ho Huh & Seok-Hoon Hong & Chul-Young Park & Jong-Chan Kim, 2022. "Solar Power Forecasting Using CNN-LSTM Hybrid Model," Energies, MDPI, vol. 15(21), pages 1-17, November.
    21. Biswas, M.A. Rafe & Robinson, Melvin D. & Fumo, Nelson, 2016. "Prediction of residential building energy consumption: A neural network approach," Energy, Elsevier, vol. 117(P1), pages 84-92.
    22. Hanifi, Shahram & Zare-Behtash, Hossein & Cammarano, Andrea & Lotfian, Saeid, 2023. "Offshore wind power forecasting based on WPD and optimised deep learning methods," Renewable Energy, Elsevier, vol. 218(C).
    23. Faisal Nawab & Ag Sufiyan Abd Hamid & Muhammad Arif & Tufial A. Khan & Amir Naveed & Muhammad Sadiq & Sahibzada Imad Ud din & Adnan Ibrahim, 2022. "Solar–Biogas Microgrid: A Strategy for the Sustainable Development of Rural Communities in Pakistan," Sustainability, MDPI, vol. 14(18), pages 1-15, September.
    24. Zizhen Cheng & Li Wang & Yumeng Yang, 2023. "A Hybrid Feature Pyramid CNN-LSTM Model with Seasonal Inflection Month Correction for Medium- and Long-Term Power Load Forecasting," Energies, MDPI, vol. 16(7), pages 1-18, March.
    Full references (including those not matched with items on IDEAS)

    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. Mirza, Adeel Feroz & Mansoor, Majad & Usman, Muhammad & Ling, Qiang, 2023. "A comprehensive approach for PV wind forecasting by using a hyperparameter tuned GCVCNN-MRNN deep learning model," Energy, Elsevier, vol. 283(C).
    2. Mao, Mingxuan & Wang, Lining & Jiang, Sheng & Zhang, Hao, 2026. "Meteorological element prediction for renewable energy systems: Comprehensive comparison on deep learning algorithms with/without hyperparameters tuning," Energy, Elsevier, vol. 346(C).
    3. Yu, Solui & Hur, Jin, 2025. "An enhanced critical operating constraint forecasting (COCF) for power grids with large scale wind generating resources," Energy, Elsevier, vol. 331(C).
    4. Chang, Chen & Ma, Guangxing & Zhang, Jiehao & Tao, Jinlei, 2025. "Investigation on the CNN-LSTM-MHA-based model for the heating energy consumption prediction of residential buildings considering active and passive factors," Energy, Elsevier, vol. 333(C).
    5. Khan, Zulfiqar Ahmad & Khan, Shabbir Ahmad & Hussain, Tanveer & Baik, Sung Wook, 2024. "DSPM: Dual sequence prediction model for efficient energy management in micro-grid," Applied Energy, Elsevier, vol. 356(C).
    6. Khan, Waqas & Liao, Juo Yu & Walker, Shalika & Zeiler, Wim, 2022. "Impact assessment of varied data granularities from commercial buildings on exploration and learning mechanism," Applied Energy, Elsevier, vol. 319(C).
    7. Karol Bot & Samira Santos & Inoussa Laouali & Antonio Ruano & Maria da Graça Ruano, 2021. "Design of Ensemble Forecasting Models for Home Energy Management Systems," Energies, MDPI, vol. 14(22), pages 1-37, November.
    8. Meng, Anbo & Xie, Zhifeng & Luo, Jianqiang & Zeng, Ying & Xu, Xuancong & Li, Yidian & Wu, Zhenbo & Zhang, Zhan & Zhu, Jianbin & Xian, Zikang & Li, Chen & Yan, Baiping & Yin, Hao, 2023. "An adaptive variational mode decomposition for wind power prediction using convolutional block attention deep learning network," Energy, Elsevier, vol. 282(C).
    9. Ma, Zhengjing & Mei, Gang, 2022. "A hybrid attention-based deep learning approach for wind power prediction," Applied Energy, Elsevier, vol. 323(C).
    10. Cheng, Runkun & Yang, Di & Liu, Da & Zhang, Guowei, 2024. "A reconstruction-based secondary decomposition-ensemble framework for wind power forecasting," Energy, Elsevier, vol. 308(C).
    11. Fernando Venâncio Mucomole & Carlos Augusto Santos Silva & Lourenço Lázaro Magaia, 2025. "Parametric Forecast of Solar Energy over Time by Applying Machine Learning Techniques: Systematic Review," Energies, MDPI, vol. 18(6), pages 1-51, March.
    12. Lu, Yakai & Tian, Zhe & Zhou, Ruoyu & Liu, Wenjing, 2021. "A general transfer learning-based framework for thermal load prediction in regional energy system," Energy, Elsevier, vol. 217(C).
    13. Sun, Hongchang & Niu, Yanlei & Li, Chengdong & Zhou, Changgeng & Zhai, Wenwen & Chen, Zhe & Wu, Hao & Niu, Lanqiang, 2022. "Energy consumption optimization of building air conditioning system via combining the parallel temporal convolutional neural network and adaptive opposition-learning chimp algorithm," Energy, Elsevier, vol. 259(C).
    14. Wang, Xiaodi & Hao, Yan & Yang, Wendong, 2024. "Novel wind power ensemble forecasting system based on mixed-frequency modeling and interpretable base model selection strategy," Energy, Elsevier, vol. 297(C).
    15. Luo, X.J. & Oyedele, Lukumon O. & Ajayi, Anuoluwapo O. & Akinade, Olugbenga O. & Owolabi, Hakeem A. & Ahmed, Ashraf, 2020. "Feature extraction and genetic algorithm enhanced adaptive deep neural network for energy consumption prediction in buildings," Renewable and Sustainable Energy Reviews, Elsevier, vol. 131(C).
    16. Zheng, Lingwei & Su, Ran & Sun, Xinyu & Guo, Siqi, 2023. "Historical PV-output characteristic extraction based weather-type classification strategy and its forecasting method for the day-ahead prediction of PV output," Energy, Elsevier, vol. 271(C).
    17. Wu, Han & Liang, Yan & Heng, Jiani, 2023. "Pulse-diagnosis-inspired multi-feature extraction deep network for short-term electricity load forecasting," Applied Energy, Elsevier, vol. 339(C).
    18. Pei, Jingyin & Dong, Yunxuan & Guo, Pinghui & Wu, Thomas & Hu, Jianming, 2024. "A Hybrid Dual Stream ProbSparse Self-Attention Network for spatial–temporal photovoltaic power forecasting," Energy, Elsevier, vol. 305(C).
    19. Ahmad, Tanveer & Chen, Huanxin, 2018. "Potential of three variant machine-learning models for forecasting district level medium-term and long-term energy demand in smart grid environment," Energy, Elsevier, vol. 160(C), pages 1008-1020.
    20. Negri, Simone & Giani, Federico & Blasuttigh, Nicola & Massi Pavan, Alessandro & Mellit, Adel & Tironi, Enrico, 2022. "Combined model predictive control and ANN-based forecasters for jointly acting renewable self-consumers: An environmental and economical evaluation," Renewable Energy, Elsevier, vol. 198(C), pages 440-454.

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;

    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:eee:energy:v:326:y:2025:i:c:s0360544225016925. 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: Catherine Liu (email available below). General contact details of provider: http://www.journals.elsevier.com/energy .

    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.