#### Abstract

In the present work, two artificial intelligence-based models were proposed to determine the output power of two types of photovoltaic cells including multicrystalline (multi-) and monocrystalline (mono-). Adaptive neuro-fuzzy inference system (ANFIS) and Least-squares support vector machine (LSSVM) are applied for the output power calculations. The estimation results are very close to the actual data based on graphical and statistical analysis. The coefficients of determination () of monocrystalline cell output power for LSSVM and ANFIS models are as 0.997 and 0.962, respectively. Additionally, multicells have values of 0.999 and 0.995 for LSSVM and ANFIS, respectively. The acceptable values for and various error parameters prove the accuracy of suggested models. The visualization of these comparisons clarifies the accuracy of suggested models. Additionally, the proposed models are compared with previously published machine learning methods. The accurate performance of proposed models in comparison with others showed that our models can be helpful tools for the estimation of output power. Moreover, a sensitivity analysis for the effects of inputs parameters on output power has been employed. The sensitivity output shows that light intensity has more on output power. The outcomes of this study provide interesting tools which have potential to apply in different parts of renewable energy industries.

#### 1. Introduction

Photovoltaic (PV) cell power generation as a renewable energy source has vital importance, because it is not only used to overcome the present energy problems but also is environment-friendly to overcome the present environmental problems [1–3]. The development and studies in renewable energy technology can reduce the global warming problem and other environmental problems [4]. In the literature, there are some valuable studies on renewable energy topics such as experimental investigation on the effect on the mass flow rate of the nanofluid, volume fraction of the nanofluid, and volume of the storage tank on the inlet-outlet water temperature difference and the energy efficiency of an evacuated tube solar collector. Additionally, three machine learning approaches called gene-expression programming, model tree, and multivariate adaptive regression spline were developed for prediction of these target parameters [5]. Sadeghi et al. developed a modeling investigation on the evacuated tube solar collector. In their work, the gene-expression programming was used to simulate evacuated tube solar collector in various volumes of the thermal storage tanks and solar radiation intensities [6]. Akhter et al. evaluated the performance of three PV technologies including thin-film, monocrystalline, and poly-crystalline technologies based on eleven different performance parameters [7].

The device temperature and material and solar radiation intensity are effective parameters on the output power of PV cells. For instance, multicrystalline, monocrystalline, and amorphous crystalline silicon solar PV cells have different behaviors in the operational conditions. Therefore, an accurate predictive tool for determination of PV power supply and home power demand is highly required to save costs and time [8–10]. Among all predictive tools, the artificial intelligence (AI) approaches have a vital place for the determination of power because the AI approaches because of the ability of AI models in the prediction of the behavior of nonlinear dynamic systems [11]. In the AI approaches, there is no need to employ any physics-based derivations or specific analytical formulations [12]. They do not require complex calculations or high amount of tuning parameters, and also, they have better performance than the multiple linear regression models in nonlinear systems [13, 14]. Overall, a dynamic system can be simulated by feeding a comprehensive dataset into an organized network. This network is trained until an acceptable degree of accuracy is obtained [15].

According to the successful background of intelligence methods in the prediction of different industrial parameters [16–18], in this work, two intelligence models based on adaptive neuro-fuzzy inference system (ANFIS) and Least-squares support vector machine (LSSVM) were suggested to determine the output power of two types of photovoltaic cells including multicrystalline and monocrystalline. Various comparisons have been carried out to investigate the performance of these models. Additionally, an interesting sensitivity analysis is employed to identify the impact of temperature and light intensity on output power.

#### 2. Methodology

##### 2.1. Experimental Databank

To train the aforementioned models, a comprehensive experimental databank was gathered from dependable sources in the literature. The experimental setup and conditions which were used to obtain these data points can be described as follows.

The utilized monocrystalline and multicrystalline PV cells have a size of cm which was produced by QS Solar Company. For data acquisition, the PV testing system with number SAC which produced in Chengdu ZKY Instrument Company Xenon light source is used for the simulated sunlight. A six tranches toggle switch adjusts the intensity of the incident light. The light intensities of these tranches are around 1100, 1000, 900, 800, 700, and 600 W/m^{2}, respectively. A semiconductor refrigeration device was used for the temperature control room of an experimental sample.

