Next Article in Journal
The Application of Analytical Hierarchy Process in Combination with PESTEL-SWOT Analysis to Assess the Hydrocarbons Sector in Cyprus
Previous Article in Journal
A Novel Breaking Strategy for Reduced Response Time of Electromagnetic Contactor by Reverse Voltage Application
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Harmonic Distortion Prediction Model of a Grid-Tie Photovoltaic Inverter Using an Artificial Neural Network

1
Faculty of Electrical Engineering, Computer Science and Information Technology Osijek, J.J. Strossmayer University of Osijek, Osijek 31000, Croatia
2
Faculty of Technical Sciences, University of Novi Sad, Novi Sad 21000, Serbia
*
Author to whom correspondence should be addressed.
Energies 2019, 12(5), 790; https://doi.org/10.3390/en12050790
Submission received: 4 February 2019 / Revised: 22 February 2019 / Accepted: 23 February 2019 / Published: 27 February 2019
(This article belongs to the Section F: Electrical Engineering)

Abstract

:
Expanding the number of photovoltaic (PV) systems integrated into a grid raises many concerns regarding protection, system safety, and power quality. In order to monitor the effects of the current harmonics generated by PV systems, this paper presents long-term current harmonic distortion prediction models. The proposed models use a multilayer perceptron neural network, a type of artificial neural network (ANN), with input parameters that are easy to measure in order to predict current harmonics. The models were trained with one-year worth of measurements of power quality at the point of common coupling of the PV system with the distribution network and the meteorological parameters measured at the test site. A total of six different models were developed, tested, and validated regarding a number of hidden layers and input parameters. The results show that the model with three input parameters and two hidden layers generates the best prediction performance.

1. Introduction

Renewable energy sources (RES) have developed rapidly within the last decade. Among the different types of RES, photovoltaic (PV) systems can be considered to be one of the most promising technologies due to the continuously decreasing cost of PV modules and their constantly increasing solar cell efficiency. The encouraging policies and frameworks developed by governments worldwide have spurred the continuous growth of the installed capacity of PV systems, resulting in a global installed capacity of 402 GW at the end of 2017 [1]. The majority of these systems are connected with power electronics-based converters to the AC grid, which has raised many concerns regarding protection, system safety, voltage instability, and power quality [2]. Because the output current of a PV plant based on power electronics is not a pure sinusoidal wave but a distorted, high-order current, harmonics are generated. These currents generate harmonic distortions of voltages flowing through the system’s impedances [3,4]. This has produced general concern for the grid operation, especially if large amounts of installed capacity are present in the part of the grid with low short-circuit power (i.e., the weak grid), which can be the case when there is a distribution network radial feeder [4]. Additionally, actual grid code compliance requires adequate power quality of the power injected into the grid during various disturbances [5]. In order to monitor the effects of the current harmonics generated by PV plants on the system voltage, current harmonic prediction models need to be developed.
Saini and Kapoor [6] and Khokhar et al. [7] provided general reviews of the application of artificial intelligence techniques in the classification of power quality disturbances. There are two main types of methodologies for current harmonic prediction: real-time application and long-term current harmonic predictions. The real-time application of current harmonic prediction is mostly used in active filters and static synchronous compensators (STATCOM) [8] and will not be the focus of this work. However, long-term current harmonic prediction methods can be used by system operators in order to address and reduce possible harmonic problems during operation [9].
Kow et al. [10] reviewed the performance of artificial intelligence and conventional methods on mitigating PV grid-tied related power quality events. A short-term current harmonic estimation method is also discussed in [11], in which the authors proposed two different techniques. The first is based on instantaneous powers, while the second is based on an ADALINE neural network. Merabet et al. [8] proposed a new method for harmonic current predictions, using impedance modeling of grid-tie inverters. The proposed method estimates the current harmonic emitted by PV plants at the point of common coupling (PCC) as a function of the background voltage harmonics. Cao et al. [12] proposed a simple method for current total harmonic distortion (THDI) prediction for small-scale grid-connected inverters. The method uses double-frequency current control pulse with modulation (PWM) technique in order to validate the estimation of the THDI. Rodway et al. [13] proposed a new method for THDI prediction based on extreme learning machine (single-layer feed-forward neural network) and random forests techniques. The proposed model uses only solar irradiance as an input. The results showed that random forests technique outperformed the extreme learning machine neural network both with respect to categorical and continuous predictions.
None of these papers, however, proposed a long-term current harmonic distortion prediction model based on easy measurable parameters; therefore, the general idea of the paper was to design a current harmonic prediction model using solar irradiance and ambient temperature as predictors. The results of this model’s current harmonic prediction can be utilized by the distribution system operators (DSO) in order to predict the current harmonic distortion, especially in situations of weak radial feeders with high penetration of PV systems. On top of that, DSOs can use this current harmonic prediction model for monitoring the influence of PV plants’ harmonic emissions on system voltage distortion.
As an additional benefit, the developed model’s simplicity allows for it to be implemented on inverter control hardware as well. The long-term prediction will allow the system operator to request the appropriate level of power quality parameters at the PCC, while the same prediction model can be then used by the inverter to select the appropriate technique for harmonic control and the mitigation of the effects of the inverter control strategies. Because this ability is not integrated into the power quality standards related to renewables, this may lead to interferences between the grid and the power electronics-based generation sources, resulting in an unused capability [14].
The proposed model uses a type of artificial neural network (ANN) called multilayer perceptron neural network (MLPNN) with input parameters (predictors) that are easy to measure (solar irradiance and ambient temperature). The MLPNN is trained with one-year worth of power quality parameters measured at the PCC of a 10 kW PV plant with the distribution grid and meteorological data measured at the test site. The forecasting model predicts the 5th, 7th, 11th, and 13th current harmonic emitted by the PV plant, because it uses a 6-pulse transformerless three-phase grid-tie inverter. The 6-pulse inverter generates current harmonics of order 6k ± 1 where k represents integer values of which 5th, 7th, 11th, and 13th are the largest. Furthermore, triples harmonics are not present in this topology [15]; therefore, the 3rd current harmonic is not predicted by the developed model.
This paper is organized into five sections. Section 1 presents the introduction to the topic of the paper and a literature review. Section 2 describes the proposed methodology, while Section 3 analyzes the power quality and meteorological data measured at the test site. Section 4 presents a description of the MLPNN used for the current harmonic prediction and its design process. Moreover, the evaluation metrics for the model are described. In the last part of Section 4, the performance results for the different models of MLPNN are presented, analyzed, and discussed. In Section 5, concluding remarks based on the obtained results are provided.

