# Hybrid Neural Network Approach Based Tool for the Modelling of Photovoltaic Panels

Authors: Antonino Laudani; Gabriele Maria Lozito; Francesco Riganti Fulginei; Alessandro Salvini
Journal: International Journal of Photoenergy
 (2015)

---

## Abstract

A hybrid neural network approach based tool for identifying the photovoltaic one-diode model is presented. The generalization capabilities of neural networks are used together with the robustness of the reduced form of one-diode model. Indeed, from the studies performed by the authors and the works present in the literature, it was found that a direct computation of the five parameters via multiple inputs and multiple outputs neural network is a very difficult task. The reduced form consists in a series of explicit formulae for the support to the neural network that, in our case, is aimed at predicting just two parameters among the five ones identifying the model: the other three parameters are computed by reduced form. The present hybrid approach is efficient from the computational cost point of view and accurate in the estimation of the five parameters. It constitutes a complete and extremely easy tool suitable to be implemented in a microcontroller based architecture. Validations are made on about 10000 PV panels belonging to the California Energy Commission database.


---

## Body

## 1. Introduction

Nowadays, the photovoltaic (PV) based generation systems are extremely common and you can view both small plants (some kWpp) on the roof top or larger plants (MWpp) usually in rural or industrial environments. From the point of view of the technology and materials employed, several steps have been done in order to improve the efficiency and the performances [1]. On the other hand, from the point of view of the system, the major study has concerned the aspect of both characterization and energy conversion, giving to the designers some advanced tools for the setup of the generation system. High level performances are usually achieved by using suitable conversion systems, which try to make work the system in the maximum power point condition [2]. Although these conversion systems consist, in some case, in extremely complex processes and even in artificial intelligence based algorithms, there is a lack in studying of the effects of environmental conditions and in ageing of the parameters characterizing the PV modules; consequently, considering the PV system as a whole, some additional components would be needed which allow both the monitoring of each PV module and the intelligent management of the PV system aimed at the optimization of the performances. In particular, there is a scarcity of embedded systems able to characterize in real time the PV arrays during their normal working in order to update the parameters of the PV model for a better estimation of generated power. The reason of this lack is essentially due to two issues: (i) the requirement of several sensors for the continuous monitoring of the PV plants and (ii) the difficulty of identifying in real time the PV model, since this requires the solution of a transcendental (nonlinear) problem, the five-parameter model, which is really hard to solve without the use of suitable computing environment such as Matlab, Mathematica, and Maple. In this work, by following our previous successful experiences in the application of neural networks (NNs) to the PV field, we propose a solution of the identification problem for the five-parameter model starting from few information, thanks to the synergy between a neural network and an analytical approach, the so-called reduced forms of the one-diode model. The proposed procedure can be easily implemented in embedded algorithms based on low cost microcontroller, allowing the development of a new strategy for the intelligent management of PV plants. This work is structured as follows: in Section 2 a brief review of the application of soft computing to PV field is presented; the one-diode model and the problems linked to its identification are illustrated in Section 3, together with the innovative method based on reduced form; the proposed neural solution with the issues of its setup and training is described in Section 4; results and validations on real data are reported in Section 5; authors’ conclusions follow in Section 6.


## 2. The Application of Soft Computing Techniques to PV System

