Abstract
This study addresses the need for improved Air Temperature (AT) forecasting during extreme thermal conditions, as it is crucial due to the major influence such conditions exert on various activities. However, an integrated hybrid model is proposed, leveraging the capabilities of neural networks to enhance predictive accuracy and Machine Learning (ML) techniques to assess Photovoltaic (PV) installation risks, using the Power Temperature Coefficient for vigilance during extreme thermal events. Neural networks are designed to capture complex patterns and dependencies in the data, enabling accurate forecasts of upcoming AT fluctuations; while, ML techniques are adapted to determine the specific hotspot where the photovoltaic plant is situated. The obtained results indicate that the Air Temperature Forecaster through Recursive Model-based Convolutional Neural Network (ATFRM-CNN) consistently excels in medium- to long-term predictions (36–72 h), achieving high correlation coefficient (r) values (r = 97.29–94.90%) and a low mean absolute error of 1.168 °C for forecasts up to 72 h. The ATFRM-based Recurrent Neural Network (ATFRM-RNN) and ATFRM-based Gated Recurrent Unit (ATFRM-GRU) models perform best for short-term predictions (6 h) but exhibit a significant decline in accuracy over longer prediction horizons. Additionally, the results of classification techniques in assessing the risks associated with PV plants demonstrate that Gradient Boosting and Random Forest models exhibit exceptional performance, achieving 98% accuracy, surpassing the other classification models. In contrast, Support Vector Machines underperform with an accuracy of 52%.