2. Materials and Methods

2.1. Description of the Site

In this paper, a 10-kWp PV plant, considered to be a residential-scale system, is studied. The PV plant is an outdoor component of the Laboratory for Renewable Energy Sources at the Faculty of Electrical Engineering, Computer Science, and Information Technology (FERIT) Osijek in Osijek, Croatia. Osijek is located in the eastern part of Croatia (latitude 45°33′17″ N, longitude 18°41′43″ E), and it has a European, humid continental climate [16]. The PV plant is installed on the roof of the FERIT Osijek building with a 7° tilt angle. It consists of 2 5-kWp PV arrays connected to a three-phase grid-tie inverter, which is connected to a 230 V AC, 50 Hz distribution network via the building’s electrical switchboard. Each array consists of 20 series-connected 250 Wp PV modules. The first array consists of monocrystalline silicon, while the second consists of polycrystalline silicon PV modules. The technical characteristics of the three-phase grid-tie inverter of the PV plant are given in Table 1.

2.2. Measurement Procedure

The measurements used for our analysis were obtained by the data acquisition system developed by the Laboratory for Renewable Energy Sources of the FERIT Osijek. The data acquisition system simultaneously and continuously measures, analyzes, and stores electrical and meteorological data at the test site in local and cloud databases [18]. This paper used measurements of solar irradiance and ambient temperature and power quality measurements. The solar irradiance was measured by a Kipp&Zonnen SMP3 pyranometer, while the ambient temperature was measured by a weather station, which uses a DB18B20 digital thermometer. The power quality was measured by a class-A three-phase power quality analyzer Fluke 1760 compliant with IEC 61000-4-30 standards [19]. The solar irradiance and ambient temperature were recorded and stored every second and later averaged (every 10 min) in the data acquisition system. Figure 1 shows the layout of the 10-kWp PV plant and part of the data acquisition system used for the electrical and meteorological measurements, while Figure 2 shows the actual equipment used to obtain the measurements for our paper analysis (PV plant strings, PV plant inverter, pyranometer, and power quality analyzer). In this paper, the measurements recorded during the period of 1 year (1 January 2018–31 December 2018) were used for the MLPNN models’ training. Each point of measurement represents the 10-min average value of the measured parameter.

3. Analysis of the Measured Data

3.1. Meteorological Data

In this section, the analysis of the meteorological data measured at the test site is described. The daily mean values of the solar irradiation and ambient temperatures of 2018 are given in Figure 3. The analysis of the results shows higher solar irradiation and ambient temperatures during the summer months, which is an expected feature of a European, humid continental climate. Furthermore, Table 2 gives the statistical analysis of the solar irradiance and ambient temperatures, which are later used as input parameters for the MLPNN models.

3.2. Power Quality Measurement Analysis

