You are currently viewing a new version of our website. To view the old version click .
Algorithms
  • Article
  • Open Access

24 September 2025

Optimal Parameter Estimation for Solar PV Panel Based on ANN and Adaptive Particle Swarm Optimization

,
,
,
,
,
and
1
Department of Computer Science, Hong Kong Chu Hai College, Hong Kong, China
2
Department of Electrical Engineering, City University of Hong Kong, Hong Kong, China
3
Department of Mathematics and Information Technology, The Education University of Hong Kong, Hong Kong, China
*
Author to whom correspondence should be addressed.
This article belongs to the Section Combinatorial Optimization, Graph, and Network Algorithms

Abstract

Parameter estimation for solar photovoltaic panels is a popular research topic in green energy. Model parameters can be used for fault diagnosis in solar panels. Artificial neural network (ANN) approaches have been developed to estimate the model parameters of solar panels. In this study, an ANN and Adaptive Particle Swarm Optimization (APSO) approach for model parameter estimation of solar panel is proposed. Load perturbation is injected at the output of the solar PV panel, and the load voltage and current time series are measured. The current and voltage vectors are used as inputs for an ANN, which is used as a classifier for the ranges of the model parameters. The population of the APSO is initialized according to the results of the ANN classifier, and the APSO algorithm is then used to estimate the model parameters of the PV panel. Simulations and experimental studies show that the proposed method has better performance than conventional PSO, and it requires a smaller number of generations to achieve an average parameter estimation error of less than 5%.

1. Introduction

Solar photovoltaic panels are popular green energy sources, and ensuring maximum power operation of PV panels is very important in practice []. Model parameter estimation [], health monitoring, and fault diagnosis [] in PV panels are also popular research topics in green energy. There are many research works published in the area of PV panel model parameter estimation. PV panel model parameter estimation methods have been developed using evolutionary algorithms [], artificial neural networks (ANNs) [], and deep learning approaches []. Past research work was conducted on PV system modeling using an ANN to size a stand-alone PV (SAPV) system []. In [], a Radial Basis Function network was used for prediction of solar radiation based on sunshine duration and air temperature. An adaptive ANN was proposed for modeling and sizing an SAPV system under changing climate conditions [].
ANN methods have been proposed for PV output power prediction based on solar radiation measurements []. A 24 h ahead PV generating power forecasting method using an ANN was proposed in []. An ANN method of solar panel output power prediction based on temperature and irradiance was proposed in []. By using the hourly solar radiation intensity, temperature, and hourly PV output power as inputs for an ANN, 24 h ahead PV power output could be predicted by a well-trained ANN []. In [], an ANN method with irradiances and temperature as input was proposed to predict solar panel output power. The weight of the ANN in [] was updated by the Levenberg–Marquardt optimization method. Based on temperature, solar radiation, and past solar panel output data, a deep learning ANN [] was proposed for the deterministic and probabilistic forecasting of 24 h ahead PV output power. Furthermore, a deep convolution neural network was proposed [] for deterministic and probabilistic forecasting of PV output power. Experimental evaluation of the ANN modeling method for a PV thermal system was reported in []. An ANN approach can be applied for PV panel operating current prediction. By using a Generalized Regression Neural Network (GRNN) with radiation, cell temperature, and voltage as inputs, the PV panel operating current could be predicted by a GRNN model []. Based on solar radiation and operating voltage [], a radial basis neural network was proposed for output current and power prediction.
The PV panel diode circuit model has been used for simulations and the prediction of output current and voltage (IV) characteristics under specific operating conditions. The PV circuit model is composed of an irradiance-dependent current source, a diode, and shunt and series resistances. An ANN modeling method [] with temperature and irradiance as inputs for solar cell modeling was proposed to estimate solar panel circuit model parameters. These circuit model parameters could be estimated by the IV curve analytical method [] or by ANN and Adaptive Neural Fuzzy Inference System modeling methods []. In [], a non-linear cost function was formulated based on the output current, voltage, and solar panel parameters. A Generalized Hopfield Neural Network was then used to estimate the PV panel model parameters. Based on the variations in the PV panel model parameters, the maximum power point (MPPT) could be estimated for different environmental conditions. According to the experimental results of PV panels’ outdoor measurements and manufacturers’ datasheets, a non-linear curve fitting algorithm was proposed [] to estimate PV panel model parameters. By observing the output current and voltage of a PV panel after injecting external load perturbations, an ANN with a Numerical Current Prediction was proposed for PV panel model parameter estimation []. The proposed method in [] can reduce the estimation error to about 6%.
Particle Swarm Optimization [] is an important development in swarm intelligence, which has been proved to be very useful in the optimization of complex problems. There is past research in developing modified approaches to enhance the effectiveness of PSO [,]. An adaptive Particle Swarm Optimization (APSO) method was proposed in []; the population distribution and the particles’ fitness were evaluated in each step to estimate the evolutionary state to control the inertia weight and other PSO parameters. An adaptive mutation mechanism and dynamic inertia weight were also proposed [,] to enhance the efficiency of the conventional PSO method. In [], the inertia weight of PSO was adjusted adaptively during the searching process. An adaptive multi-objective PSO algorithm was proposed in [], which was based on multiple adaptive methods. In [], a PSO with a state-based adaptive velocity limit strategy was proposed, and the velocity limit was adaptively adjusted based on the evolutionary state estimation. Furthermore, an APSO method based on competitive and balanced learning strategy was proposed in []. Past research work has been conducted in applying PSO in model parameter estimation, MPPT tracking and fault diagnosis of PV panels. A hybrid evolutionary optimization and ANN algorithm [] was presented to forecast the PV panel output energy. In [], a new method using hybrid PSO and simulated annealing was proposed to estimate solar cell parameters by using experimentally measured IV data. In [], the genetic algorithm was used to estimate the PV panel model parameters by curve fitting the estimated parameters, such as short circuit current, open circuit voltage, maximum voltage, current and power, with the actual measured data. In [], a flexible PSO algorithm was proposed to estimate PV panel model parameters.
In [], the solar panel model parameters were estimated by Hybrid Particle Swarm and Grey Wolf Optimization Algorithms. The model parameters were estimated by curve fitting the estimated current to the actual measured current. An ANN method was proposed in [] to predict the PV panel output power, and Jaya Sliding Model Control was used to control the PV output power. The Jaya method is used to optimize the voltage and current for maximum PV output power operation. An ANN with temperature and solar radiation as inputs was used to predict the output power, and the sliding mode control method was used to control the duty cycle control of the single-ended primary-inductor converter. In [], the PV model parameter optimization using PSO and Gravitational Search Algorithm was compared with other existing algorithms. A new PV panel model parameter estimation method based on ANN and PSO was proposed in []. A PSO enhancement method was proposed [] to identify the model parameters of the PV panel. This method is based on an opposition-based initialization PSO technique, which can also solve the early convergence problem of PSO. A new MPPT tracking method by using GA-optimized ANN for a solar PV system was proposed in []. The maximum power and the corresponding voltage were predicted by an ANN with insolation and temperature as inputs, and the ANN was optimized offline using the GA technique. In [], a new method was proposed to track the MPPT of a PV system under partial shading conditions through a novel heuristic optimization algorithm and flower pollination algorithm; simulation studies show that the proposed method can track MPPT under partial shading conditions. In [], the MPPT parameters were estimated by PSO and the P&O perturbation method. In [], the PV panel parameters were estimated by PSO, and the results could be used for PV panel fault diagnosis.
In this study, an ANN-APSO approach for PV panel parameter estimation methods is proposed. The ranges of the PV panel parameters are first identified by using an ANN classifier, and an APSO algorithm is used to finetune the PV panel model parameters. Analysis results show that the proposed method can give an average parameter estimation error of 5%, and it can provide a faster convergence speed than a conventional PSO method. The organization of this paper is as follows. The proposed method and APSO are described in Section 2; simulation and experimental studies are provided in Section 3; the discussion is given in Section 4; and a final conclusion is given in Section 5.

