[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-125884-en":3,"doc-seo-125884-105":30,"detail-sidebar-cat-0-en-105":92},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":11,"is_deleted":4,"is_public":20,"is_downloadable":20,"audit_status":20,"page_count":21,"language":22,"language_code":23,"site_id":24,"html_lang":23,"table_of_contents":25,"faqs":26,"seo_title":27,"seo_description":14,"update_tm":28,"read_time":29},125884,1099523885336,"Violet","https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c",8,"Research & Report","Forecasting PV-Diesel Microgrid Campus Load Using Machine Learning - The University of the Free State QwaQwa Campus Microgrid","Global energy consumption continues to rise, creating increasingly complex demand patterns that require continuous monitoring and effective control to improve management efficiency. This thesis applies machine learning to forecast short-term electricity load for a photovoltaic (PV)-diesel microgrid at the University of the Free State’s QwaQwa Campus, installed to reduce frequent power shortages in South Africa. Multiple ML models, including LSTM, GRU, hybrid CNN, XGB, and Random Forest regressors, are trained and evaluated using historical consumption data. Results show XGB delivers the strongest accuracy and supports better peak-demand planning, reducing diesel generator reliance.","Master's Thesis 2024 30 ECTS  \nFaculty of Science and Technology  \nForecasting PV-Diesel Microgrid Campus Load Using Machine Learning: The University of the Free State QwaQwa Campus Microgrid  \nDavid Ajaegbu  \nData Science  \nAbstract  \nGlobal energy consumption has been increasing non-stop since the first humans made fire. Energy consumption methods have evolved significantly over the centuries, leading to complex consumption patterns. This complexity requires the monitoring and control of this data to improve energy management and eﬀiciency. With the advent of Machine Learning (ML), coupled with the vast amount of available data today, comes the unique opportunity to make sense of consumption data. Energy consumption prediction can be achieved with data-driven models powered by ML.  \nThis thesis used ML techniques to forecast the load of a photovoltaic (PV)-diesel-powered microgrid on the QwaQwa Campus at the University of Free State in South Africa. The hybrid PV-diesel system is installed to mitigate frequent power shortages faced in South Africa. As energy management becomes a critical issue in developing countries, this research aims to optimize energy usage by leveraging predictive models. The methodology involved training multiple ML models, including Long Short-Term Memory (LSTM) networks, Gated Recurrent Units, hybrid Convolutional Neural Networks, Extreme Gradient Boosting (XGB), anda Random Forest regressor, using historical consumption data. These models were evaluated based on their performance in accurately predicting short-term electricity consumption.  \nThe results demonstrate that the XGB model achieved the best performance with a Mean Absolute Percentage Error of 3 .9%, Mean Absolute Error of 8.169 and Mean Squared Error of 191.878, suggesting that simpler models can be more effective in certain contexts than complex ones like LSTMs. The XGB model’s performance in accurately predicting peak demands is beneficial for optimizing solar PV output and minimizing diesel generator usage. These findings highlight the potential of ML models in effectively reducing reliance on diesel generators, thereby improving the campus’s financial planning and energy eﬀiciency.  \nFuture work could involve improving the robustness of predictive models, including the ability to forecast using real-time data by integrating the models into real-time data streams. This thesis provides a robust and adaptable framework for optimizing hybrid microgrids in university settings and beyond, contributing to the broader discourse on sustainable energy management.  \nAcknowledgements  \nFirst and foremost, I give thanks to God Almighty, who made the completion of this thesis possible and endowed me with His grace and wisdom throughout this journey.  \nMy deep and sincere gratitude goes to my parents Mr. and Mrs. C.O. Ajaegbu for their never-ending support and sacrifice in my journey of life academically. I love you both.  \nTo my firm but patient supervisor Prof. Leo Rydin, I want to say a big thank you for driving me to work diligently on this thesis and for encouraging me to be more thorough in this thesis.  \nI am especially thankful to Dr. Maritz, Mr. Armand Bester and the entire team at UFS for your invaluable guidance, support and generosity throughout the development of this thesis. Your comprehensive assistance ensured that my research journey was smooth. Your warm welcome during my visits and your willingness to share your expertise madea significant difference in my learning experience.  \nMy appreciation also goes Tomi, Aditya, Awo, Daniel and everyone who offered their help at various stages of this thesis.  \nGod bless you all.  \nContents  \n1 Introduction 1  \n1.1 Background ................................ 1  \n1.2 Problem Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3  \n1.3 Objectives ................................. 4  \n2 Theoretical Framework 5  \n2.1 Electric Power Systems ......................... 5  \n2.1.1 PV-dies","cbCaiokqOsSNAafZ","https://ap.wps.com/l/cbCaiokqOsSNAafZ","pdf",3194351,1,94,"English","en",105,"# Abstract\n# Introduction\n## Background\n## Problem Statement\n## Objectives\n# Theoretical Framework\n## Electric Power Systems\n## Fundamentals of Machine Learning\n## Related Literatures\n# Case Study: QwaQwa University Campus\n## QwaQwa University Campus Overview\n## Understanding the Power Consumption Patterns at QwaQwa\n## Understanding the Time series Data\n# Methodology\n## Data Collection and Preprocessing\n## ML Model Development\n## Use of generative AI\n# Result and Discussion\n## Model Results\n## LSTM","[{\"question\":\"What microgrid system is used for the forecasting task in this thesis?\",\"answer\":\"The thesis forecasts the load of a photovoltaic (PV)-diesel-powered hybrid microgrid at the University of the Free State’s QwaQwa Campus. The system is used to mitigate frequent power shortages in South Africa.\"},{\"question\":\"Which machine learning models are trained for short-term electricity consumption prediction?\",\"answer\":\"The methodology trains several ML models, including LSTM networks, Gated Recurrent Units, hybrid Convolutional Neural Networks, Extreme Gradient Boosting (XGB), and a Random Forest regressor. Models are evaluated for their ability to predict short-term electricity consumption.\"},{\"question\":\"Why does the thesis highlight the XGB model’s performance?\",\"answer\":\"The results indicate XGB achieves the best performance, with a Mean Absolute Percentage Error of 3.9% and strong absolute error metrics. This accuracy is described as useful for optimizing solar PV output and minimizing diesel generator usage, improving energy efficiency and planning.\"}]","Forecasting PV-Diesel Microgrid Campus Load Using Machine Learning - The University of the Free State QwaQwa Campus Microgrid | PDF",1785901822,237,{"code":4,"msg":31,"data":32},"ok",{"site_id":24,"language":23,"slug":33,"title":13,"keywords":34,"description":14,"schema_data":35,"social_meta":87,"head_meta":89,"extra_data":91,"updated_unix":28},"forecasting-pv-diesel-microgrid-campus-load-using-machine-learning-the-university-of-the-free-state-qwaqwa-campus-microgrid","",{"@graph":36,"@context":86},[37,54,69],{"@type":38,"itemListElement":39},"BreadcrumbList",[40,44,48,51],{"item":41,"name":42,"@type":43,"position":20},"https://docshare.wps.com","Home","ListItem",{"item":45,"name":46,"@type":43,"position":47},"https://docshare.wps.com/document/","Document",2,{"item":49,"name":12,"@type":43,"position":50},"https://docshare.wps.com/document/research-report/",3,{"item":52,"name":13,"@type":43,"position":53},"https://docshare.wps.com/document/forecasting-pv-diesel-microgrid-campus-load-using-machine-learning-the-university-of-the-free-state-qwaqwa-campus-microgrid/125884/",4,{"url":52,"name":13,"@type":55,"author":56,"headline":13,"publisher":58,"fileFormat":61,"inLanguage":23,"description":14,"dateModified":62,"datePublished":63,"encodingFormat":61,"isAccessibleForFree":64,"interactionStatistic":65},"DigitalDocument",{"name":9,"@type":57},"Person",{"url":41,"name":59,"@type":60},"DocShare","Organization","application/pdf","2026-08-22","2026-08-05",true,{"@type":66,"interactionType":67,"userInteractionCount":11},"InteractionCounter",{"@type":68},"ViewAction",{"@type":70,"mainEntity":71},"FAQPage",[72,78,82],{"name":73,"@type":74,"acceptedAnswer":75},"What microgrid system is used for the forecasting task in this thesis?","Question",{"text":76,"@type":77},"The thesis forecasts the load of a photovoltaic (PV)-diesel-powered hybrid microgrid at the University of the Free State’s QwaQwa Campus. The system is used to mitigate frequent power shortages in South Africa.","Answer",{"name":79,"@type":74,"acceptedAnswer":80},"Which machine learning models are trained for short-term electricity consumption prediction?",{"text":81,"@type":77},"The methodology trains several ML models, including LSTM networks, Gated Recurrent Units, hybrid Convolutional Neural Networks, Extreme Gradient Boosting (XGB), and a Random Forest regressor. Models are evaluated for their ability to predict short-term electricity consumption.",{"name":83,"@type":74,"acceptedAnswer":84},"Why does the thesis highlight the XGB model’s performance?",{"text":85,"@type":77},"The results indicate XGB achieves the best performance, with a Mean Absolute Percentage Error of 3.9% and strong absolute error metrics. This accuracy is described as useful for optimizing solar PV output and minimizing diesel generator usage, improving energy efficiency and planning.","https://schema.org",{"og:url":52,"og:type":88,"og:title":13,"og:site_name":59,"og:description":14},"article",{"robots":90,"canonical":52},"index,follow",{"doc_id":7,"site_id":24},{"code":4,"msg":5,"data":93},[94,98,102,106,111,116,121,124,129,132,136],{"id":20,"doc_module":4,"doc_module_name":46,"category_name":95,"show_sort_weight":96,"slug":97},"Story & Novel",90,"story-novel",{"id":47,"doc_module":4,"doc_module_name":46,"category_name":99,"show_sort_weight":100,"slug":101},"Literature",80,"literature",{"id":53,"doc_module":4,"doc_module_name":46,"category_name":103,"show_sort_weight":104,"slug":105},"Exam",70,"exam",{"id":107,"doc_module":4,"doc_module_name":46,"category_name":108,"show_sort_weight":109,"slug":110},5,"Comic",60,"comic",{"id":112,"doc_module":4,"doc_module_name":46,"category_name":113,"show_sort_weight":114,"slug":115},6,"Technology",50,"technology",{"id":117,"doc_module":4,"doc_module_name":46,"category_name":118,"show_sort_weight":119,"slug":120},7,"Healthcare",40,"healthcare",{"id":11,"doc_module":4,"doc_module_name":46,"category_name":12,"show_sort_weight":122,"slug":123},30,"research-report",{"id":125,"doc_module":4,"doc_module_name":46,"category_name":126,"show_sort_weight":127,"slug":128},9,"Religion & Spirituality",20,"religion-spirituality",{"id":127,"doc_module":4,"doc_module_name":46,"category_name":130,"show_sort_weight":127,"slug":131},"World Cup","world-cup",{"id":133,"doc_module":4,"doc_module_name":46,"category_name":134,"show_sort_weight":133,"slug":135},10,"Lifestyle","lifestyle",{"id":137,"doc_module":4,"doc_module_name":46,"category_name":138,"show_sort_weight":107,"slug":139},19,"General","general"]