The power quality measurements were taken at the PCC of the PV plant’s inverter with the AC distribution grid. In order to address the problem of the current harmonic prediction, a time series of 1st, 5th, 7th, 11th, and 13th current harmonics on 2 selected days (sunny and partially cloudy days) were analyzed. Figure 4 shows 1st, 5th, 7th, 11th and 13th current harmonics on 21 August 2018 (sunny day), while Figure 5 shows those on 15 April 2018 (partially cloudy day). It is visible in Figure 4 that there is a certain pattern of the current harmonics during the sunny day, while in Figure 5 (partially cloudy day), such pattern does not exist because of the solar irradiance intermittence. This behavior is the main driver for the current harmonic prediction model development based on ANN.
Figure 6 gives a comparison of the current harmonic spectrum for the 2 analyzed days (sunny and partially cloudy days). It is evident that the 2 compared days have similar patterns where the 5th, 7th, 11th, and 13th current harmonics are the highest. This behavior was described in Section 1.
Figure 7 gives comparison of absolute THDI calculated from the 2nd to the 40th current harmonic using Equation (1) and the absolute THDI calculated only from the 5th, 7th, 11th, and 13th current harmonics using Equation (2), where i represents the order of the current harmonic and Ii represents the effective current of the harmonic order i:
T H D I total = i = 2 40 I i 2
T H D I 5 13 = I 5 2 + I 7 2 + I 11 2 + I 13 2
The relation of THDI is given for the period of 14 August 2018–17 August 2018. It is clear that the 5th, 7th, 11th, and 13th current harmonics generate the majority of the THDI. The annual share of THDI calculated considering only the 5th, 7th, 11th, and 13th current harmonics, calculated as in Equation (2), in THDI calculated considering the 2nd to the 40th current harmonics, calculated as in Equation (1), is 82.04% (only for daytime when the PV plant is operating).
Figure 8 and Figure 9 give the dependency of the 5th, 7th, 11th, and 13th current harmonics’ amplitudes on the 2 input parameters of the MLPNN from 2018, i.e., solar irradiance and ambient temperature. Each point on the scatterplots represent a 10-min average value of the parameters measured at that time. The scatterplots given in Figure 8 and Figure 9 show large dispersions of the current harmonics, especially in relation to the ambient temperature. This dispersion is also confirmed for both Figure 8 and Figure 9 with the coefficient of correlation R. The coefficient of correlation in this case represents the correlation of each current harmonic amplitude to the meteorological parameter (solar irradiance or ambient temperature). The stronger the coefficient of correlation R, the stronger the dependency of the current harmonic amplitude on the meteorological parameter. It can be observed that larger coefficients of correlation R are present in the current harmonic amplitudes in relation to solar irradiance rather than in those in relation to ambient temperature. Furthermore, it can be seen that largest coefficients of correlation R occur for 5th current harmonic amplitude in relation to solar irradiance.
The statistical analysis of the 5th, 7th, 11th, and 13th current harmonics is given in Table 3. The statistical indices given in Table 3 show the distribution of the measured current harmonic amplitudes. It can be seen that the current harmonics have different ranges of values. For example, the 5th current harmonic has the biggest amplitude range, from 0.1354 A to 0.8489 A, while the 13th current harmonic has the lowest, from 0.0437 A to 0.2915 A. Furthermore, it can be seen that the observed current harmonics have a large standard deviation and coefficient of variation, which depict the high dispersion of the measurement data and thus the complexity of current harmonic prediction.

4. Current Harmonics Forecasting with ANN

The most well-known approach for non-linear robust models is an ANN. ANNs are inspired by the function of the human brain, which uses an indefinite number of information-processing units called neurons. Every ANN consists of neurons which are organized in different numbers and types of layers. In this paper, a MLPNN that uses an input layer, a different number of hidden layers, and an output layer is used (Figure 10) [20].
A diagram of the neuron model that is used in the MLPNN is given in Figure 11, where x1, x2, …, xn are input values, wk1, wk2, …, wkn are synaptic weights, bk is a bias, and G(uk) is the activation function [20]. The output value uk is defined as in Equation (3), while the output of the neuron yk is calculated as in Equation (4).
u k = i = 1 n w k i x i
y k = G ( u k + b k )
The proposed ANN uses back-propagation for learning (training). Training or the learning of the ANN is a process in which free parameters of neurons (weights and biases) in hidden layers of the ANN are adjusted through each iteration of the learning process in order to make the ANN more knowledgeable about its environment. In this paper, a type of error correction learning algorithm was used for the ANN training [20]. This learning algorithm adjusts the synaptic weights and biases of the neurons in order to minimize the error function [21]. The learning algorithm was implemented through an optimizer, which minimizes the objective function, i.e., the error function. The ANN proposed in this paper uses the most commonly used error function for learning, the mean squared error (MSE), which given in Equation (5):
M S E = i = 1 N | I pred I meas | 2 N
where N is the number of samples, Ipred is the predicted value, and Imeas is the experimentally measured value.
A very important step in the ANN set-up is data pre-processing, because it removes dimensional differences between the input data and increases ANN prediction accuracy [21]. Because of this, the input data for the proposed ANN in this paper is pre-processed according to Equation (6), i.e., every input parameter has a value between 0 and 1:
y i = x i x min x max x min
where yi is the i-th output value between 0 and 1, xi is the i-th input value of parameter, xmin is the minimum input value of the parameter in a set, and xmax is the maximum input value of the parameter in a set.
Because of this kind of pre-processing of input data (between 0 and 1), sigmoid activation function is used for every node in each hidden layer of the proposed ANN, because it transfers the input value into a value between 0 and 1 and has the best performance among the other activation functions (based on trial and error). The sigmoid activation function, also called the logistic activation function, is calculated as in Equation (7) and shown in Figure 12 [20]:
G ( x ) = 1 1 + e x
where G(x) is the output of the sigmoid function and x is the input of the sigmoid function.
The most challenging problem when modeling an ANN is to determine the architecture, i.e., the optimal number of hidden layers, number of neurons in each layer, and the activation function of each layer. Furthermore, an ANN can use different numbers of parameters for input variables (predictors) and a different type of optimizer for error function minimization (training).
There are many different types of optimizers, which perform differently depending on the task for which they are used. The determination of the best optimizer for current harmonic prediction was determined based on trial and error. The optimizer that best minimizes the error function was determined to be the best for this task. Furthermore, optimizers with default parameters were tested on the same ANN (1 hidden layer with 11 nodes, input parameter G, and sigmoid activation function). Figure 13 shows the MSE of the ANN training with different types of gradient descent optimizers over 100 epochs and with batch size of 8. An epoch is an iteration over all the training datasets (input and output). The batch size defines the number of samples that will be propagated through the neural network at once.
Figure 13 shows that Nadam is the best performing optimizer for current harmonic forecasting. Nadam is type of Adam optimizer that incorporates Nesterov momentum [22]. Adam is a first-order gradient-based optimizer of stochastic objective function based on adaptive estimates of lower-order moments. Adam combines the advantages of two other types of stochastic gradient descent optimizers: Adagrad (adaptive gradient algorithm) [23] and RMSprop (root-mean-square propagation).

