IDEAS home Printed from https://ideas.repec.org/a/eee/appene/v381y2025ics0306261924025601.html
   My bibliography  Save this article

Feature engineering and selection for prosumer electricity consumption and production forecasting: A comprehensive framework

Author

Listed:
  • Wen, Qianyun
  • Liu, Yang

Abstract

The integration of prosumers—entities that both consume and produce energy—into the electricity grid marks a pivotal shift towards decentralized and renewable energy systems. While the involvement of prosumers promotes sustainability and energy independence, it also introduces complexities in grid management due to the unpredictable nature of decentralized energy generation. This paper addresses the operational challenges and forecasting inaccuracies arising from the integration of prosumers by leveraging advanced analytical methodologies. Specifically, time series analysis and Fast Fourier Transform are employed to dissect the temporal dynamics and identify key cycles in energy usage and production patterns. Utilizing a dataset provided by Enefit, a leading energy company in the Baltic region, 615 features along with three transformed targets are developed, employing feature generation techniques to enhance the predictive accuracy of models. The study emphasizes the importance of feature selection and the application of ensemble Light Gradient Boosting Machine models to improve forecasting performance. Findings demonstrate that targeted feature selection significantly bolsters forecasting accuracy, with the ensemble model achieving an R2 of 0.96 and a NMBE of −0.39 for energy consumption and production predictions. Feature selection reduced the number of features by 34.36 % while improving model performance, with NMBE and CV-RMSE decreasing by 9.40 % and 9.25 % respectively. The analysis reveals distinct patterns in electricity consumption and production across different prosumer categories and provides insights into the critical factors influential in forecasting accuracy. This research helps mitigate energy imbalances and sets a foundation for adaptive energy management practices that can be generalized across the energy sector. Through these efforts, the study contributes to the evolution of energy management strategies, paving the way for more reliable, efficient, and sustainable energy systems in the prosumer era.

