IDEAS home Printed from https://ideas.repec.org/a/gam/jsusta/v16y2024i11p4365-d1399310.html
   My bibliography  Save this article

Predictive Model of Energy Consumption Using Machine Learning: A Case Study of Residential Buildings in South Africa

Author

Listed:
  • Donatien Koulla Moulla

    (Centre for Augmented Intelligence and Data Science, School of Computing, University of South Africa, Johannesburg 1709, South Africa)

  • David Attipoe

    (Centre for Augmented Intelligence and Data Science, School of Computing, University of South Africa, Johannesburg 1709, South Africa)

  • Ernest Mnkandla

    (Centre for Augmented Intelligence and Data Science, School of Computing, University of South Africa, Johannesburg 1709, South Africa)

  • Alain Abran

    (Department of Software Engineering and Information Technology, École de Technologie Supérieure, Montréal, QC H3C 1K3, Canada)

Abstract

The recurrent load shedding crisis in South Africa has highlighted the need to accurately predict electricity consumption for residential buildings. This has significant ramifications for daily life and economic productivity. To address this challenge, this study leverages machine learning models to predict the hourly energy consumption of residential buildings in South Africa. This study evaluates the performance of various regression techniques, including Random Forest (RF), Decision Tree (DT), Extreme Gradient Boosting (XGBoost), and Adaptive Boosting (AdaBoost) machine learning models, using a national residential dataset that contains measurements collected every hour. The objective is to determine the most effective models for predicting next-hour residential building consumption. These models use historical patterns of energy usage to capture temporal details such as seasonal variations and rolling averages. Feature engineering methods are further employed to enhance their predictive capabilities. The performance of each individual model was evaluated using criteria such as the mean squared error (MSE), mean absolute error (MAE), mean absolute percentage error (MAPE), and coefficient of determination (R 2 ). The results show that both RF and DT achieve the best accuracy for the prediction of residential electricity consumption (because the MSE, MAE, and MAPE for RF and DT are very close to 0). These findings offer actionable insights for households, businesses, and policymakers. By enabling more accurate and granular energy consumption forecasts, this can mitigate the effects of load shedding. This study contributes to the discourse on sustainable energy management by combining advanced machine learning models with real-world energy challenges.

Suggested Citation

  • Donatien Koulla Moulla & David Attipoe & Ernest Mnkandla & Alain Abran, 2024. "Predictive Model of Energy Consumption Using Machine Learning: A Case Study of Residential Buildings in South Africa," Sustainability, MDPI, vol. 16(11), pages 1-18, May.
  • Handle: RePEc:gam:jsusta:v:16:y:2024:i:11:p:4365-:d:1399310
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2071-1050/16/11/4365/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2071-1050/16/11/4365/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Fateme Dinmohammadi & Yuxuan Han & Mahmood Shafiee, 2023. "Predicting Energy Consumption in Residential Buildings Using Advanced Machine Learning Algorithms," Energies, MDPI, vol. 16(9), pages 1-23, April.
    2. Bohlmann, Jessika Andreina & Inglesi-Lotz, Roula, 2018. "Analysing the South African residential sector's energy profile," Renewable and Sustainable Energy Reviews, Elsevier, vol. 96(C), pages 240-252.
    3. Mkateko Vivian Mabunda & Ricky Munyaradzi Mukonza & Lufuno Robert Mudzanani, 2023. "The effects of loadshedding on small and medium enterprises in the Collins Chabane local municipality," Journal of Innovation and Entrepreneurship, Springer, vol. 12(1), pages 1-20, December.
    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. Sami Kabir & Mohammad Shahadat Hossain & Karl Andersson, 2024. "An Advanced Explainable Belief Rule-Based Framework to Predict the Energy Consumption of Buildings," Energies, MDPI, vol. 17(8), pages 1-18, April.
    2. Ye, Yuxiang & Koch, Steven F., 2021. "Measuring energy poverty in South Africa based on household required energy consumption," Energy Economics, Elsevier, vol. 103(C).
    3. Koch, Steven F. & Nkuna, Blessings & Ye, Yuxiang, 2024. "Income elasticity of residential electricity consumption in rural South Africa," Energy Economics, Elsevier, vol. 131(C).
    4. Marian B. Gorzałczany & Filip Rudziński, 2024. "Energy Consumption Prediction in Residential Buildings—An Accurate and Interpretable Machine Learning Approach Combining Fuzzy Systems with Evolutionary Optimization," Energies, MDPI, vol. 17(13), pages 1-24, July.
    5. Suli Zhang & Yiting Chang & Hui Li & Guanghao You, 2024. "Research on Building Energy Consumption Prediction Based on Improved PSO Fusion LSSVM Model," Energies, MDPI, vol. 17(17), pages 1-17, August.
    6. Koech Cheruiyot & Ezekiel Lengaram & Mncedisi Siteleki, 2024. "South Africa’s Energy Landscape Amidst the Crisis: Unpacking Energy Sources and Drivers with 2022 South African Census Data," Sustainability, MDPI, vol. 16(2), pages 1-20, January.
    7. Adam Slowik & Dorin Moldovan, 2024. "Multi-Objective Plum Tree Algorithm and Machine Learning for Heating and Cooling Load Prediction," Energies, MDPI, vol. 17(12), pages 1-23, June.
    8. Abel, Dennis & Lieth, Jonas & Jünger, Stefan, 2024. "Mapping the spatial turn in social science energy research. A computational literature review," Renewable and Sustainable Energy Reviews, Elsevier, vol. 201(C).
    9. Khaled Bawaneh & Samir Das & Md. Rasheduzzaman, 2024. "Energy Consumption Analysis and Characterization of the Residential Sector in the US towards Sustainable Development," Energies, MDPI, vol. 17(11), pages 1-24, June.
    10. Charlie Shackleton & Gisele Sinasson & Opeyemi Adeyemi & Vusumzi Martins, 2022. "Fuelwood in South Africa Revisited: Widespread Use in a Policy Vacuum," Sustainability, MDPI, vol. 14(17), pages 1-14, September.
    11. Luca Gugliermetti & Fabrizio Cumo & Sofia Agostinelli, 2024. "A Future Direction of Machine Learning for Building Energy Management: Interpretable Models," Energies, MDPI, vol. 17(3), pages 1-27, February.
    12. Gregory, Julian & Sovacool, Benjamin K., 2019. "The financial risks and barriers to electricity infrastructure in Kenya, Tanzania, and Mozambique: A critical and systematic review of the academic literature," Energy Policy, Elsevier, vol. 125(C), pages 145-153.
    13. Xu, Weiyan & Tu, Jielei & Xu, Ning & Liu, Zuming, 2024. "Predicting daily heating energy consumption in residential buildings through integration of random forest model and meta-heuristic algorithms," Energy, Elsevier, vol. 301(C).
    14. Jonghoon Kim & Soo-Young Moon & Daehee Jang, 2023. "Spatial Model for Energy Consumption of LEED-Certified Buildings," Sustainability, MDPI, vol. 15(22), pages 1-15, November.

    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:jsusta:v:16:y:2024:i:11:p:4365-:d:1399310. 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.