Next Article in Journal
Effect of Data Augmentation Using Deep Learning on Predictive Models for Geopolymer Compressive Strength
Previous Article in Journal
A PHREEQC-Based Tool for Planning and Control of In Situ Chemical Oxidation Treatment
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

The Effect of Varying Artificial Neural Network and Adaptive Neuro-Fuzzy Inference System Parameters on Wind Energy Prediction: A Comparative Study

by
Gokce Oguz Erenler
1 and
Halil Nusret Bulus
2,*
1
Department of Software Engineering, Faculty of Engineering, Kirklareli University, Campus of Kayali, Kirklareli 39000, Turkey
2
Department of Computer Engineering, Corlu Faculty of Engineering, Tekirdag Namik Kemal University, Tekirdag 59860, Turkey
*
Author to whom correspondence should be addressed.
Appl. Sci. 2024, 14(9), 3598; https://doi.org/10.3390/app14093598
Submission received: 5 March 2024 / Revised: 13 April 2024 / Accepted: 14 April 2024 / Published: 24 April 2024

Abstract

:
Owing to the development of technology, the majority of nations throughout the world now rely on fossil fuels and nuclear power plants to meet their energy needs. However, as academic research on this subject has shown, it has become clear that alternative energy uses are necessary due to the gradual depletion of these fuels and their significant negative effects on the environment. In order to ensure energy diversity and end the energy shortage, the development of renewable energy sources is crucial. The prediction of wind power is crucial for effectively utilizing the potential of wind energy. In this study, an adaptive neuro-fuzzy inference system (ANFIS) and an artificial neural network (ANN) have been developed for the prediction of wind power. In this study, data sets were created by taking the daily average wind speeds of the selected wind turbine, the daily average power values it produces, and the daily average wind speed values in the Velimese region. By creating single-hidden layer and multi-hidden layer ANN models, the network was trained multiple times with different activation functions and different numbers of neurons, and wind power prediction was performed. In the ANFIS model, the number of membership functions is kept constant, and wind power prediction is performed using different membership functions. With these ANFIS and ANN models developed with different parameter combinations, it is aimed to determine the most efficient model by performing daily average wind power prediction. Parameter combinations were tested to determine the appropriate models, and as a result, the ANN and ANFIS models were compared with each other.

1. Introduction