2. Solar PV Panel Model and Current Prediction

The PV panel circuit model, the current output prediction method, proposed system structure and the proposed estimation method are described in Section 2.1, Section 2.2, Section 2.3 and Section 2.4.

2.1. PV Panel Circuit Model and Current Prediction

A number of models have been developed for solar PV panels. A single-diode model provides a balance between simplicity and accuracy, which is used for PV system design, energy yield estimation and MPPT tracking. The double-diode model and N-diode models are more accurate models, which can be used for higher-accuracy energy prediction, advanced PV panel simulation to handle partial shading and low-irradiance conditions. Bifacial PV models are used to predict the behavior of bifacial PV modules, which capture light from both the front and rear sides. The PV circuit model with a single diode is one of the most popular models used in PV system research. However, the proposed method in this study aims at studying the dynamic behavior of solar PV panels under load perturbation. The PV circuit model with a single diode, capacitance and shunt and series resistors (Figure 1) is used for studying the dynamic behavior of solar PV panels in this study.
Figure 1. PV panel circuit model.
In Figure 1, Dsh is the p-n junction diode, Csh is the shunt capacitor for the PN junction, Rsh and Rs are shunt resistor and series resistor, and iD is the diode current. Iph is the current source depending on the level of irradiance.
i D v s h = I o e v s h v T 1
where
  • Reverse saturation current—Io
  • Thermal voltage—vT = nid kT/q
  • Ideality factor—nid
  • Elementary charge—q
  • Boltzmann constant—k
  • p-n junction temperature—T
The capacitor current is given by (2), and the output current is given by (3).
i C s h = C s h d v s h d t = I p h i D v s h R s h v v s h R s
The parameters, voltage and current time-series vectors and current prediction error are defined as follows:
  • Parameter vector—P = [Iph Io VT Rsh Csh Rs]
  • Output voltage vector—V = [v[0], v[1], …, v[N]]
  • Output current vector—I = [i[0], i[1], …, i[N]]
  • Capacitor voltage vector—Vsh = [vsh[0],vsh[1], …, vsh[N]]
  • Predicted output current—Ip = [ip[0],ip[1], …, ip[N]]
The current prediction error Ep is given by Equation (3).
E p = 1 N ( I p I ) ( I p I ) T = 1 N k = 1 N i p k i k 2
An external load perturbation is injected into the output of the solar panel. In this study, the output load voltage or current can be fixed by the electronic load at the output of the solar panel. If the output voltage is fixed by the electronic load with a sinusoidal waveform, as shown in Figure 2, the output current is predicted by the parameter vector P, and the current prediction error can be determined. On the other hand, if the output load current is fixed by the electronic load with a sinusoidal waveform, as shown in Figure 2, the output voltage is predicted by the parameter vector, and the voltage prediction error can be determined. Consider the first case with a fixed sinusoidal load voltage; the initial value of iCsh[0] can be estimated in step 1, and the current prediction procedures are summarized in steps 2 to 5.
Figure 2. Simulated v(t) and i(t) curves of PV panel. (a) Outputs with fixed sinusoidal load current. (b) Outputs with fixed sinusoidal load voltage.
Step 1: Solve Equation (4) numerically to find vsh[0] for given iCsh[0] (e.g., iCsh[0] = 0), P and v[0].
i C s h 0 = I p h I o e v s h 0 v T 1 v s h 0 R s h v s h 0 v 0 R s
Step 2: If output voltage v[k] is used as a reference for output current prediction. solve Equations (5) and (6) numerically for given P and V. For k = 0, …, N, perform steps 2–4 to update dvsh[k]/dt and ip[k].
i p k = v s h k v k R s
d v s h k + 1 d t = 1 C s h I p h I o e v s h k v T 1 v s h k R s h i p k
Step 3: Update the vsh[k] using Equation (7)
v s h k + 1 = v s h k + d v s h k + 1 d t Δ t
Step 4: Determine the current prediction error Ep using Equation (3)
Step 5: Go back to step 2 until k = N.
For the second case with fixed sinusoidal load current, the output current will be used as a reference for output voltage prediction. Equation (8) is used to estimate the initial value of vsh[0] for given iCsh[0], P and i[0]. Equations (9) and (10) are used to update the voltage vp[k], vsh[k] and the voltage prediction error Ep.
i C s h 0 = I p h I o e v s h 0 v T 1 v s h 0 R s h i [ 0 ]
d v s h k + 1 d t = 1 C s h I p h i D k = I o e v s h k v T 1 v s h k R s h i k ; v p k = v s h k i k R s
E p = 1 N k = 1 N v p k v k 2

