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. 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).
    4. 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).
    5. 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. Monika Zimmermann & Florian Ziel, 2024. "Efficient mid-term forecasting of hourly electricity load using generalized additive models," Papers 2405.17070, arXiv.org.
    3. 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).
    4. Omar A. Beg & Asad Ali Khan & Waqas Ur Rehman & Ali Hassan, 2023. "A Review of AI-Based Cyber-Attack Detection and Mitigation in Microgrids," Energies, MDPI, vol. 16(22), pages 1-23, November.
    5. 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.
    6. Atif Maqbool Khan & Artur Wyrwa, 2024. "A Survey of Quantitative Techniques in Electricity Consumption—A Global Perspective," Energies, MDPI, vol. 17(19), pages 1-38, September.
    7. Paweł Piotrowski & Dariusz Baczyński & Marcin Kopyt, 2022. "Medium-Term Forecasts of Load Profiles in Polish Power System including E-Mobility Development," Energies, MDPI, vol. 15(15), pages 1-27, August.
    8. Umme Mumtahina & Sanath Alahakoon & Peter Wolfs, 2024. "Hyperparameter Tuning of Load-Forecasting Models Using Metaheuristic Optimization Algorithms—A Systematic Review," Mathematics, MDPI, vol. 12(21), pages 1-51, October.
    9. 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.
    10. Fangzong Wang & Zuhaib Nishtar, 2024. "Real-Time Load Forecasting and Adaptive Control in Smart Grids Using a Hybrid Neuro-Fuzzy Approach," Energies, MDPI, vol. 17(11), pages 1-24, May.
    11. 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).
    12. Xu, Huifeng & Hu, Feihu & Liang, Xinhao & Zhao, Guoqing & Abugunmi, Mohammad, 2024. "A framework for electricity load forecasting based on attention mechanism time series depthwise separable convolutional neural network," Energy, Elsevier, vol. 299(C).
    13. Giancarlo Aquila & Lucas Barros Scianni Morais & Victor Augusto Durães de Faria & José Wanderley Marangon Lima & Luana Medeiros Marangon Lima & Anderson Rodrigo de Queiroz, 2023. "An Overview of Short-Term Load Forecasting for Electricity Systems Operational Planning: Machine Learning Methods and the Brazilian Experience," Energies, MDPI, vol. 16(21), pages 1-35, November.
    14. Wadim Strielkowski & Andrey Vlasov & Kirill Selivanov & Konstantin Muraviev & Vadim Shakhnov, 2023. "Prospects and Challenges of the Machine Learning and Data-Driven Methods for the Predictive Analysis of Power Systems: A Review," Energies, MDPI, vol. 16(10), pages 1-31, May.
    15. Tulin Guzel & Hakan Cinar & Mehmet Nabi Cenet & Kamil Doruk Oguz & Ahmet Yucekaya & Mustafa Hekimoglu, 2023. "A Framework to Forecast Electricity Consumption of Meters using Automated Ranking and Data Preprocessing," International Journal of Energy Economics and Policy, Econjournals, vol. 13(5), pages 179-193, September.
    16. 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).
    17. 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.
    18. 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.
    19. 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.
    20. Dorian Skrobek & Jaroslaw Krzywanski & Marcin Sosnowski & Ghulam Moeen Uddin & Waqar Muhammad Ashraf & Karolina Grabowska & Anna Zylka & Anna Kulakowska & Wojciech Nowak, 2023. "Artificial Intelligence for Energy Processes and Systems: Applications and Perspectives," Energies, MDPI, vol. 16(8), pages 1-12, April.

    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.