The soft computing techniques have been currently applied in several works in the literature for the solution of different issues regarding PV systems. One of the most successful applications is the offline identification of the PV model of a PV system from measurements; almost all the soft computing based optimization techniques have been adopted to address this problem: simulated annealing [3], genetic algorithm [4], differential evolution [5, 6], evolutionary algorithm [7, 8], artificial bee swarm optimization [9], bacterial foraging algorithm [10], semianalytical/deterministic approach, and so on [11–13] (see also the references within the above cited papers). On the other hand, the same optimization techniques have been less used to face other kinds of problems regarding PV systems because of their high computational costs, which make impossible their use in real time and embedded application. Only recently, some attempts have been successfully done to PV array reconfiguration [14] and maximum power point tracking [15, 16]. Among the soft computing techniques, neural networks and fuzzy logic, thanks to their intrinsic nature and their online low computational cost, have been successfully utilized in the PV field, often by hybrid configurations [17]. For example, controllers based on fuzzy logic have been used to face the maximum power point tracking (MPPT) [18], to manage a storage system [19], to predict daily irradiation [20], and for the PV array reconfiguration [21]. The neural networks (NNs) have been widely used in the field of renewable energy since more than 20 years (a review of year 2001 can be found in [22]) and their application to PV field still arouses interest as testified by recent papers on MPPT algorithms [2, 23–26] and on the energy production estimation and forecasting (a review was published by [27]). In the last year, we have used NNs also for the development of some components of the PV system (irradiance sensor and maximum power point tracking), implementing them in a low cost microcontroller based environment: indeed, one of the main advantages in using NNs with respect to other soft computing techniques is their easy implementation and good performance in terms of both computational costs and memory consumption [28]. However, although NNs are often applied in the literature to efficiently solve mathematical problems [29, 30], in the PV module modeling they are only used to interpolate experimental data rather than to identify a real model. In the opinion of the authors, this fact may be due to the difficulty in obtaining a suitable training set able to effectively represent the identification problem, but this is not the only problem affecting the neural approach, as we will show in this paper: indeed, the output parameters (in particular the shunt resistance) often present variations with respect to input data that are very difficult to establish, and no neural approach is able to perform an acceptable identification, at least with a limited number of neurons and reasonable computational costs. Nevertheless, as we will demonstrate, the use of reduced form of one-diode model helps us to overcome this problem and makes the proposed approach feasible and efficient.


## 3. The One-Diode Model: Identification Problem and Its Reduced Form

The five-parameter model, also known as “one-diode model,” for the electrical representation of a solar panel is widely used in solar power industry and is generally recognized as design tool [31]. This model was originally formulated for a PV cell, but under some conditions it has been demonstrated valid for a module composed by an arbitrary number of cells and also for a generic PV array composed by series and parallel connected modules. The importance of the one-diode model and its success is due to this generalization capability: it is enough accurate under the hypothesis that all the cells/modules work in the same conditions of irradiance and temperature, hypothesis usually verified with a good accuracy in a not shaded module/array. Among the different versions [32] of the five-parameter model, in this work we use the one proposed and validated by de Soto et al. [33], which is also the most adopted one. The original model is based on the circuit representation of a photovoltaic device by means of an independent current source, an antiparallel diode, and two output resistances, one in parallel with the diode and the other one in series with the output branch (see Figure 1). The model current-voltage relation is expressed by (1)(1)I=IIrr-I0exp⁡qV+IRSNSnkT-1-V+IRSRSH.Figure 1
One-diode equivalent circuit of a PV module.This equation represents a PV module (or an array of modules) composed by an arbitrary numberNS of cells in series (or modules connected in series). The parameters (nomenclature of the parameters involved is reported in Nomenclature section) of equation (1) are the ideality factor n, the shunt resistance RSH, the series resistance RS, the saturation reversal current of the diode I0, and the irradiation current IIrr. The other physical quantities involved are the following: the electron charge q=1.602×10-19 C; the Boltzmann constant k=1.3806503×10-23 J/K; and the cell temperature T. Clearly the above parameters depend on both temperature T and irradiance level S.


### 3.1. Identification of the One-Diode Model