2.2. Proposed System Structure

Figure 3 shows the proposed PV model parameter estimation system. A load perturbation is injected at the output of the PV panel, and the output voltage and current are sampled and measured. The measured current and voltage vectors are used as inputs to the Model Parameter Classifier (MPC). The MPC is an ANN with two hidden layers (No. of input nodes Ni = 100, N1 = 200, N2 = 100, No. of output nodes No = 6), which was trained to estimate the range of the model parameters based on the current and voltage vectors. The MPC is designed to approximate the mapping R = φ(P) between the current–voltage input vectors (V = [v[0], …, v[49]], I = [i[0], …, i[49]]) and the range index vector R = [γ1 γ2 γ3 γ4 γ5 γ6] of the model parameters P = [Iph Io VT Rsh Csh Rs], where γi is the index value for pi, γi ∈ {1,2…Nr} and (γi − 1)Δpi/Nr ≤ pi ≤ γi Δpi/Nr, Δpi = pimax − pimin. The values pimax and pimin are the maximum and minimum values of the ith parameter, and Nr is the number of partitions (5 ≤ Nr ≤ 10) for γi.
Figure 3. Proposed PV model parameter estimation system.
Since R = [γ1 γ2 γ3 γ4 γ5 γ6] and γi ∈ {1,2…Nr}, there will be a total number of (Nr)6 combinations or patterns in the set of R. Each index vector R encodes the model parameter P = [Iph Io VT Rsh Csh Rs] = [p1 p2 p3 p4 p5 p6] as a label from which we can identify the range γi of each parameter value pi. The MPC functions as a classifier to identify the label R according to the IV pattern. For training the MPC, a training dataset {I,V,R} is generated by the simulated models with each model parameter pi fluctuating within the minimum pimin and maximum pimax design values. The parameter range index (γi) of the model parameter pi is determined by γI = trunc{[pi − pimin]/[pimax − pimin]Nr} and the range vector Ri = [γ1 γ2 γ3 γ4 γ5 γ6] can be formed. The load voltage V and current I vectors are generated by a PV simulated model. The dc offset and amplitude of the sinusoidal load voltage or load current are chosen to ensure that the variation in output voltage and current is positive and within the practical limits (Vmax ≥ V ≥ 0 and Imax ≥ I ≥ 0, 0–3 A, 0–80 V), as shown in Figure 4. The IV curves are generated for different model parameter vectors, and Figure 4 shows the fluctuating region of the generated IV curves. The generated IV dataset is separated into two parts, in which 80% is used as the ANN training dataset and 20% is used as the testing set. The training algorithms for MPC are implemented by using Python (Library used: numpy 1.23.4, pytorch 1.8.2, pyswarms 1.3.0). The MPC is used to estimate the model parameter range vector R based on the IV input vectors {I, V}. The population for APSO algorithms is then initialized according to the results of MPC (i.e., pi is chosen randomly within the range γii − 1)Δpi/Nr ≤ pi ≤ γi Δpi/Nr, Δpi = pimax − pimin). The APSO algorithm is used as a model parameter estimator in Figure 3 to estimate the optimal PV panel model parameter P*. Furthermore, the voltage for the maximum power point (MPPT) can also be estimated based on the estimated PV panel model parameter P* (Appendix A).
Figure 4. Example of PV panel V-I curve; variations in VI curve for variations in P.

2.3. Adaptive Particle Swarm Optimization

Adaptive Particle Swarm Optimization (APSO) was proposed in []. The parameter (e.g., mean distance for particles) of the population distribution is evaluated every generation, and an evolutionary factor is found. Based on the evolution factor, an evolutionary state estimation algorithm is used to identify the evolution state of the population. The evolutionary state includes exploration, exploitation, convergence and jumping out. The APSO enables adaptive control of the inertia weight, acceleration coefficients and other algorithmic parameters at each generation, and this control method can improve the search efficiency and convergence speed. When the population is in a converegce state, APSO will activiate an elist learning strategy to allow the global best particle jumping out from the current local optimal point to search for a possible new global maximum. The equations for the APSO are as follows.
Xi = [Xi1, Xi2, …, Xik…Xin]
Vi = [Vi1,Vi2, …, Xik…Vin]
Vik(t + 1) = ωVik(t) + C1 r1k (Pik − Xik) + C2 r2k (Pgk − Xik)
Xik(t + 1) = Xik(t) + Vik(t + 1), i = 1…Np
Φ x i = 1 N j = 1 N e j 2 = 1 N j = 1 N I p j I j 2
where
  • Particle position—Xi = [Iph(i) Io(i) VTi(i) Rsh(i) Csh(i) Rs(i)]
  • Particle velocity and fitness value—Vi, Φxi
  • Best position experience of ith particle—Pi
  • Best fitness experience of ith particle—Φibest
  • Best position experience of the whole swam—Pg
  • Best fitness experience of the whole swarm—Φgbest
  • Inertia weight—ω
  • Cognitive and Social acceleration coefficients—C1 and C2
  • Random numbers in [0, 1]—r1k and r2k
  • Population size—Np

2.4. Proposed Method and Procedures

