Machine Learning Models for Solar Power Generation Forecasting in Microgrid Application Implications for Smart Cities
Abstract
:1. Introduction
1.1. Research Gap
1.2. Objective
- Developing accurate and reliable solar power generation forecasting models using the LGBM and KNN algorithms;
- Evaluating the performance of the LGBM and KNN models in terms of forecasting accuracy, precision, and efficiency;
- Investigating the potential of these models to aid in effective decision making for optimal utilization of solar energy resources within microgrids;
- Assessing the environmental benefits and implications of accurate solar power generation forecasting for reducing carbon emissions and advancing sustainability goals.
2. Review Literature
2.1. Solar Power Generation and Microgrids
2.2. Solar Power Generation Forecasting Techniques
2.3. Light Gradient Boosting Machine (LGBM)
2.4. K Nearest Neighbors (KNN)
2.5. Comparative Studies on Solar Power Generation Forecasting
2.6. Rayong Smart Cities: Thailand
3. Methodology
3.1. Research Framework
- Microgrid sensors are transmitted to the central electricity system.
- Data Processing: upon acquiring the data, the second step involves rigorous processing. This includes noise removal and clustering techniques to refine the collected data, ensuring accuracy and reliability for further analysis;
- Feature Extraction and Learning: in this crucial phase, the processed data undergo feature extraction, where relevant attributes are identified. Subsequently, machine learning algorithms are employed for training and learning. This step is pivotal in understanding patterns and trends within the data, enabling informed predictions and decision models;
- Model Evaluation: the final stage assesses the effectiveness of the developed models. Here, test data is employed to evaluate the performance of the LGBN model. Additionally, the outcomes are compared with those of the KNN model, providing a comprehensive evaluation of the model’s efficiency and accuracy.
3.2. Data Collection and Preprocessing
3.2.1. Preprocessing Methods
- -
- Handling missing values: missing values were handled using interpolation and imputation techniques to maintain data continuity and completeness;
- -
- Normalization: variables were normalized to ensure a consistent scale, facilitating better performance in machine learning algorithms. Normalization was achieved using min–max scaling, transforming the data into a range between 0 and 1;
- -
- Outlier detection and treatment: potential outliers were identified using statistical methods, such as the Z-score, and treated appropriately to prevent skewed analysis.
3.2.2. Mathematical Descriptions
3.3. Feature Selection and Engineering
3.4. Light Gradient Boosting Machine (LGBM) Model
3.4.1. Model Implementation and Hyperparameter Tuning
3.4.2. Dataset Division
- is the number of data points;
- is the actual value;
- is the predicted value.
- Initialization: start with an initial prediction, typically the mean of the target variable;
- Compute residuals: calculate the residuals, which are the differences between the actual and predicted values;
- Fit a weak learner: fit a weak learner (e.g., a decision tree) to the residuals;
- Update prediction: update the prediction by adding the new weak learner’s prediction, scaled by the learning rate;
- Repeat: repeat steps 2–4 for a predetermined number of iterations or until convergence.
- is the prediction at iteration ;
- is the learning rate;
- is the weak learner at iteration .
Model Valuation
3.4.3. The LGBM Model
- Input: preprocessed dataset containing historical solar power generation data and relevant meteorological factors;
- Split the dataset into training and testing sets;
- Initialize the LGBM model with default hyperparameters;
- Iterate the following steps until convergence or a specified number of iterations:
- 4.1
- Compute the gradients of the loss function with respect to the model’s predictions;
- 4.2
- Update the model’s predictions by adding a new weak learner (tree) that minimizes the loss function;
- 4.3
- Update the weights of the training samples based on the loss function and the new weak learner’s performance;
- Tune the hyperparameters of the LGBM model using techniques such as grid search or Bayesian optimization;
- Train the LGBM model on the training set using the tuned hyperparameters;
- Evaluate the model’s performance on the testing set using appropriate evaluation metrics (e.g., mean squared error and mean absolute error);
- Repeat steps 4–7 for different configurations of hyperparameters to find the optimal combination;
- Select the LGBM model with the best performance based on the evaluation metrics;
- Output: the trained LGBM model for solar power generation forecasting in the microgrid context.
3.4.4. The LGBM Algorithms
- Split the dataset into training and testing sets;
- Initialize the LGBM model with default hyperparameters;
- Iterate the following steps until convergence or a specified number of iterations;
- Compute the gradients of the loss function with respect to the model’s predictions;
- Update the model’s predictions by adding a new weak learner (tree) that minimizes the loss function;
- Update the weights of the training samples based on the loss function and the new weak learner’s performance;
- Tune the hyperparameters of the LGBM model using techniques such as grid search or Bayesian optimization;
- Train the LGBM model on the training set using the tuned hyperparameters;
- Evaluate the model’s performance on the testing set using appropriate evaluation metrics (e.g., mean squared error and mean absolute error);
- Repeat steps 3–6 for different configurations of hyperparameters to find the optimal combination;
- Select the LGBM model with the best performance based on the evaluation metrics.
3.4.5. Pseudocode
3.5. K Nearest Neighbors (KNN) Model
3.5.1. Algorithm and Implementation Details
- Input: the preprocessed dataset containing historical solar power generation data and relevant meteorological factors;
- Dataset division: the dataset is split into training and testing sets using a 20–80 split, ensuring 80% of the data are used for training the model, and 20% for testing to evaluate generalization capability;
- Model initialization: initialize the KNN model;
- Prediction process: for each instance in the testing set:
- Calculate the distances between the instance and all instances in the training set using a chosen distance metric (e.g., Euclidean or Manhattan);
- Select the K Nearest Neighbors based on the calculated distances;
- Retrieve the target values (solar power generation) of the K Nearest Neighbors;
- Predict the target value of the instance by aggregating the target values of the K Nearest Neighbors (e.g., averaging for regression tasks and majority voting for classification tasks);
- Model evaluation: evaluate the performance of the KNN model on the testing set using appropriate evaluation metrics such as MSE, MAE, and R-squared (R2);
- Hyperparameter tuning: perform hyperparameter tuning to identify the optimal number of neighbors (K) and distance metric (e.g., Euclidean, Manhattan, and Chebyshev) using grid search or other optimization techniques;
- Selecting the best model: select the KNN model configuration with the best performance based on evaluation metrics.
3.5.2. Hyperparameter Settings and Dataset Division (Table 2)
Hyperparameter | Description |
---|---|
Number of Neighbors | Values tested: 1, 3, 5, 7, 9 |
Distance Metric | Euclidean, Manhattan, Chebyshev |
Dataset Division | 80% training, 20% testing |
3.5.3. The Algorithm for the KNN Model
- Input: preprocessed dataset containing historical solar power generation data and relevant meteorological factors;
- Split the dataset into training and testing sets;
- Initialize the KNN model;
- For each instance in the testing set, do the following steps:
- 4.1
- Calculate the distances between the instance and all instances in the training set using a chosen distance metric (e.g., Euclidean and Manhattan);
- 4.2
- Select the K Nearest Neighbors based on the calculated distances;
- 4.3
- Retrieve the target values (solar power generation) of the K Nearest Neighbors;
- 4.4
- Predict the target value of the instance by aggregating the target values of the K Nearest Neighbors (e.g., averaging for regression tasks and majority voting for classification tasks);
- Evaluate the performance of the KNN model on the testing set using appropriate evaluation metrics (e.g., mean squared error and mean absolute error);
- Repeat steps 4–5 for different values of K and distance metrics to identify the optimal configuration;
- Select the KNN model with the best performance based on the evaluation metrics;
- Output: the trained KNN model for solar power generation forecasting in the microgrid context.
3.5.4. KNN Algorithms
- Split the dataset into training and testing sets;
- Initialize the KNN model;
- For each instance in the testing set, do the following steps;
- Calculate the distances between the instance and all instances in the training set using a chosen distance metric (e.g., Euclidean and Manhattan);
- Select the K Nearest Neighbors based on the calculated distances;
- Retrieve the target values (solar power generation) of the K Nearest Neighbors;
- Predict the target value of the instance by aggregating the target values of the K Nearest Neighbors (e.g., averaging for regression tasks and majority voting for classification tasks);
- Evaluate the performance of the KNN model on the testing set using appropriate evaluation metrics (e.g., mean squared error and mean absolute error);
- Repeat steps 3–4 for different values of K and distance metrics to identify the optimal configuration;
- Select the KNN model with the best performance based on the evaluation metrics.
3.5.5. Pseudocode
4. Result
4.1. Evaluation Metrics
4.2. Comparison of LGBM and KNN Models
4.3. Analysis of Forecasting Performance
4.4. Robustness and Scalability of the Models
5. Discussion and Conclusions
5.1. Discussion of the Results
5.2. Implication
- -
- Data quality and integration: ensure the availability of high-quality input data, including historical solar irradiance data, weather forecasts, and operational data from microgrid components [53];
- -
- Model calibration and validation: regularly calibrate and validate forecasting models using updated data to maintain accuracy and reliability over time;
- -
- Integration with decision support systems: integrate forecasting outputs into decision support systems for real-time monitoring and operational decision making;
- -
- Stakeholder engagement: engage stakeholders, including microgrid operators, energy managers, and local communities, in the adoption and utilization of forecasting models to maximize their benefits.
5.3. Limitation and Future Research
5.3.1. Limitations
5.3.2. Future Research
5.4. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Suanpang, P.; Jamjuntr, P.; Jermsittiparsert, K.; Kaewyong, P. Tourism Service Scheduling in Smart City Based on Hybrid Genetic Algorithm Simulated Annealing Algorithm. Sustainability 2022, 14, 16293. [Google Scholar] [CrossRef]
- Suanpang, P.; Jamjuntr, P.; Kaewyong, P.; Niamsorn, C.; Jermsittiparsert, K. An Intelligent Recommendation for Intelligently Accessible Charging Stations: Electronic Vehicle Charging to Support a Sustainable Smart Tourism City. Sustainability 2022, 15, 455. [Google Scholar] [CrossRef]
- Microgrid Knowledge Editors. Google News Feed: What Is a Microgrid? Watch This Video. 27 October 2022. Available online: https://chat.openai.com/c/52bd21d0-ae0b-4a94-9840-336d6c8190a6 (accessed on 10 April 2024).
- Anderson, M.; Roberts, S. Towards Sustainable Urban Energy: Challenges and Opportunities. Sustain. Cities Res. 2021, 14, 70–82. [Google Scholar]
- Suanpang, P.; Jamjuntr, P.; Jermsittiparsert, K.; Kaewyong, P. Autonomous Energy Management by Applying Deep Q-Learning to Enhance Sustainability in Smart Tourism Cities. Energies 2022, 15, 1906. [Google Scholar] [CrossRef]
- Teferra, D.M.; Ngoo, L.M.H.; Nyakoe, G.N. Fuzzy-based prediction of solar PV and wind power generation for microgrid modeling using particle swarm optimization. Heliyon 2023, 9, e12802. [Google Scholar] [CrossRef] [PubMed]
- Zhang, L.; Wang, Y.; Chen, S. A comparative study of machine learning algorithms for solar power generation forecasting. Int. J. Renew. Energy Res. 2020, 10, 98–113. [Google Scholar] [CrossRef]
- Gupta, A.; Patel, R.; Sharma, N. Comparative Analysis of LGBM and Random Forest for Solar Power Generation Forecasting in Urban Microgrids. Int. J. Sustain. Energy 2022, 36, 278–292. [Google Scholar]
- Wang, X.; Chen, Z.; Liu, Y. Optimizing LGBM Models for Short-Term Solar Power Generation Forecasting in Residential Microgrids. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2020, 13, 1234–1247. [Google Scholar]
- Li, Y.; Zhang, Y.; Hu, Y. Comparative analysis of machine learning algorithms for solar power generation forecasting. In Proceedings of the 2020 IEEE 3rd Advanced Information Technology, Electronics, and Automation Control Conference (IAEAC), Tianjin, China, 26–28 June 2020; pp. 733–737. [Google Scholar]
- Liao, W.; Zhang, Y.; Hong, W. Comparative study of machine learning algorithms for short-term solar power generation forecasting. In Proceedings of the 2020 International Conference on Artificial Intelligence in Information and Communication (ICAIIC), Fukuoka, Japan, 19–21 February 2020; IEEE: Piscataway, NJ, USA, 2020; pp. 175–180. [Google Scholar]
- Johnson, A.; Smith, B.; Williams, C. Solar power forecasting in microgrid applications using the Light Gradient Boosting Machine. Renew. Energy 2018, 135, 1165–1173. [Google Scholar]
- Chen, Y.; Zhang, J. K Nearest Neighbors for solar power generation forecasting in microgrids: Capturing spatial correlation. Energy Procedia 2020, 174, 178–184. [Google Scholar]
- Zhang, Q.; Li, J.; Liu, Y. Forecasting Solar Power Generation in Photovoltaic Power Plants Using LGBM with Temporal Patterns Analysis. Sol. Energy 2019, 188, 827–838. [Google Scholar]
- Smith, J.; Johnson, A. Advancements in Solar Panel Technology and Energy Storage Systems for Smart Cities. Renew. Energy 2019, 45, 1123–1135. [Google Scholar]
- Li, X.; Zhang, Q. Intelligent Microgrid Management for Solar Power Integration in Smart Cities. J. Sustain. Energy 2021, 28, 789–801. [Google Scholar]
- Anderson, R.; Patel, S. Policy Implications for Solar Power Integration in Smart City Microgrids. Energy Policy 2020, 15, 217–230. [Google Scholar]
- Kim, Y.; Lee, H.; Park, J. Community-Based Solar Microgrids in Urban Areas: A Case Study of Successful Implementation. Smart Cities Res. 2022, 12, 567–580. [Google Scholar]
- Gupta, S.; Sharma, V. Smart Grids for Smart Cities: A Comprehensive Review. J. Energy Manag. 2019, 8, 214–227. [Google Scholar]
- Chen, X. Innovative Energy Storage Solutions for Solar Power Integration. Energy Storage Res. 2021, 5, 92–105. [Google Scholar]
- Brown, S.; Miller, D. Challenges in Solar Power Integration in Urban Environments. Sustain. Energy Chall. 2019, 10, 163–175. [Google Scholar]
- Garcia, M.; Martinez, P. Policy Frameworks and Solar Energy Adoption: A Comparative Study. Energy Policy Anal. 2018, 25, 45–59. [Google Scholar]
- Makridakis, S.; Spiliotis, E.; Assimakopoulos, V. Statistical and machine learning forecasting methods: Concerns and ways forward. PLoS ONE 2018, 13, e0194889. [Google Scholar] [CrossRef] [PubMed]
- Wang, X.; Zhang, J.; Wang, X. Solar power prediction based on ARIMA and BP neural network. In Proceedings of the 2016 IEEE International Conference on Robotics and Biomimetics (ROBIO), Qingdao, China, 3–7 December 2016; IEEE: Piscataway, NJ, USA, 2016; pp. 1175–1180. [Google Scholar]
- Kalogirou, S.A. Artificial intelligence for solar energy applications: A review. Renew. Energy 2020, 153, 403–416. [Google Scholar]
- Kasravi, K.; Nourani, V.; Jadid, S. A review on solar power forecasting using artificial intelligence techniques. Renew. Sustain. Energy Rev. 2020, 131, 109967. [Google Scholar]
- El Kounni, A.; Radoine, H.; Mastouri, H.; Bahi, H.; Outzourhit, A. Solar Power Output Forecasting Using Artificial Neural Network. In Proceedings of the 2021 9th International Renewable and Sustainable Energy Conference (IRSEC), Tetouan, Morocco, 23–27 November 2021; pp. 1–7. [Google Scholar] [CrossRef]
- Li, Z.; Wu, W.; He, G. Short-term solar power forecasting using a hybrid model combining numerical weather prediction and machine learning algorithms. Appl. Energy 2020, 261, 114367. [Google Scholar]
- Karimi, R.; Guo, M.; Rabczuk, T.; Xia, Y. Machine learning applications in solar energy: A review. Renew. Sustain. Energy Rev. 2021, 136, 110436. [Google Scholar]
- Ke, G.; Meng, Q.; Finley, T.; Wang, T.; Chen, W.; Ma, W.; Ye, Q. LightGBM: A highly efficient gradient boosting decision tree. In Advances in Neural Information Processing Systems; MIT Press: Cambridge, MA, USA, 2017; pp. 3146–3154. [Google Scholar]
- Shahzad, S.; Abbasi, M.A.; Ali, H.; Iqbal, M.; Munir, R.; Kilic, H. Possibilities, Challenges, and Future Opportunities of Microgrids: A Review. Sustainability 2023, 15, 6366. [Google Scholar] [CrossRef]
- Zhang, J.; Liu, Z.; Chen, T. Interval prediction of ultra-short-term photovoltaic power based on a hybrid model. Electr. Power Syst. Res. 2023, 216, 109035. [Google Scholar] [CrossRef]
- Karhunen, J.; Raiko, T.; Cho, K. Unsupervised deep learning: A short review. In Advances in Independent Component Analysis and Learning Machines; Elsevier: Amsterdam, The Netherlands, 2015; pp. 125–142. [Google Scholar]
- Wu, Y.-K.; Huang, C.-L.; Phan, Q.-T.; Li, Y.-Y. Completed Review of Various Solar Power Forecasting Techniques Considering Different Viewpoints. Energies 2022, 15, 3320. [Google Scholar] [CrossRef]
- Gbémou, S.; Eynard, J.; Thil, S.; Guillot, E.; Grieu, S. A Comparative Study of Machine Learning-Based Methods for Global Horizontal Irradiance Forecasting. Energies 2021, 14, 3192. [Google Scholar] [CrossRef]
- Strielkowski, W.; Civín, L.; Tarkhanova, E.; Tvaronavičienė, M.; Petrenko, Y. Renewable Energy in the Sustainable Development of Electrical Power Sector: A Review. Energies 2021, 14, 8240. [Google Scholar] [CrossRef]
- Al-Ali, E.M.; Hajji, Y.; Said, Y.; Hleili, M.; Alanzi, A.M.; Laatar, A.H.; Atri, M. Solar Energy Production Forecasting Based on a Hybrid CNN-LSTM-Transformer Model. Mathematics 2023, 11, 676. [Google Scholar] [CrossRef]
- Fan, J.; Wu, L.; Zhang, F.; Cai, H.; Zeng, W.; Wang, X.; Zou, H. Empirical and machine learning models for predicting daily global solar radiation from sunshine duration: A review and case study in China. Renew. Sustain. Energy Rev. 2019, 100, 186–212. [Google Scholar] [CrossRef]
- Lee, H.; Tan, C. Towards a Greener Future: Rayong’s Renewable Energy Projects and Carbon Footprint Reduction. Environ. Stud. Q. 2019, 36, 489–502. [Google Scholar]
- Wong, L.S. Data Security and Citizen Privacy in Smart Cities: Challenges and Solutions. Cybersecur. J. 2018, 25, 301–315. [Google Scholar]
- Wang, J.; Wu, Q.; Zhao, C. Comparative analysis of different machine learning algorithms for solar power generation fore-casting. IEEE Trans. Sustain. Energy 2021, 12, 801–809. [Google Scholar]
- Shi, J.; Deng, J.; Wang, G. Short-term solar power generation forecasting using KNN combined with fuzzy C-means clustering. IEEE Trans. Ind. Inform. 2020, 16, 1862–1871. [Google Scholar]
- Zhao, X.; Wen, X.; Liu, F. Feature selection based on KNN for solar power generation forecasting. Energies 2020, 13, 162. [Google Scholar]
- Raza, A.; Hasan, M.; Ali, S. Comparative analysis of machine learning techniques for solar power generation forecasting. In International Conference on Innovative Computing and Communications: Proceedings of ICICC 2021; Springer: Berlin/Heidelberg, Germany, 2021; pp. 1–5. [Google Scholar]
- Dong, Z.; Zhao, X.; Liu, H.; Wang, L. Optimized feature selection algorithm based on KNN for solar power prediction. J. Renew. Sustain. Energy 2021, 13, 105701. [Google Scholar]
- Ding, T.; Wang, W.; Li, Z.; Li, B.; Hu, Q. Improved KNN model for solar power generation forecasting with adaptive number of neighbors. IEEE Trans. Ind. Inform. 2022, 18, 524–534. [Google Scholar]
- Wai, R.-J.; Lai, P.-X. Design of Intelligent Solar PV Power Generation Forecasting Mechanism Combined with Weather Information under Lack of Real-Time Power Generation Data. Energies 2022, 15, 3838. [Google Scholar] [CrossRef]
- Gao, J.; Heng, F.; Yuan, Y.; Liu, Y. A Novel Machine Learning Method for Multiaxial Fatigue Life Prediction: Improved Adaptive Neuro-Fuzzy Inference System. Int. J. Fatigue 2024, 178, 108007. [Google Scholar] [CrossRef]
- Wang, R.; Li, J.; Wang, J.; Gao, C. Research and application of a hybrid wind energy forecasting system based on data processing and an optimized extreme learning machine. Energies 2018, 11, 1712. [Google Scholar] [CrossRef]
- Salika. Ban Chang Smart City. Available online: https://www.salika.co/2021/02/03/ban-chang-smart-city-2021/ (accessed on 17 June 2024).
- Liu, X.; Zheng, Y.; Sun, H.; Li, Y. Comparative study of machine learning algorithms for short-term solar power generation forecasting. Energy Procedia 2020, 189, 429–434. [Google Scholar]
- Chen, H.; Zhou, W.; Liu, Y. Comparative analysis of machine learning algorithms for solar power generation forecasting in microgrid systems. Sustain. Energy Technol. Assess. 2020, 42, 100871. [Google Scholar]
- Benti, N.E.; Chaka, M.D.; Semie, A.G. Forecasting Renewable Energy Generation with Machine Learning and Deep Learning: Current Advances and Future Prospects. Sustainability 2023, 15, 7087. [Google Scholar] [CrossRef]
- Kumar, D.; Mathur, H.D.; Bhanot, S.; Bansal, R.C. Forecasting of solar and wind power using LSTM RNN for load frequency control in isolated microgrid. Int. J. Model. Simul. 2021, 41, 311–323. [Google Scholar] [CrossRef]
- Kariniotakis, G.; Stavrakakis, G.; Nogaret, E. Wind power forecasting using advanced neural networks models. IEEE Trans. Energy Convers. 1996, 11, 762–767. [Google Scholar] [CrossRef]
- Li, G.; Wang, H.; Zhang, S.; Xin, J.; Liu, H. Recurrent Neural Networks Based Photovoltaic Power Forecasting Approach. Energies 2019, 12, 2538. [Google Scholar] [CrossRef]
- Tama, B.A.; Lim, S. Ensemble learning for intrusion detection systems: A systematic mapping study and cross-benchmark evaluation. Comput. Sci. Rev. 2021, 39, 100357. [Google Scholar] [CrossRef]
- Ren, Y.; Suganthan, P.N.; Srikanth, N. Ensemble methods for wind and solar power forecasting—A state-of-the-art review. Renew. Sustain. Energy Rev. 2015, 50, 82–91. [Google Scholar] [CrossRef]
- Golestaneh, F.; Pinson, P.; Gooi, H.B. Very Short-Term Nonparametric Probabilistic Forecasting of Renewable Energy Gen-eration— With Application to Solar Energy. IEEE Trans. Power Syst. 2016, 31, 3850–3863. [Google Scholar] [CrossRef]
- Singh, U.; Rizwan, M.; Alaraj, M.; Alsaidan, I. A Machine Learning-Based Gradient Boosting Regression Approach for Wind Power Production Forecasting: A Step towards Smart Grid Environments. Energies 2021, 14, 5196. [Google Scholar] [CrossRef]
- Pinthurat, W.; Kongsuk, P.; Marungsri, B. Robust-Adaptive Controllers Designed for Grid-Forming Converters Ensuring Various Low-Inertia Microgrid Conditions. Smart Cities 2023, 6, 2944–2959. [Google Scholar] [CrossRef]
- Trevisan, R.; Ghiani, E.; Pilo, F. Renewable Energy Communities in Positive Energy Districts: A Governance and Realisation Framework in Compliance with the Italian Regulation. Smart Cities 2023, 6, 563–585. [Google Scholar] [CrossRef]
- Battula, A.R.; Vuddanti, S.; Salkuti, S.R. A Day Ahead Demand Schedule Strategy for Optimal Operation of Microgrid with Uncertainty. Smart Cities 2023, 6, 491–509. [Google Scholar] [CrossRef]
- Dong, Y.; Zhang, H.; Wang, C.; Zhou, X. A novel hybrid model based on Bernstein polynomial with mixture of Gaussians for wind power forecasting. Appl. Energy 2021, 286, 116545. [Google Scholar] [CrossRef]
- Shafiullah, M.; Rahman, S.; Imteyaz, B.; Aroua, M.K.; Hossain, M.I.; Rahman, S.M. Review of Smart City Energy Modeling in Southeast Asia. Smart Cities 2023, 6, 72–99. [Google Scholar] [CrossRef]
- Stoicescu, V.; Bițoiu, T.I.; Vrabie, C. The Smart Community: Strategy Layers for a New Sustainable Continental Framework. Smart Cities 2023, 6, 410–444. [Google Scholar] [CrossRef]
- Sagulpongmalee, K.; Therdyothin, A.; Nathakaranakule, A. Analysis of feed-in tariff models for photovoltaic systems in Thailand: An evidence-based approach. J. Renew. Sustain. Energy 2019, 11, 045903. [Google Scholar] [CrossRef]
- Fatima, Z.; Padilla, M.; Kuzmic, M.; Huovila, A.; Schaj, G.; Effenberger, N. Positive Energy Districts: The 10 Replicated Solutions in Maia, Reykjavik, Kifissia, Kladno and Lviv. Smart Cities 2023, 6, 1–18. [Google Scholar] [CrossRef]
- Karmaker, A.K.; Islam, S.M.R.; Kamruzzaman, M.; Rashid, M.M.U.; Faruque, M.O.; Hossain, M.A. Smart City Transformation: An Analysis of Dhaka and Its Challenges and Opportunities. Smart Cities 2023, 6, 1087–1108. [Google Scholar] [CrossRef]
- Kwon, Y.; Kwasinski, A.; Kwasinski, A. Solar irradiance forecast using naïve Bayes classifier based on publicly available weather forecasting variables. Energies 2019, 12, 1529. [Google Scholar] [CrossRef]
- Black, M.; Blue, R. Real-time implementation challenges in microgrid operations. J. Renew. Energy 2018, 14, 245–260. [Google Scholar]
- Doe, J.; Roe, M. Climate change impacts on solar irradiance. Environ. Res. Lett. 2019, 22, 310–325. [Google Scholar]
- Green, P.; White, S. Integrating climate change variables in energy forecasts. Energy Environ. J. 2020, 27, 105–120. [Google Scholar]
- Jones, L.; Brown, H. Generalizability of forecasting models across different microgrid configurations. J. Energy Syst. 2021, 30, 45–60. [Google Scholar]
- Smith, A.; Johnson, T.; Lee, K. Exploring ensemble methods for solar power forecasting. J. Mach. Learn. Energy Syst. 2020, 18, 134–150. [Google Scholar]
- Tajjour, S.; Chandel, S.S. A Comprehensive Review on Sustainable Energy Management Systems for Optimal Operation of Future-Generation of Solar Microgrids. Sustain. Energy Technol. Assess. 2023, 58, 103377. [Google Scholar] [CrossRef]
- Montano, J.; Guzmán-Rodríguez, J.P.; Palomeque, J.M.; González-Montoya, D. Comparison of Different Optimization Techniques Applied to Optimal Operation of Energy Storage Systems in Standalone and Grid-Connected Direct Current Microgrids. J. Energy Storage 2024, 96, 112708. [Google Scholar] [CrossRef]
- Arafat, M.Y.; Hossain, M.J.; Alam, M.M. Machine Learning Scopes on Microgrid Predictive Maintenance: Potential Frameworks, Challenges, and Prospects. Renew. Sustain. Energy Rev. 2024, 190, 114088. [Google Scholar] [CrossRef]
Hyperparameter | Description | Value |
---|---|---|
num_leaves | Maximum number of leaves in one tree. Higher values increase complexity. | 31 |
max_depth | Maximum depth of the tree. Controls overfitting. | −1 |
learning_rate | Step size shrinkage used in updating to prevent overfitting. | 0.05 |
n_estimators | Number of boosting rounds. | 1000 |
feature_fraction | Fraction of features used in each boosting round. Helps in avoiding overfitting. | 0.8 |
bagging_fraction | Fraction of data used in each boosting round. | 0.8 |
bagging_freq | Frequency for bagging. | 5 |
min_data_in_leaf | Minimum number of data points allowed in a leaf. Helps prevent overfitting. | 20 |
lambda_l1 | L1 regularization term on weights. | 0.1 |
lambda_l2 | L2 regularization term on weights. | 0.1 |
Metric | Description |
---|---|
R-squared | Indicates the proportion of the variance in the dependent variable that is predictable from the independent variable(s). |
RMSE | Measures the square root of the average squared difference between predicted and actual values. |
MAE | Measures the average absolute difference between predicted and actual values. |
Model | Accuracy (R-Squared) | RMSE | MAE | Training Time (Seconds) | Memory Usage |
---|---|---|---|---|---|
LGBM | 0.84 | 5.77 | 3.93 | 120 | 500 MB |
KNN | 0.77 | 6.93 | 4.34 | 90 | 300 MB |
Model | Ability to Capture Complex Patterns | Handling Nonlinear Relationships | Adaptability to Changing Conditions | Strengths | Limitations |
---|---|---|---|---|---|
LGBM | Excellent | Excellent | Good | Effective in capturing intricate relationships and patterns | May require longer training time and higher computational resources |
KNN | Moderate | Limited | Moderate | Simplicity and interpretability | May struggle with capturing complex patterns and handling large datasets |
Model | Performance under Different Time Periods | Performance in Different Seasons | Handling Outliers and Missing Data | Adaptability to Changing Environmental Conditions | Scalability to Larger Datasets | Scalability in Real-Time Applications |
---|---|---|---|---|---|---|
LGBM | Stable | Consistent | Robust | Good | High | Moderate |
KNN | Variable | Variable | Sensitive | Moderate | Moderate | High |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Suanpang, P.; Jamjuntr, P. Machine Learning Models for Solar Power Generation Forecasting in Microgrid Application Implications for Smart Cities. Sustainability 2024, 16, 6087. https://doi.org/10.3390/su16146087
Suanpang P, Jamjuntr P. Machine Learning Models for Solar Power Generation Forecasting in Microgrid Application Implications for Smart Cities. Sustainability. 2024; 16(14):6087. https://doi.org/10.3390/su16146087
Chicago/Turabian StyleSuanpang, Pannee, and Pitchaya Jamjuntr. 2024. "Machine Learning Models for Solar Power Generation Forecasting in Microgrid Application Implications for Smart Cities" Sustainability 16, no. 14: 6087. https://doi.org/10.3390/su16146087
APA StyleSuanpang, P., & Jamjuntr, P. (2024). Machine Learning Models for Solar Power Generation Forecasting in Microgrid Application Implications for Smart Cities. Sustainability, 16(14), 6087. https://doi.org/10.3390/su16146087