4.1. ANN Model Evaluation

ANN performance was evaluated with following statistical error metrics: the coefficient of correlation (R) given in Equation (8), Willmott index of agreement [24] (d) given in Equation (9), root-mean-square error (RMSE) given in Equation (10), and mean absolute error (MAE) given in Equation (11). The coefficient of correlation R evaluates the correlation between two parameters. In this case, a coefficient of correlation equal to 1 means that the predicted values of the current harmonic amplitudes are exactly the same as the measured ones for the same 10-min average value, i.e., the performance of the model is ideal. A coefficient of correlation R equal to 0 means that the prediction model is totally inaccurate. An analogy can be drawn for the Willmott index of agreement d. Indices RMSE and MAE are statistical error metrics, which also compare the accuracy of the predicted values of the current harmonic amplitudes with the measured ones for the same 10-min average value. The lower the RMSE and MAE, the better (more accurate) the prediction model. The RMSE and MAE of an ideally performing prediction model would be 0 A.
R = 1 N i = 1 N ( I meas , i I ¯ meas ) ( I pred , i I ¯ pred ) 1 N i = 1 N ( I meas , i I ¯ meas ) 2 1 N i = 1 N ( I pred , i I ¯ pred ) 2
d = 1 i = 1 N ( I pred , i I ¯ meas , i ) 2 i = 1 N ( | I pred , i I ¯ meas | + | I meas , i I ¯ meas | ) 2
R M S E = 1 N i = 1 N ( I meas , i I pred , i ) 2
M A E = 1 N i = 1 N | I meas , i I pred , i |
where I is the sample number, N is the number of samples in a set, Imeas,i is the experimentally measured value of sample I, Ipred,i is the predicted value of sample i, I ¯ meas is the average of the experimentally measured values, and I ¯ pred is the average of predicted values.

4.2. Simulations, Results, and Discussion

The current harmonics of the PV plant presented in Section 2 were predicted using MLPNN models. The models were built with Keras library, which was run on top of TensorFlow in Python programming language [25,26]. Every MLPNN model predicts the 5th, 7th, 11th, and 13th current harmonic; therefore, they have four output variables. A total of three versions of MLPNN were developed with the following input parameters: version 1 with only one input variable, i.e., solar irradiance (G); version 2 with two input variables, i.e., solar irradiance and ambient temperature (Tamb); and version 3 with three input variables, i.e., solar irradiance, ambient temperature, and time of the day (t).
Each version uses two MLPNN architectures: a version with one hidden layer and 11 nodes and a version with two hidden layers with 11 and five nodes per hidden layer, respectively. The two aforementioned architectures of the MLPNN were chosen as the best performing architectures, determined by trial and error simulations.
Thus, overall, we developed 6 different MLPNN models using the input parameters and architectures, which are described in Table 4. In Table 4, the MLPNN architecture is defined as follows: the first and last numbers represent number of input and output parameters, respectively, while the other numbers represent number of nodes in the hidden layer/s.
It is important to emphasize that prediction of current harmonics was performed only for periods of daylight (when the PV plant was operating), i.e., nights were excluded in order to rule out the possibility of misconception of the output results of the model performance (night periods increase the model performance, because the current harmonics are constant and very predictable). The input variable of time of the day (t) is represented as value between 0 and 1, where 0 is the beginning of the day 00:00 and 1 is the end of the day 24:00, but because nights were excluded from the MLPNN training, this value is never 0 or 1.
Every model of MLPNN is trained over 100 epochs and with a batch size of 8 in order to achieve comparability of the results. The proposed models were executed on a PC equipped with a 64-bit operating system, i5-7200U 2.5 GHz processor, and 8 GB of DDR4 RAM memory. The training time of each MLPNN model was 350 s, while the prediction of the current harmonics lasted for 3 s, meaning that the total time of the simulation was 353 s. The computational time did not vary significantly for the different types of MLPNN models developed and evaluated in this paper.
The performance of the MLPNN models was compared with four statistical indices (R, d, RMSE, and MAE), as described in Section 4.1. Table 5 and Table 6 show the performance of the MLPNN with one (G) and two (G and Tamb) input variables, respectively, while Table 7 shows the performance of the MLPNN with three input variables (G, Tamb, and t).
The performance results obtained for the six different versions of the MLPNN models given in Table 5, Table 6 and Table 7 show that MLPNN 6 with three input parameters (G, Tamb, and t) and two hidden layers produced the best results considering the overall accuracy (all four current harmonics). If we observe the prediction accuracy of each current harmonic individually, MLPNN 3 demonstrated the best performance for the prediction of the 5th current harmonic. If we compare the results by the coefficient of correlation R (0.9381). MLPNN 1 had the best performance for the prediction of the 7th current harmonic (R = 0.971), while MLPNN 6 showed the best performance for the predictions of the 11th (R = 0.9469) and 13th (R = 0.8801) current harmonics.
The results show that the introduction of the third input to the MLPNN (time of the day) model resulted in slightly better performance (accuracy) of the model. Furthermore, regarding the number of hidden layers in the MLPNN, the results show that there is no general conclusion as to whether one or two hidden layers is better. For the 5th current harmonic prediction, it is clear that MLPNN 3 (one hidden layer) had the best R value (0.9381), while MLPNN 1 (one hidden layer) has the lowest R value (0.9356). If we observe the other current harmonic predictions (7th, 11th, and 13th), a similar conclusion can be drawn: there is no the superior number of hidden layers. A graphical interpretation of the overall results is given in Figure 14, where the coefficients of correlation R for the predictions of the 5th, 7th, 11th, and 13th current harmonics of every MLPNN model are shown. The coefficients of correlation evaluate the accuracy of the prediction of each current harmonic amplitude by comparing it to the measured value of the current harmonic amplitude for the same 10-min sample.
Figure 15 shows the scatterplot between the measured and predicted current harmonics for MLPNN 6, which showed the best overall prediction accuracy of the current harmonic amplitudes. The plots represent the accuracy of MLPNN 6’s prediction for each current harmonic (5th, 7th, 11th, and 13th). Each scatterplot compares the predicted values of the current harmonic amplitude with the measured ones. This means that the input parameters (solar irradiance, ambient temperature, and time of the day) used to generate the predicted values of the current harmonics with the MLPNN model are measured at the same time as the current harmonics, which are used to compare the performance of the model. Each point on the plots represent a 10-min average value of the predicted and measured current harmonic amplitudes. The ideal performance of the model would generate exactly the same amplitudes as the measured amplitudes of the compared current harmonics; thus, the points on the scatterplots would be located on the same line (R = 1) that starts in the origin of the coordinate system. The results given in Figure 15 show that MLPNN 6 demonstrates the best accuracy with respect to predicting the 7th current harmonic. It can also be seen that the model performs better in the area of lower amplitudes, while in the area of larger amplitudes of the current harmonics, the results are more dispersed. Regardless, the overall accuracy of the prediction model is very high.
Figure 16 and Figure 17 show the scatterplot and time series plot of the measured and predicted THDI, respectively. Furthermore, Figure 16 and Figure 17 show THDI only for daytime (nighttime is excluded, because the current harmonics were not predicted for that period of the day). The predicted THDI was only calculated with the predicted 5th, 7th, 11th, and 13th current harmonics, given by Equation (2), while the measured THDI was calculated from the measured 2nd to 40th current harmonics, given by Equation (1). The scatterplot given in Figure 16 represents the accuracy of MLPNN 6’s prediction of THDI. It compares the THDI calculated with the predicted values of the 5th, 7th, 11th, and 13th current harmonics with the THDI calculated with the measured values from the 2nd to the 40th current harmonic. Each point on the plot represents the 10-min average value of the THDI calculated with the predicted current harmonic values and the THDI calculated with the measured ones. As is the case for Figure 15, the ideal performance of the model would generate exactly the same values of THDI, which would be located on the same line (R = 1) that starts in the origin of the coordinate system. It can be seen in Figure 16 that the model performs better in the area of the lower amplitudes of THDI, while in the area of the larger amplitudes of the current harmonics, the results are more dispersed. Regardless, the accuracy of the prediction model is very high, resulting in a coefficient of correlation R of 0.8827 and a Willmott index of agreement d equal to 0.8826.