The five-parameter model can be identified offline by fitting experimental data at an assigned temperature and irradiance, or by solving a system of five nonlinear equations starting from data provided by manufacturers in datasheets. In this last case the parameters can be derived by the following datasheet values: the open circuit voltageVOC, the short circuit current ISC, the voltage and current at the maximum power point IMPP and VMPP, and the temperature coefficients αT and βT for ISC and VOC, respectively. By using these datasheet values, usually five implicit nonlinear equations in the unknowns of n, RSH, RS, I0, and IIrr are formulated. Unfortunately, the resulting identification problem must be solved numerically by means of nonlinear solving methods or by using optimization/inverse problem algorithms in terms of minimization of a cost function (see Figure 2). In any case, the optimization problem with five unknowns can be rather long and complex to solve without a suitable computational architecture, also for the transcendental nature of the equations involved. In addition, the found results are valid at standard reference conditions (SRC) with a solar irradiance GREF=1000 W/m2 and a temperature TREF=25°C; thus, the five parameters are usually indicated with the apices (or pedices) REF or SRC. As stated above, apart from the ideality factor n and the series resistance RS, the other three parameters are temperature and/or irradiance dependent. Indeed, three relations expressing the parameters for arbitrary temperature and irradiance are available [33]. Then, once the parameters are extrapolated at SRC, they can be modulated by means of these three simple relations to obtain an I-V characteristic curve for any condition.Figure 2
Five-parameter model identification by using the techniques illustrated in [34].


### 3.2. Reduced Form: A New Paradigm in the Five-Parameter Model Identification

In 2013 in [35] the issue of the five-parameter model identification was addressed in a different way. The authors deduced that the model could be reduced by following algebraic manipulation to a two-parameter model, being three of the original parameters dependent on the other two. In particular, the unknowns IIrr, I0, and RSH can be expressed as functions of the unknowns n and RS by means of the following exact closed forms:
(2)RSH-1=hn,RSRSH-1=ExpOCIMPP-ISC+ExpMPISC-ExpSCIMPPA1ExpSC+A2ExpMP+A3ExpOC,(3)I0=fn,RSI0=VOCISC-IMPP-Vmp,refISCA1ExpSC+A2ExpMP+A3ExpOC,(4)IIrr=gn,RSIIrr=ISCVOCExpMP-1+ISCVMPP1-ExpOCIIrr=+IMPPVOC1-ExpSCIIrr=·A1ExpSC+A2ExpMP+A3ExpOC-1,
where
(5)A1=VMPP+RSIMPP-VOC,A2=VOC-RSISC,A3=RSISC-RSIMPP-VMPP,ExpOC=eVOC/NSnVT,ExpMPP=eVMPP+RSIMPP/NSnVT,ExpSC=eRSISC/NSnVT.This formulation brings several benefits: the unknowns of the problem are reduced to two (n and RS) thus allowing to use simpler optimization techniques/method to solve the problem; the reduced form makes the original problem a convex problem (one unique solution) and the resulting two-equation system constitutes an optimization problem easier to solve than the one related in the five-parameter model identification [34, 36]; the search domain is well defined with lower and upper bounds for both of the unknowns [32]. However, the implementation of the numerical solver for thereduced form may again not be so easy without a suitable computing environment, such as Matlab and Mathcad. On the other hand, as it has been demonstrated in [32], this formulation constitutes a new paradigm for the one-diode model: indeed (2), (3), and (4) can be used instead of open circuit, short circuit, and maximum power point conditions, since any acceptable values (i.e., values belonging to the feasible domain) of the two independent unknowns n and RS substituted in (2), (3), and (4) make these conditions exactly satisfied. This last feature is extremely important also in our neural approach, as it will be shown in the following section. Nevertheless, thanks to these reduced/closed forms implemented in Matlab environment, it was possible to quickly solve the identification problem and consequently to build a database of solutions related to more than 10000 modules to be used for generating the training dataset and the test dataset for our neural network identifier. In order to do this, one five-parameter model was identified by using the techniques illustrated in [34] for each module of the database [37] (see Figure 2). It is worth noticing that in order to avoid passing the number of cells in series NS as input the modified ideality factor parameter a=nNS was used as output, instead of the standard ideality factor n.


