IDEAS home Printed from https://ideas.repec.org/a/gam/jeners/v17y2024i8p1926-d1377885.html
   My bibliography  Save this article

Short-Term Load Forecasting Based on Optimized Random Forest and Optimal Feature Selection

Author

Listed:
  • Bianca Magalhães

    (IT—Instituto de Telecomunicações, University of Beira Interior, 6201-001 Covilhã, Portugal)

  • Pedro Bento

    (IT—Instituto de Telecomunicações, University of Beira Interior, 6201-001 Covilhã, Portugal)

  • José Pombo

    (IT—Instituto de Telecomunicações, University of Beira Interior, 6201-001 Covilhã, Portugal)

  • Maria do Rosário Calado

    (IT—Instituto de Telecomunicações, University of Beira Interior, 6201-001 Covilhã, Portugal)

  • Sílvio Mariano

    (IT—Instituto de Telecomunicações, University of Beira Interior, 6201-001 Covilhã, Portugal)

Abstract

Short-term load forecasting (STLF) plays a vital role in ensuring the safe, efficient, and economical operation of power systems. Accurate load forecasting provides numerous benefits for power suppliers, such as cost reduction, increased reliability, and informed decision-making. However, STLF is a complex task due to various factors, including non-linear trends, multiple seasonality, variable variance, and significant random interruptions in electricity demand time series. To address these challenges, advanced techniques and models are required. This study focuses on the development of an efficient short-term power load forecasting model using the random forest (RF) algorithm. RF combines regression trees through bagging and random subspace techniques to improve prediction accuracy and reduce model variability. The algorithm constructs a forest of trees using bootstrap samples and selects random feature subsets at each node to enhance diversity. Hyperparameters such as the number of trees, minimum sample leaf size, and maximum features for each split are tuned to optimize forecasting results. The proposed model was tested using historical hourly load data from four transformer substations supplying different campus areas of the University of Beira Interior, Portugal. The training data were from January 2018 to December 2021, while the data from 2022 were used for testing. The results demonstrate the effectiveness of the RF model in forecasting short-term hourly and one day ahead load and its potential to enhance decision-making processes in smart grid operations.