Similar content being viewed by others
Data availability
Authors do not have permission to share the datasets used. The data can be available on request from the Moroccan General Directorate of Meteorology (MGDM, https://www.marocmeteo.ma, last accessed on 20 November 2024).
References
De Freitas Viscondi G, Alves-Souza SN (2021) Solar irradiance prediction with machine learning algorithms: a Brazilian case study on photovoltaic electricity generation. Energies 14(18):5657
Zafar MW, Zaidi SAH, Sinha A, Gedikli A, Hou F (2019) The role of stock market and banking sector development, and renewable energy consumption in carbon emissions: insights from G-7 and N-11 countries. Resour Policy 62:427–436
Liu W, Shen Y, Razzaq A (2023) Renewable energy transition driven by renewable energy investment, environmental regulations, and financial development: evidence from G7 countries. Renew Energy 206:1188–1197
Ghimire S, Nguyen-Huy T, Prasad R, Deo RC, Casillas-Perez D, Salcedo-Sanz S, Bhandari B (2023) Hybrid convolutional neural network-multilayer perceptron model for solar radiation prediction. Cogn Comput 15(2):645–671
Paniagua-Tineo A, Salcedo-Sanz S, Casanova-Mateo C, Ortiz-García EG, Cony MA, Hernández-Martín E (2011) Prediction of daily maximum temperature through a support vector regression algorithm. Renew Energy 36(11):3054–3060
Chen Y, Tan H (2017) Short-term electric demand prediction in the building sector using a hybrid support vector regression. Appl Energy 204:1363–1374
Bouzgou H, Gueymard CA (2017) Minimum redundancy–maximum relevance with extreme learning machines for global solar radiation forecasting: toward an optimized dimensionality reduction for solar time series. Sol Energy 158:595–609
El Mghouchi Y (2022) On the prediction of daily global solar radiation using temperature as input. An application of hybrid machine learners to the six climatic Moroccan zones. Energy Convers Manage: X 13:100157
Wazirali R, Yaghoubi E, Abujazar MSS, Ahmad R, Vakili AH (2023) State-of-the-art review on energy and load forecasting in microgrids using artificial neural networks, machine learning, and deep learning techniques. Electric Power Syst Res 225:109792
Gholami A, Ameri M, Zandi M, Ghoachani RG, Gerashi SJ, Kazem HA, Al-Waeli AH (2023) Impact of harsh weather conditions on solar photovoltaic cell temperature: experimental analysis and thermal-optical modeling. Sol Energy 252:176–194
Adwan I, Milad A, Memon ZA, Widyatmoko I, Ahmat Zanuri N, Memon NA, Yusoff NIM (2021) Asphalt pavement temperature prediction models: a review. Appl Sci 11(9):3794
Cho D, Yoo C, Im J, Cha DH (2020) Comparative assessment of various machine learning-based bias correction methods for numerical weather prediction model forecasts of extreme air temperatures in urban areas. Earth Space Sci 7(4):e2019EA000740
Hou J, Wang Y, Zhou J, Tian Q (2022) Prediction of hourly air temperature based on CNN–LSTM. Geomat Nat Haz Risk 13(1):1962–1986
Yang J, Yu M, Liu Q, Li Y, Duffy DQ, Yang C (2022) A high spatiotemporal resolution framework for urban temperature prediction using IoT data. Comput Geosci 159:104991
Bellido-Jiménez JA, Gualda JE, García-Marín AP (2021) Assessing new intra-daily temperature-based machine learning models to outperform solar radiation predictions in different conditions. Appl Energy 298:117211
Ramírez AF, Valencia CF, Cabrales S, Ramírez CG (2021) Simulation of photovoltaic power generation using copula autoregressive models for solar irradiance and air temperature time series. Renew Energy 175:44–67
Ferreira PM, Faria EA, Ruano AE (2002) Neural network models in greenhouse air temperature prediction. Neurocomputing 43(1–4):51–75
Fister D, Pérez-Aracil J, Peláez-Rodríguez C, Del Ser J, Salcedo-Sanz S (2023) Accurate long-term air temperature prediction with Machine Learning models and data reduction techniques. Appl Soft Comput 136:110118
Sheik MS, Kakati P, Dandotiya D, Ramesh CS (2022) A comprehensive review on various cooling techniques to decrease an operating temperature of solar photovoltaic panels. Energy Nexus 8:100161
Shoaib M, Khan SY, Ahmed N, Mahmood M, Waqas A, Qaisrani MA, Shehzad N (2022) Thermal management of solar photovoltaic module by using drilled cylindrical rods integrated with phase change materials. J Energy Storage 52:104956
Bouaichi A, El Amrani A, Ouhadou M, Lfakir A, Messaoudi C (2020) In-situ performance and degradation of three different photovoltaic module technologies installed in arid climate of Morocco. Energy 190:116368
Yolcan OO, Kose R (2023) Photovoltaic module cell temperature estimation: developing a novel expression. Sol Energy 249:1–11
Ebhota WS, Tabakov PY (2023) Influence of photovoltaic cell technologies and elevated temperature on photovoltaic system performance. Ain Shams Eng J 14(7):101984
Ndwali PK, Kusakana K, Numbi PB, Liu S, Sun W, Cai J (2022) A review of multistage solar driven photovoltaic–thermal components with cascade energy storage system for tri-generation. Energy Rep 8:14–20
Alduailij M, Petri I, Rana O, Alduailij M, Aldawood AS (2020) Forecasting peak energy demand for smart buildings. J Supercomput 77(6):6356–6380. https://doi.org/10.1007/s11227-020-03540-3
Khala M, Abouzid H, Teidj S, Eloutassi O, Messaoudi C (2022) LSTM Deep Learning Method for Radiation Short and Long-Term Prediction. In the Proceedings of the International Conference on Smart City Applications. Springer International Publishing, Cham, pp 676–696
Bhowmik M, Muthukumar P, Anandalakshmi R (2019) Experimental based multilayer perceptron approach for prediction of evacuated solar collector performance in humid subtropical regions. Renew Energy 143:1566–1580
Emanuel RHK, Docherty P, Lunt H, Möller K (2023) The effect of activation functions on accuracy, convergence speed, and misclassification confidence in CNN text classification: a comprehensive exploration. J Supercomput. https://doi.org/10.1007/s11227-023-05441-7
Kiranyaz S, Avci O, Abdeljaber O, Ince T, Gabbouj M, Inman DJ (2021) 1D convolutional neural networks and applications: a survey. Mech Syst Signal Process 151:107398
Ayodeji A, Wang Z, Wang W, Qin W, Yang C, Xu S, Liu X (2022) Causal augmented ConvNet: a temporal memory dilated convolution model for long-sequence time series prediction. ISA Trans 123:200–217
Jang B, Kim M, Harerimana G, Kang SU, Kim JW (2020) Bi-LSTM model to increase accuracy in text classification: combining Word2vec CNN and attention mechanism. Appl Sci 10(17):5841
Qadeer K, Ahmad A, Naquash A, Qyyum MA, Majeed K, Zhou Z, Lee M (2022) Neural network-inspired performance enhancement of synthetic natural gas liquefaction plant with different minimum approach temperatures. Fuel 308:121858
Jaihuni M, Basak JK, Khan F, Okyere FG, Sihalath T, Bhujel A, Kim HT (2022) A novel recurrent neural network approach in forecasting short term solar irradiance. ISA Trans 121:63–74
Young T, Hazarika D, Poria S, Cambria E (2018) Recent trends in deep learning based natural language processing. IEEE Comput Intell Mag 13(3):55–75
Hochreiter S, Schmidhuber J (1997) Long short-term memory. Neural Comput 9(8):1735–1780
Jeong H (2023) Predicting the output of solar photovoltaic panels in the absence of weather data using only the power output of the neighbouring sites. Sensors 23(7):3399
Kingma DP, Ba J (2014) Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980
Ruder S (2016) An overview of gradient descent optimization algorithms. arXiv preprint arXiv:1609.04747
Sonoda S, Murata N (2017) Neural network with unbounded activation functions is universal approximator. Appl Comput Harmon Anal 43(2):233–268
Herrera LJ, Pomares H, Rojas I, Guillén A, Prieto A, Valenzuela O (2007) Recursive prediction for long term time series forecasting using advanced models. Neurocomputing 70(16–18):2870–2880
Ji Y, Hao J, Reyhani N, Lendasse A (2005) Direct and recursive prediction of time series using mutual information selection. In Computational Intelligence and Bioinspired Systems: 8th International Work-Conference on Artificial Neural Networks, IWANN 2005, Vilanova i la Geltrú, Barcelona, Spain, June 8–10, 2005. Proceedings 8. Springer Berlin Heidelberg, pp 1010–1017
Nematchoua MK, Orosa JA, Afaifia M (2022) Prediction of daily global solar radiation and air temperature using six machine learning algorithms; a case of 27 European countries. Eco Inform 69:101643
Zhang Y, Wang Y (2023) Machine learning applications for multi-source data of edible crops: a review of current trends and future prospects. Food Chem: X 19:100860
Chia YY, Lee LH, Shafiabady N, Isa D (2015) A load predictive energy management system for supercapacitor-battery hybrid energy storage system in solar application using the Support Vector Machine. Appl Energy 137:588–602
Mukilan P, Balasubramanian M, Narayanamoorthi R, Supraja P, Velan C (2023) Integrated solar PV and piezoelectric based torched fly ash tiles for smart building applications with machine learning forecasting. Sol Energy 258:404–417
Katoch S, Singh V, Tiwary US (2022) Indian Sign Language recognition system using SURF with SVM and CNN. Array 14:100141
Benkercha R, Moulahoum S (2018) Fault detection and diagnosis based on C4. 5 decision tree algorithm for grid connected PV system. Sol Energy 173:610–634
Jackins V, Vimal S, Kaliappan M, Lee MY (2020) AI-based smart prediction of clinical disease using random forest classifier and Naive Bayes. J Supercomput 77(5):5198–5219. https://doi.org/10.1007/s11227-020-03481-x
Tóth J, Ovseník Ľ, Turán J, Michaeli L, Márton M (2018) Classification prediction analysis of RSSI parameter in hard switching process for FSO/RF systems. Measurement 116:602–610
Lan C, Song B, Zhang L, Fu L, Guo X, Sun C (2022) State prediction of hydro-turbine based on WOA-RF-Adaboost. Energy Rep 8:13129–13137
Hatano T, Tsuneda T, Suzuki Y, Imade K, Shesimo K, Yamane S (2021) GBDT modeling of deep reinforcement learning agents using distillation. In 2021 IEEE International Conference on Mechatronics (ICM). IEEE, pp 1–6
Guo W, Wang G, Wang C, Wang Y (2023) Distribution network topology identification based on gradient boosting decision tree and attribute weighted naive Bayes. Energy Rep 9:727–736
Shokrzade A, Ramezani M, Tab FA, Mohammad MA (2021) A novel extreme learning machine based kNN classification method for dealing with big data. Expert Syst Appl 183:115293
Wang H, Xu P, Zhao J (2022) Improved KNN algorithms of spherical regions based on clustering and region division. Alex Eng J 61(5):3571–3585
Anaconda. https://www.anaconda.com/download. Last access: 2023-11-14
Santiago I, Trillo-Montero D, Moreno-Garcia IM, Pallarés-López V, Luna-Rodríguez JJ (2018) Modeling of photovoltaic cell temperature losses: a review and a practice case in South Spain. Renew Sustain Energy Rev 90:70–89
Singh R, Banerjee R (2015) Estimation of rooftop solar photovoltaic potential of a city. Sol Energy 115:589–602
Figgis B, Abdallah A (2019) Investigation of PV yield differences in a desert climate. Sol Energy 194:136–140
Yasar H, Ceylan M (2021) Deep Learning–Based Approaches to Improve Classification Parameters for Diagnosing COVID-19 from CT Images. Cognitive Computation, pp 1–28
Zhang GP (2003) Time series forecasting using a hybrid ARIMA and neural network model. Neurocomputing 50:159–175
Cifuentes J, Marulanda G, Bello A, Reneses J (2020) Air temperature forecasting using machine learning techniques: a review. Energies 13(16):4215
Burke M, Hsiang SM, Miguel E (2015) Global non-linear effect of temperature on economic production. Nature 527(7577):235–239. https://doi.org/10.1038/nature15725
Roy DS (2020) Forecasting the air temperature at a weather station using deep neural networks. Procedia Comput Sci 178:38–46. https://doi.org/10.1016/J.PROCS.2020.11.005
Yu X, Shi S, Xu L (2021) A spatial–temporal graph attention network approach for air temperature forecasting. Appl Soft Comput 113:107888. https://doi.org/10.1016/J.ASOC.2021.107888
Khala M, El Yanboiy N, Elabbassi I, Eloutassi O, Halimi M, El Hassouani Y, Messaoudi C (2024) AI-based forecasting of hourly air temperature in sub-saharan areas of Morocco. Stud Comput Intell 1165:309–319. https://doi.org/10.1007/978-3-031-70102-3_22
Rakhee, Hoda MN, Bansal S (2024) Seasonal temperature forecasting using genetically tuned artificial neural network. Int J Inf Technol (Singapore). 16:315–319. https://doi.org/10.1007/S41870-023-01544-9/METRICS
Bai X, Zhang L, Feng Y, Yan H, Mi Q (2025) Multivariate temperature prediction model based on CNN-BiLSTM and RandomForest. J Supercomput 81:1–29. https://doi.org/10.1007/S11227-024-06689-3/METRICS
Funding
This research did not receive any specific grant from funding agencies in the public, commercial, or not-for-profit sectors.
Author information
Authors and Affiliations
Contributions
MK was involved in conceptualization and methodology, writing the original draft; MH, NE, and IE contributed to conceptualization and writing—review and editing; MK and YE analyzed conceptualization and performed formal analysis. CM was involved in data curation and visualization. OE contributed to validation, writing—review and editing, and supervision.
Corresponding author
Ethics declarations
Conflict of interest
The authors declare no competing interests.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Khala, M., El Yanboiy, N., Elabbassi, I. et al. Enhancing machine learning model for early warning in PV plants: air temperature prediction informed by power temperature coefficient. J Supercomput 81, 394 (2025). https://doi.org/10.1007/s11227-024-06909-w
Accepted:
Published:
DOI: https://doi.org/10.1007/s11227-024-06909-w