## 3.1. Identification of the One-Diode Model

The five-parameter model can be identified offline by fitting experimental data at an assigned temperature and irradiance, or by solving a system of five nonlinear equations starting from data provided by manufacturers in datasheets. In this last case the parameters can be derived by the following datasheet values: the open circuit voltageVOC, the short circuit current ISC, the voltage and current at the maximum power point IMPP and VMPP, and the temperature coefficients αT and βT for ISC and VOC, respectively. By using these datasheet values, usually five implicit nonlinear equations in the unknowns of n, RSH, RS, I0, and IIrr are formulated. Unfortunately, the resulting identification problem must be solved numerically by means of nonlinear solving methods or by using optimization/inverse problem algorithms in terms of minimization of a cost function (see Figure 2). In any case, the optimization problem with five unknowns can be rather long and complex to solve without a suitable computational architecture, also for the transcendental nature of the equations involved. In addition, the found results are valid at standard reference conditions (SRC) with a solar irradiance GREF=1000 W/m2 and a temperature TREF=25°C; thus, the five parameters are usually indicated with the apices (or pedices) REF or SRC. As stated above, apart from the ideality factor n and the series resistance RS, the other three parameters are temperature and/or irradiance dependent. Indeed, three relations expressing the parameters for arbitrary temperature and irradiance are available [33]. Then, once the parameters are extrapolated at SRC, they can be modulated by means of these three simple relations to obtain an I-V characteristic curve for any condition.Figure 2
Five-parameter model identification by using the techniques illustrated in [34].


## 3.2. Reduced Form: A New Paradigm in the Five-Parameter Model Identification

In 2013 in [35] the issue of the five-parameter model identification was addressed in a different way. The authors deduced that the model could be reduced by following algebraic manipulation to a two-parameter model, being three of the original parameters dependent on the other two. In particular, the unknowns IIrr, I0, and RSH can be expressed as functions of the unknowns n and RS by means of the following exact closed forms:
(2)RSH-1=hn,RSRSH-1=ExpOCIMPP-ISC+ExpMPISC-ExpSCIMPPA1ExpSC+A2ExpMP+A3ExpOC,(3)I0=fn,RSI0=VOCISC-IMPP-Vmp,refISCA1ExpSC+A2ExpMP+A3ExpOC,(4)IIrr=gn,RSIIrr=ISCVOCExpMP-1+ISCVMPP1-ExpOCIIrr=+IMPPVOC1-ExpSCIIrr=·A1ExpSC+A2ExpMP+A3ExpOC-1,
where
(5)A1=VMPP+RSIMPP-VOC,A2=VOC-RSISC,A3=RSISC-RSIMPP-VMPP,ExpOC=eVOC/NSnVT,ExpMPP=eVMPP+RSIMPP/NSnVT,ExpSC=eRSISC/NSnVT.This formulation brings several benefits: the unknowns of the problem are reduced to two (n and RS) thus allowing to use simpler optimization techniques/method to solve the problem; the reduced form makes the original problem a convex problem (one unique solution) and the resulting two-equation system constitutes an optimization problem easier to solve than the one related in the five-parameter model identification [34, 36]; the search domain is well defined with lower and upper bounds for both of the unknowns [32]. However, the implementation of the numerical solver for thereduced form may again not be so easy without a suitable computing environment, such as Matlab and Mathcad. On the other hand, as it has been demonstrated in [32], this formulation constitutes a new paradigm for the one-diode model: indeed (2), (3), and (4) can be used instead of open circuit, short circuit, and maximum power point conditions, since any acceptable values (i.e., values belonging to the feasible domain) of the two independent unknowns n and RS substituted in (2), (3), and (4) make these conditions exactly satisfied. This last feature is extremely important also in our neural approach, as it will be shown in the following section. Nevertheless, thanks to these reduced/closed forms implemented in Matlab environment, it was possible to quickly solve the identification problem and consequently to build a database of solutions related to more than 10000 modules to be used for generating the training dataset and the test dataset for our neural network identifier. In order to do this, one five-parameter model was identified by using the techniques illustrated in [34] for each module of the database [37] (see Figure 2). It is worth noticing that in order to avoid passing the number of cells in series NS as input the modified ideality factor parameter a=nNS was used as output, instead of the standard ideality factor n.