Suggested Citation

  • Bianca Magalhães & Pedro Bento & José Pombo & Maria do Rosário Calado & Sílvio Mariano, 2024. "Short-Term Load Forecasting Based on Optimized Random Forest and Optimal Feature Selection," Energies, MDPI, vol. 17(8), pages 1-21, April.
  • Handle: RePEc:gam:jeners:v:17:y:2024:i:8:p:1926-:d:1377885
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/1996-1073/17/8/1926/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/1996-1073/17/8/1926/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Fanidhar Dewangan & Almoataz Y. Abdelaziz & Monalisa Biswal, 2023. "Load Forecasting Models in Smart Grid Using Smart Meter Information: A Review," Energies, MDPI, vol. 16(3), pages 1-55, January.
    2. Pinheiro, Marco G. & Madeira, Sara C. & Francisco, Alexandre P., 2023. "Short-term electricity load forecasting—A systematic approach from system level to secondary substations," Applied Energy, Elsevier, vol. 332(C).
    3. Rao, Congjun & Zhang, Yue & Wen, Jianghui & Xiao, Xinping & Goh, Mark, 2023. "Energy demand forecasting in China: A support vector regression-compositional data second exponential smoothing model," Energy, Elsevier, vol. 263(PC).
    4. Kalhori, M. Rostam Niakan & Emami, I. Taheri & Fallahi, F. & Tabarzadi, M., 2022. "A data-driven knowledge-based system with reasoning under uncertain evidence for regional long-term hourly load forecasting," Applied Energy, Elsevier, vol. 314(C).
    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. Yin, Chen & Mao, Shuhua, 2023. "Fractional multivariate grey Bernoulli model combined with improved grey wolf algorithm: Application in short-term power load forecasting," Energy, Elsevier, vol. 269(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. Sepideh Radhoush & Bradley M. Whitaker & Hashem Nehrir, 2023. "An Overview of Supervised Machine Learning Approaches for Applications in Active Distribution Networks," Energies, MDPI, vol. 16(16), pages 1-29, August.
    2. Khan, Waqas & Somers, Ward & Walker, Shalika & de Bont, Kevin & Van der Velden, Joep & Zeiler, Wim, 2023. "Comparison of electric vehicle load forecasting across different spatial levels with incorporated uncertainty estimation," Energy, Elsevier, vol. 283(C).
    3. Xuliang Tang & Heng Wan & Weiwen Wang & Mengxu Gu & Linfeng Wang & Linfeng Gan, 2023. "Lithium-Ion Battery Remaining Useful Life Prediction Based on Hybrid Model," Sustainability, MDPI, vol. 15(7), pages 1-18, April.
    4. Ye, Xiaoling & Liu, Chengcheng & Xiong, Xiong & Qi, Yinyi, 2025. "Recurrent attention encoder–decoder network for multi-step interval wind power prediction," Energy, Elsevier, vol. 315(C).
    5. Zheng Wan & Hui Li, 2023. "Short-Term Power Load Forecasting Based on Feature Filtering and Error Compensation under Imbalanced Samples," Energies, MDPI, vol. 16(10), pages 1-22, May.
    6. Sapnken, Flavian Emmanuel & Hong, Kwon Ryong & Chopkap Noume, Hermann & Tamba, Jean Gaston, 2024. "A grey prediction model optimized by meta-heuristic algorithms and its application in forecasting carbon emissions from road fuel combustion," Energy, Elsevier, vol. 302(C).
    7. Sadeghi Darvazeh, Saeed & Mansoori Mooseloo, Farzaneh & Gholian-Jouybari, Fatemeh & Amiri, Maghsoud & Bonakdari, Hossein & Hajiaghaei-Keshteli, Mostafa, 2024. "Data-driven robust optimization to design an integrated sustainable forest biomass-to-electricity network under disjunctive uncertainties," Applied Energy, Elsevier, vol. 356(C).
    8. Palma, Alessia & Paltrinieri, Andrea & Goodell, John W. & Oriani, Marco Ercole, 2024. "The black box of natural gas market: Past, present, and future," International Review of Financial Analysis, Elsevier, vol. 94(C).
    9. Li, Ke & Mu, Yuchen & Yang, Fan & Wang, Haiyang & Yan, Yi & Zhang, Chenghui, 2024. "Joint forecasting of source-load-price for integrated energy system based on multi-task learning and hybrid attention mechanism," Applied Energy, Elsevier, vol. 360(C).
    10. Muhammad Awais Shahid & Fiaz Ahmad & Rehan Nawaz & Saad Ullah Khan & Abdul Wadood & Hani Albalawi, 2023. "A Novel False Measurement Data Detection Mechanism for Smart Grids," Energies, MDPI, vol. 16(18), pages 1-17, September.
    11. Mustafa Saglam & Xiaojing Lv & Catalina Spataru & Omer Ali Karaman, 2024. "Instantaneous Electricity Peak Load Forecasting Using Optimization and Machine Learning," Energies, MDPI, vol. 17(4), pages 1-22, February.
    12. Xuejun Li & Minghua Jiang & Deyu Cai & Wenqin Song & Yalu Sun, 2024. "A Hybrid Forecasting Model for Electricity Demand in Sustainable Power Systems Based on Support Vector Machine," Energies, MDPI, vol. 17(17), pages 1-16, September.
    13. Kai-Bin Huang & Tian-Shyug Lee & Jonathan Lee & Jy-Ping Wu & Leemen Lee & Hsiu-Mei Lee, 2024. "Applying Multi-Task Deep Learning Methods in Electricity Load Forecasting Using Meteorological Factors," Mathematics, MDPI, vol. 12(20), pages 1-29, October.
    14. Mustafa Saglam & Catalina Spataru & Omer Ali Karaman, 2023. "Forecasting Electricity Demand in Turkey Using Optimization and Machine Learning Algorithms," Energies, MDPI, vol. 16(11), pages 1-23, June.
    15. Zhu, Jianhua & He, Yaoyao & Gao, Zhiwei, 2023. "Wind power interval and point prediction model using neural network based multi-objective optimization," Energy, Elsevier, vol. 283(C).
    16. Lin Chen & Ting Dong & Guofang Nan & Qinzi Xiao & Meng Xu & Junren Ming, 2023. "Impact of the introduction of marketplace channel on e‐tailer's logistics service strategy," Managerial and Decision Economics, John Wiley & Sons, Ltd., vol. 44(5), pages 2835-2855, July.
    17. Xinghua Wang & Zilv Li & Chenyang Fu & Xixian Liu & Weikang Yang & Xiangyuan Huang & Longfa Yang & Jianhui Wu & Zhuoli Zhao, 2024. "Short-Term Photovoltaic Power Probabilistic Forecasting Based on Temporal Decomposition and Vine Copula," Sustainability, MDPI, vol. 16(19), pages 1-25, September.
    18. Marco Bindi & Maria Cristina Piccirilli & Antonio Luchetta & Francesco Grasso, 2023. "A Comprehensive Review of Fault Diagnosis and Prognosis Techniques in High Voltage and Medium Voltage Electrical Power Lines," Energies, MDPI, vol. 16(21), pages 1-37, October.
    19. Li, Shanshan & Kong, Weiling & Wang, Yujie & Yuan, Liang, 2024. "Medium and long-term energy demand forecasts by sectors in China under the goal of “carbon peaking & carbon neutrality”: Based on the LEAP-China model," Energy, Elsevier, vol. 310(C).
    20. Ding, Yuanping & Dang, Yaoguo, 2023. "Forecasting renewable energy generation with a novel flexible nonlinear multivariable discrete grey prediction model," Energy, Elsevier, vol. 277(C).

    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:gam:jeners:v:17:y:2024:i:8:p:1926-:d:1377885. 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: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    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.