The maximum output powers (MOP) and current-voltage curves were measured in temperatures of 40, 35, 30, 27, 25, 20, 15, 10, 5, 0, -5, and -10°C, respectively. Thus, each light intensity tranch has twelve measurement conditions. For instance, the experimental conditions of temperature and light intensity are -10°C and 6th tranche, -5°C and 6th tranche, 0°C and 6th tranche, 5°C and 6th tranche, 10°C and 6th tranche, 15°C and 6th tranche, 20°C and 6th tranche, 25°C and 6th tranche, 27°C and 6th tranche, 30°C and 6th tranche, 35°C and 6th tranche, and 40°C and 6th tranche. A total number of 72 actual points were collected, 62 of them were used as training data points, and 10 data points were used in the testing phase for evaluating the performance of models in unseen conditions [10].

##### 2.2. Adaptive Neuro-Fuzzy Inference System

Fuzzy logic (FL) includes the inference strategy and cognitive uncertainties. On the other hand, artificial neural networks have parallel scattered structures which can be adapted quickly with different types of problems. Referring to these characteristics, the combination of these structures created neuro-fuzzy method. This method was employed by Takagi first time; after that, Jang proposed ANFIS. This model employed the abilities of both fuzzy and ANN structures to improve its performance [19]. In other words, this model combines fuzzy structure characteristic and adaptive system. The schematic structure of the ANFIS model is demonstrated in Figure 1. In this demonstration, fuzzy rules of the first-order Sugeno are expressed as follows: if and are acceptable, is assumed. In which, , , and are obtained in the process of training. The below figure gives information about the layered structure of this model [20]:

*Layer 1*: in this layer, adaptive nodes exist. These nodes can be considered as counterparts of linguistic terms, in which outputs have a relationship with membership function (MF) as follows:
In this formulation, *σ*, , and are the variances, Gaussian membership function center, and output, respectively.

*Layer 2*: this layer includes multiplying entrance signals to determine the fire strength:
*Layer 3*: this layer contains some firm nodes. The nodes determine the ratio of firing strength to the sum of all firing strength. The final outputs of this layer can be defined as follows:
*Layer 4*: available adaptive nodes in this layer are used to calculate normalized firing strength as following:
*Layer 5*: the final layer includes a node that sums the outputs of the fourth layer [21, 22]:

##### 2.3. Least-Squares Support Vector Machine

The cornerstone of support vector machine (SVM) is structural risk minimization and machine learning concepts. This algorithm can detect various patterns of available data and investigation of them based on a suitable way [23]. Seykens et al. upgraded SVM algorithm and called it least squares SVM (LSSVM). The significant point of the new algorithm is the fact that uses a linear equation system to solve the problem. This point makes it faster than the SVM algorithm. The below formulation describes the cost function of LSSVM method [24]: The following constrain is defined for the cost function:

In which, and are the bias and linear regression slope values, respectively. stands for the regularization parameter. and stand for the input and output. and are the transpose matrix and feature map. In the following, the Lagrange equation is defined: In which, is the Lagrangian multiplier which is estimated based on partial differentiation concept:

In which, , , , and is the identity matrix. stands for . The LSSVM theory can be arranged in the other form: In which, is the kernel function that is in the form of radial basis function: which stands for radial basis width which is calculated during the training process. The process of determination of tuning parameters is shown in Figure 2[25]. The particle swarm optimization (PSO) is used for the determination of these parameters.

##### 2.4. Particle Swarm Optimization

For the first time, the PSO algorithm was developed by Eberhart [26]. The main end of this approach is the determination of best conditions for nonlinear and complex problems. The motion of particles is the fundamental of finding global optimum in this method. Each particle stands for possible answers. During the optimization, the location and velocity of the particle are used. is known as the optimum solution from this algorithm, and is the best location of the particle in the defined domain. The below formulations show the ways that particle location and velocity are determined: and stand for the velocity and position of the particle, respectively. and show the learning terms which can control the speed of the particle. is used as a connection between previous velocity and current value. and are random values between 0 and 1 [27, 28]. There are other optimization algorithms in the literature. Genetic algorithm (GA) and hybrid of GA and PSO (HGAPSO) are well-known algorithms which can be used for optimization of LSSVM and ANFIS algorithms. Their combinations with these predictive tools create great models for the prediction of different processes in the industries [24, 25].

#### 3. Results and Discussion

In the present part, the outputs of models and experimental output powers for these two types of cells are compared to ensure the accuracy and ability of models. To this end, graphical and statistical comparisons are carried. First, for graphical comparison, the simultaneous illustrations of predicted and actual output power for monocells and multicells are shown in Figures 3 and 4 for ANFIS and LSSVM models, respectively. These comparisons show that models outputs have an agreement with experimental values.