## 4. The Neural Network Identifier

Different possibilities arise when choosing for a NN architecture. First of all, the nature of the problem must be examined: static or dynamic problems affect the choice among feed forward or recurrent networks. In our case, the problem consists in a static identification problem which can be solved by a feed forward approach. Another point to take into account is the complexity of the implementation in a low cost/performance system. Starting from these considerations the multilayer perceptron (MLP) architecture is surely an effective choice for this kind of problems with respect to other neural network architectures such as fully connected neural networks or radial basis neural networks. In the MLP architecture the neurons are organized by layers and the connections are made using a feed forward configuration: no connection exists between neurons of the same layer and each neuron communicates via weighted connections to all the neurons of the successive layer. The number of layers in a MLP is variable, with a minimum of three: input, hidden, and output layers. The input layer simply performs the NN input connections. The hidden layer is composed by neurons with a nonlinear activation function. The output layer is analogous to the second but with simple linear activation functions. By the Universal Approximation Theorem [38, 39] a feed forward neural network with a single hidden layer containing a finite number of neurons can interpolate any continuous function. A remarkable advantage of this architecture consists in its univocal determination by the number of neurons: given the hidden layer size, the number of inputs, and the number of outputs, the NN architecture is completely defined. Another important issue is that the relation between training performance and layer size has been thoroughly investigated in the literature [40–44]. Surely complex problems may require a very high number of neurons, making the training of a single hidden layer MLP difficult: that is, even if the MLP could approximate any function, it may not be the most efficient way to do it [45]. Nevertheless, it is the first typology of NN usually attempted when a new problem is addressed for the first time. In addition we have decided to investigate the use of MLP architecture for the implementation of our neural identifier, since we have already successfully used it for other PV related problems such as for the solution of maximum power point identification [2] and for the prediction of solar irradiance from PV voltage and current measurements [46]. The aim this time is to use a neural network to estimate the parameters of the one-diode model starting from few available data, as explained in Section 3. The simplest strategy would be to substitute the central block shown in Figure 2 with a MLP with multiple inputs and multiple outputs (MIMO) structure, to train it on the training set, and to validate the obtained results. However, by using a MIMO architecture, an effective estimation with NN cannot be achieved for the addressed problem. To understand the reasons behind this behavior, in our study, the MIMO architecture was split into 5 MISO networks [47] (more simple to train), one for each of the five parameters figuring in the model. By trying to compute the parameters individually, the problem became apparent: the parameter RSH may not be accurately estimated by the NN, at least by using a low/medium number of neurons, or even by directly using the MIMO network. The performance of the MISO network up to 20 neurons is shown in Figure 3; it is worth noticing that even if the performance on the training data decreases with the number of neurons, the same behaviour is not present in the performance on the test dataset: the MISO neural network is not able to generalize the prediction of RSH. This parameter, by itself, is the cause of failure of the NNs based approach. This justifies the low presence in the literature of neural approaches for the identification of PV models.Figure 3
Mean squared error on training and validation set for MLP estimatingRSH parameter (hidden layer size up to 20 neurons).On the contrary, by taking advantage of the closed forms proposed in Section3, the calculation of I0, RSH, and IIrr is not necessary to identify the model and the number of parameters NNs have to predict becomes just two. Indeed, as it can be seen in the block diagram proposed in Figure 4, the NN approach can be used to evaluate only the two independent parameters RS and a, whereas the remaining three dependent parameters can be calculated by using the closed forms h(n,RS), f(n,RS), and g(n,RS) (n=a/NS), that is, the formulae (2), (3), and (4), respectively. Thus, two MISO NNs have been implemented: they both receive as input the six known values available on PV module datasheet (the open circuit voltage VOC, the short circuit current ISC, the voltage and current at the maximum power point IMPP and VMPP, and the temperature coefficients αT and βT of ISC and VOC, resp.) and return RS (one NN) and a (the other NN) as outputs.Figure 4
Identification of the parameters by means of a neural identifier and explicit equations.