One of the most basic human needs is energy. Energy demand is increasing all over the world, including Turkey. Providing adequate and affordable energy is essential to eradicate poverty, improve human well-being and raise living standards around the world. Thanks to the decrease in the cost of renewable energy sources over time, it has been possible to meet the demand for electricity generation in recent years. Fossil fuels have been the main source of global electricity generation. However, it is essential to increase the use of renewable energy sources for power supply in the world due to the adverse environmental effects of electricity generation from fossil fuels, climate change, the demolition of fossil fuel reserves, and fluctuating charges [1]. Alternative “clean” energy sources that are independent of fossil fuels and have a manageable environmental impact are being developed in order to satisfy the rising global energy demand while preserving the environment and leaving the possibility of the use of fossil fuels in the future [2].
Promoting the use of renewable energy sources has been identified as one of the most effective strategies to mitigate the effects of current and future climate change. Therefore, a worldwide renewable energy policy is being developed and implemented to facilitate the growth of the renewable energy sector [3]. Energy sources that can be classified as renewable include solar, geothermal, hydro energy systems such as hydroelectric, wave, tidal, and ocean thermal energy conversion systems, as well as biomass and wind energy [4]. Wind and solar systems are attracting more attention due to their significant natural potential in many parts of the world [5].
Wind energy has been the focus of attention due to its clean and environmentally friendly nature and because it is one of the most economically viable renewable energy sources. An electric current is produced when wind turbines capture the kinetic energy of air flows. Wind farms usually consist of several wind turbines covering many square kilometers of land or ocean. Developments and innovations in the wind energy sector have led not only to improvements in the design and manufacture of turbines but also to better capacity factors, resulting in lower wind energy costs, confirming that this technology is a key driver of the clean energy transition. The rapidly growing use and production of wind energy requires extensive research in various fields. The most precise technique of converting wind energy into clean electricity is provided by turbine systems, which even have lower operational and maintenance expenses. The precise prediction of wind power is considered a major contribution to large-scale wind power generation [6,7,8,9].
Artificial neural networks (ANNs) are widely accepted as a technology that offers an alternative way to overcome complex and ill-defined problems. Artificial neural networks are computer networks that aim to roughly simulate the decision-making process in neural networks of biological (human or animal) central nervous systems [10]. They can be described as a collection of processing units represented by artificial neurons connected by numerous interconnections (artificial synapses), implemented by vectors and synaptic weight matrices, and capable of acquiring and maintaining knowledge (knowledge-based) [11]. ANNs have been successfully used in a variety of domains, including mathematics, engineering, medicine, economics, meteorology, psychology, and neurology. The analysis of electromyographs and other medical signatures, the identification of military targets, pattern, voice, and speech recognition, and the detection of explosives in checked baggage are some of the most significant. They are also employed in the prediction of electrical and thermal loads, adaptive and robotic control, weather and market trends, and mineral exploration sites. Process control uses artificial neural networks because they can develop prognostic models of the process from multidimensional data that are routinely collected from sensors [12]. An ANN model comprises many nodes and their connections. Structure, transfer function, and learning algorithms define its capacity [13]. ANNs are not programmed to perform specific tasks when applied to computers. Instead, they are trained on datasets until they learn the patterns available to them. They can be trained to generate quick predictions and generalizations; are fault-tolerant in that they can deal with noisy and imperfect data; and can learn from examples. Once trained, new models can be presented to them for prediction or classification. ANNs have been used in a variety of applications in control, robotics, pattern recognition, prediction, medicine, power systems, manufacturing, optimization, signal processing, and social and psychological sciences [12].
The study of thinking systems in which the ideas of truth and falsity are handled gradually is known as fuzzy logic. Fuzzy logic examines ambiguity in natural language as well as in a number of other application domains. In essence, fuzzy logic makes it possible to characterize values that fall between assessments like high–low, yes–no, and true–false [14]. A mathematical theory called fuzzy logic uses verbal explanations to deal with datasets whose meaning does not directly correspond to a single numerical value but rather to a range of potential values. On these datasets, domain-specific functions can be designed to produce results with a sufficient degree of approximation that are relevant to the receiver. The meaning of the field-specific values of the dataset can be explained using fuzzy terms that have ambiguous definitions at their borders thanks to input membership functions. Fuzzy logic systems are knowledge- or rule-based systems built from human knowledge in the form of fuzzy IF-THEN rules. Fuzzy system theory, a systematic procedure, enables the use of the knowledge-base to transform it into nonlinear mapping. The fuzzy IF-THEN rule is an IF-THEN statement in which some words are characterized by continuous membership functions [15]. The fuzzy logic controller has five basic elements such as blurring, knowledge base, rule base, fuzzy inference, and defuzzification [16]. These steps help us define a logical framework based on linguistic values that are defined and characterized using fuzzy sets.
The adaptive neuro-fuzzy inference system (ANFIS) combines the self-learning capacity of an artificial neural network (ANN) with the language expression function of fuzzy inference. Sugeno operates in a fuzzy inference system with a structure similar to a multilayer feedforward neural network. The first fuzzy rules and membership functions are chosen based on the human knowledge of the outputs to be mimicked. ANFIS offers a variety of benefits, such as the capacity to depict the nonlinear nature of a process, adaptability, and quick learning capabilities. For the supplied input–output matches, ANFIS creates a collection of fuzzy IF-THEN rules with the relevant membership functions. A significant amount of the accessible data have been used to learn membership functions and fuzzy rules. Then, the ANFIS can alter these fuzzy IF-THEN rules and membership functions to lessen the output inaccuracy or clarify the relationship between an intricate system’s inputs and outputs [17,18].
Applications of artificial neural networks include wind energy systems for forecasting, defect diagnosis and detection, design optimization, and control optimization. Although predicting wind power generation is a difficult undertaking, it is crucial that energy providers, participants in the wind energy market, owners and operators of wind farms, maintenance crews, etc., construct the best plans possible. The primary factors that must be predicted are wind power and speed [19]. The most significant approaches for predicting wind speed include physical techniques like numerical weather forecasting (NWF), statistical techniques like the ARIMA model, intelligent models with artificial neural networks, and hybrid prediction models that combine multiple types of algorithms [20,21]. While physical techniques are better at predicting wind speed over the long run, statistical and artificial intelligence models are useful at predicting wind speed in the short term. The majority of studies and wind speed forecasting techniques concentrate on very short-term forecasts. For turbine control applications, very short-term projections are relevant in the second range. As a result, the computational cost of models that will be employed in online applications is crucial. It has been claimed that multilayer perceptron (MLP) findings are more accurate when compared to wavelet-based networks and particle swarm optimization outcomes; however, this comes at a significant computational cost [22].
Monfared et al. [23] used fuzzy logic and an artificial neural network to forecast the wind speed. They pointed out that, in comparison to conventional models, the model offers a substantially smaller rule base and a greater level of anticipated wind speed accuracy. The experimental findings demonstrate the improved wind speed prediction and faster computation times of the suggested model. Galdi et al. [24] extracted the most energy possible from variable-speed wind power generation systems using an adaptive Takagi–Sugeno–Kang (TSK) fuzzy model. An integrated control approach was presented by Kaneko et al. [25] for a wind farm to lessen frequency variations in a small power system. The least squares method was used to forecast the short-term forward wind speed in order to adjust the wind farm’s output power command in response to the changing wind speed. The output power command of the wind farm is multiplied by the projected wind speed using fuzzy reasoning. The model was validated by the researchers using numerical simulations. ANFIS was utilized by Mohandes et al. [26] for the wind speed profile and by De Giorgi et al. [27] for the prediction of wind power.
The objectives of the present study were to determine the most suitable model by estimating the wind power with artificial neural networks and fuzzy logic methods using the wind speed values of the Velimese region. In order to predict the wind power, it was examined which of the different activation functions applied with different numbers of neurons in ANN gave better results. With the ANFIS method, tests were carried out using different membership functions, and it was investigated in which function the best predictive values were reached. It was examined how close the results obtained from these models were to the real values.

2. Materials and Methods

MATLAB is a programming and computing language widely used in mathematics, engineering, and scientific calculations. MATLAB was invented by mathematician and computer programmer Cleve Moler. The first early version of MATLAB was completed in the late 1970s. The software was first publicly demonstrated in February 1979 at the Naval Postgraduate School in California, USA.
The study was performed in the MATLAB 2020b program. In this study, the prediction of daily average wind power from daily average wind speed by using fuzzy logic and an artificial neural network model has been attempted. Various transfer functions and numbers of neurons for ANN and Sugeno architecture for ANFIS were used.
Enercon is a wind turbine manufacturer based in Germany. The company was founded in 1984 by Aloys Wobben. Enercon is a worldwide developer and manufacturer of innovative and efficient wind turbines. Enercon’s wind turbines are available in various capacities and sizes. Among the company’s most popular turbine models are the E-82, E-92, E-101 and E-126. In this study, daily average wind speed and wind power values of Enercon E-92 turbine and wind speed data of Velimese region were used to estimate the average wind power.

2.1. Determination of Wind Energy