5. Conclusions

In this paper, a novel method for the prediction of current harmonics is presented. The proposed method uses MLPNN in order to predict the 5th, 7th, 11th and 13th current harmonics generated by a three-phase, grid-tie PV plant inverter. A total of six different models depending on the number of hidden layers and number of input parameters were trained and validated based on one-year worth of measurements (1 January–31 December 2018) of power quality and meteorological parameters. The power quality was measured at the point of common coupling of a 10-kWp PV plant with the distribution network, while the meteorological parameters (solar irradiance and ambient temperature) were measured at the test site.
The results of the MLPNN model prediction show that the introduction of the third input parameter (time of the day) into the models encouraged slightly better performance. Furthermore, there was no general conclusion as to whether one or two hidden layers in the MLPNN results in better performance. If the overall performance of the harmonic prediction is considered, then MLPNN 6 with three input parameters (solar irradiance, ambient temperature, and time of the day) and two hidden layers demonstrates the best accuracy. In case of individual current harmonic prediction accuracy, MLPNN 3 produces the best performance for the prediction of the 5th current harmonic if we compare the results of the coefficient of correlation R. MLPNN 1 showed the best performance for the predictions of the 7th current harmonic, while MLPNN 6 produced the best performance for the predictions of the 11th and 13th current harmonics.
Although the MLPNN models were trained by measurements obtained for a geographical region with a European, humid continental climate, they can be trained for regions with different climates. The models for current harmonic prediction proposed in this paper provide very good accuracy in general. Further research is planned in order to increase the prediction accuracy. We also plan to develop a prediction model for voltage harmonics generated by the injection of the current harmonics by the PV plants in a distribution grid.

Author Contributions

Conceptualization, M.Ž. and Z.K.; Formal analysis, M.Ž.; Funding acquisition, Z.K. and D.Š.; Investigation, M.Ž. and Z.K.; Methodology, M.Ž., Z.K. and D.Š.; Project administration, D.Š.; Resources, Z.K. and D.Š.; Software, M.Ž.; Supervision, Z.K., D.Š. and B.D.; Validation, D.Š. and B.D.; Visualization, M.Ž., Z.K. and D.Š.; Original draft preparation, M.Ž.; Review and editing of manuscript, Z.K., D.Š. and B.D.

Funding