### 4.1. Dataset and Training Procedure Description

The dataset used in this work to train and to validate the neural networks was obtained from the California Energy Commission (CEC) panel database [37]. The database collects the most relevant datasheet information for about 10000 photovoltaic panels. As stated above, by using the techniques illustrated in [34], for each module of the database, one five-parameter model was identified. In order to verify the generalization capabilities of our neural network, we used modules with monocrystalline silicon (mono-Si) technology as training set and modules with multicrystalline silicon (multi-Si) technology as test set. Thus, the resulting training set consists of about 4000 entries, whereas the test set has more than 6000 modules. Choosing the mono-Si modules should also guarantee a training dataset able to represent a good heterogeneity of panels with different characteristics. Clearly, the generalization capabilities and the performance of a NN for a specific problem also depend on the architecture of the NN, on the number of neurons, on the activation function, and on some strategy adopted for the learning procedure. For example, a relationship can be achieved for each kind of problem, which links the number of neurons with the size of the training set (details can be found in [48]) for a fixed generalization level avoiding to overtrain the NN. In our case the training set is very large with respect to the number of adopted neurons and consequently it is unlikely to bump into overtrained networks; thus, we did not use “validation set” and “early stop technique.” Rather, for our application, it is extremely important to reach high accuracy. For these reasons, the approach chosen for the training procedure consists of two phases. In the first preliminary phase we adopted the following conditions: (i) the number of neurons, nhidden, in the hidden layer was variable from 1 up to 20; (ii) each NN with a fixed number of hidden layer neurons was trained 10 times for a number of epochs equaling 2000+100·nhidden in order to obtain a statistical analysis of results (evaluation of minimum, average, median, and standard deviation of the error). The performance of the neural networks trained in terms of minimum MSE on training set and test set is reported in Figures 5 and 6 for the parameters a and RS, respectively. As it is possible to notice, the MSE reaches extremely low values (of the order of 1e-7) giving an accurate estimation of these two parameters. It is also worth reminding that the training set is made of mono-Si modules whereas the test set is made of multi-Si modules: the obtained low values of MSE on test set and training set confirm the good generalization capabilities of the NNs for both of the technologies. In addition, it was verified that the MSE further decreases by adding new neurons, but the result being enough accurate this would determine only a higher computational cost.Figure 5
Trend of the MSE on training set and test set of the neural network tailored for predicting thea parameter versus the number of neurons in the hidden layer.Figure 6
Trend of the MSE on training set and test set of the neural network tailored for predicting theRS parameter versus the number of neurons in the hidden layer.Instead, from these results/data the two best NNs were selected and the second phase of training was started. In the choice of the best NNs we used on one hand the criterion of performance on test set and training set and on the other hand an equal size (number of neurons) of the two NNs, in such a way to be able to fruitfully compose the two NNs in the implementation (this is above all useful in the case of microcontroller implementation). Thus an effective number of neurons of hidden layer,nhidden*=19, were individuated for the two NNs. A schematization of the NNs with the used activation functions is shown in Figure 7. Then, in the second phase, these two NNs were trained, starting from the achieved weights and bias (by using the same training set) for 50000 epochs: Figure 8 shows the MSE during this second training of the neural network tailored for computing the a parameter. Now, with 50000 epochs, the MSEs achieved by NNs on test set are of the order of 10-9 for both a and RS parameters.Figure 7
Architecture of the two adopted MLP NNs.Figure 8
Trend of the MSE during the training of the neural network with 19 hidden neurons and 50000 epochs tailored for predicting thea parameter.