The step-by-step procedures for the proposed PV model parameter estimation method are summarized as follows, and a flowchart is shown in Figure 5.
Figure 5. Flowchart of the proposed method.
  • Apply a sinusoidal load perturbation to the output of the PV panel; measure and sample the solar panel output voltage and current. Form the current I and voltage V vectors.
  • Use the I, V vectors as inputs to the MPC. Estimate the model parameter range vector R = [γ1 γ2 γ3 γ4 γ5 γ6] by using MPC.
  • Initialize the population of the APSO algorithm by using R = [γ1 γ2 γ3 γ4 γ5 γ6]. Initialize the components xi (i = 1…6) of the Np particles Xi by selecting a random number in the interval [γi (Δpi/Nr), (γi + 1)(Δpi/Nr)], where Δpi = pimax − pimin.
  • Using the fitness function Φxi = Σ [IpI*]2/N (Ip = predicted current, I* = actual current), update the position (Xi = [Iph Io VT Rsh Csh Rs]) and velocity (Vi) of the particles for i = 1…Np. Calculate the fitness values for all particles Φ(Xi) for i = 1…Np.
  • Calculate the evolutionary factor f for the population. Estimate the evolution states (exploration, exploitation, convergence, jumping out) of the population by using the Evolution State Estimation algorithm in [].
  • According to the algorithm in [], select the control strategies for adjustment of cognitive acceleration coefficients C1 and social acceleration coefficients C2 based on the evolution state. Apply the adaptive control algorithm on the inertia weight ω based on the evolution factor f.
  • If the population is in a convergence state, perform elitist learning operation to allow the global best particle to jump out from the local optimal point.
  • Update the velocity Vi and position Xi of all particles. Evaluate the fitness values Φ(Xi) of all particles Xi, and then update the individual best and global best fitness values for the population.
  • Repeat steps 4–8. The APSO iterations repeat until the maximum number of generations is reached.
  • The global best particle vector X* will be used as the optimal solar panel model parameter vector P*. Furthermore, the voltage for maximum power operation Vp can be estimated by using P*.

3. Results

The ANN–APSO algorithm was implemented on a server with 2.6 GHz Intel CPU i7-8700 (Intel, Santa Clara, CA, USA) and 32 GB memory. The current and voltage vector dataset was generated by the PV panel model [] in Section 2.1. Two nominal models in Table 1 are considered in simulation studies. The inputs to the MPC consist of 100 entries (V[0]…V[49], i[0]…i[49]). The MPC is an ANN with two hidden layers, with a first hidden layer of 200 nodes, second hidden layer of 100 nodes and output layers of 6 nodes. The learning rate of ANN is 0.01.
Table 1. Nominal model parameters and parameter variations for simulation studies.

3.1. Simulation Studies

The nominal PV Model A parameters were given ±80% variations, while vT was given a ±5% variation for generating dataset A. The output voltage is used as a reference for current prediction. Dataset A consisted of 2748 data lines (each line: 50 voltage and 50 current samples), of which 2199 (80%) data lines were used for training and 549 (20%) data lines were used for testing. The settings for the APSO are as follows: maximum number of generations Nmax = 200, population size Np = 20 and particle dimension N = 100. The simulation results of the parameter estimation error (ei = [pi − pi*]/pi*) and 15 data samples of simulated model parameters are summarized in Table 2. The estimation results are summarized in Table 3 and Figure 6.
Table 2. Model A as nominal model; ANN+APSO average model parameter estimation error for 15 data samples.
Table 3. Model A as nominal, average estimation absolute error of the model parameters for different methods.
Figure 6. Model A—Samples of PV curves obtained by ANN, ANN + PSO, ANN + APSO and exact model simulations. Test 1: Exact parameters Iph = 1.451, Io = 1.28 × 10−7, VT = 5.038, Rsh = 1653.205, Csh = 1.38 × 10−6, Rs = 1.692. Test 2: Exact parameters Iph = 1.049, Io = 1.16 × 10−7, VT = 5.029, Rsh = 1307.631, Csh = 5.44 × 10−7, Rs = 1.342.
In Table 4 and Figure 7, the nominal PV Model B parameters were given ±90% variations, while vT was given a ±10% variation for generating dataset B (total 2748 data lines, 80% data lines for training and 20% data lines for testing). The output current is used as a reference for voltage prediction, as described in Section 2.1. The estimation results are summarized in Table 5 and Figure 7.
Table 4. Model B as nominal model—ANN + APSO average model parameter estimation error for 15 data samples.
Figure 7. MODEL B—Samples of PV curves obtained by ANN, ANN + APSO and exact model simulations. Test 3: Exact parameters Iph = 2.098417, Io = 2.29 × 10−7, VT = 1.906146, Rsh = 151.0366, Csh = 1.44 × 10−6, Rs = 0.357008. Test 4: Exact parameters Iph =2.054445, Io = 2.29 × 10−7, VT = 1.995245, Rsh = 105.2213, Csh = 7.59 × 10−7, Rs = 0.512956.
Table 5. Model B as nominal model, average estimation absolute error of the model parameters for different methods.

3.2. Experimental Dataset Analysis

In this study, the experimental dataset in [] (Sungen SG-NH80-GG 80 W, a-Si type, electronic load HP6050A) is used to evaluate the performances of the proposed algorithm. Experimental I–V data in [] were inputted to the proposed system, and the estimation results are summarized in Table 6 and Figure 8. The dataset with a high-temperature condition in [] is used (i.e., the lights were turned ON for 2 min and the panels were heated up). In Table 6, dataset 1 is the data in [] for sample 1 with cracks, and dataset 2 is the data in [] for sample 2 with cracks. As there are no reference model parameters for the experimental study, the estimated model parameters are used to predict the current output, and the root mean square error (RMSE) between the estimated and measured values is used as a performance index for comparisons of different methods.
Table 6. Results of parameter estimation, testing of proposed method by the experimental data in [].
Figure 8. Estimated and measured IV curves; fitness vs. generation for experiment dataset in [].

3.3. Experimental Studies

A schematic diagram is shown in Figure 9, and the experimental setups are shown in Figure 10. The solar PV panel (SUNGEN SP-50, Shantou, China) is tested under the illumination of the controlled light sources (4× PHILIPS QVF135 HAL-TDS500W 220 V, 50 Hz lamp setup, Shenzhen, China); the outputs of the solar PV panel are connected to the Programmable Electronic Load (CHROMA Electronic Load 63600, Taoyuan, Taiwan). The electronic load draws a sinusoidal load current from the PV panel, as shown in Figure 10, and the voltage and current values are measured and sampled by the software panel of the electronic load. The surface irradiance and temperature of the solar PV panel are measured using a solar irradiance meter (Fluke FLK-IRR1-SOL, Washington, DC, USA). The results of parameter estimations are summarized in Table 7, and the experimental results are summarized in Figure 11.
Figure 9. Schematic diagram for experimental studies.
Figure 10. Experimental setup.
Table 7. Results of parameter estimation; testing of proposed method by the experimental setup in Figure 10.
Figure 11. Samples of voltage and current waveforms measured by experiments setup. Electronic load current: 1.4 A dc + 500 Hz sinusoidal (amplitude 0.38 A) AC current.