Suggested Citation

  • Wen, Qianyun & Liu, Yang, 2025. "Feature engineering and selection for prosumer electricity consumption and production forecasting: A comprehensive framework," Applied Energy, Elsevier, vol. 381(C).
  • Handle: RePEc:eee:appene:v:381:y:2025:i:c:s0306261924025601
    DOI: 10.1016/j.apenergy.2024.125176
    as

    Download full text from publisher

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

    File URL: https://libkey.io/10.1016/j.apenergy.2024.125176?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 search for a different version of it.

    References listed on IDEAS

    as
    1. Zang, Haixiang & Xu, Ruiqi & Cheng, Lilin & Ding, Tao & Liu, Ling & Wei, Zhinong & Sun, Guoqiang, 2021. "Residential load forecasting based on LSTM fusing self-attention mechanism with pooling," Energy, Elsevier, vol. 229(C).
    2. Oreshkin, Boris N. & Dudek, Grzegorz & Pełka, Paweł & Turkina, Ekaterina, 2021. "N-BEATS neural network for mid-term electricity load forecasting," Applied Energy, Elsevier, vol. 293(C).
    3. Tao Hong & Pierre Pinson & Yi Wang & Rafal Weron & Dazhi Yang & Hamidreza Zareipour, 2020. "Energy forecasting: A review and outlook," WORking papers in Management Science (WORMS) WORMS/20/08, Department of Operations Research and Business Intelligence, Wroclaw University of Science and Technology.
    4. Wang, Yun & Zou, Runmin & Liu, Fang & Zhang, Lingjun & Liu, Qianyi, 2021. "A review of wind speed and wind power forecasting with deep neural networks," Applied Energy, Elsevier, vol. 304(C).
    5. Bojer, Casper Solheim & Meldgaard, Jens Peder, 2021. "Kaggle forecasting competitions: An overlooked learning opportunity," International Journal of Forecasting, Elsevier, vol. 37(2), pages 587-603.
    6. Koščak Kolin, Sonja & Karasalihović Sedlar, Daria & Kurevija, Tomislav, 2021. "Relationship between electricity and economic growth for long-term periods: New possibilities for energy prediction," Energy, Elsevier, vol. 228(C).
    7. Kang, Yanfei & Hyndman, Rob J. & Smith-Miles, Kate, 2017. "Visualising forecasting algorithm performance using time series instance spaces," International Journal of Forecasting, Elsevier, vol. 33(2), pages 345-358.
    8. Zhang, Liang & Wen, Jin & Li, Yanfei & Chen, Jianli & Ye, Yunyang & Fu, Yangyang & Livingood, William, 2021. "A review of machine learning in building load prediction," Applied Energy, Elsevier, vol. 285(C).
    9. Fu, Chun & Miller, Clayton, 2022. "Using Google Trends as a proxy for occupant behavior to predict building energy consumption," Applied Energy, Elsevier, vol. 310(C).
    10. van der Stelt, Sander & AlSkaif, Tarek & van Sark, Wilfried, 2018. "Techno-economic analysis of household and community energy storage for residential prosumers with smart appliances," Applied Energy, Elsevier, vol. 209(C), pages 266-276.
    11. Germán Ramos Ruiz & Carlos Fernández Bandera, 2017. "Validation of Calibrated Energy Models: Common Errors," Energies, MDPI, vol. 10(10), pages 1-19, October.
    12. 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).
    13. Liu, Hui & Chen, Chao, 2019. "Data processing strategies in wind energy forecasting models and applications: A comprehensive review," Applied Energy, Elsevier, vol. 249(C), pages 392-408.
    14. Januschowski, Tim & Wang, Yuyang & Torkkola, Kari & Erkkilä, Timo & Hasson, Hilaf & Gasthaus, Jan, 2022. "Forecasting with trees," International Journal of Forecasting, Elsevier, vol. 38(4), pages 1473-1481.
    15. Peplinski, McKenna & Dilkina, Bistra & Chen, Mo & Silva, Sam J. & Ban-Weiss, George A. & Sanders, Kelly T., 2024. "A machine learning framework to estimate residential electricity demand based on smart meter electricity, climate, building characteristics, and socioeconomic datasets," Applied Energy, Elsevier, vol. 357(C).
    16. Gao, Yuan & Miyata, Shohei & Akashi, Yasunori, 2022. "Interpretable deep learning models for hourly solar radiation prediction based on graph neural network and attention," Applied Energy, Elsevier, vol. 321(C).
    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. Zhu, Jizhong & Dong, Hanjiang & Zheng, Weiye & Li, Shenglin & Huang, Yanting & Xi, Lei, 2022. "Review and prospect of data-driven techniques for load forecasting in integrated energy systems," Applied Energy, Elsevier, vol. 321(C).
    2. Yang, Mao & Huang, Yutong & Xu, Chuanyu & Liu, Chenyu & Dai, Bozhi, 2025. "Review of several key processes in wind power forecasting: Mathematical formulations, scientific problems, and logical relations," Applied Energy, Elsevier, vol. 377(PC).
    3. Lee, Yoonjae & Ha, Byeongmin & Hwangbo, Soonho, 2022. "Generative model-based hybrid forecasting model for renewable electricity supply using long short-term memory networks: A case study of South Korea's energy transition policy," Renewable Energy, Elsevier, vol. 200(C), pages 69-87.
    4. Kim, Daeyoung & Ryu, Geonhwa & Moon, Chaejoo & Kim, Bumsuk, 2024. "Accuracy of a short-term wind power forecasting model based on deep learning using LiDAR-SCADA integration: A case study of the 400-MW Anholt offshore wind farm," Applied Energy, Elsevier, vol. 373(C).
    5. Joanna Piotrowska-Woroniak & Tomasz Szul, 2022. "Application of a Model Based on Rough Set Theory (RST) to Estimate the Energy Efficiency of Public Buildings," Energies, MDPI, vol. 15(23), pages 1-13, November.
    6. Ling, Jihong & Zhang, Bingyang & Dai, Na & Xing, Jincheng, 2023. "Coupling input feature construction methods and machine learning algorithms for hourly secondary supply temperature prediction," Energy, Elsevier, vol. 278(C).
    7. Yang, Ting & Yang, Zhenning & Li, Fei & Wang, Hengyu, 2024. "A short-term wind power forecasting method based on multivariate signal decomposition and variable selection," Applied Energy, Elsevier, vol. 360(C).
    8. Lv, Sheng-Xiang & Wang, Lin, 2023. "Multivariate wind speed forecasting based on multi-objective feature selection approach and hybrid deep learning model," Energy, Elsevier, vol. 263(PE).
    9. Hu, Yue & Liu, Hanjing & Wu, Senzhen & Zhao, Yuan & Wang, Zhijin & Liu, Xiufeng, 2024. "Temporal collaborative attention for wind power forecasting," Applied Energy, Elsevier, vol. 357(C).
    10. Moreno, Sinvaldo Rodrigues & Seman, Laio Oriel & Stefenon, Stefano Frizzo & Coelho, Leandro dos Santos & Mariani, Viviana Cocco, 2024. "Enhancing wind speed forecasting through synergy of machine learning, singular spectral analysis, and variational mode decomposition," Energy, Elsevier, vol. 292(C).
    11. Jiang, Wenjun & Liu, Bo & Liang, Yang & Gao, Huanxiang & Lin, Pengfei & Zhang, Dongqin & Hu, Gang, 2024. "Applicability analysis of transformer to wind speed forecasting by a novel deep learning framework with multiple atmospheric variables," Applied Energy, Elsevier, vol. 353(PB).
    12. Theodorou, Evangelos & Wang, Shengjie & Kang, Yanfei & Spiliotis, Evangelos & Makridakis, Spyros & Assimakopoulos, Vassilios, 2022. "Exploring the representativeness of the M5 competition data," International Journal of Forecasting, Elsevier, vol. 38(4), pages 1500-1506.
    13. Li, Tianyu & Gao, Ciwei & Chen, Tao & Jiang, Yu & Feng, Yingchun, 2022. "Medium and long-term electricity market trading strategy considering renewable portfolio standard in the transitional period of electricity market reform in Jiangsu, China," Energy Economics, Elsevier, vol. 107(C).
    14. Yang, Mao & Han, Chao & Zhang, Wei & Wang, Bo, 2024. "A short-term power prediction method for wind farm cluster based on the fusion of multi-source spatiotemporal feature information," Energy, Elsevier, vol. 294(C).
    15. Marcjasz, Grzegorz & Narajewski, Michał & Weron, Rafał & Ziel, Florian, 2023. "Distributional neural networks for electricity price forecasting," Energy Economics, Elsevier, vol. 125(C).
    16. Wu, Binrong & Yu, Sihao & Peng, Lu & Wang, Lin, 2024. "Interpretable wind speed forecasting with meteorological feature exploring and two-stage decomposition," Energy, Elsevier, vol. 294(C).
    17. Zhang, Xiaofeng & Kong, Xiaoying & Yan, Renshi & Liu, Yuting & Xia, Peng & Sun, Xiaoqin & Zeng, Rong & Li, Hongqiang, 2023. "Data-driven cooling, heating and electrical load prediction for building integrated with electric vehicles considering occupant travel behavior," Energy, Elsevier, vol. 264(C).
    18. van Zyl, Corne & Ye, Xianming & Naidoo, Raj, 2024. "Harnessing eXplainable artificial intelligence for feature selection in time series energy forecasting: A comparative analysis of Grad-CAM and SHAP," Applied Energy, Elsevier, vol. 353(PA).
    19. Park, Jungyeon & Alvarenga, Estêvão & Jeon, Jooyoung & Li, Ran & Petropoulos, Fotios & Kim, Hokyun & Ahn, Kwangwon, 2024. "Probabilistic forecast-based portfolio optimization of electricity demand at low aggregation levels," Applied Energy, Elsevier, vol. 353(PB).
    20. Katarzyna Maciejowska & Bartosz Uniejewski & Rafa{l} Weron, 2022. "Forecasting Electricity Prices," Papers 2204.11735, arXiv.org.

    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:appene:v:381:y:2025:i:c:s0306261924025601. 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.elsevier.com/wps/find/journaldescription.cws_home/405891/description#description .

    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.