## 4.1. Dataset and Training Procedure Description

The dataset used in this work to train and to validate the neural networks was obtained from the California Energy Commission (CEC) panel database [37]. The database collects the most relevant datasheet information for about 10000 photovoltaic panels. As stated above, by using the techniques illustrated in [34], for each module of the database, one five-parameter model was identified. In order to verify the generalization capabilities of our neural network, we used modules with monocrystalline silicon (mono-Si) technology as training set and modules with multicrystalline silicon (multi-Si) technology as test set. Thus, the resulting training set consists of about 4000 entries, whereas the test set has more than 6000 modules. Choosing the mono-Si modules should also guarantee a training dataset able to represent a good heterogeneity of panels with different characteristics. Clearly, the generalization capabilities and the performance of a NN for a specific problem also depend on the architecture of the NN, on the number of neurons, on the activation function, and on some strategy adopted for the learning procedure. For example, a relationship can be achieved for each kind of problem, which links the number of neurons with the size of the training set (details can be found in [48]) for a fixed generalization level avoiding to overtrain the NN. In our case the training set is very large with respect to the number of adopted neurons and consequently it is unlikely to bump into overtrained networks; thus, we did not use “validation set” and “early stop technique.” Rather, for our application, it is extremely important to reach high accuracy. For these reasons, the approach chosen for the training procedure consists of two phases. In the first preliminary phase we adopted the following conditions: (i) the number of neurons, nhidden, in the hidden layer was variable from 1 up to 20; (ii) each NN with a fixed number of hidden layer neurons was trained 10 times for a number of epochs equaling 2000+100·nhidden in order to obtain a statistical analysis of results (evaluation of minimum, average, median, and standard deviation of the error). The performance of the neural networks trained in terms of minimum MSE on training set and test set is reported in Figures 5 and 6 for the parameters a and RS, respectively. As it is possible to notice, the MSE reaches extremely low values (of the order of 1e-7) giving an accurate estimation of these two parameters. It is also worth reminding that the training set is made of mono-Si modules whereas the test set is made of multi-Si modules: the obtained low values of MSE on test set and training set confirm the good generalization capabilities of the NNs for both of the technologies. In addition, it was verified that the MSE further decreases by adding new neurons, but the result being enough accurate this would determine only a higher computational cost.Figure 5
Trend of the MSE on training set and test set of the neural network tailored for predicting thea parameter versus the number of neurons in the hidden layer.Figure 6
Trend of the MSE on training set and test set of the neural network tailored for predicting theRS parameter versus the number of neurons in the hidden layer.Instead, from these results/data the two best NNs were selected and the second phase of training was started. In the choice of the best NNs we used on one hand the criterion of performance on test set and training set and on the other hand an equal size (number of neurons) of the two NNs, in such a way to be able to fruitfully compose the two NNs in the implementation (this is above all useful in the case of microcontroller implementation). Thus an effective number of neurons of hidden layer,nhidden*=19, were individuated for the two NNs. A schematization of the NNs with the used activation functions is shown in Figure 7. Then, in the second phase, these two NNs were trained, starting from the achieved weights and bias (by using the same training set) for 50000 epochs: Figure 8 shows the MSE during this second training of the neural network tailored for computing the a parameter. Now, with 50000 epochs, the MSEs achieved by NNs on test set are of the order of 10-9 for both a and RS parameters.Figure 7
Architecture of the two adopted MLP NNs.Figure 8
Trend of the MSE during the training of the neural network with 19 hidden neurons and 50000 epochs tailored for predicting thea parameter.


## 5. Validation of the Proposed Neural Approach and Discussion of the Results

Since our aim is to identify all five parameters, it is important to also verify the error achieved in the remaining three parameters when the approach described before (summarized in the block diagram of Figure4) is used. The goodness of achieved results in terms of mean relative error in % on test set (more than 6000 modules) is reported in Table 1. For all the parameters the error is lower than 1% and the parameter which presents the highest relative error is I0: this is clearly due to the fact that it assumes values close to zero (of the order of 1E-9) and then the relative error is not the best way to evaluate the performance in the computation.Table 1
Mean relative error in % on test set.
Parameter
Mean absolute error
a
0.00053%
R
S
0.006%
I
Irr
0.057%
I
0
0.48%
R
SH
0.13%As said before, although the accuracy of the obtained parameters could be enhanced by adding further neurons, this is not necessary for two different reasons. Firstly, in every case, it is already quite acceptable, considering that the state of the art for this computation often utilized approximate formulae introducing errors of the order of 1% (see [49, 50]). At the same time, the other three dependent parameters RSH, I0, and IIrr being computed by using the respective closed form expressions previously presented, they surely satisfy the open circuit, short circuit, and maximum power point conditions. This last property also demonstrates the importance of using a hybrid approach between the neural model and the closed forms (reduced forms of five-parameter model). In order to better show this important feature, we propose herein the results in terms of I-V and P-V curves drawn starting from the parameters calculated with the proposed approach. These results are relative to a PV module manufactured by Kyocera, the PV Panel KD210GX LP. Figure 9 shows the I-V curve, whereas Figure 10 shows the P-V curve. As it is possible to see from Figure 9 the I-V curve exactly passes through the points of short circuit, open circuit, and maximum power point conditions, while Figure 10 shows that the curve slope at MPP is precisely zero. Lastly, it is worth noticing that if you want to compare the proposed approach with the other ones available in the literature, we must take into account both the computational costs and the accuracy of results. Thus we have, on one hand, exact methods such as those proposed in [34, 46] which are efficient but cannot be implemented in low cost environments (i.e., they have significant computational costs) such as microcontroller based systems; on the other hand, approximated methods exist (see the one reported in [49]) which have low computational costs but introduce errors in the calculation of the parameters. On the contrary, the approach herein proposed is efficient from the computational cost point of view and accurate in the estimation of the five parameters: this is the best tradeoff currently obtained with respect to the other approaches presented in the literature.Figure 9
Graph of theI-V curve for the PV module manufactured by Kyocera, Panel KD210GX LP, by using the obtained parameters.Figure 10
Graph of theP-V curve for the PV module manufactured by Kyocera, Panel KD210GX LP, by using the obtained parameters.


## 6. Conclusions

A hybrid neural network approach based tool for identifying the PV one-diode model has been proposed. This method exploits the potentialities of the NN together with the effectiveness of the reduced form of one-diode model. The reduced form has been used on one hand to analyze the CEC database, which collects the datasheet parameters of about 10000 PV panels, and to build the training and test sets on the other hand as a part of the calculation procedure of the whole approach. Indeed, from the studies performed by the authors, it was found that a direct computation of the five parameters via multiple inputs and multiple outputs (MIMO) NN with acceptable computational resources is a prohibitive task. This also justifies why in the literature the neural network approach was often overlooked due to the obstacles encountered in particular in the prediction of the shunt resistance. For this reason, in the presented approach, we adopted a NN predicting just two parameters,RS and a, together with the reduced form for the computation of the remaining three unknown parameters of the one-diode model. The so achieved hybrid system constitutes a complete and extremely easy tool suitable to be implemented in a microcontroller based architecture. The obtained encouraging results prove that the proposed approach is efficient from the computational cost point of view and accurate in the estimation of the five parameters: the best currently existing tradeoff with respect to the approaches presented in the literature. The proposed method may be another important step, made thanks to soft computing techniques, in the development of intelligent systems for the monitoring and the management of renewable based generation plants.



---

*Source: 413654-2015-02-22.xml*