**(a)**

**(b)**

**(a)**

**(b)**

The cross plots for these models are depicted in Figures 5 and 6. The regression lines for monocells and multicells show that they have similar equations to line. The coefficients of determination parameters for these lines are near one. Therefore, the accuracy of proposed models in the determination of output power is acceptable. The details of discussing lines are shown in Figures 5 and 6. The compaction of output power data points near the bisector shows that models have enough accuracy in the determination of output power.

**(a)**

**(b)**

**(a)**

**(b)**

The relative deviation between predicted and experimental values for ANFIS and LSSVM models is shown in Figures 7 and 8. The concentration of relative deviations around the -axis line shows that the proposed models have great accuracy in the wide range of output powers. As a noticeable point, the trained models have better accuracy in the prediction of output power values for multicells. The best performance belongs to the LSSVM algorithm for the prediction of multicell with a relative error lower than 2 percent.

**(a)**

**(b)**

**(a)**

**(b)**

The coefficients of determination (), mean relative error (MRE), mean squared errors (MSEs), relative mean squared errors (RMSEs), and Standard deviations (STDs) are formulated as below [29–31]: Determination of above parameters shows the accuracy of models in the prediction of the output power of photovoltaic cells. The calculated parameters are inserted in Table 1.

As can be seen, the LSSVM model has better accuracy in comparison with the ANFIS model. The determined values for monocell and multicell are 0.997 and 0.999 for LSSVM, respectively. The calculated values of ANFIS model are reported 0.962 and 0.995 for monocell and multicell, respectively. Moreover, the MSE values of LSSVM are 0.3836 and 0.1251 for monocell and multicell, respectively. The MSE values of 4.6914 and 0.6451 are reported for monocell and multicell, respectively. Furthermore, the other error parameters are very low for the LSSVM model. Therefore, the accuracy and performance of this algorithm are acceptable for the estimation of the output power of photovoltaic cells. Xiao et al. used the different structure of ANN algorithms for the estimation of output power. The best predictive structures for their work had 8 and 9 hidden layer unit with an average correlation coefficient of 0.97 and 0.988 for monocrystalline and multicrystalline. Our proposed models have better performance than these ANN-based methods [10].

One of the well-known analyses which are carried in this study is the estimation of the relevancy factor for inputs. The relevancy factor describes the impacts of the considered input parameter on the output power of photovoltaic cells. This factor can be formulated as below [25, 32]: Herein, , , , and stand for the “” th output, output average, th of input, and average of inputs [21]. The estimated relevancy factor for each input is demonstrated in Figure 9 which shows that the most effective parameter on the output power of cells is light intensity with value of 0.97. Additionally, the values of output power will increase if light intensity increases. On the other hand, the negative values of the relevancy factor for temperature show that there is a reverse relationship between temperature and output power.

**(a)**

**(b)**

#### 4. Conclusions

In this work, two artificial intelligence methods based on ANFIS-PSO and LSSVM-PSO have been developed to determine the output power of two types of photovoltaic cells. The employed models show great accuracy in graphical and statistical comparisons. The coefficients of determination () of monocrystalline cell output power for LSSVM and ANFIS models are determined as 0.997 and 0.962, respectively. Additionally, multicells have values of 0.999 and 0.995 for LSSVM and ANFIS, respectively. The lower error values show that the present models have great accuracy in the prediction of cell output power. The graphical comparisons are also employed to the better demonstration of agreement between predicted and actual output power values. After that, a sensitivity analysis has been carried out to show the relationship of input parameters and output power of these cells. According to the obtained results, the present work provides useful information about the determination of output power for different types of cells. The suggested models can determine this parameter by consuming the least time and cost. The main limitation of these methods is that they need a comprehensive dataset for training models and obtaining tuning parameters. If a limited number of experimental data points are used in the training phase, the performance of the model in determination of unseen conditions will be limited. According to this fact, a comprehensive and large experimental databank which covers a wide range of operational conditions should be provided.

#### Data Availability

The data that support the findings of this study are available from the corresponding author, upon reasonable request.

#### Conflicts of Interest

The authors declare no conflicts of interest.

#### Acknowledgments

The study is financially supported by the Key research project of Guangdong University of Science & Technology in 2020: Algorithm Research on smart Grid Power Supply Restoration (GKY-2020KYZDK-3).