Testing of Solar PV Panel for Different Irradiance Levels

In experimental studies, the controllable light source is adjusted to give three different levels of irradiance (dataset 3, dataset 4 and dataset 5). The average surface irradiances and temperate are measured for the three tests, and the results are summarized in Table 8. It can be noted that the Iph is 2.39 for the high irradiance level, 1.87 for medium irradiance level and 1.19 for low irradiance level. It can be noted that the Iph increases with the level of irradiance. The experimental results are summarized in Figure 12 and Table 9.
Table 8. PV panel surface measurement results.
Figure 12. Estimated and measured IV curves; fitness vs. generation for experimental studies in Figure 9 (*ANN is outside plotting range in dataset 5).
Table 9. Summary of different testing results.

4. Discussion

4.1. Variation in Model Parameters

In simulation studies, the variation ranges of the model parameters cover the different operating conditions of the solar photovoltaic panel. The magnitude of the current source Iph of the PV model depends on the level of irradiance. Iph increases when the irradiance increases. In the simulation studies of Models A and B, the system parameters are given a random variation ±90% of the nominal value, and all the IV curves are generated. The purposes of these parameter fluctuations not only cover the fluctuation in the model parameters due to a change in the operating conditions and health conditions of the solar panel but also cover some simulated PV models for different brands and design specifications. In practical PV panels, the variations in model parameters are well below ±90%. However, the model parameters are purposely given a large variation (±90%) to generate a dataset that covers a parameter variation range smaller than ±90%. As the major function of the MPC is to encode the IV pattern to the range index vector, generating a dataset with a larger range can train the MPC to identify a range index vector for a wide scope of PV model parameter design specifications. It should be noted that partial shading also causes variations in Iph. According to the studies in [], Iph of the cracked panel is smaller than that of the healthy panels. Therefore, Iph can be used as an indicator for fault occurrence on an open solar farm without shading. It has been found that the variations in Csh and Rs can indicate a faulty condition with cracked panels. Therefore, the estimated model parameters obtained using the proposed method can be used for fault diagnosis and MPPT tracking.

4.2. Selection of ANN and APSO Parameters

The ANN parameters and the APSO parameters should be selected to achieve optimal results for model parameter estimation. Extensive simulations for the direct ANN model parameter estimator have been conducted. The ANN is used to estimate the six model parameters, with the IV data vector as input. The ANN was trained using the training dataset in Table 1. The simulation results in Table 10 show that the average parameter estimation errors are within ±5% to ±10% when the parameters are given up to ±70% variation. Therefore, a partition number (Nr) of 5 to 10 can match the expected accuracy (±10%) of the MPC. Since the initial estimate of the parameter vector is quite near to the optimal solution, a relatively small APSO population size and a small number of generations are sufficient for the APSO to converge on the optimal solution. Therefore, a population size of 20 is selected, and the maximum number of generations of 200 is selected in this study.
Table 10. Simulation results of model parameter estimation by using direct ANN method.
In order to design the ANN parameters, extensive ANN simulations for the dataset in Table 1 were performed. The loss values for different ANN parameters and hidden node combinations are summarized in Table 11. According to the results in Table 11, a learning rate of 0.01 and a dropout of 0.1 are selected. Furthermore, the loss values for different combinations of hidden nodes are estimated, and the results are summarized in Table 10. In this study, an ANN with two hidden layers, the first hidden layer with 200 nodes (N1) and the second hidden layer with 100 nodes (N2), is selected for the MPC. For the selection of APSO meta parameters, the loss values for different combinations of C1, C2 ∈ {1.0, 1.5, 2.0} and ω are determined, and the three combinations with loss lower than 0.6 are shown in Figure 13. According to the variation in loss vs. number of generations, the settings C1 = 1.5, C2 = 1.5 and ω = 0.1 have the fastest convergence rate, and these settings are used in this study.
Table 11. Selection of learning rate, ANN structure and dropout, PSO settings and loss.
Figure 13. Best fitness vs. number of generations.

4.3. Convergence of Best Fitness

The major purpose of MPC is to estimate the parameter range of the model parameters, and the APSO algorithm is used to finetune the estimated parameters. Since the APSO population is initialized according to the results of MPC, these particle swarms are quite near to the optimal solution; thus, the APSO needs about 200 generations to converge to small fitness values. The variations in the average best fitness vs. number of generations for the Model A test and Model B test (Table 2 and Table 4) for different methods are shown in Figure 14. It can be noted that at 200 generations for the Model A test, the best fitness of PSO, ANN + PSO and ANN + APSO is 0.12, 0.01, and 0.005. Similar results were also obtained from the Model B test; the best fitness of PSO, ANN + PSO and ANN + APSO is 0.1, 0.027 and 0.01 at 200 generations. In general, the convergence rate of ANN + APSO is faster than that of PSO and ANN + PSO. The classical PSO method in [] will give a small RMSE value of fitness (<5.0) if the number of iterations is greater than 103.
Figure 14. Average best fitness vs. number of generations for Model A and Model B testing.

4.4. Performances of the Proposed Method