Wind energy systems are naturally energized by the flowing wind, so they can be considered a clean energy source. Wind energy is one of the lowest priced renewable energy technologies available today. However, the biggest challenge of using wind as a power source is that the wind is intermittent and does not always blow when electricity is needed. Wind energy cannot be stored, and not all winds can be utilized to meet the timing of electricity demands. The option of storing energy in battery banks is beyond economically feasible limits for large wind turbines. Although wind power plants have relatively little impact on the environment compared to other conventional power plants, there are some concerns about the noise generated by rotor blades and their esthetic (visual) impacts. Most of these issues have been resolved or greatly reduced by technological development or the appropriate siting of wind farms [28].
Wind turbines can be broadly classified as vertical-axis machines and horizontal-axis machines, depending on the direction of the rotor shaft relative to the approaching wind [29].
In a vertical-axis machine, the rotor shaft carrying the blades is oriented perpendicular to the ground. This allows the turbine to rotate regardless of changing wind direction, eliminating the need for a tail blade or yaw motor and the associated complexities. Furthermore, the gearbox, generator, and associated controls can be located close to the ground surface, allowing easy access for repair and maintenance work. Vertical axis machines are commonly installed in urban environments where wind speed is relatively low and turbulent [29].
The rotation axis of the horizontal axis wind turbines (HAWT) used in this study is parallel to the wind direction. The blades are perpendicular to the wind direction (Figure 1). In these turbines, the condition for faster rotor rotation is to reduce the number of blades. The efficiency of HAWT turbines ranges from approximately 10 to 45%. These turbines should generally be 20 to 30 m above the ground [30].
A wind turbine is the most important part of a wind energy system. It converts the kinetic energy associated with the wind (wind energy) into mechanical energy and then into electrical energy (Figure 2) [32].
Basically, the power equation obtained by a turbine with rotor area Ar with density pw and speed v is given below:
Pw = 1/2 × pw × Ar × v3,
Power is proportional to wind speed and rotor area. However, the size of the rotor, production costs, and site restrictions are all limits for large-scale wind turbines. However, areas with high wind speeds can be effectively utilized to boost the capacity of wind farms to capture energy. The theoretical power that might be produced from the wind is determined by the expression in Equation (1). Different rotor layouts in wind turbines result in different power coefficients. The Betz limit is the power coefficient’s highest value, which is 0.5926 [34].
The change in volume (V) with respect to length (l) and time (t), when considering area (A) and applying a wind speed (v), is as follows:
ΔV = A × Δl,
v = Δl/Δt,
which give,
ΔV = A × Δt × v.
Kinetic energy (E) is the form that the wind’s energy takes. The following Equation (5) characterized the kinetic energy:
E = 1/2 × m × v2,
where m denotes the wind mass. The relation between the change in mass and the change in energy is linear is defined as follows; i.e.,
m = V × pa,
where pa is the specific density of air. Therefore, if we arrange the v and m yields in Equation (6), we obtain
E = 1/2 × A × pa × v3,
The previous Equation (7) shows that the energy in the wind is proportional to the cube of the wind speed v:
P = E/t = 1/2 × A × pa × v3,
The power shown as P is defined by Equation (8) [33].

2.2. Testing of Activation Functions

Activation functions are used specifically in artificial neural networks to convert an input signal into an output signal, which in turn is fed as an input to the next layer in the stack. In a neural network, we calculate the sum of the products of the inputs and their corresponding weights and finally apply an activation function to it to take the output of that layer and provide it as input to the next layer. The prediction accuracy of the neural network depends on the number of layers used and, more importantly, on the type of activation function used.
A neural network works like a linear regression model, where the predicted output is the same as the provided input when an activation function is not defined. The same is the case when a linear activation function is used, where the output is similar to the fed input with some errors. The limit of the linear activation function is linear, and if they are used, the network can only adapt to linear changes in the input; however, in the real world, errors have nonlinear properties along with the ability of neural networks to learn from erroneous data. Therefore, in a neural network, nonlinear activation functions are preferable to linear activation functions. The most important feature of artificial neural networks is their ability to adapt their behavior to the changing characteristics of the system [35].
The tanh and sigmoid functions are similar, but the tanh is symmetrical according to the origin. As a result, different output signals from previous layers are provided as input to the subsequent layer. With values between −1 and 1, the tanh function is continuous and differentiable. The gradient of the tanh function is steeper compared to the sigmoid function. Tanh is preferred to the sigmoid function because it has gradients that are not limited to changing in a certain direction and is zero-centered [35]. The activation functions were calculated with Equations (9) and (10) below:
tansig:
f(x) = tanh(x) = (ex − e−x)/(ex + e−x),
logsig:
f(x) = 1/(1 + e−x).

2.3. Testing of Membership Functions

A member’s level of accuracy inside a specified fuzzy set is defined by a membership function. They are curves that show how each point in the input space is translated to a membership degree ranging from 0 to 1 [36]. One-dimensional membership functions like triangle, trapezoid, gaussian, and sigmoidal can be utilized, depending on how the input variables behave.
The complexity and requirements of the fuzzy logic system determine the number of membership functions. More complex systems usually require more membership functions. The number of membership functions to be defined for each input variable must be determined. This is usually determined by expert knowledge or experience in the problem domain.
The representation and initial design of a fuzzy system are made simpler by linear membership functions, which also have a linear form for triangular and trapezoidal membership functions. Although more difficult to build, uniform membership functions like Gaussian and sigmoidal are more effective for automatic control [37]. The membership functions were calculated with Equations (11)–(13) below:
TriMF:
μ (x; α, β, γ) = {(if α ≤ x ≤ β, (x − α)/(β − α); if β ≤ x ≤ γ, (γ − x)/(γ − β); if γ ≤ x or x ≤ α, 0)}
TrapMF:
μ (x; α, β, γ, λ) = {(if α ≤ x ≤ β, (x − α)/(β − α); if β ≤ x ≤ γ, 1; if γ ≤ x ≤ λ, (x − λ)/(γ − λ); if x > λ or x < α, 0)}
GaussMF:
μ (x; c, s, m) = exp^(−1/2 × |(x − c)/s|^m),

2.4. Data Used in the Study

While predicting the wind energy potential with ANN and ANFIS, the daily average wind speeds of the wind turbine were used as input data and output power values were used as output data. The annual daily average wind speeds of the Velimese region used to predict daily average wind power are taken from Meteoblue company which at Basel in Switzerland.

2.5. Wind Speed Data