This research is funded by “Establishment of interdisciplinary research group in the field of renewable energy sources and their integration into the smart future energy systems”, J.J. Strossmayer University of Osijek, Interdisciplinary research project.

Acknowledgments

The authors are thankful to Dario Došen, a senior laboratory technician at the Faculty of Electrical Engineering, Computer Science and Information Technology Osijek for performing data preparation.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. REN21. Renewables 2018 Global Status Report; REN21 Secretariat: Paris, France, 2018; ISBN 9783981891133. [Google Scholar]
  2. Aiello, M.; Cataliotti, A.; Favuzza, S.; Graditi, G. Theoretical and Experimental Comparison of Total Harmonic Distortion Factors for the Evaluation of Harmonic and Interharmonic Pollution of Grid-Connected Photovoltaic Systems. IEEE Trans. Power Deliv. 2006, 21, 1390–1397. [Google Scholar] [CrossRef]
  3. Grady, W.M.; Santoso, S. Understanding Power System Hannonics. IEEE Power Eng. Rev. 2001, 21, 8–11. [Google Scholar] [CrossRef]
  4. Fekete, K.; Klaic, Z.; Majdandzic, L. Expansion of the residential photovoltaic systems and its harmonic impact on the distribution grid. Renew. Energy 2012, 43, 140–148. [Google Scholar] [CrossRef]
  5. Molina-García, A.; Honrubia-Escribano, A.; García-Sánchez, T.; Gómez-Lázaro, E.; Muljadi, E. Power quality surveys of photovoltaic power plants: Characterisation and analysis of grid-code requirements. IET Renew. Power Gener. 2015, 9, 466–473. [Google Scholar]
  6. Saini, M.K.; Kapoor, R. Classification of power quality events—A review. Int. J. Electr. Power Energy Syst. 2012, 43, 11–19. [Google Scholar] [CrossRef]
  7. Khokhar, S.; Mohd Zin, A.A.B.; Mokhtar, A.S.B.; Pesaran, M. A comprehensive overview on signal processing and artificial intelligence techniques applications in classification of power quality disturbances. Renew. Sustain. Energy Rev. 2015, 51, 1650–1663. [Google Scholar] [CrossRef]
  8. Pereira, H.A.; Freijedo, F.D.; Silva, M.M.; Mendes, V.F.; Teodorescu, R. Harmonic current prediction by impedance modeling of grid-tied inverters: A 1.4 MW PV plant case study. Int. J. Electr. Power Energy Syst. 2017, 93, 30–38. [Google Scholar] [CrossRef]
  9. McBee, K.D.; Simoes, M.G. Evaluating the Long-Term Impact of a Continuously Increasing Harmonic Demand on Feeder-Level Voltage Distortion. IEEE Trans. Ind. Appl. 2014, 50, 2142–2149. [Google Scholar] [CrossRef]
  10. Kow, K.W.; Wong, Y.W.; Rajkumar, R.K.; Rajkumar, R.K. A review on performance of artificial intelligence and conventional method in mitigating PV grid-tied related power quality events. Renew. Sustain. Energy Rev. 2016, 56, 334–346. [Google Scholar] [CrossRef]
  11. Merabet, L.; Saad, S.; Abdeslam, D.O.; Omeiri, A. A comparative study of harmonic currents extraction by simulation and implementation. Int. J. Electr. Power Energy Syst. 2013, 53, 507–514. [Google Scholar] [CrossRef]
  12. Cao, B.; Chang, L.; Shao, R. A simple approach to current THD prediction for small-scale grid-connected inverters. In Proceedings of the 2015 IEEE Applied Power Electronics Conference and Exposition (APEC), Charlotte, NC, USA, 15–19 March 2015; pp. 3348–3352. [Google Scholar]
  13. Rodway, J.; Musilek, P.; Misak, S.; Prokop, L. Prediction of PV power quality: Total harmonic distortion of current. In Proceedings of the 2013 IEEE Electrical Power & Energy Conference, Halifax, NS, Canada, 21–23 August 2013; pp. 1–4. [Google Scholar]
  14. Dumnic, B.; Popadic, B.; Milicevic, D.; Katic, V.; Corba, Z. Control of grid connected converter with improved power quality characteristic. In Proceedings of the PCIM Europe 2015, International Exhibition and Conference for Power Electronics, Intelligent Motion, Renewable Energy and Energy Management, Nuremberg, Germany, 19–20 May 2015; pp. 1–8. [Google Scholar]
  15. De La Rosa, F. Harmonics and Power Systems; Electric Power Engineering Series; CRC Press: Boca Raton, FL, USA, 2006; Volume 13, ISBN 978-0-8493-3016-2. [Google Scholar]
  16. Meteorological and Hydrological Institute of Croatia Climate in Croatia. Available online: http://klima.hr/klima.php?id=k1#pog1 (accessed on 30 January 2018).
  17. KACO New Energy GmbH. Operating Instructions Powador 12.0 TL3-20.0 TL3; KACO New Energy GmbH: Neckarsulm, Germany, 2016. [Google Scholar]
  18. Faculty of Electrical Engineering Computer Science and Information Technology Osijek Laboratory for Renewable Energy Sources. Available online: http://reslab.ferit.hr/ (accessed on 13 October 2018).
  19. IEC. IEC 61000-4-30 Electromagnetic Compatibility—Testing and Measurement Techniques—Power Quality Measurement Methods; International Electrotechnical Commission: Geneva, Switzerland, 2003. [Google Scholar]
  20. Haykin, S. Neural Networks A Comprehensive Foundation, 2nd ed.; Pearson: Hoboken, NJ, USA, 1999. [Google Scholar]
  21. Zhu, S.; Heddam, S.; Nyarko, E.K.; Hadzima-Nyarko, M.; Piccolroaz, S.; Wu, S. Modeling daily water temperature for rivers: Comparison between adaptive neuro-fuzzy inference systems and artificial neural networks models. Environ. Sci. Pollut. Res. 2019, 26, 402–420. [Google Scholar] [CrossRef] [PubMed]
  22. Dozat, T. Incorporating Nesterov Momentum into Adam. In Proceedings of the ICLR 2016 Workshop, San Juan, PR, USA, 2–4 May 2016; pp. 1–4. [Google Scholar]
  23. Duchi, J.; Hazan, E.; Singer, Y. Adaptive Subgradient Methods for Online Learning and Stochastic Optimization. J. Mach. Learn. Res. 2011, 12, 2121–2159. [Google Scholar]
  24. Willmott, C.J. On the validation of models. Phys. Geogr. 1981, 2, 184–194. [Google Scholar] [CrossRef]
  25. François Chollet Keras: The Python Deep Learning Library. Available online: https://keras.io/ (accessed on 25 January 2019).
  26. Google Brain Team TensorFlow. Available online: https://www.tensorflow.org/ (accessed on 24 January 2019).