According to the results of Model A in Table 2, the average absolute parameter error (APE) for ANN is 6.236%, the average APE for ANN + PSO is 3.313% and the average APE for ANN + APSO is 2.983%. From the results of Model B in Table 4, the average absolute parameter error for ANN is 7.17%, the average APE for ANN + PSO is 6.61% and the average APE for ANN + APSO is 4.09%. It can be seen that ANN + APSO can give a smaller APE within a relatively small number of iterations (N = 200).
From the results of experimental data analysis of dataset 1, the RMSE for the predicted parameters obtained by the method in [] is 0.21, while the RMSE for the predicted parameters obtained using the proposed method is 0.0476. For the results of dataset 2, the RMSE for the parameters obtained using the method in [] is 0.2227, and the RMSE for the proposed method is 0.1061. According to the results in [], the PSO with random particles’ initialization for the PV panel model parameter estimation requires a larger number of iterations (10 × 103) to reach the steady state, and the overall process requires significant computing resources. On the other hand, the proposed method includes an APSO algorithm with a modified initialization stage.
According to the experimental results of dataset 3 in Section 3.2, the RMSE for the parameters obtained using the method in [] is 0.52, and the RMSE for the proposed method is 0.22. For the experimental results of dataset 4, the RMSE for the parameters obtained using the method in [] is 0.43, and the RMSE for the proposed method is 0.1801. For the experimental results of dataset 5, the RMSE for the parameters obtained using the method in [] is 0.4382, and the RMSE for the proposed method is 0.07. In general, the RMSE of the proposed method is smaller than that of classical PSO []. The results in Section 3 show that using the MPC for pre-tuning can speed up the convergence (≈200 iterations) of APSO significantly. The estimation error can reach 5% with a smaller number of iterations.

5. Conclusions

The proposed PV model parameter estimation method gives a smaller parameter estimation error and RMSE (root mean square error) of the predicted current than that of the classical method. The proposed method requires a smaller number of iterations (≈200) to reach the steady state, as compared to classical PSO [,]. In this study, the initial particle population is selected according to the pre-tuning results of the MPC. The particles in the initial population should be near to the final optimal solutions, as compared to the random initialization approach. The APSO algorithm is used to estimate the PV panel model parameters, and the proposed method has better performance than that of classical PSO. The proposed algorithm requires less computation power and gives a smaller estimation error than the conventional PSO approach. There is potential to implement the proposed method in a relatively small-scale embedded system. A single-ANN direct approach will give accuracy of about 7.5% for large variation in model parameters. However, when the APSO is used to perform further finetuning of the estimated model parameters, the proposed system can give a small estimation error of less than 5%, and it requires a small population size and a smaller number of iterations to converge to optimal solutions, as compared to classical PSO methods.

Author Contributions

W.L.L.: conceived and designed the algorithms, analyzed the data, raised funding, managed projects, wrote articles and drafted original manuscripts. H.S.H.C.: analyzed the data and revised the manuscript. R.T.C.H.: reviewed the manuscript. H.F.: reviewed the manuscript. T.Y.Z.: reviewed the manuscript and the simulation results. T.W.S.: simulation analysis and collection of results. H.S.H.T.: reviewed the manuscript and the simulation and experimental results. All authors have read and agreed to the published version of the manuscript.

Funding

The work described in this study was fully supported by a grant from the Research Grants Council of the Hong Kong Special Administrative Region, China (Project Reference No.: UGC/FDS13/E01/21).

Data Availability Statement

The data are unavailable to the public and are restricted to project use only.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
APSOAdaptive Particle Swarm Optimization
ANNArtificial Neural Network
MPCModel Parameter Classifier
RMSERoot mean square error
PSOParticle Swarm Optimization

Appendix A. MPPT Searching Based on PV Model Parameters

For the steady-state characteristics of the PV panel, the junction capacitance is not taken into account, and the steady-state output current and voltage equation are shown as follows.
I = I p h I D I s h = I p h I o e V + I R s v T 1 V + I R s R s h
I 1 + R s R s h = I p h I o e V + I R s v T 1 V R s h ;           α = R s R s h
I 1 + α = I p h I o e V + I R s v T + I o V R s h I = 1 1 + α I p h I o e V + I R s v T + I o V R s h
Assume that Rs << Rsh and α ≈ 0: when the output voltage is zero, V = 0. Then, the current I is given by:
I = I s c = 1 1 + α I p h I o ( e I R s v T 1 ) I S C < I p h
When I = 0 (open circuit), the output voltage VOC is given by:
0 = 1 1 + α I p h I o ( e V v T 1 ) V R s h 0 = I p h I o e V v T 1 V R s h
We can assume that the voltage for maximum power should be less than the open circuit voltage Vpmax < Voc. The searching process of Vpmax should start from Voc and decrease by a step size of ΔV until the power P is found to be decreased from a peak value Pmax. For a given set of PV model parameters, the steady-state IV curve can be derived from the following procedures. Starting from V = Vmax and I = 0, the following procedures track the (V,I) trajectory and search the voltage for maximum power.
  • Initialize I and V, set I = Imin = 0 and V = Vmax
  • Substitute P, I and V into Equation (A2) to find the predicted current Ip.
    I p = R s h R s h + R s I p h I o e V + I R s v T 1 V R s h
    If prediction error is larger than the prediction error tolerance e = |IIp|> δ ⇒V = V − ΔV, go back to step 2.
  • Repeat steps 2–3 until a value of V can be found at which the Ip matches with value of I, where a point (V,I) on the VI curve is found. Calculate P and update Pmax.
  • If V > 0, then I = I + ΔI. Go back to step 2 to find the next (V,I) point when I is increased; otherwise, stop the tracking process when V < 0 or Pmax remains constant.
  • The process of searching V is repeated until V covers the whole operating range from Vmax to 0 or the Pmax is detected and remains constant. This process is similar to tracking point P (V, I) from (VOC, 0) to (0, ISC) along the VI (or VP) curve in Figure 3. The MPPT can be found by tracking the voltage for maximum power along the numerical VI curve.