The process of obtaining electricity from wind turbines varies depending on parameters such as the difference in turbine-specific drivetrains, mechanical components, generator losses, etc. For this reason, the amount of electrical energy generated from wind speed will vary from turbine to turbine. The wind power to be obtained from wind speed will not carry these differences. Therefore, this study is based on wind power estimation from daily average wind speed.
The fields in the data set used were preprocessed according to the wind turbine characteristics. The turbine subject to the study has some specific characteristics. The main one is that it stops when the wind speed is below 2 m/s and produces a constant value when the wind speed is above 13 m/s. For this reason, the 365-day wind speed daily averages collected from the Velimese region are ignored for wind speeds less than 2 m/s, and those higher than 13 m/s are set to 13.
The wind speed values used in the study are shown in Table 1.
Above and below a certain wind speed, the turbine is stopped and no power is produced. When the wind speed drops below 2 m/s, the Enercon E-92 wind turbine stops producing power. In addition to this, it rotates at a constant speed of over 13 m/s. These values were ignored while training ANN and ANFIS models. The amount of power produced by the Enercon E-92 wind turbine according to the wind speed between 0 and 25 m/s is shown in Table 2.

2.6. Modeling with ANN

While determining the ANN model, the model parameters were changed and the feedforward backpropagation algorithm with the highest prediction success was used. The ANN model was designed by using the traingdx algorithm, and the learngdm function as a learning function, and the tangent sigmoid (tansig) and logistic sigmoid (logsig) activation functions in training datasets.
The performance of the model was calculated with the mean square error (MSE) function. In the designed model, wind speeds are used as input data and the output power of the Enercon E92 turbine as output data. The single-layer model was first used in the network structure, and the number of neurons in the hidden layers was determined as 10, 15, and 20, respectively. After training the network with a single layer and generating predictive values, tests were conducted using two hidden layers as a multilayer model, and the number of neurons in the hidden layers were determined as 10 and 15, 10 and 20, and 15 and 20, respectively. Tests were carried out with the tansig and logsig functions as transfer functions and the number of neurons mentioned above. The model, which is multilayered from the created ANN structure and in which the number of neurons is determined as 10 and 15, is shown in Figure 3.
The training data were divided into 70% training, 15% validation, and 15% testing with the dividerand function. In the model created, the stopping criterion of “1000” iterations, the “0” error 1 × 10−5 gradient value, and the “1000” validation error number were used. The training stopped after reaching 1000 iterations in 1 s. The error performance values of the training, validation, and test data are shown in Figure 4.
As a result of comparing the actual values and the output values produced by the network to determine the performance of the network, the regression values for all of the training, validation, and test data were close to 1. According to these results, it can be concluded that the output values of the network and the real data are close to each other. Regression curves for all data are shown in Figure 5.
After the ANN training, predicted test output values are produced for the input data set presented to the network for testing. Table 3 and Table 4 show actual and predicted output values for the single-hidden layer ANN model and the multi-hidden layer ANN model, respectively.
After the network is trained and the predicted test values are produced, the predicted values should be compared with the actual data. In Table 5, the performance criteria of the ANN model calculated by the RMSE (root mean squared error), MAPE (mean absolute percentage error), and R2 methods are given. The equations of performance criteria are as follows:
MAPE = 100/n ∑ in (|yi − ŷi|)/yi,
RMSE = √ (1/n ∑ in (yi − ŷi)2),
R2 = 1 − ∑ (yi − ŷi)/(∑ (yi − ӯi).
As seen in Table 5, the best performance values were calculated as RMSE 13.63, MAPE 7.45, and R2 0.9998. When the results were compared, it was seen that the two-hidden layer ANN model with 15 and 20 neurons using the Tansig transfer function produced the closest prediction value to the real values.
Table 5 shows that the mean RMSE values of the ANN models with two hidden layers (33.27) are significantly lower than the mean RMSE values of the ANN models with one hidden layer (51.46). When the mean MAPE values are considered, it is seen that there is no significant difference between the models with one hidden layer and two hidden layers (23.05–21.2). When the average R2 values are analyzed, it is seen that the average of the two hidden layer models (0.9982) produces slightly better results than the average of the single-hidden layer models (0.99625). When analyzed according to the number of neurons, it is understood that models with 15 neurons give better results than single-hidden layer models by looking at different activation functions. Two hidden layer models, on the other hand, confirm the number of 15 neurons in the first layer, and using 20 neurons in the second hidden layer improved the results.

2.7. Modeling with ANFIS

The data used in the development of the ANFIS model were divided into two sets: 70% for training and 30% for testing the data sets. The membership function parameters were then adjusted and used in the creation of the fuzzy inference system.
After the data were introduced in the system, the network training proceeded by sequentially selecting the membership functions to be used. The model underwent multiple training sessions utilizing triangle, trapezoidal, and Gaussian membership functions, with each membership function having three functions and a fixed number of iterations set at 1000.
After all parameters are determined, the training of the model is performed. The training interface of the ANFIS model is shown in Figure 6.
Actual values and values predicted by ANFIS are given in Table 6.
After the prediction values were produced with ANFIS, the predicted values were compared with the actual data.
The model’s error performance values were calculated for the predicted values produced by various functions. As a performance measure, the RMSE, MAPE, and R2 methods were used. The model’s error performance values are given in Table 7. When the error performance values were compared, it was seen that the ANFIS model, which produced the closest prediction value to the real values, was the model trained using the Gaussian membership function.
Figure 7 shows the comparison of the best single-hidden layer ANN, multi-hidden layer ANN, and ANFIS results with linear fitting results. As can be seen from the figure, the differences between the ANN and ANFIS models in the linear direction are close to each other.

3. Results

In the study, average wind power was predicted using the daily average wind speed and wind power values of the Enercon E-92 turbine and the wind speed data of the Velimese region. ANN and ANFIS methods, which are frequently used as forecast models for wind energy forecasts, have been applied.
While determining the ANN model, different parameters were evaluated and tested. First, a single-layer ANN model was created, and the network was trained many times using different numbers of neurons and different activation functions. In the created model, the Tansig activation function and the number of neurons in the hidden layer were given as 10, 15, and 20, respectively, and the network was trained and the prediction results were obtained. The prediction results obtained using a single-layer network structure were compared with the actual values, and error performance values were calculated using the RMSE, MAPE, and R2 methods. The RMSE value of the model using 10 neurons in the hidden layer was 45.31, the MAPE value was 20.27, and the R2 value was 0.9973; the RMSE value of the model using 15 neurons was 43.41, the MAPE value was 21.70, and the R2 value was 0.9975; the RMSE value of the model using 20 neurons was calculated at 73.58, the MAPE value was 13.87, and the R2 value was 0.9928. By using the logsig activation function and giving the same number of neurons, the network was retrained, and predicted values were obtained. Error performance values were calculated with the RMSE, MAPE, and R2 methods by comparing the estimated values with the actual values. The RMSE value of the model using 10 neurons in the hidden layer was 38.58, the MAPE value was 27.73, and the R2 value was 0.9980; the RMSE value of the model using 15 neurons was 40.98, the MAPE value was 17.01, and the R2 value was 0.9978; the RMSE value of the model using 20 neurons was calculated at 66.92, the MAPE value was 37.73, and the R2 value was 0.9941. The model that recorded the best performance among the tests using a single-layer network was the one created using the logsig activation function with 10 neurons. A new ANN model using two hidden layers was created after the single-layer ANN model had been evaluated. The numbers of neurons in the hidden layers were 10 and 15, 10 and 20, and 15 and 20, respectively, and firstly, the network was trained using the Tansig function. In the trained network, 355 wind speed values were simulated, and predicted output values were produced. When the performance measurements were calculated by comparing the produced predictive values with the actual values, the RMSE values were 37.97 for the model using 10 and 15 neurons, 26.97 for the model using 10 and 20 neurons, and 13.63 for the model using 15 and 20 neurons; the MAPE values were 24.79 for the model using 10 and 15 neurons, 32.89 for the model using 10 and 20 neurons, and 16.22 for the model using 15 and 20 neurons; and the R2 values were calculated as 0.9981 for the model using 10 and 15 neurons, 0.9990 for the model using 10 and 20 neurons, and 0.9998 for the model using 15 and 20 neurons. Prediction values were produced by retraining the network with the logsig activation function using the same number of neurons. The RMSE values of the models that produced predictive values using two hidden layers were 49.51 for the model with 10 and 15 neurons, 55.59 for the model with 10 and 20 neurons, and 15.92 for the model with 15 and 20 neurons; the MAPE values were 20.42 for the model with 10 and 15 neurons, 25.43 for the model with 10 and 20 neurons, and 7.45 for the model with 15 and 20 neurons; and the R2 values were calculated as 0.9967 for the model with 10 and 15 neurons, 0.9959 for the model with 10 and 20 neurons, and 0.9997 for the model with 15 and 20 neurons. When the computational results were compared among the two-layer models, the model using the Tansig activation function with 15 and 20 neurons in the hidden layer gave the best results. When the single-layer and two-layer ANN models were compared based on the above, it was seen that the ANN model, in which the Tansig activation function was used and the number of neurons was determined as 15 and 20, produced the closest prediction values to the real values.
By determining the training parameters for the ANFIS model, the performance of three membership functions was evaluated, and the closeness of the prediction values to the real values was tested. Triangle, trapezoidal, and Gaussian functions were used as membership functions in the models created with the Sugeno inference system, and the number of functions was determined as 3 for each. After the network was trained, predicted power values were produced for 355 wind speed values. The error performance results for the predicted values were calculated with the RMSE, MAPE, and R2 methods. The RMSE values for the models using triangular, trapezoidal, and Gaussian membership functions were 41.40, 26.39, and 12.94, respectively; the MAPE values were 19.82, 10.39, and 6.02, and the R2 values were calculated as 0.9977, 0.9991, and 0.9998. When all membership functions were evaluated among themselves, it turned out that the membership function that produced the values closest to the real values was Gaussian.
Considering the results mentioned above, different models belonging to both techniques will be able to predict wind power close to the actual values as long as meteorological data are available. A comparison of both models showed that the difference was not significant. The graphs given in our study also confirm this. Finally, when the predicted values from the ANN and ANFIS models were compared with the actual values, it was seen that the ANFIS model produced slightly better results than the ANN model in estimating the wind power.

4. Discussion

Artificial neural networks and fuzzy logic methods are techniques that are applied in many fields, and their importance is increasing. There are many parameters, such as the number of hidden layers, the number of neurons in the hidden layers, and activation functions, when creating models of artificial neural networks. The selection of these parameters can be made by heuristic, experience-based, or trial and error methods that are generally used according to the data. Similarly, the selection of membership functions in fuzzy logic methods can be performed in the same way. The models created with the selected parameters are optimized using techniques such as cross-validation.
In this study, ANN and ANFIS models with different parameters for the prediction of average wind power were created, and research was carried out to use the most efficient model by changing the parameters.
The results were obtained by conducting many trials with the available data, and a comparison between the two methods could be made. Increasing the number of data points, enriching the study by adding new and popular methods, applying them to different fields, and making inferences according to the results obtained will form the basis of future studies.

5. Conclusions

The existing relevant literature on wind energy and predictions on impact on electricity production has been comprehensively reviewed. In addition, two popular techniques, artificial neural networks and fuzzy logic methods, and the prediction models created with these methods have also been researched in the literature. There are many parameters that need to be taken into consideration when creating a model using both methods. In order to examine the effects of these parameters on the prediction results, the field of renewable energy, which is increasingly important today, was chosen as the subject. Prediction models for wind power production with wind energy from both methods have been created. The focus of the study is to express this rationally by investigating the effect of different parameters of two artificial intelligence methods on prediction models. In the study, daily average wind power predictions were made using 1-year meteorological data from the Velimese region. The results show us that both techniques obtained very efficient results with the data and the models created, but when the proximity to the actual values was examined, it was seen that the values obtained from the ANFIS method were observed to be closer in proximity to the actual values than the values obtained with the ANN.

Author Contributions

Conceptualization, G.O.E. and H.N.B.; methodology, G.O.E. and H.N.B.; software, G.O.E.; validation, G.O.E.; investigation, G.O.E. and H.N.B.; resources, G.O.E.; data curation, G.O.E.; writing—original draft preparation, G.O.E.; writing—review and editing, H.N.B.; visualization, G.O.E.; supervision, H.N.B.; project administration, H.N.B. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Restrictions apply to the availability of these data. Data were obtained from Meteoblue and are available from at https://www.meteoblue.com/ with the permission of Meteoblue.

Conflicts of Interest

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

References

  1. Aboagye, B.; Gyamfi, S.; Ofosu, E.A.; Djordjevic, S. Status of renewable energy resources for electricity supply in Ghana. Sci. Afr. 2021, 11, e00660. [Google Scholar] [CrossRef]
  2. Maradin, D. Advantages and disadvantages of renewable energy sources utilization. Int. J. Energy Econ. Policy 2021, 11, 176–183. [Google Scholar] [CrossRef]
  3. Hereher, M.; El Kenawy, A.M. Exploring the potential of solar, tidal, and wind energy resources in Oman using an integrated climatic-socioeconomic approach. Renew. Energy 2020, 161, 662–675. [Google Scholar] [CrossRef]
  4. Sayed, E.T.; Wilberforce, T.; Elsaid, K.; Rabaia, M.K.H.; Abdelkareem, M.A.; Chae, K.J.; Olabi, A.G. A critical review on environmental impacts of renewable energy systems and mitigation strategies: Wind, hydro, biomass and geothermal. Sci. Total Environ. 2021, 766, 144505. [Google Scholar] [CrossRef] [PubMed]
  5. Mehrjerdi, H. Modeling, integration, and optimal selection of the turbine technology in the hybrid wind-photovoltaic renewable energy system design. Energy Convers. Manag. 2020, 205, 112350. [Google Scholar] [CrossRef]
  6. Rahman, M.A.; Rahim, A.H.M.A. Performance evaluation of ANN and ANFIS based wind speed sensor-less MPPT controller. In Proceedings of the 2016 5th International Conference on Informatics, Electronics and Vision (ICIEV), Dhaka, Bangladesh, 13–14 May 2016; pp. 542–546. [Google Scholar]
  7. Singh, U.; Rizwan, M. Analysis of Fuzzy Logic, ANN and ANFIS based Models for the Forecasting of Wind Power. In Proceedings of the 2018 2nd IEEE International Conference on Power Electronics, Intelligent Control and Energy Systems (ICPEICES), Delhi, India, 22–24 October 2018; pp. 1–7. [Google Scholar]
  8. Geçmez, A.; Gençer, Ç. Wind Energy Production Estimation with ANN and ANFIS. In Proceedings of the 2021 9th International Conference on Smart Grid (icSmartGrid), Setubal, Portugal, 29 June–1 July 2021; pp. 167–173. [Google Scholar]
  9. Muneer, T.; Gago, E.J.; Berrizbeitia, S.E. Solar and Wind Energy Technologies. In The Coming of Age of Solar and Wind Power; Springer International Publishing: Cham, Switzerland, 2022; pp. 21–103. [Google Scholar]
  10. Graupe, D. Principles of Artificial Neural Networks; World Scientific: Singapore, 2013. [Google Scholar]
  11. da Silva, I.N.; Hernane Spatti, D.; Andrade Flauzino, R.; Liboni, L.H.B.; dos Reis Alves, S.F. Artificial neural network architectures and training processes. In Artificial Neural Networks; Springer International Publishing: Cham, Switzerland, 2017; pp. 21–28. [Google Scholar]
  12. Kalogirou, S.A. Artificial neural networks in renewable energy systems applications: A review. Renew. Sustain. Energy Rev. 2001, 5, 373–401. [Google Scholar] [CrossRef]
  13. Đekić, L.; Ibrić, S.; Primorac, M. Application of artificial neural networks (ANNs) in development of pharmaceutical microemulsions. In Focus on Artificial Neural Networks; Nova Science Publishers, Inc.: New York, NY, USA, 2011; pp. 1–28. ISBN 978-1-61324-285-8. [Google Scholar]
  14. Ozsahin, D.U.; Uzun, B.; Ozsahin, I.; Mustapha, M.T.; Musa, M.S. Fuzzy logic in medicine. In Biomedical Signal Processing and Artificial Intelligence in Healthcare; Academic Press: Cambridge, MA, USA, 2020; pp. 153–182. [Google Scholar]
  15. Pillay, A.; Wang, J. Modified failure mode and effects analysis using approximate reasoning. Reliab. Eng. Syst. Saf. 2003, 79, 69–85. [Google Scholar] [CrossRef]
  16. Cirstea, M.; Dinu, A.; McCormick, M.; Khor, J.G. Fuzzy logic fundamentals. In Neural and Fuzzy Logic Control of Drives and Power Systems; Elsevier: Amsterdam, The Netherlands, 2002; pp. 114–121. [Google Scholar]
  17. Imran, M.; Alsuhaibani, S.A. A neuro-fuzzy inference model for diabetic retinopathy classification. In Intelligent Data Analysis for Biomedical Applications; Academic Press: Cambridge, MA, USA, 2019; pp. 147–172. [Google Scholar]
  18. Ghenai, C.; Al-Mufti, O.A.A.; Al-Isawi, O.A.M.; Amirah, L.H.L.; Merabet, A. Short-term building electrical load forecasting using adaptive neuro-fuzzy inference system (ANFIS). J. Build. Eng. 2022, 52, 104323. [Google Scholar] [CrossRef]
  19. Marugán, A.P.; Márquez, F.P.G.; Perez, J.M.P.; Ruiz-Hernández, D. A survey of artificial neural network in wind energy systems. Appl. Energy 2018, 228, 1822–1836. [Google Scholar] [CrossRef]
  20. Liu, H.; Tian, H.Q.; Liang, X.F.; Li, Y.F. Wind speed forecasting approach using secondary decomposition algorithm and Elman neural networks. Appl. Energy 2015, 157, 183–194. [Google Scholar] [CrossRef]
  21. García Márquez, F.P.; Pliego Marugán, A.; Pinar Pérez, J.M.; Hillmansen, S.; Papaelias, M. Optimal Dynamic Analysis of Electrical/Electronic Components in Wind Turbines. Energies 2017, 10, 1111. [Google Scholar] [CrossRef]
  22. Safavieh, E.; Ardakani, A.J.; Laviani, A.K.; Pourmousavi, S.A.; Hosseinian, S.H.; Abedi, M. A new integrated approach for very short-term wind speed prediction using wavelet networks and PSO. In Proceedings of the International Conference on Power Systems, Bangalore, India, 12–14 December 2007. [Google Scholar]
  23. Monfared, M.; Rastegar, H.; Kojabadi, H.M. A new strategy for wind speed forecasting using artificial intelligent methods. Renew. Energy 2009, 34, 845–848. [Google Scholar] [CrossRef]
  24. Galdi, V.; Piccolo, A.; Siano, P. Exploiting maximum energy from variable speed wind power generation systems by using an adaptive Takagi–Sugeno–Kang fuzzy model. Energy Convers. Manag. 2009, 50, 413–421. [Google Scholar] [CrossRef]
  25. Kaneko, T.; Uehara, A.; Senjyu, T.; Yona, A.; Urasaki, N. An integrated control method for a wind farm to reduce frequency deviations in a small power system. Appl. Energy 2011, 88, 1049–1058. [Google Scholar] [CrossRef]
  26. Mohandes, M.; Rehman, S.; Rahman, S.M. Estimation of wind speed profile using adaptive neuro-fuzzy inference system (ANFIS). Appl. Energy 2011, 88, 4024–4032. [Google Scholar] [CrossRef]
  27. De Giorgi, M.G.; Ficarella, A.; Tarantino, M. Error analysis of short term wind power prediction models. Appl. Energy 2011, 88, 1298–1311. [Google Scholar] [CrossRef]
  28. Wagner, H.J.; Mathur, J. Wind Energy Today. In Introduction to Wind Energy; Green Energy and Technology Series; Springer: Cham, Switzerland, 2018. [Google Scholar]
  29. Roy, A.; Bandyopadhyay, S. Wind Power Based Isolated Energy Systems; Springer: Cham, Switzerland, 2019. [Google Scholar] [CrossRef]
  30. Bekar, G. Economic Analysis of Wind Energy Systems Investments in Turkey. Master’s Thesis, Manisa Celal Bayar University, Institute of Science, Energy Department, Mechanical Engineering Division, Manisa, Turkey, 2020. [Google Scholar]
  31. Terzioğlu, H.; Arslan, M.; Demirok, H.D. Rüzgar enerjisi ile elektrik üretimi. In Research Articles in Engineering; Gece Akademi: Ankara, Turkey, 2019; pp. 219–241. [Google Scholar]
  32. Beig, A.; Muyeen, S.M. Wind energy. In Electric Renewable Energy Systems; Academic Press: London, UK, 2015; pp. 60–77. [Google Scholar]
  33. Yaramasu, V.; Wu, B. Model Predictive Control of Wind Energy Conversion Systems; John Wiley & Sons: Hoboken, NJ, USA, 2016. [Google Scholar]
  34. Dhiman, H.S.; Deb, D.; Balas, V.E. Supervised Machine Learning in Wind Forecasting and Ramp Event Prediction; Academic Press: London, UK, 2020. [Google Scholar]
  35. Sharma, S.; Sharma, S.; Athaiya, A. Activation functions in neural networks. Towards Data Sci. 2017, 6, 310–316. [Google Scholar] [CrossRef]
  36. Singh, H.; Lone, Y.A. Artifical Neural Networks. In Deep Neuro-Fuzzy Systems with Python: With Case Studies and Applications from the Industry; Apress: Berkeley, CA, USA, 2020; pp. 157–198. [Google Scholar]
  37. Belyadi, H.; Haghighat, A. Machine Learning Guide for Oil and Gas Using Python: A Step-by-Step Breakdown with Data, Algorithms, Codes, and Applications; Gulf Professional Publishing: Oxford, UK, 2021. [Google Scholar]
Figure 1. Structure of a horizontal-axis wind turbine [31].
Figure 1. Structure of a horizontal-axis wind turbine [31].
Applsci 14 03598 g001
Figure 2. The conversion of wind energy into electrical energy [33].
Figure 2. The conversion of wind energy into electrical energy [33].
Applsci 14 03598 g002
Figure 3. ANN structure with multi-hidden layers.
Figure 3. ANN structure with multi-hidden layers.
Applsci 14 03598 g003
Figure 4. Validation performance values (MSE) of training, validation, and test data.
Figure 4. Validation performance values (MSE) of training, validation, and test data.
Applsci 14 03598 g004
Figure 5. Regression curves of training, validation and test data.
Figure 5. Regression curves of training, validation and test data.
Applsci 14 03598 g005
Figure 6. ANFIS training interface.
Figure 6. ANFIS training interface.
Applsci 14 03598 g006
Figure 7. Comparison of single-hidden layer ANN, multi-hidden layer ANN, and ANFIS results with linear fitting results.
Figure 7. Comparison of single-hidden layer ANN, multi-hidden layer ANN, and ANFIS results with linear fitting results.
Applsci 14 03598 g007
Table 1. Daily average wind speed values for the first 6 months (m/s).
Table 1. Daily average wind speed values for the first 6 months (m/s).
DaysJanuaryFebruaryMarchAprilMayJune
18.056.983.629.874.353.41
211.177.247.1012.074.762.73
35.378.847.274.253.253.47
43.696.105.617.945.436.18
56.598.845.5617.023.825.92
617.7811.004.5619.366.043.80
717.148.516.5716.944.276.00
813.729.186.7013.314.604.55
97.254.535.598.474.293.85
101.576.188.152.913.886.03
111.5710.884.875.604.943.15
126.963.984.807.968.274.76
133.895.086.145.718.464.31
142.495.198.168.083.713.84
156.176.5812.239.726.354.21
169.268.4011.575.476.084.98
179.016.365.483.366.154.35
186.872.856.694.719.762.68
196.774.388.133.878.823.66
209.256.673.809.285.735.64
216.808.632.749.8210.415.26
223.415.326.1210.547.313.36
238.514.459.239.344.412.95
245.489.6610.239.574.543.35
257.395.8811.184.615.336.02
265.0310.1613.504.764.369.31
274.9612.779.374.277.578.79
286.325.364.416.372.778.07
298.039.445.985.103.115.59
306.81-5.414.325.602.63
317.85-8.80-5.37-
Table 2. The amount of power produced by the Enercon-E92 wind turbine according to the wind speed (kW).
Table 2. The amount of power produced by the Enercon-E92 wind turbine according to the wind speed (kW).
Wind Speed (m/s)Wind Power (kW)
1(−)0
28
325
475
5192
6351
7660
8980
91395
101800
112060
122270
13(+)2350
Table 3. Single-hidden layer ANN model prediction values.
Table 3. Single-hidden layer ANN model prediction values.
Wind Power
(kW)
Tansig 10Tansig 15Tansig 20Logsig 10Logsig 15Logsig 20
826.1727.6014.3833.7419.7629.91
1427.0827.2914.5134.8719.4036.06
2533.5830.2418.6742.3811.4090.65
4547.8335.4539.8057.5517.1263.25
7557.9446.1169.6768.8048.8436.05
130109.35145.19154.27124.04125.84134.26
192195.60213.16117.93198.36192.86182.97
270269.44188.74227.86260.27271.60245.47
351378.16343.32306.13392.51352.20376.96
506451.86498.18420.75482.17453.56491.70
660595.15657.47818.74704.91764.05380.06
810715.47821.79979.26828.25813.56814.81
9801015.56978.25849.16967.57855.58980.07
11901153.571202.691070.481134.971197.561187.68
13951243.941376.151291.691252.281376.891370.39
16101620.301597.991545.731642.411543.621611.51
18001818.051799.181748.571819.051817.211811.21
19401942.182002.591889.361953.251945.221954.75
20602079.982215.552031.192068.312057.422065.51
21902157.522195.652173.062168.172190.062294.78
22702301.062225.552268.872309.382272.912268.18
23102312.672268.372283.102316.782286.022274.43
23502321.082307.842337.312326.452305.092327.82
Table 4. Multi-hidden layer ANN model prediction values.
Table 4. Multi-hidden layer ANN model prediction values.
Wind Power
(kW)
Tansig 10_15Tansig 10_20Tansig 15_20Logsig 10_15Logsig 10_20Logsig 15_20
830.2240.5125.1725.1331.1315.54
1430.5842.1725.0127.7231.4015.55
2544.3036.6533.9737.4337.6026.41
4560.6049.8647.0360.2159.8542.64
7567.4562.4776.1477.6675.9282.31
130127.56104.48127.98128.61124.71123.51
192212.38170.31153.97214.90221.64146.39
270260.68259.06271.32254.09263.32272.06
351370.84383.50377.72368.70374.91360.78
506483.00467.21506.54478.09491.66506.94
660697.10712.49657.24737.91899.82677.52
810819.62825.14824.66809.50813.13823.87
980977.89969.51995.75999.26951.07996.38
11901191.471188.621191.641157.941216.231192.47
13951239.711352.291400.571293.281335.921418.11
16101637.501657.051617.931625.731646.741619.93
18001842.571800.661812.961800.581798.081809.58
19401939.001904.711925.802109.511957.881903.73
20602054.952067.222060.282101.202086.952060.23
21902182.832173.542178.862141.002160.022179.79
22702303.432306.112286.452300.182295.222284.77
23102307.302313.322312.672307.622302.722309.93
23502319.532322.552333.512307.272309.822331.29
Table 5. Performance measures of ANN models.
Table 5. Performance measures of ANN models.
Activation FunctionHidden LayerNumber of NeuronsRMSEMAPER2
TansigSingle1045.3120.270.9973
TansigSingle1543.4121.700.9975
TansigSingle2073.5813.870.9928
LogsigSingle1038.5827.730.9980
LogsigSingle1540.9817.010.9978
LogsigSingle2066.9237.730.9941
TansigMulti10 and 1537.9724.790.9981
TansigMulti10 and 2026.9732.890.9990
TansigMulti15 and 2013.6316.220.9998
LogsigMulti10 and 1549.5120.420.9967
LogsigMulti10 and 2055.5925.430.9959
LogsigMulti15 and 2015.927.450.9997
Table 6. ANFIS model prediction values.
Table 6. ANFIS model prediction values.
Wind Power
(kW)
TriMFTrapMFGaussMF
822.0310.9312.49
1426.1110.9314.57
2547.0010.9331.16
4561.1410.9352.78
7571.9170.6880.93
130118.62134.07125.47
192185.89183.65184.88
270270.22259.54266.29
351368.93363.94364.92
506492.60499.46486.07
660496.22634.21637.84
810739.93727.68812.17
980996.63991.181002.61
11901217.871217.661198.21
13951421.481425.621401.64
16101621.491629.431615.60
18001792.311803.141799.16
19401948.621947.241957.56
20602079.452054.382076.29
21902193.682186.262174.36
22702245.962330.532264.86
23102261.382330.532282.77
23502325.792330.532333.13
Table 7. Performance measures of ANFIS models.
Table 7. Performance measures of ANFIS models.
Membership FunctionRMSE MAPER2
TriMF41.4019.820.9977
TrapMF26.3910.390.9991
GaussMF12.946.020.9998
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Oguz Erenler, G.; Bulus, H.N. The Effect of Varying Artificial Neural Network and Adaptive Neuro-Fuzzy Inference System Parameters on Wind Energy Prediction: A Comparative Study. Appl. Sci. 2024, 14, 3598. https://doi.org/10.3390/app14093598

AMA Style

Oguz Erenler G, Bulus HN. The Effect of Varying Artificial Neural Network and Adaptive Neuro-Fuzzy Inference System Parameters on Wind Energy Prediction: A Comparative Study. Applied Sciences. 2024; 14(9):3598. https://doi.org/10.3390/app14093598

Chicago/Turabian Style

Oguz Erenler, Gokce, and Halil Nusret Bulus. 2024. "The Effect of Varying Artificial Neural Network and Adaptive Neuro-Fuzzy Inference System Parameters on Wind Energy Prediction: A Comparative Study" Applied Sciences 14, no. 9: 3598. https://doi.org/10.3390/app14093598

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