Figure 1. Scheme of the 10-kWp PV plant and part of the data acquisition system used for the measurements.
Figure 1. Scheme of the 10-kWp PV plant and part of the data acquisition system used for the measurements.
Energies 12 00790 g001
Figure 2. Equipment used to obtain measurements for our analysis: (a) PV plant strings; (b) PV plant inverter Kaco Powador 12.0 TL3; (c) pyranometer Kipp&Zonnen SMP3; and (d) power quality analyzer Fluke 1760.
Figure 2. Equipment used to obtain measurements for our analysis: (a) PV plant strings; (b) PV plant inverter Kaco Powador 12.0 TL3; (c) pyranometer Kipp&Zonnen SMP3; and (d) power quality analyzer Fluke 1760.
Energies 12 00790 g002
Figure 3. Daily mean values of the solar irradiation and ambient temperatures of 2018.
Figure 3. Daily mean values of the solar irradiation and ambient temperatures of 2018.
Energies 12 00790 g003
Figure 4. Effective current values of the 1st, 5th, 7th, 11th, and 13th current harmonics during a sunny day (21 August 2018).
Figure 4. Effective current values of the 1st, 5th, 7th, 11th, and 13th current harmonics during a sunny day (21 August 2018).
Energies 12 00790 g004
Figure 5. Effective current values of the 1st, 5th, 7th, 11th, and 13th current harmonics during a partially cloudy day (15 April 2018).
Figure 5. Effective current values of the 1st, 5th, 7th, 11th, and 13th current harmonics during a partially cloudy day (15 April 2018).
Energies 12 00790 g005
Figure 6. The current harmonic spectrum on a partially cloudy day (15 April 2018) and a sunny day (21 August 2018).
Figure 6. The current harmonic spectrum on a partially cloudy day (15 April 2018) and a sunny day (21 August 2018).
Energies 12 00790 g006
Figure 7. The absolute THDI calculated from the 2nd to the 40th current harmonics and the absolute THDI calculated from 5th, 7th, 11th, and 13th current harmonic.
Figure 7. The absolute THDI calculated from the 2nd to the 40th current harmonics and the absolute THDI calculated from 5th, 7th, 11th, and 13th current harmonic.
Energies 12 00790 g007
Figure 8. 5th, 7th, 11th, and 13th current harmonic amplitudes in relation to solar irradiance.
Figure 8. 5th, 7th, 11th, and 13th current harmonic amplitudes in relation to solar irradiance.
Energies 12 00790 g008
Figure 9. 5th, 7th, 11th, and 13th current harmonic amplitudes in relation to ambient temperature.
Figure 9. 5th, 7th, 11th, and 13th current harmonic amplitudes in relation to ambient temperature.
Energies 12 00790 g009
Figure 10. Multilayer perceptron neural network (MLPNN) architecture [20].
Figure 10. Multilayer perceptron neural network (MLPNN) architecture [20].
Energies 12 00790 g010
Figure 11. Neuron model diagram [20].
Figure 11. Neuron model diagram [20].
Energies 12 00790 g011
Figure 12. Sigmoid activation function.
Figure 12. Sigmoid activation function.
Energies 12 00790 g012
Figure 13. The mean squared error (MSE) of the artificial neural network (ANN) training for different types of optimizers.
Figure 13. The mean squared error (MSE) of the artificial neural network (ANN) training for different types of optimizers.
Energies 12 00790 g013
Figure 14. Coefficients of correlation R of the predictions of the 5th, 7th, 11th, and 13th current harmonics of the MLPNN models.
Figure 14. Coefficients of correlation R of the predictions of the 5th, 7th, 11th, and 13th current harmonics of the MLPNN models.
Energies 12 00790 g014
Figure 15. Scatterplots of the measured and predicted current harmonics by the MLPNN 6 model.
Figure 15. Scatterplots of the measured and predicted current harmonics by the MLPNN 6 model.
Energies 12 00790 g015
Figure 16. Scatterplot of the measured and predicted THDI by the MLPNN 6 model.
Figure 16. Scatterplot of the measured and predicted THDI by the MLPNN 6 model.
Energies 12 00790 g016
Figure 17. Time series plot of the measured and predicted THDI by the MLPNN 6 model.
Figure 17. Time series plot of the measured and predicted THDI by the MLPNN 6 model.
Energies 12 00790 g017
Table 1. Technical characteristics of the photovoltaic (PV) plant inverter [17].
Table 1. Technical characteristics of the photovoltaic (PV) plant inverter [17].
ManufacturerKaco
ModelPowador 12.0 TL3
Circuit design6-pulse transformerless IGBT 1
DC side
ParameterValue
Maximum PV generator input power (kW)12
Maximum power point voltage range (V)280–800
Starting voltage (V)250
Maximum open-circuit voltage (V)1000
Number of string inputs2
Maximum short-circuit current (A)22.4
AC side
Rated power (kW)10
Rated current (A)14.5
Grid voltage (V)400/230
Distortion factor (THDI) (%)2.22
Maximum efficiency (%)98
European efficiency (%)97.5
1 IGBT: insulated gate bipolar transistor.
Table 2. Statistical parameters of the solar irradiance and ambient temperatures of 2018.
Table 2. Statistical parameters of the solar irradiance and ambient temperatures of 2018.
ParameterSolar IrradianceAmbient Temperature
Mean value175.17 W/m214.65 °C
Minimum value7.26 W/m2−11.21 °C
Maximum value1172.03 W/m237.16 °C
Standard deviation248.91 W/m29.76 °C
Coefficient of variation1.420.67
Table 3. Statistical parameters of the 5th, 7th, 11th, and 13th current harmonics from 2018.
Table 3. Statistical parameters of the 5th, 7th, 11th, and 13th current harmonics from 2018.
Parameter5th Current Harmonic (A)7th Current Harmonic (A)11th Current Harmonic (A)13th Current Harmonic (A)
Mean value0.01470.01420.01370.0130
Maximum value0.84890.47330.43100.2915
Minimum value0.13540.09610.07520.0437
Standard deviation0.12780.09110.06620.0402
Coefficient of variation1.05961.05501.13741.0869
Table 4. Description of the MLPNN models.
Table 4. Description of the MLPNN models.
Model NameInput ParametersArchitecture
MLPNN 1G1-11-4
MLPNN 2G, Tamb2-11-4
MLPNN 3G, Tamb, t3-11-4
MLPNN 4G1-11-5-4
MLPNN 5G, Tamb2-11-5-4
MLPNN 6G, Tamb, t3-11-5-4
Table 5. Performance of the MLPNN with one input variable (G).
Table 5. Performance of the MLPNN with one input variable (G).
Model VersionCurrent HarmonicValidation
RdRMSE
(A)
MAE
(A)
MLPNN 1
(1-11-4)
5th0.93560.95550.06930.0455
7th0.9710.98040.0320.0221
11th0.94370.95980.03760.0252
13th0.84590.84260.03740.021
MLPNN 2
(1-11-5-4)
5th0.93580.95630.06870.0454
7th0.97060.97980.03230.022
11th0.94370.95990.03750.0245
13th 0.85340.85670.03630.0216
Table 6. Performance of the MLPNN with two input variables (G and Tamb).
Table 6. Performance of the MLPNN with two input variables (G and Tamb).
Model VersionCurrent HarmonicValidation
RdRMSE
(A)
MAE
(A)
MLPNN 3
(1-11-4)
5th0.93810.96620.06580.0438
7th0.96760.98040.03240.0224
11th0.94650.9720.03360.0217
13th0.87120.91240.03090.0185
MLPNN 4
(1-11-5-4)
5th0.93540.96470.06730.0436
7th0.96260.97710.03430.0222
11th0.9450.97020.03450.0235
13th0.87430.92250.030.0193
Table 7. Performance of the MLPNN with three input variables (G, Tamb, and t).
Table 7. Performance of the MLPNN with three input variables (G, Tamb, and t).
Model VersionCurrent HarmonicValidation
RdRMSE
(A)
MAE
(A)
MLPNN 5
(1-11-4)
5th0.93760.96640.0660.045
7th0.96340.98010.0330.0222
11th0.94290.96940.03620.024
13th0.86780.9260.02990.0183
MLPNN 6
(1-11-5-4)
5th0.93690.96660.06510.0428
7th0.96860.98340.03060.0201
11th0.94690.97220.0340.0229
13th 0.88010.92530.02930.0191

Share and Cite

MDPI and ACS Style

Žnidarec, M.; Klaić, Z.; Šljivac, D.; Dumnić, B. Harmonic Distortion Prediction Model of a Grid-Tie Photovoltaic Inverter Using an Artificial Neural Network. Energies 2019, 12, 790. https://doi.org/10.3390/en12050790

AMA Style

Žnidarec M, Klaić Z, Šljivac D, Dumnić B. Harmonic Distortion Prediction Model of a Grid-Tie Photovoltaic Inverter Using an Artificial Neural Network. Energies. 2019; 12(5):790. https://doi.org/10.3390/en12050790

Chicago/Turabian Style

Žnidarec, Matej, Zvonimir Klaić, Damir Šljivac, and Boris Dumnić. 2019. "Harmonic Distortion Prediction Model of a Grid-Tie Photovoltaic Inverter Using an Artificial Neural Network" Energies 12, no. 5: 790. https://doi.org/10.3390/en12050790

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop