Abstract
This paper proposes a heuristic triple layered particle swarm optimization–back-propagation (PSO-BP) neural network method for improving the convergence and prediction accuracy of the fault diagnosis system of the photovoltaic (PV) array. The parameters, open-circuit voltage (Voc), short-circuit current (Isc), maximum power (Pm) and voltage at maximum power point (Vm) are extracted from the output curve of the PV array as identification parameters for the fault diagnosis system. This study compares performances of two methods, the back-propagation neural network method, which is widely used, and the heuristic method with MATLAB. In the training phase, the back-propagation method takes about 425 steps to convergence, while the heuristic method needs only 312 steps. In the fault diagnosis phase, the prediction accuracy of the heuristic method is 93.33%, while the back-propagation method scores 86.67%. It is concluded that the heuristic method can not only improve the convergence of the simulation but also significantly improve the prediction accuracy of the fault diagnosis system.
1. Introduction
The latest report from the International Energy Agency shows that, with the rapid development of photovoltaic (PV) technology, PV has become a major actor in the electricity sector in several countries; 1.3% of the world’s electricity generation is covered by PV up to January 2016 [1]. With the increase in the scale of PV power generation and the instability of the working surroundings, PV faults become more serious and are attracting wide attention. Faults affect a PV system’s performance and reliability. The causes of PV system faults are mainly temperature fault, partial shading fault, modules aging, the open-circuit or short-circuit of PV modules, and cell damage [2,3,4]. Temperature faults mainly stem from the PV modules’ high surface temperature after absorbing sunlight in contrast to PV array partial shading faults, which are either unpreventable but fluctuating, like clouds, or eliminable, such as fallen leaves and dust. Short-circuit and open-circuit faults are mainly caused by aging problems of PV modules after long-term operation. Determining the fault type in a PV system quickly and effectively is important to maintaining safe and reliable PV power generations.
Several diagnostic methods for PV system have been introduced by scholars, as follows:
Takashima et al. proposed two kinds of fault diagnosis methods for PV arrays: time domain reflectometry (TDR) and earth capacitance measurement (ECM) [5,6]. In the TDR method, with the aid of a normative pulse pump signal in the series PV array, the change in the reflected electrical property is used to judge the fault type [5]. In the ECM method, the earth capacitance of the series PV array is used to determine the module’s fault in the PV array [6].
Chao et al. developed a portable fault diagnosis meter by applying an extension neural network, chip microcontroller and a ZigBee wireless sensor network module [7]. In the method proposed by Chao et al., the fault characteristics of PV array in different fault conditions were obtained first by simulation, after which the real-time illumination and module temperatures were extracted. The data from the simulation and experiment were imported into the extension neural network as the weight matrix to identify the fault types.
Hsieh et al. proposed an intelligent fault diagnostic scheme based on the theory of chaotic signal synchronization [8]. In their diagnostic scheme, MATLAB (Manufacturer: Natick, MA, USA) was used to establish a PV system under different fault conditions. The fault characteristic parameters from the current–voltage (U-I) curve of the PV system were used and recorded, the dynamic error of the fault signals was derived by chaotic signal synchronization, and the captured output voltage signal was used as the recognition characteristic to determine the fault type.
A fault diagnostic method for a PV system based on a back-propagation (BP) artificial neural network has also been proposed [9]. An artificial neural network [10] is a machine learning mechanism for simulating how the human brain learns and identifies problems, and is applicable to fault diagnosis. The BP neural network is the common approach [9,10,11,12,13], being a multilayer fed forward network of three or more layers. The forward network is trained by an error back propagation algorithm, and the front- and back-layer neurons are connected by different weights; however, there is no connection between the neurons of the same layers. In the BP method, when the learning mode is provided to the training network of the BP, the activation value of the neuron is delivered from the input layer to the output layer via the hidden layers, and the input responses of the network are reflected in each neuron of the output layer. The connection weights are revised from the output layer to the input layer via the hidden layer, with the aim of reducing error between the expected and the actual value. With the correction of the error, the accuracy of the input responses of the BP neural network also increases. However, the disadvantage in a BP neural network is that a sample database with large volumes and long training periods is required for convergence. Additionally, improper sample selection or a longer training phase can lower prediction accuracy of a PV fault diagnosis system.
The contributions of our work are:
- (1)
- We analyze the performance of PVs under various fault conditions, using open-circuit voltage (Voc), short-circuit current (Isc), maximum power (Pm) and voltage at maximum power point (Vm) to construct feature recognition criteria. The criteria reduce the running space and shorten the program execution time of the heuristic diagnostic method.
- (2)
- We evaluate the performance of a heuristic particle swarm optimization–back-propagation (PSO-BP) neural network method applied in PV fault diagnosis. The method has the merits of global search ability for particle swarm optimization (PSO) and local search ability for BP. The PSO-BP neural network ameliorates the convergence of the diagnostic method and improves the prediction accuracy of the photovoltaic diagnosis system effectively.
The remainder of this paper is organized as follows. Section 2 describes the fault diagnosis system used in this study and the fault recognition parameters. Section 3 presents our proposed approach: a triple-layered PSO-BP neural network for forecasting faults in PV systems. Section 4 describes the data used in this study. Fault recognition and predictions using PSO-BP are examined with MATLAB in Section 5. Section 6 concludes the paper.
2. Configuration of Proposed System
The schematic diagram of our proposed fault diagnosis system is shown in Figure 1. It is mainly composed of a 4 × 3 (4 in series, 3 in parallel) PV array module, with DC load, alarm systems, and data processing modules acquiring and recording the state of the PV system. A triple-layered heuristic PSO-BP neural network is used as the diagnostic tool.
Figure 1.
Schematic diagram of the fault diagnosis system.
In order to analyze changing of PV parameters in different fault conditions, a PV module simulation platform based on MATLAB/Simulink was used in this paper, in accordance with the mathematical model in [14]. The specification of this module under a standard test condition (STC) is presented in Table 1.
Table 1.
Electrical parameters of photovoltaic (PV) modules under standard test condition (STC): AM (Air-Mass) = 1.5, irradiance = 1000 W/m2, temperature = 300 K.
The simulation was carried out under different fault conditions, including temperature faults, partial shade faults, and faults due to aging cells (different series resistances imply differently aging cells [15]). I-U and voltage-power (U-P) characteristic curves were produced, as shown in Figure 2, Figure 3 and Figure 4, respectively.
Figure 2.
PV characteristic curve under different temperature conditions: (a) U-I characteristic curve of PV array; (b) U-P characteristic curve of PV array.
Figure 3.
PV characteristic curve under different illumination conditions: (a) U-I characteristic curve of PV array; (b) U-P characteristic curve of PV array.
Figure 4.
PV characteristic curve under different series resistance conditions: (a) U-I characteristic curve of PV array; (b) U-P characteristic curve of PV array.
With the increase of the cell’s temperature, as seen in Figure 2, Isc increases while the Voc, Pm and Vm decrease. The main causes of these changes are as follows: the bandgap is negatively correlated with the ambient temperature; with increasing ambient temperature, the Fermi energy of the PV gradually approaches the center of the forbidden band; and the PV diffusion coefficient is positively correlated with the Isc and Fermi energy.
As Figure 3 shows, due to the PV effect, the photons exceeding the PV cells’ bandgap excite a large number of electron hole pairs, which then generate electromotive force and current. Therefore, with increasing illumination of the PV cells, the Isc, Voc, Pm and Vm increase.
Figure 4 graphs the PV array with different series resistances. As the series resistance decreases Isc and Voc have minor changes, while Pm and Vm increase.
These results indicate that Voc, Isc, Pm and Vm can be used to determine whether there is a fault in the PV array, as well as the corresponding cause of the fault. Here, Voc, Isc, Pm and Vm are used as identification parameters for the PV fault diagnosis system, and are expressed as an input matrix .
3. Proposed Fault Diagnosis Method
The PSO-BP neural network is a model combining features of the global search ability of PSO with the local search ability of a BP neural network [16]. In order to get the solution of PSO quickly, a heuristic model of the PSO-BP neural network is used in this paper to predict the faults of the PV array. In our model, the test data are normalized and delivered to the benchmark input layer, and are subsequently trained and proceed with a sigmoid function in the benchmark training layer, on which the classification and learning mechanism are built. In practice, the recorded real-time fault data of the PV system proceed in the same way and are imported into the PSO processing layer to optimize fault classification. The results of the optimization are obtained in the output layer. The schematic diagram of the triple-layered heuristic diagnostic method is shown in Figure 5.
Figure 5.
Schematic diagram of the triple-layered heuristic PSO-BP neural network method.
(1) Normalize the different magnitudes of the recorded fault characteristics
Owing to the different units and magnitudes of Voc, Isc, Pm and Vm, we normalize the input matrix by the linear transformation method [17]:
where and are the initial and normalized input matrices, and are the minimum and maximum values of each row of respectively, and and are the minimum and maximum values of each row in the normalized matrix. In this paper , .
(2) Encode the fault states of the PV fault diagnosis system
To verify the feasibility of the PV fault diagnosis system, this paper investigates seven kinds of PV faults and encodes them by 0 and 1 for identification purposes, as shown in Table 2.
Table 2.
The operative states of the PV array and its corresponding 0–1 coding matrix.
(3) Process the normalized fault characteristics using sigmoid function, and select the optimal results as the multi-dimensional search space of PSO
A suitable number of neurons in the hidden-layer and activation functions are conducive for the PSO-BP neural network to quickly and effectively complete the training with less training times and higher convergence rates [18,19].
The sigmoid function is expressed as
The linear function is expressed as
The required number of hidden neurons of the BP neural network is calculated by the following formula [9,20]:
where is a round-down function, such as , is the number of neurons in the hidden layer, is the number of neurons in the input layer, is the number of neurons in the output layer, and is an empirical constant.
The connection weight connects neuron i of the hidden layer and neuron j of the input layer of the BP neural network by the sigmoid function, while the connection weight connects the output layer and the hidden layer by the linear function. The training deviation and epochs corresponding to the neurons are illustrated in Figure 6. The line with red dots indicates the number of epochs when the BP neural network is trained by increasing the neurons of the hidden layer, while the line with black squares illustrates the training accuracy of the BP neural network with the increase of the hidden layer neurons. As shown in Figure 6, when the number of neurons in the hidden layer is 12, the training accuracy of the BP neural network is over 80%, and the number of epochs is about 100 steps.
Figure 6.
The training deviation and epochs corresponding to the neurons.
The expression of the output matrix that is transmitted from the input layer to the output layer via the hidden layers is as follows:
where is a normalized input matrix, , is the output matrix processed by transposed matrix and sigmoid function between the input layer and the sigmoid processing layer; is the input matrix from the sigmoid processing layer to the PSO processing layer, is the output matrix optimized by PSO, is the PSO processing method, is the input matrix from the PSO processing layer to the output layer, and is the output matrix processed by transposed matrix and the linear function between the PSO processing layer and output layer.
(4) Update the position and velocity of the particles processed by sigmoid function, and the parameters in PSO
In the PSO method, the optimal training results are selected as the initial N-dimensional search space. The particles processed by the sigmoid function start from the initial position with the velocity . The initial best position of the particles is set as , and the initial best position of the whole swarm is set as [21].
In the updating phase, supposing pbest and gbest of the i-th particle in N-dimensional space are and , the updating rule of the particle’s position and velocity is given by following equation series [22,23,24]:
where is defined as inertia weight factor. When the particle has stronger global searching ability, has a bigger search space, and can find a new solution domain. However, higher values of may skip the optimal solution domain. While , the particle has stronger searching ability locally, which is beneficial to obtain the optimal solution of the particle in the solution space, but the search time will be accordingly long. is the iteration time. and are constants for the cognitive factor and social factor, respectively. When , the particle does not have cognitive ability and lacks local search, the particle has the ability to expand the search space, and the PSO is known as a social-only model, which has faster convergence and global optimization capability, but falls more easily into the local optimum. When , there is no interaction between the particles in the particle swarm, and the PSO is known as a cognition-only model. Because the particles moves blindly, the model easily leads the convergence slowly, and it is difficult to obtain the global optimal solution [24,25]. Independent random numbers and are uniformly distributed in the range of [0, 1]. , where is the maximum particle velocity, is the best previous position of particle i along the n-th dimension in iteration t, is the best previous position among all the particles along the n-th dimension in iteration t, and is the constraint factor, .
(5) Calculate and evaluate the particles’ fitness in the particle swarm
To calculate the particles’ initial fitness in the PSO method, take the mean square error of the network as the fitness function, the current position of the particle as the particle’s own best position, and the current position of the particle swarm as the initial particle swarm best position. The mean square error is defined as follows:
where j is the fault states code of PV system, . is the error for the j-th pattern vector, the desired value of the output, and the actual output of the j-th output neuron.
If the new particle position is better than the current pbest, update the particle’s new position with the latest pbest. If the particle swarm’s new position is better than gbest, update the particle swarm’s new position with the latest gbest.
(6) Judge whether the maximum iterations are achieved or the training error is less than the prescribed standard error in PSO
If the maximum iterations are achieved or the training error is less than the prescribed standard error, search for the best position of the particle swarm in the vicinity of the current gbest using the BP neural network; if the search result is better than the current gbest, then output the search result. Otherwise, output the current gbest to obtain the optimized neural network, or go back to step 3, until the requirements of the fault diagnosis method are met.
4. Data Collection
To verify the reliability of the PV array model built in MATLAB/Simulink (R2012a, MathWorks, Natick, MA, USA), simulation was performed under the standard conditions. 210 set of the values of Voc, Isc, Pm and Vm when , and the series resistance of cells are used as the data sample of the PSO-BP neural network, 150 sets were used as the training sample for the PSO-BP neural network, and the remaining 60 sets were used as the test sample. The values used for important parameters of the PSO-BP neural network are shown in Table 3.
Table 3.
Some important parameters in the PSO-BP neural network.
5. Results and Analysis
The collected data were introduced to the BP neural network proposed in [9,11] and the PSO-BP neural network proposed in this paper and analyzed by MATLAB. The training mean squared error based on 150 training samples and the prediction results of the 60 test samples in the fault diagnosis system, are shown in Figure 7 and Figure 8.
Figure 7.
The training mean squared error in two methods. The blue solid line is the mean squared error in the training process, while the dot line is the target mean squared error in the MATLAB. (a) The training mean squared error of the BP neural network; (b) the training mean squared error of the PSO-BP neural network.
Figure 8.
The prediction results for the two methods. The blue triangles are the prediction results of the two diagnostic methods, and the red asterisks are the actual fault classifications of the 60 test samples. (a) The prediction results of the BP neural network; (b) the prediction results of the PSO-BP neural network.
As can be seen from Figure 7, in the training phase, the BP neural network method takes about 425 steps to achieve convergence, while the heuristic PSO-BP method only needs 312 steps. The mean squared error of the heuristic method is also smaller than that of the BP neural network method. The heuristic PSO-BP neural network method gives a quick and effective optimization training process, and ensures that the fault diagnosis system has greater accuracy.
In Figure 8, it is shown that for the 60 test samples in the fault diagnosis system, there are six misprediction points and the predictive accuracy is only 86.67% with the BP neural network method, while there are only four misprediction points with the heuristic method, which has predictive accuracy of 93.33%. Therefore, the heuristic PSO-BP neural network method can be used to more accurately predict fault type in a PV array.
In order to compare the advantages and disadvantages of the two algorithms, we selected 10 set of typical data from the test samples. The results are shown in Table 4.
Table 4.
Prediction accuracy comparison for the two algorithms.
6. Conclusions
Based on the analysis of the output characteristics of the PV system, Voc, Isc, Pm, and Vm were extracted as the identification parameters for the fault diagnosis system. The PSO-BP neural network method was applied to improve the fault diagnosis system and predict fault type for 60 test samples of six typical fault types, including PV temperature fault, partial shade fault, aging cells, the combination of temperature and shade, the combination of temperature fault and aging cells, and the combination of shading and aging cells. Simulation results show that the heuristic PSO-BP neural network method not only improves the convergence of the prediction algorithm, but also significantly augments the prediction accuracy of the fault diagnosis system. Furthermore, the intelligent algorithm used in this paper can predict the fault type in real time without additional hardware support.
Owing to the complexity and uncertainty of the fault information of PV system, the method proposed in this paper needs to be further studied in the future for on-line diagnosis of more fault types.
Acknowledgments
The authors gratefully acknowledge the funding supported by Chinese Academy of Sciences (Y3404C1C41).
Author Contributions
The research presented in this paper was a collaborative effort among all authors. Zhenghai Liao and Zhuming Liu conceived and designed the methodology; Zhenghai Liao and Dazheng Wang performed the simulations; Zhenghai Liao, Zhuming Liu, and Jinli Ren wrote the paper; Zhuming Liu and Liangliang Tang discussed the results and revised the manuscript critically.
Conflicts of Interest
The authors declare no conflict of interest.
References
- Masson, G.; IEA PVPS Task 1. 2015 Snapshot of Global Photovoltaic Markets; IEA Photovoltaic Power Systems Programme: St. Ursen, Switzerland, 2016; pp. 4–10. [Google Scholar]
- Singh, P.; Ravindra, N.M. Temperature dependence of solar cell performance—An analysis. Sol. Energy Mater. Sol. Cells 2012, 101, 36–45. [Google Scholar] [CrossRef]
- Bai, J.B.; Cao, Y.; Hao, Y.Z.; Zhang, Z.; Liu, S.; Cao, F. Characteristic output of PV systems under partial shading or mismatch conditions. Sol. Energy 2015, 112, 41–54. [Google Scholar] [CrossRef]
- Kaushika, N.D.; Rai, A.K. An investigation of mismatch losses in solar photovoltaic cell networks. Energy 2007, 32, 755–759. [Google Scholar] [CrossRef]
- Takashima, T.; Yamaguchi, J.; Otani, K.; Kato, K.; Ishida, M. Experimental studies of failure detection methods in PV module strings. In Proceedings of the IEEE 4th World Conference on Photovoltaic Energy Conversion, Waikoloa, HI, USA, 7–12 May 2006; pp. 2227–2230.
- Takashima, T.; Yamaguchi, J.; Ishida, M. Disconnection detection using earth capacitance measurement in photovoltaic module string. Prog. Photovolt. 2008, 16, 669–677. [Google Scholar] [CrossRef]
- Chao, K.H.; Chen, P.Y.; Wang, M.H.; Chen, C.T. An intelligent fault detection method of a photovoltaic module array using wireless sensor networks. Int. J. Distrib. Sens. Netw. 2014, 2014, 1–12. [Google Scholar] [CrossRef]
- Hsieh, C.T.; Shiu, J. Study of intelligent photovoltaic system fault diagnostic scheme based on chaotic signal synchronization. Math. Probl. Eng. 2013, 2013, 816296. [Google Scholar] [CrossRef]
- Wang, Y.Z.; Li, Z.H.; Wu, C.H.; Zhou, D.Q.; Fu, L. A survey of fault diagnosis for PV array based on BP neural network. Power Syst. Prot. Control 2013, 41, 108–114. [Google Scholar]
- Wu, Y.C.; Lan, Q.L.; Sun, Y.Q. Application of BP neural network fault diagnosis in solar photovoltaic system. In Proceedings of the IEEE International Conference on Mechatronics and Automation, Changchun, China, 9–12 August 2009; pp. 2581–2585.
- Mellit, A.; Kalogirou, S.A. Artificial intelligence techniques for photovoltaic applications: A review. Prog. Energy Combust. 2008, 34, 574–632. [Google Scholar] [CrossRef]
- Mas’ud, A.A.; Albarracín, R.; Ardila-Rey, J.A.; Muhammad-Sukki, F.; Illias, H.A.; Bani, N.A.; Munir, A.B. Artificial Neural Network Application for Partial Discharge Recognition: Survey and Future Directions. Energies 2016, 9, 574. [Google Scholar] [CrossRef]
- Rumelhart, D.E.; Hinton, G.E.; Williams, R.J. Learning internal representations by error propagation. In Parallel Distributed Processing: Exploration in the Microstructure of Cognition, 1st ed.; MIT Press: Cambridge, MA, USA, 1986; pp. 318–362. [Google Scholar]
- Singh, P.; Singh, S.N.; Lal, M.; Husain, M. Temperature dependence of I–V characteristics and performance parameters of silicon solar cell. Sol. Energy Mater. Sol. Cells 2008, 92, 1611–1616. [Google Scholar] [CrossRef]
- Meyer, E.; Dyk, E.E.V. Assessing the reliability and degradation of photovoltaic module performance parameters. IEEE Trans. Reliab. 2004, 53, 83–92. [Google Scholar] [CrossRef]
- Zhang, J.R.; Zhang, J.; Lok, T.M.; Lyu, M.R. A hybrid particle swarm optimization–back-propagation algorithm for feedforward neural network training. Appl. Math. Comput. 2007, 185, 1026–1037. [Google Scholar] [CrossRef]
- Khadse, C.B.; Chaudhari, M.A.; Borghate, V.B. Conjugate gradient back-propagation based artificial neural network for real time power quality assessment. Int. J. Electr. Power 2016, 82, 197–296. [Google Scholar] [CrossRef]
- Dasgupta, B.; Schnitger, G. The power of approximating: A comparison of activation functions. In Advances in Neural Information Processing Systems; Giles, C.L., Hanson, S.J., Cowan, J.D., Eds.; Morgan Kaufmann Publishers Inc.: Burlington, VT, USA, 1993; pp. 615–622. [Google Scholar]
- Ismail, A.; Jeng, D.-S.; Zhang, L.L.; Zhang, J.-S. Predictions of bridge scour: Application of a feed-forward neural network with an adaptive activation function. Eng. Appl. Artif. Intell. 2013, 26, 1540–1549. [Google Scholar] [CrossRef]
- Xu, C.Y.; Xu, C.F. Optimization analysis of dynamic sample number and hidden layer node number based on BP neural network. In Proceedings of the Eighth International Conference on Bio-Inspired Computing: Theories and Applications, Hefei, China, 12–14 July 2013.
- Li, J.Y.; Shi, J.F.; Li, J.C. Exploring Reduction Potential of Carbon Intensity Based on Back Propagation Neural Network and Scenario Analysis: A Case of Beijing, China. Energies 2016, 9, 615. [Google Scholar] [CrossRef]
- Moradi, M.H.; Abedini, M. A combination of genetic algorithm and particle swarm optimization for optimal DG location and sizing in distribution systems. Int. J. Electr. Power 2012, 34, 66–74. [Google Scholar] [CrossRef]
- Wang, G.G.; Gandomi, A.H.; Yang, X.S.; Alavi, A.H. A novel improved accelerated particle swarm optimization algorithm for global numerical optimization. Eng. Comput. 2014, 31, 1198–1220. [Google Scholar] [CrossRef]
- Khare, A.; Rangnekar, S. A review of particle swarm optimization and its applications in Solar Photovoltaic system. Appl. Soft Comput. 2013, 13, 2997–3006. [Google Scholar] [CrossRef]
- Ratnaweera, A.; Halgamuge, S.K.; Watson, H.C. Self-organizing hierarchical particle swarm optimizer with time-varying acceleration coefficients. IEEE Trans. Evolut. Comput. 2004, 8, 240–255. [Google Scholar] [CrossRef]
© 2017 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license ( http://creativecommons.org/licenses/by/4.0/).







