Forecasting and Comparative Application of PV System Electricity Generation for Sprinkler Irrigation Machines Based on Multiple Models
Abstract
:1. Introduction
2. Materials and Methods
2.1. Methodology
2.1.1. SARIMAX
2.1.2. SVM
2.1.3. RF
2.1.4. XGBoost
2.1.5. Exhaustive Search Method
- Objective Function
- 2.
- Penalty Function
2.2. Evaluation Metrics
2.3. Dataset Partitioning
2.3.1. Meteorological Data
2.3.2. Establishing Models Based on Different Time Scales
- Annual Time Scale: A prediction model will be established using data from the entire year, with the data directly divided into an 80% training set and a 20% testing set. After completing predictions on the testing set, evaluation metrics will be used for assessment.
- Seasonal Time Scale: The original data will be divided into four parts according to the seasons: spring, summer, autumn, and winter, for estimating PVPG performance testing. Spring is defined as March to May, summer as June to August, autumn as September to November, and winter as December to February. Each season’s data will be divided into 80% training set and 20% testing set. Finally, R2, RMSE, and MAE will be used as evaluation metrics for the models, conducting regression analysis between the estimated values and the actual measured values, and comparing the prediction accuracy and stability across the four seasons. The flowchart is shown in Figure 4.
- Model Based on Solar Terms: To test the accuracy of the PVPG estimation model, the original data were divided according to the 24 solar terms for performance testing of the power generation estimates. Each solar term’s data were split into an 80% training set and a 20% testing set. Finally, R2, RMSE, and MAE were used as evaluation metrics for the model, conducting regression analysis between the estimated values and the actual measured values, and comparing the prediction accuracy and fitting effects across the 24 solar terms. The flowchart for the 24 solar terms and their models is shown in Figure 5.
2.4. Related Calculation Formulas
- There are 15 days from the beginning of “the Beginning of Summer” solar term to the next solar term, with an average PVPG of 0.985 kW/m2. The power generation calculation formula for the PV panel is given in Equation (18),
- 2.
- After the PVPG meets the load power demand, any excess electricity will be charged into the battery. The charging power of the battery over the t~t + Δt time period is given by Equation (19),
- 3.
- The state of charge (SOC) of a battery cell at a certain moment t is given by Equations (21) and (22) [36]:
- 4.
- When both charging and discharging cannot meet the load power demand, the system experiences a deficit. The calculation formula for the deficit is given in Equation (23) [36]:
- 5.
- The calculation formula for the load-shedding rate is [37]:
- 6.
- The total power of the PV-driven irrigation system is calculated based on the maximum operating conditions of the unit [36], which mainly includes overcoming the resistance of the spray head and hose, overcoming the rolling resistance, and calculating the torque and speed of the traction device, taken as 1.26 kW.
2.5. Building the Model in Python
- Read the data and preprocess it.
- Set the time as the index and convert the data into a time series format.
- Plot the time series graph of the original data to observe the trends and periodicity in the data.
- Select exogenous factors (X) based on the correlation heatmap to determine the key meteorological factors affecting PV power. This study selects total radiation, diffuse radiation, and solar panel temperature as the three exogenous factors.
- Divide the original data into training and testing sets.
- Check the stationarity of the data and apply differencing to non-stationary data to eliminate trends.
- Use the auto ARIMA method to automatically find the optimal parameters.
- Establish the SARIMA model and fit the SARIMAX model using the optimal parameters.
- Perform model diagnostics, such as white noise testing.
- Use the fitted SARIMAX model to make predictions on the training set and evaluate the accuracy of the prediction results.
- Plot scatter plots and waveform graphs for the predicted results and actual values for visualization.
3. Results and Discussion
3.1. Comparison of Four Prediction Models
3.2. Constructing Models for Three Time Scales
- The evaluation metric results for the annual time scale model and the scatter plot of the estimated PVPG values versus the actual measured values during the testing phase are shown in Figure 8.
- The evaluation metric results for the seasonal time scale model and the scatter plot of the estimated PVPG values versus the actual measured values during the testing phase are shown in Figure 9. From the figure, it can be observed that in the four seasons, the estimation errors between the PVPG values and the actual measured values are smaller in spring and winter, indicating better prediction performance.
- The evaluation metrics for the solar terms time scale model and the scatter plot of the estimated PVPG values versus the actual measured values during the testing phase are shown in Figure 10. From the figure, it can be observed that among the 24 solar terms, the PVPG evaluation metrics RMSE and MAE are the lowest during the period from the start of “The Beginning of Summer” solar term to the end of the next solar term. The scatter points are closer to the 1:1 line, indicating the smallest error between the estimated and actual values, with the highest accuracy. Additionally, during the period from the start of “The Beginning of Winter” solar term to the end of the next solar term, the model achieves the highest R2 value for PVPG, indicating the best fitting performance. Overall, except for certain solar term periods where data quality was affected by overcast and rainy days and the uniform dataset partitioning, the fitting performance and accuracy during other solar terms are better compared to the annual and seasonal scales. This also addresses the issue of poor prediction performance during the summer and autumn seasons on the seasonal scale.
3.3. Comparative Analysis of Three Time Scale Predictions Based on SARIMAX
3.4. Analysis of Estimation Accuracy of the Three Time Scale Models Under Typical Weather Conditions
3.5. Application
4. Conclusions and Future Work
4.1. Conclusions
4.2. Future Work
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Kazemi, M.; Salehpour, S.Y.; Shahbaazy, F.; Behzadpoor, S.; Pirouzi, S.; Jafarpour, S. Participation of energy storage-based flexible hubs in day-ahead reserve regulation and energy markets based on a coordinated energy management strategy. Int. Trans. Electr. Energy Syst. 2022, 2022, 6481531. [Google Scholar] [CrossRef]
- IEA. Renewables. 2023. Available online: https://www.iea.org/reports/renewables-2023 (accessed on 11 November 2024).
- Li, D.; Zhu, D.; Ge, M.; Wu, S.; Wang, R.; Wang, B.; Wu, Y.; Yang, Y. Optimal configuration and field experiments for PV generation system of solar-powered hose-drawn traveler. Trans. ASABE 2019, 62, 1789–1801. [Google Scholar] [CrossRef]
- Houran, M.A.; Sabzevari, K.; Hassan, A.; Oubelaid, A.; V’eliz, M.T.; Khosravi, N. Active power filter module function to improve power quality conditions using GWO and PSO techniques for solar PV arrays and battery energy storage systems. J. Energy Storage 2023, 72, 108552. [Google Scholar] [CrossRef]
- Sabzehgar, R.; Amirhosseini, D.Z.; Rasouli, M. Solar power forecast for a residential smart microgrid based on numerical weather predictions using artificial intelligence methods. J. Build. Eng. 2020, 32, 101629. [Google Scholar] [CrossRef]
- Ariyaratna, P.; Muttaqi, K.M.; Sutanto, D. A novel control strategy to mitigate slow and fast fluctuations of the voltage profile at common coupling point of rooftop solar PV unit with an integrated hybrid energy storage system. J. Energy Storage 2018, 20, 409–417. [Google Scholar] [CrossRef]
- Wang, Z.; Gu, C.; Li, F. Flexible operation of shared energy storage at households to facilitate PV penetration. Renew. Energy 2018, 116, 438–446. [Google Scholar] [CrossRef]
- Graditi, G.; Ferlito, S.; Adinolfi, G. Comparison of PV plant power production prediction methods using a large measured dataset. Renew. Energy 2016, 90, 513–519. [Google Scholar] [CrossRef]
- Chapter 10—Solar Energy. In Australian Energy Resource Assessment; Australian Renewable Energy Agency: Sydney, Australia, 2013; pp. 261–284. Available online: http://arena.gov.au/files/2013/08/Chapter-10-Solar-Energy.pdf (accessed on 11 November 2024).
- Zhao, W.; Zhang, H.; Zheng, J.; Dai, Y.; Huang, L.; Shang, W.; Liang, Y. A point prediction method based automatic machine learning for day-ahead power output of multi-region PV plants. Energy 2021, 223, 120026. [Google Scholar] [CrossRef]
- Ziane, A.; Necaibia, A.; Sahouane, N.; Dabou, R.; Mostefaoui, M.; Bouraiou, A.; Blal, M. PV output power performance assessment and forecasting: Impact of meteorological variables. Sol. Energy 2021, 220, 745–757. [Google Scholar] [CrossRef]
- Liu, K.; Wu, P.; Zhu, D.; Dai, W.; Li, D.; Cai, S. Design and test of driving power and PV power matching for solar-driven sprinkler irrigation unit. Trans. Chin. Soc. Agric. Eng. 2017, 33, 96–103. [Google Scholar]
- Sepasi, S.; Reihani, E.; Howlader, A.M.; Roose, L.R.; Matsuura, M.M. Very short term load forecasting of a distribution system with high PV penetration. Renew. Energy 2017, 106, 142–148. [Google Scholar] [CrossRef]
- Barbieri, F.; Rajakaruna, S.; Ghosh, A. Very short-term PV power forecasting with cloud modeling: A review. Renew. Sustain. Energy Rev. 2017, 75, 242–263. [Google Scholar] [CrossRef]
- Li, L.; Wen, S.; Tseng, M.; Wang, C. Renewable energy prediction: A novel short-term prediction model of PV output power. J. Clean. Prod. 2019, 228, 359–375. [Google Scholar] [CrossRef]
- Malvoni, M.; Giorgi, M.G.D.; Congedo, P.M. PV predict based on hybrid PCA-LSSVM using dimensionality reducted data. Neurocomputing 2016, 211, 72–83. [Google Scholar] [CrossRef]
- Karthika, S.; Margaret, V.; Balaraman, K. Hybrid short term load forecasting using ARIMA-SVM. In Proceedings of the 2017 Innovations in Power and Advanced Computing Technologies (i-PACT), Vellore, India, 21–22 April 2017. [Google Scholar]
- Wang, J.; Ran, R.; Zhou, Y. A short-term PV power prediction model based on an FOS-ELM algorithm. Appl. Sci. 2017, 7, 423. [Google Scholar] [CrossRef]
- Zhu, R.; Guo, W.; Gong, X. Short-term PV power output prediction based on k-Fold cross-validation and an ensemble model. Energies 2019, 12, 1220. [Google Scholar] [CrossRef]
- Jiao, P.; Cai, X.; Wang, L. BiLSTM short-term PV power prediction considering data decomposition and evolutionary predation strategiesite. Acta Energiae Solaris Sin. 2024, 45, 435–442. [Google Scholar]
- Du, J.; Zheng, J.; Liang, Y.; Liao, Q.; Wang, B.; Sun, X.; Zhang, H.; Azaza, M.; Yan, J. A theory-guided deep-learning method for predicting power generation of multi-region PV plants. Eng. Appl. Artif. Intell. 2023, 118, 105647. [Google Scholar] [CrossRef]
- Liu, W.; Mao, Z. Short-term PV power forecasting with feature extraction and attention mechanisms. Renew. Energy 2024, 226, 120437. [Google Scholar] [CrossRef]
- Liu, L.; Zhao, Y.; Chang, D.; Xie, J.; Ma, Z.; Sun, Q.; Wennersten, R. Prediction of short-term PV power output and uncertainty analysis. Appl. Energy 2018, 228, 70011. [Google Scholar] [CrossRef]
- Li, Y.; Su, Y.; Shu, L. An ARMAX model for forecasting the power output of a grid connected PV system. Renew. Energy 2014, 66, 78–89. [Google Scholar] [CrossRef]
- Zhou, X.; Li, Y.; Zeng, Y.; Shi, P. PV Power Forecasting Based on SARIMAX-SVR. Proc. CSU-EPSA 2024, 36, 001322. [Google Scholar]
- Wang, R.; Li, G.; Ming, M.; Wu, G.; Wang, L. An efficient multi-objective model and algorithm for sizing a stand-alone hybrid renewable energy system. Energy 2017, 141, 2288–2299. [Google Scholar] [CrossRef]
- The meaning and origin of the “24 solar terms”. Beijing Educ. Youth Netw. 2018, 11, 05.
- Why are the 24 solar terms called the “fifth great invention”. People’s Dly. Online 2019, 3, 11.
- Li, X.; Jiang, M.; Cai, D.; Song, W.; Sun, Y. A Hybrid Forecasting Model for Electricity Demand in Sustainable Power Systems Based on Support Vector Machine. Energies 2024, 17, 4377. [Google Scholar] [CrossRef]
- Breiman, L. Bagging predictors. Mach. Learn. 1996, 24, 123–140. [Google Scholar] [CrossRef]
- Sun, Z.; Zhao, M.; Dong, Y.; Cao, X.; Sun, H. Hybrid model with secondary decomposition, randomforest algorithm, clustering analysis and long short memory network principal computing for short-term wind power forecasting on multiple scales. Energy 2021, 221, 119848. [Google Scholar] [CrossRef]
- Geurts, P.; Ernst, D.; Wehenkel, L. Extremely randomized trees. Mach. Learn. 2006, 63, 3–42. [Google Scholar] [CrossRef]
- Zhao, J.; Yuan, X. Multi-objective optimization of stand-alone hybrid PV-wind-diesel-battery system using improved fruit fly optimization algorithm. Soft Comput. 2016, 20, 2841–2853. [Google Scholar] [CrossRef]
- Olcan, C. Multi-objective analytical model for optimal sizing of stand-alone PV water pumping systems. Energy Convers. Manag. 2015, 100, 358–369. [Google Scholar] [CrossRef]
- Bataineh, K.; Dalalah, D. Optimal configuration for design of stand-alone PV system. Smart Grid Renew. Energy 2012, 3, 139–147. [Google Scholar] [CrossRef]
- Li, D.; Zhu, D.; Lin, M.; Wu, Y.; Zhao, H.; Wang, R. Optimization of Oil-Light Complementary Power Supply System for Traction Device of Reel Sprinkler Irrigation Machine. Trans. CSAM 2019, 50, 1000–1298. [Google Scholar]
- Cai, S.B.; Zhu, D.L.; Ge, M.S.; Liu, K.N.; Li, D. PV optimization of solar-powered linear move sprinkler irrigation system. J. Drain. Irrig. Mach. Eng. (JDIME) 2017, 35, 417–423. [Google Scholar]
Model | R2 | RMSE | MAE |
---|---|---|---|
SVM | 0.791 | 7.700 | 5.369 |
XGBoost | 0.787 | 6.675 | 4.826 |
RF | 0.789 | 6.658 | 4.910 |
SARIMAX | 0.944 | 7.034 | 4.413 |
Time Scale | R2 | RMSE | MAE |
---|---|---|---|
Annual Scale | 0.9442 | 0.0703 | 0.0441 |
Seasonal Scale | 0.9448 | 0.0688 | 0.0443 |
Solar Terms Scale | 0.9478 | 0.0655 | 0.0436 |
Sunny Day | Overcast Day | |||||
---|---|---|---|---|---|---|
Time Scale | R2 | RMSE | MAE | R2 | RMSE | MAE |
Annual Scale | 0.9614 | 0.0692 | 0.0424 | 0.9482 | 0.0710 | 0.0475 |
Seasonal Scale | 0.9721 | 0.0675 | 0.0494 | 0.9364 | 0.0781 | 0.0528 |
Solar Terms Scale | 0.9789 | 0.0578 | 0.0310 | 0.9397 | 0.0726 | 0.0407 |
Parameter | Numeric | Parameter | Numeric |
---|---|---|---|
PV panel cost | USD 141.58 | Charging efficiency | 90% |
The cost of the battery | USD 84.95 | Discharge efficiency | 85% |
Maximum energy spillover ratio | 0% | Debt repayment coefficient of funds | 0.037 |
Inflation rate | 3.5% | Fund recovery factor | 0.067 |
Years of operation | 20a | Controller cost | USD 226.52 |
Maximum load power deficit rate | 0% | Interest rate | 3.1% |
The lower limit of the allowable state of charge | 20% | The upper limit of the allowable state of charge | 80% |
Initial state of charge | 60% | Motor work efficiency | 80% |
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
Li, B.; Liu, K.; Cai, Y.; Sun, W.; Feng, Q. Forecasting and Comparative Application of PV System Electricity Generation for Sprinkler Irrigation Machines Based on Multiple Models. Agronomy 2024, 14, 2696. https://doi.org/10.3390/agronomy14112696
Li B, Liu K, Cai Y, Sun W, Feng Q. Forecasting and Comparative Application of PV System Electricity Generation for Sprinkler Irrigation Machines Based on Multiple Models. Agronomy. 2024; 14(11):2696. https://doi.org/10.3390/agronomy14112696
Chicago/Turabian StyleLi, Bohan, Kenan Liu, Yaohui Cai, Wei Sun, and Quan Feng. 2024. "Forecasting and Comparative Application of PV System Electricity Generation for Sprinkler Irrigation Machines Based on Multiple Models" Agronomy 14, no. 11: 2696. https://doi.org/10.3390/agronomy14112696
APA StyleLi, B., Liu, K., Cai, Y., Sun, W., & Feng, Q. (2024). Forecasting and Comparative Application of PV System Electricity Generation for Sprinkler Irrigation Machines Based on Multiple Models. Agronomy, 14(11), 2696. https://doi.org/10.3390/agronomy14112696