Impacts of Artificial Neural Network Training Algorithms on the Accuracy of PV System Voltage and Current Predictions
Article Main Content
This study highlights the importance of selecting the appropriate Artificial Neural Network (ANN) training algorithm-based accuracy of prediction capacities in photovoltaic (PV) systems. Accurate PV system performance prediction, particularly output voltage and current, is essential for optimising energy generation and ensuring grid stability. This study evaluates the impact of three ANN training algorithms Levenberg-Marquardt (LM), Bayesian Regularization (BR), and Scaled Conjugate Gradient (SCG) on the prediction of PV voltage and current. The algorithms were tested using solar radiation and temperature as inputs, to determine their effectiveness in handling varying datasets. Therefore, the results indicate that the Levenberg-Marquardt algorithm outperforms the others in terms of speed, memory efficiency, and accuracy, achieving the lowest mean square error (MSE) of 0.0957 and the highest regression value (R= 0.999946). Bayesian Regularization demonstrated strong generalization capabilities with an MSE of 0.1436. The Scaled Conjugate Gradient algorithm performed well but had a slightly higher MSE of 0.1729. besides, Error histograms for all algorithms showed minimal deviations, confirming their predictive accuracy. The findings provide valuable insights for enhancing the accuracy and efficiency of PV system modelling and forecasting, contributing to the advancement of renewable energy integration.
Introduction
Development is fundamentally dependent on energy production, consumption, and storage. Currently, fossil fuels serve as the main source of energy for development; however, their use negatively impacts both climate and air quality. As populations grow and demand for energy increases, the combustion of fossil fuels accelerates further environmental harm. Therefore, since fossil fuels are finite resources that cannot sustain long-term growth, it is crucial to explore alternative energy solutions [1].
Solar energy stands out as a more sustainable option compared to another alternative energy systems. The sun provides an abundant and reliable source of power with significant potential for meeting our future energy needs. To effectively harness this potential, accurate solar radiation data is essential for predicting solar energy availability [2].
Photovoltaic systems convert solar energy into electrical power and are environmentally friendly, easy to install, and have a low carbon footprint. Energy generation from PV systems is influenced by various environmental and operational factors, making accurate predictions crucial for grid stability [3].
Traditional manual prediction methods can be rather fast and disposed to errors. In contrast, the machine learning algorithms boost the solar energy prediction by analysing large data basis, improving accuracy through the identification of complex relationships and adaptability to changing conditions. These algorithms offer scalability and efficiency in predicting solar energy output [4]. Therefore, this study will analyse how different machine learning algorithms impact the voltage and current development of PV systems directly affecting power generation.
This study analysed and compared various training algorithms of a neural network model to identify the most effective one for predicting voltage and current in photovoltaic systems, ultimately providing recommendations based on performance metrics.
Artificial Neural Network modelling involves choosing input variables and designing the network architecture. ANNs model nonlinear relationships between external variables [5]. The structure includes input, hidden, and output layers that process data. Learning algorithms fine-tune the parameters of the ANN to minimise prediction errors [6].
The study found that the Support Vector Machine Regression (SVMR) model outperformed others, achieving a MSE of 0.038, a mean absolute error (MAE) of 0.17, and an R2 value of 0.99. It emphasized the significant influence of environmental factors, as solar radiation, ambient air temperature, and relative air humidity on the power of photovoltaic modules. These findings indicate that the SVMR model is reliable for predicting solar PV system output power, crucial for optimizing performance and economic viability in solar power plants [7].
The evaluation included 24 unique machine learning (ML) algorithms for the intent of forecasting photovoltaic power generation one day ahead, based on a dataset that lasted two years from 16 PV facilities found in Hungary [8]. According to this assessment the top models, kernel ridge regression and multilayer perceptron achieved forecast skill scores up to 44.6% better than the insistence model. Forecasts based on daily average irradiance and sun position angles had only a 1.5% higher Root-Mean-Squared Error (RMSE) than the best scenario, highlighting ML’s potential in PV forecasting [8]. Additionally, a hybrid model combining ANNs with multiverse optimization (MVO) and genetic algorithms (GA) was explored to enhance predictions of PV output power, efficiency, and cell temperature. This research underscored the significant impact of environmental factors ambient temperature, wind speed, and solar irradiance on PV performance; notably, maximum efficiency occurs at 0°C due to temperature sensitivity [9].
On the other hand, the three photovoltaic power forecasting models: a convolutional neural network (CNN), a long short-term memory neural network (LSTM), and a hybrid model demonstrated higher accuracy than the individual models. Evaluation using RMSE, MAE, and MAPE shows that while CNN generally performs best, however, LSTM excels in specific cases [10]. Additionally, an RNN outperformed classical ANN in solar radiation prediction by achieving a 47% improvement in Normalized Mean Bias Error (NMBE) and a 26% improvement in Root-Mean-Squared Error [11]. A comparative analysis of machine learning models Bayesian Neural Network (BNN), Support Vector Regression (SVR), and Regression Tree revealed that BNN achieved the highest forecasting accuracy with an RMSE of 6.95% and MAPE of 6.07% for day-ahead PV power forecasting [12].
Therefore, reliable forecasting is essential for integrating photovoltaics into power grids, as solar energy’s variability due to weather can lead to voltage surges and system instability. The study highlights the importance of improved weather classification techniques for more accurate PV power forecasts, suggesting that separate models for different conditions may yield better results [13].
Lastly, this study examines the output voltage and current of PV systems by employing Levenberg-Marquardt, Bayesian Regularization, and Scaled Conjugate Gradient neural network training algorithms.
Fig. 1 presents the ANN employed in the recent study predicting the voltage and current of the photovoltaic system. This diagram depicts the structure of the neural network, including its input, hidden, and output layers, which work together to process data effectively for accurate predictions. Most PV power prediction studies use neural networks with 10 hidden layers. This study employed a neural network that takes solar radiation (G) and temperature (T) as input parameters, while voltage (V) and current (I) serve as output parameters.
Fig. 1. The layer structure of the Artificial Neural Network.
In this investigation the load of the solar system was a resistor. The hidden layer of the neural network contained 10 neurons with a hyperbolic transfer function, while linear transfer functions were used for the outputs.
In this study three training algorithms were applied to predict the voltage and current of the PV system, as Levenberg-Marquardt, Bayesian Regularization, and Scaled Conjugate Gradient. These algorithms were selected based on their strong predictive capabilities and their widespread application in power prediction for photovoltaic systems. Each algorithm offers unique advantages that enhance the accuracy of predictions, making them suitable choices for this research.
Levenberg-Marquardt Algorithm
The Levenberg–Marquardt method is a mathematical technique used to find optimal solutions, like to finding the best route on a map. It iteratively adjusts results for accuracy, making it useful for fitting models to data, such as predicting solar panel energy output [14]. This powerful tool effectively solves complex nonlinear equations and stabilizes solutions across various fields like engineering, physics, and data analysis [15].
Bayesian Regularization Algorithm
The purpose of Bayesian Regularization is to enhance the performance of artificial neural networks by preventing overfitting, where a model becomes too tailored to train data and struggles with new data. It adds a penalty term for large weights in the objective function, encouraging simpler models that improve generalisation [16].
Scaled Conjugate Gradient Algorithm
The Scaled Conjugate Gradient method is an optimisation technique that efficiently finds the best solution. Like finding the fastest map route, SCG navigates through data to identify optimal paths [17].
Result and Discussion
In this study, a 10 W photovoltaic module was selected to conduct experiments. Using LabVIEW software, we recorded data on voltage and current generated by the PV module. The experimental setup included a resistor to load the system, myDAQ for data acquisition, connecting wires for circuit assembly, and a computer to run the LabVIEW program and analyse the collected data. This configuration allowed us to effectively monitor and evaluate the performance of the PV module under controlled conditions. Additionally, the measurement data was collected in Gödöllő City, located in the central region of Hungary.
In artificial neural networks, regression analysis is essential for predicting continuous outcomes based on input data. Error histograms visually represent the distribution of predicted errors, helping to assess model performance. Totally, 22 data pairs were used for the prediction analysis in this study.
Fig. 2, depicts the regression values of the Levenberg-Marquardt training algorithm for predicting voltage and current in the PV system, achieving high accuracy with an overall R-value of 0.999946.
Fig. 2. Regression values of Levenberg Marquardt training algorithm.
Fig. 3, presents the error histogram for the Levenberg-Marquardt training algorithm. According to the result, the histogram reveals that errors are predominantly centred around the zero-error line, indicating that most predictions closely align with actual values. This distribution suggests high accuracy in the model’s performance, as minimal deviation from true outcomes reflects the algorithm’s effective learning and generalisation capabilities.
Fig. 3. Error histogram of Levenberg Marquardt training algorithm.
The lack of a visible validation step in Bayesian Regularization is attributed to its automatic mechanisms for managing overfitting and ensuring generalisation. This makes it particularly effective for noisy or small datasets. Consequently, Fig. 4, shows the regression values of this algorithm, demonstrating its strong predictive capabilities for output voltage and current.
Fig. 4. Regression values of Bayesian regularization training algorithm.
Besides, Fig. 5, displays the error histogram for the Bayesian Regularization training algorithm, showing that prediction errors are predominantly close to zero. This indicates high accuracy in the model’s predictions.
Fig. 5. Error histogram of Bayesian regularization training algorithm.
Fig. 6 illustrates the regression values of the Scaled Conjugate Gradient algorithm used to be predicted the output voltage and current of the PV system, resulting in accurate estimations.
Fig. 6. Regression values of Scale conjugate gradient training algorithm.
Similarly, Fig. 7 presents the error histogram in case the use of Scaled Conjugate Gradient training algorithm, revealing that prediction errors are mostly near zero, indicating high accuracy in the model’s predictions.
Fig. 7. Error histogram of scale conjugate gradient training algorithm.
Comparison of the Selected Training Algorithm
The comparison of the selected training algorithms Levenberg-Marquardt, Bayesian Regularization, and Scaled Conjugate Gradient focuses on their performance in training artificial neural networks. Each algorithm has unique strengths that make it appropriate for different scenarios in neural network training.
Table I, compares the Levenberg-Marquardt, Bayesian Regularization, and Scaled Conjugate Gradient methods. The Levenberg-Marquardt algorithm stands out for its superior speed, memory efficiency, and accuracy in training artificial neural networks. This makes it a preferred choice for many applications requiring optimal performance.
Algorithm | Speed | Efficiency | Accuracy | Best use case |
---|---|---|---|---|
LM | Fast | High | High | Small to medium datasets |
BR | Moderate | Moderate | Very high | Small, noisy datasets |
SCG | Moderate | High | Moderate | Moderate to large datasets |
Similarly, Table II, shows the mean square error for Levenberg-Marquardt is the lowest, indicating that this algorithm outperforms Bayesian Regularization and Scaled Conjugate Gradient in predicting voltage and current.
Algorithm | Activity | Mean square error |
---|---|---|
Levenberg-Marquardt | Training | 0.0957 |
Bayesian regularization | Training | 0.1436 |
Scaled conjugate gradient | Training | 0.1729 |
Conclusion
This study evaluated the performance of three Artificial Neural Network training algorithms Levenberg-Marquardt, Bayesian Regularization, and Scaled Conjugate Gradient in predicting voltage and current in photovoltaic systems.
The findings revealed that LM is the most effective for small to medium datasets, achieving the fastest convergence with a mean square error of 0.0957, indicating high accuracy. Bayesian Regularization demonstrated strong predictive capabilities with an MSE of 0.1436 but was slightly slower than LM. Scaled Conjugate Gradient offered good memory efficiency and fast convergence but had a higher MSE of 0.1729.
Error histograms showed that predictions from all algorithms were centred around zero, confirming their accuracy; however, LM consistently provided the best overall performance for PV voltage and current predictions.
References
-
Zazoum B. Solar photovoltaic power prediction using different machine learning methods. Energy Rep. 2022;8:19–25. doi: 10.1016/j.egyr.2021.11.183.
Google Scholar
1
-
Ümit A. Prediction of daily global solar radiation using different machine learning algorithms. Eval Comp. 2021;135(July 2020):1–14. doi:10.1016/j.rser.2020.110114.
Google Scholar
2
-
Ibrahim S, Younis F, Sharizal M, Aziz A, Yee C, Al-khatib LA. Evaluating the performance of the Anwaralardh photovoltaic power generation plant in Jordan: comparative analysis using artificial neural networks and multiple linear regression modelling. Int J Ren Energy Dev. 2024;13(4):608–17.
Google Scholar
3
-
Ledmaoui Y, El A, El M, Saadane R, Chebak A, Chehri A. Forecasting solar energy production: a comparative study of machine learning algorithms. Energy Rep. 2023;10:1004–12. doi: 10.1016/j.egyr.2023.07.042.
Google Scholar
4
-
Gutiérrez L, Patiño J. A comparison of the performance of supervised learning algorithms for solar power prediction. Energies. 2021;14(15):1–16.
Google Scholar
5
-
Al-dahidi S, Ayadi O, Adeeb J, Louzazni M. Assessment of artificial neural networks learning algorithms and training datasets for solar photovoltaic power production prediction. Front Energy Res. 2019 Nov15;1–18. doi: 10.3389/fenrg.2019.00130.
Google Scholar
6
-
Kumar A, Aruna M, Elumalai PV. Case studies in thermal engineering advancing solar PV panel power prediction: a comparative machine learning approach in fluctuating environmental conditions. Case Stud Therm Eng. 2024;59(January):104459. doi: 10.1016/j.csite.2024.104459.
Google Scholar
7
-
Markovics D, Martin J. Comparison of machine learning methods for photovoltaic power forecasting based on numerical weather prediction. Ren Sust Energy Rev. 2022;161(December 2021):1–17. doi:10.1016/j.rser.2022.112364.
Google Scholar
8
-
Talaat M, Said T, Essa MA, Hatata AY. International journal of electrical power and energy systems integrated MFFNN-MVO approach for PV solar power forecasting considering thermal effects and environmental conditions. Int J Electr Power Energy Syst. 2022;135(May 2021):107570. doi: 10.1016/j.ijepes.2021.107570.
Google Scholar
9
-
Wang K, Qi X, Liu H. A comparison of day-ahead photovoltaic power forecasting models based on deep learning neural network. Appl Energy. 2019;251(May):113315. doi: 10.1016/j.apenergy.2019.113315.
Google Scholar
10
-
Pang Z, Niu F, Neill ZO. Solar radiation prediction using recurrent neural network and artificial neural network: a case study with comparisons. Renew Energy. 2020;156:279–89. doi: 10.1016/j.renene.2020.04.042.
Google Scholar
11
-
Theocharides S, Theristis M, Makrides G, Kynigos M, Spanias C, Georghiou GE. Comparative analysis of machine learning models for day ahead photovoltaic power production forecasting. Energies. 2021;14:1081. doi: 10.3390/en14041081.
Google Scholar
12
-
Ahmed R, Sreeram V, Mishra Y, Arif MD. A review and evaluation of the state-of-the-art in PV solar power forecasting: techniques and optimization. Res Sust Energy Rev. 2020;124(February):1–26. doi: 10.1016/j.rser.2020.109792.
Google Scholar
13
-
Rahman S, Hannan MA, Khatun M, Tan W, Sajedur K, Pasupuleti J, et al. Levenberg-Marquardt algorithm-based solar PV energy integrated internet of home energy management system. Appl Energy. 2025;378(PA):124407. doi: 10.1016/j.apenergy.2024.124407.
Google Scholar
14
-
Fischer A, Izmailov AF, Solodov MV. The Levenberg–Marquardt method: an overview of modern convergence theories and more. Comput Optim Appl. 2024;89(1):33–67. doi: 10.1007/s10589-024-00589-1.
Google Scholar
15
-
Alghamdi H, Maduabuchi C, Okoli K, Albaker A, Alobaid M, Alghassab M, et al. Case studies in thermal engineering Bayesian neural networks for solar power forecasts inadvanced thermoelectric systems. Case Stud Therm Eng. 2024;61(August):104940. doi: 10.1016/j.csite.2024.104940.
Google Scholar
16
-
Uwimana E, Zhou Y, Mareme N. A short-term load demand forecasting: levenberg–Marquardt (LM), Bayesian regularization (BR), and scaled conjugate gradient (SCG) optimization algorithm analysis. J Supercomput. 2025;81(55):1–30. doi: 10.1007/s11227-024-06513-y.
Google Scholar
17
Most read articles by the same author(s)
-
QuanKun Zhu,
Istvan Farkas,
Janos Buzas,
Influencing Factors Used for Performance Evaluation of Solar Dryers , European Journal of Energy Research: Vol. 4 No. 3 (2024) -
Ahmed M. Ajeena,
Piroska Víg,
Istvan Farkas,
Anti-Reflection and Self-Cleaning Nanocoating to Improve the Performance of Flat Plate Solar Collector , European Journal of Energy Research: Vol. 2 No. 1 (2022) -
Gedion Habtay,
Maytham A. Al-Neama,
Janos Buzas,
Istvan Farkas,
Experimental Performance of Solar Air Heaters for Drying Applications , European Journal of Energy Research: Vol. 1 No. 5 (2021) -
Maytham H. Machi,
Istvan Farkas,
János Buzás,
Modelling thePerformanceof DoublePassSolar Air Collectors , European Journal of Energy Research: Vol. 5 No. 1 (2025) -
Ahssan M. A. Alshibil,
Piroska Víg,
István Farkas,
Performance Evaluation of a Hybrid Solar Collector in Two Different Climates , European Journal of Energy Research: Vol. 1 No. 2 (2021) -
Diki I. Permana,
Dani Rusirawan,
Istvan Farkas,
Preliminary Design of Organic Rankine Cycle using Solar Thermal in Hungary , European Journal of Energy Research: Vol. 2 No. 3 (2022) -
Negash Teklebrhan,
Istvan Seres,
Istvan Farkas,
Energetic Complementarity Solar PV and Wind Power Based on Satellite Data , European Journal of Energy Research: Vol. 3 No. 4 (2023)