References

  1. Elsheikh, A.H.; Sharshir, S.W.; Elaziz, M.A.; Kabeel, A.E.; Wang, G.; Zhang, H. Modeling of solar energy systems using artificial neural network: A comprehensive review. Sol. Energy 2019, 180, 622–639. [Google Scholar] [CrossRef]
  2. Saha, C.; Agbu, N.; Jinks, R. Review article of the solar PV parameters estimation using evolutionary algorithms. MOJ Sol. Photoenergy Syst. 2018, 2, 66–78. [Google Scholar] [CrossRef]
  3. Fahim, S.R.; Hasanien, H.M.; Turky, R.A.; Aleem, S.H.E.A.; Ćalasan, M. A Comprehensive Review of Photovoltaic Modules Models and Algorithms Used in Parameter Extraction. Energies 2022, 15, 8941. [Google Scholar] [CrossRef]
  4. Mekki, H.; Mellit, A.; Salhi, H.; Khaled, B. Modeling and simulation of photovoltaic panel based on artificial neural networks and VHDL-language. In Proceedings of the ICECS 2007 14th IEEE International Conference on Electronics, Circuits and Systems, Marrakech, Morocco, 11–14 December 2007. [Google Scholar]
  5. Tina, G.M.; Ventura, C.; Ferlito, S.; De Vito, S. A State-of-Art-Review on Machine-Learning Based Methods for PV. Appl. Sci. 2021, 11, 7550. [Google Scholar] [CrossRef]
  6. Mellit, A.; Menghanem, M.; Bendekhis, M. Artificial neural network model for prediction solar radiation data: Application for sizing stand-alone photovoltaic power system. In Proceedings of the IEEE Power Engineering Society General Meeting, San Francisco, CA, USA, 16 June 2005; Volume 1, pp. 40–44. [Google Scholar] [CrossRef]
  7. Mellit, A.; Benghanem, M.; Kalogirou, S.A. Modeling and simulation of a stand-alone photovoltaic system using an adaptive artificial neural network: Proposition for a new sizing procedure. Renew. Energy 2007, 32, 285–313. [Google Scholar] [CrossRef]
  8. Baptista, D.; Abreu, S.; Travieso-González, C.; Morgado-Dias, F. Hardware implementation of an artificial neural network model to predict the energy production of a photovoltaic system. Microprocess. Microsyst. 2017, 49, 77–86. [Google Scholar] [CrossRef]
  9. Yona, A.; Senjyu, T.; Saber, A.Y.; Funabashi, T.; Sekine, H.; Kim, C.-H. Application of Neural Network to 24-hour Ahead Generating Power Forecasting for PV System. In Proceedings of the 2008 IEEE Power and Energy Society General Meeting—Conversion and Delivery of Electrical Energy in the 21st Century, Pittsburgh, PA, USA, 20–24 July 2008. [Google Scholar]
  10. Saberian, A.; Hizam, H.; Radzi, M.A.M.; Kadir, M.Z.A.A.; Mirzaei, M. Modelling and Prediction of Photovoltaic Power Output Using Artificial Neural Networks. Int. J. Photoenergy 2014, 2014, 469701. [Google Scholar] [CrossRef]
  11. Liu, L.; Liu, D.; Sun, Q.; Li, H.; Wennersten, R. Forecasting Power Output of Photovoltaic System Using A BP Network Method. Energy Procedia 2017, 142, 780–786. [Google Scholar] [CrossRef]
  12. Mellit, A.; Saglam, S.; Kalogirou, S.A. Artificial neural network-based model for estimating the produced power of a photovoltaic module. Renew. Energy 2013, 60, 71–78. [Google Scholar] [CrossRef]
  13. Huang, C.-J.; Kuo, P.-H. Multiple-Input Deep Convolutional Neural Network Model for Short-Term Photovoltaic Power Forecasting. IEEE Access 2019, 7, 74822–74834. [Google Scholar] [CrossRef]
  14. Wang, H.; Yi, H.; Peng, J.; Wang, G.; Liu, Y.; Jiang, H.; Liu, W. Deterministic and probabilistic forecasting of photovoltaic power based on deep convolutional neural network. Energy Convers. Manag. 2017, 153, 409–422. [Google Scholar] [CrossRef]
  15. Al-Waelia, A.H.A.; Sopiana, K.; Yousifb, J.H.; Kazemb, H.A.; Bolandc, J.; Chaichand, M.T. Artificial neural network modeling and analysis of photovoltaic/thermal system based on the experimental study. Energy Convers. Manag. 2019, 186, 368–379. [Google Scholar] [CrossRef]
  16. Celik, A.N. Artificial neural network modelling and experimental verification of the operating current of mono-crystalline photovoltaic modules. Sol. Energy 2011, 85, 2507–2517. [Google Scholar] [CrossRef]
  17. Bonanno, F.; Capizzi, G.; Graditi, G.; Napoli, C.; Tina, G.M. A radial basis function neural network based approach for the electrical characteristics estimation of a photovoltaic module. Appl. Energy 2012, 97, 956–961. [Google Scholar] [CrossRef]
  18. Karatepe, E.; Boztepe, M.; Colak, M. Neural network based solar cell model. Energy Convers. Manag. 2006, 47, 1159–1178. [Google Scholar] [CrossRef]
  19. Laudani, A.; Lozito, G.M.; Radicioni, M.; Fulginei, F.R.; Salvini, A. Model Identification for Photovoltaic Panels Using Neural Networks. In Proceedings of the International Conference on Neural Computation Theory and Applications—IJCCI, Rome, Italy, 22–24 October 2014; Volume 3, pp. 130–137. [Google Scholar]
  20. Salem, F.; Awadallah, M.A. Parameters estimation of Photovoltaic modules: Comparisons of ANFIS and ANN. Int. J. Ind. Electron. Drives 2014, 1, 121–129. [Google Scholar] [CrossRef]
  21. Dharmarajan, R.; Ramachandran, R. Estimation of PV Module Parameters using Generalized Hopfield Neural Network. Int. Res. J. Multidiscip. Technovation IRJMT 2019, 1, 16–27. [Google Scholar] [CrossRef]
  22. Elkholy, A.; El-Ela, A.A.A. Optimal parameters estimation and modelling of photovoltaic modules using analytical method. Heliyon 2019, 5, e02137. [Google Scholar] [CrossRef] [PubMed]
  23. Lo, W.L.; Chung, H.S.H.; Hsung, R.T.C.; Fu, H.; Shen, T.W. PV Panel Model Parameter Estimation by using Neural Network. Sensors 2023, 23, 3657. [Google Scholar] [CrossRef]
  24. Kennedy, J.; Eberhart, R.C. Particle swarm optimization. In Proceedings of the IEEE International Conference on Neural Networks (ICNN), Perth, Australia, 27 November–1 December 1995; Volume 4, pp. 1942–1948. [Google Scholar]
  25. Ratnaweera, A.; Halgamuge, S.; Watson, H. Self-organizing hierarchical particle swarm optimizer with time-varying acceleration coefficients. IEEE Trans. Evol. Comput. 2004, 8, 240–255. [Google Scholar] [CrossRef]
  26. Andrews, P.S. An investigation into mutation operators for particle swarm optimization. In Proceedings of the IEEE Congress on Evolutionary Computation (CEC), Vancouver, BC, Canada, 16–21 July 2006; pp. 1044–1051. [Google Scholar]
  27. Zhan, Z.-H.; Zhang, J.; Li, Y.; Chung, H.S.-H. Adaptive particle swarm optimization. IEEE Trans. Syst. Man Cybern. Part B Cybern. 2009, 39, 1362–1381. [Google Scholar] [CrossRef]
  28. Alfi, A. PSO with Adaptive Mutation and Inertia Weight and Its Application in Parameter Estimation of Dynamic Systems. Acta Autom. Sin. 2011, 37, 541–549. [Google Scholar] [CrossRef]
  29. Kessentini, S.; Barchiesi, D. Particle Swarm Optimization with Adaptive Inertia Weight. Int. J. Mach. Learn. Comput. 2015, 5, 368–373. [Google Scholar] [CrossRef]
  30. Han, H.; Lu, W.; Qiao, J. An Adaptive Multi-objective Particle Swarm Optimization Based on Multiple Adaptive Methods. IEEE Trans. Cybern. 2017, 47, 2754–2767. [Google Scholar] [CrossRef] [PubMed]
  31. Li, X.; Mao, K.; Lin, F.; Zhang, X. Particle swarm optimization with state-based adaptive velocity limit strategy. Neurocomputing 2021, 447, 64–79. [Google Scholar] [CrossRef]
  32. Tian, D.; Liu, C.; Gheni, Z.; Li, B. Adaptive Particle Swarm Optimization based on Competitive and Balanced Learning Strategy. In Proceedings of the 2023 International Conference on Electronics, Computers and Communication Technology—CECCT’23, Guilin, China, 17–19 November 2023; pp. 44–53. [Google Scholar] [CrossRef]
  33. Dawan, P.; Sriprapha, K.; Kittisontirak, S.; Boonraksa, T.; Junhuathon, N.; Titiroongruang, W.; Niemcharoen, S. Comparison of Power Output Forecasting on the Photovoltaic System Using Adaptive Neuro-Fuzzy Inference Systems and Particle Swarm Optimization-Artificial Neural Network Model. Energies 2020, 13, 351. [Google Scholar] [CrossRef]
  34. Mughal, M.A.; Ma, Q.; Xiao, C. Photovoltaic Cell Parameter Estimation Using Hybrid Particle Swarm Optimization and Simulated Annealing. Energies 2017, 10, 1213. [Google Scholar] [CrossRef]
  35. Khelil, K.; Bouadjila, T.; Berrezzek, F.; Khediri, T. Parameter extraction of photovoltaic panels using genetic algorithm. In Proceedings of the Third International Conference on Technological Advances in Electrical Engineering (ICTAEE’18), Beijing, China, 10–12 December 2018. [Google Scholar]
  36. Ebrahimi, S.M.; Salahshour, E.; Malekzadeh, M.; Gordillo, F. Parameters identification of PV solar cells and modules using flexible particle swarm optimization algorithm. Energy 2019, 179, 358–372. [Google Scholar] [CrossRef]
  37. Rezk, H.; Arfaoui, J.; Gomaa, M.R. Optimal Parameter Estimation of Solar PV Panel Based on Hybrid Particle Swarm and Grey Wolf Optimization Algorithms. Energy Rep. 2022, 8, 12282–12301. [Google Scholar] [CrossRef]
  38. Jlidi, M.; Hamidi, F.; Barambones, O.; Abbassi, R.; Jerbi, H.; Aoun, M.; Karami-Mollaee, A. An Artificial Neural Network for Solar Energy Prediction and Control Using Jaya-SMC. Electronics 2023, 12, 592. [Google Scholar] [CrossRef]
  39. Gupta, J.; Hussain, A.; Singla, M.K.; Nijhawan, P.; Haider, W.; Kotb, H.; AboRas, K.M. Parameter Estimation of Different Photovoltaic Models Using Hybrid Particle Swarm Optimization and Gravitational Search Algorithm. Appl. Sci. 2023, 13, 249. [Google Scholar] [CrossRef]
  40. Lo, W.-L.; Chung, H.S.-H.; Hsung, R.T.-C.; Fu, H.; Shen, T.-W. PV Panel Model Parameter Estimation by Using Particle Swarm Optimization and Artificial Neural Network. Sensors 2024, 24, 3006. [Google Scholar] [CrossRef]
  41. Touabi, C.; Ouadi, A.; Bentarzi, H. Photovoltaic Panel Parameters Estimation Using an Opposition Based Initialization Particle Swarm Optimization. Eng. Proc. 2023, 29, 16. [Google Scholar]
  42. Ramaprabha, R.; Gothandaraman, V.; Kanimozhi, K.; Divya, R.; Mathur, B.L. Maximum power point tracking using GA-optimized artificial neural network for Solar PV system. In Proceedings of the 2011 1st International Conference on Electrical Energy Systems, Chennai, India, 3–5 January 2011; pp. 264–268. [Google Scholar] [CrossRef]
  43. Shang, L.; Zhu, W.; Li, P.; Guo, H. Maximum power point tracking of PV system under partial shading conditions through flower pollination algorithm. Prot. Control Mod. Power Syst. 2018, 3, 38. [Google Scholar] [CrossRef]
  44. Ansari, M.F.; Thakur, P.; Saini, P. Particle Swarm Optimization Technique for Photovoltaic System. Int. J. Recent Technol. Eng. IJRTE 2020, 8, 1448–1451. [Google Scholar] [CrossRef]
  45. Wang, W.; Liu, A.C.-F.; Chung, H.S.-H.; Lau, R.W.-H.; Zhang, J.; Lo, A.W.-L. Fault Diagnosis of Photovoltaic Panels Using Dynamic Current–Voltage Characteristics. IEEE Trans. Power Electron. 2016, 31, 1588–1599. [Google Scholar] [CrossRef]
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.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.