Next Article in Journal
The Instability and Response Studies of a Top-Tensioned Riser under Parametric Excitations Using the Differential Quadrature Method
Next Article in Special Issue
Variational Bayesian Network with Information Interpretability Filtering for Air Quality Forecasting
Previous Article in Journal
Algebraic Systems with Positive Coefficients and Positive Solutions
Previous Article in Special Issue
Fuzzy Algebraic Modeling of Spatiotemporal Timeseries’ Paradoxes in Cosmic Scale Kinematics
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Comparative Study of Forecasting Electricity Consumption Using Machine Learning Models

1
Department of Actuarial Science and Applied Statistics, Faculty of Business & Management, UCSI University, Jalan Menara Gading, Cheras, Kuala Lumpur 56000, Malaysia
2
VNU Information Technology Institute, Vietnam National University, Hanoi 03000, Vietnam
3
School of Information Technology and Digital Economics, National Economic University, Hanoi 100000, Vietnam
4
Department of Digital Systems, Faculty of Technology, University of Thessaly, Geopolis, 41500 Larissa, Greece
*
Author to whom correspondence should be addressed.
Submission received: 29 November 2021 / Revised: 7 April 2022 / Accepted: 13 April 2022 / Published: 17 April 2022

Abstract

:
Production of electricity from the burning of fossil fuels has caused an increase in the emission of greenhouse gases. In the long run, greenhouse gases cause harm to the environment. To reduce these gases, it is important to accurately forecast electricity production, supply and consumption. Forecasting of electricity consumption is, in particular, useful for minimizing problems of overproduction and oversupply of electricity. This research study focuses on forecasting electricity consumption based on time series data using different artificial intelligence and metaheuristic methods. The aim of the study is to determine which model among the artificial neural network (ANN), adaptive neuro-fuzzy inference system (ANFIS), least squares support vector machines (LSSVMs) and fuzzy time series (FTS) produces the highest level of accuracy in forecasting electricity consumption. The variables considered in this research include the monthly electricity consumption over the years for different countries. The monthly electricity consumption data for seven countries, namely, Norway, Switzerland, Malaysia, Egypt, Algeria, Bulgaria and Kenya, for 10 years were used in this research. The performance of all of the models was evaluated and compared using error metrics such as the root mean squared error (RMSE), average forecasting error (AFE) and performance parameter (PP). The differences in the results obtained via the different methods are analyzed and discussed, and it is shown that the different models performed better for different countries in different forecasting periods. Overall, it was found that the FTS model performed the best for most of the countries studied compared to the other three models. The research results can allow electricity management companies to have better strategic planning when deciding on the optimal levels of electricity production and supply, with the overall aim of preventing surpluses or shortages in the electricity supply.

1. Introduction

Electricity consumption, production and supply are increasingly important areas that are being looked into seriously by governments, researchers and corporate companies due to the fact of their inevitable importance on livelihoods and economic development all around the world. Electricity is conventionally generated using sources of primary energy including fossil fuels, nuclear energy and renewable energy. However, a high percentage of electricity production comes from the burning of fossil fuels, leading to an increase in greenhouse gas emissions, which are harmful to the environment in the long run. One of the cruxes of the United Nation’s Sustainable Development Goals (UNSDGs) (https://sdgs.un.org/goals, accessed on 5 November 2021) is to reduce greenhouse gases as an effective method to reduce carbon emissions worldwide and promote the use of renewable energy sources. Specifically, SDG 12 (https://www.cdp.net/en/companies-discloser, accessed on 5 November 2021), which concerns “Responsible Consumption and Production”, aims to reduce greenhouse gases and carbon emissions worldwide. To effectively reduce carbon emissions, the solutions are to reduce electricity production from the burning of fossil fuels and to minimize the problems of electricity overproduction and oversupply.
Electricity consumption varies greatly from one region to another depending on the availability of electricity and the level of development of the region. One of the measures of the development of a country is the Human Development Index (HDI) (https://hdr.undp.org/en/content/human-development-index-hdi, accessed on 5 November 2021). Countries with a higher HDI are considered more developed compared to countries with a lower HDI. Therefore, it is important to develop methods to accurately forecast electricity consumption in different geographical regions at different times so that we are able to produce and supply electricity in correct amounts. This would enable us to optimize electricity production and supply to match electricity demand. This would also ensure that all regions are supplied with adequate amounts of electricity supporting their livelihood and development. Forecasting electricity consumption accurately would help to prevent excessive burning of fossil fuels and is crucial for the strategic planning of electricity production and supply. Inefficiency in electricity production may cause a shortage or surplus of electricity supply. A shortage of electricity may affect a region’s development; meanwhile, a surplus of electricity would be a wastage.
There are many available methods in the relevant literature for forecasting electricity consumption. The most common models for this purpose are the autoregressive integrated moving average (ARIMA), the autoregressive moving average (ARMA), the grey models and the linear regression models [1,2,3,4,5,6]. In recent years, many methods that improve the forecasting ability of existing models have been introduced. However, a model developed for one region may not be appropriate for another region with different patterns of electricity consumption. Hence, in this study, we investigated the ability of the artificial neural network (ANN) [1], the adaptive neuro-fuzzy inference system (ANFIS) [2], the least squares support vector machines (LSSVMs) [3] and the fuzzy time series model (FTS) [4] to forecast electricity consumption in different countries with different development levels. The forecasting accuracy of these models are also studied and analyzed. The variables considered in this research included the monthly electricity consumption in seven (7) countries: Norway, Switzerland, Malaysia, Egypt, Algeria, Bulgaria and Kenya. The selection of countries was mainly based on their development level, whereby Norway and Switzerland are developed countries; Malaysia, Egypt, Algeria and Bulgaria are developing countries; Kenya is an underdeveloped country.
There have been many research proposals for forecasting electricity consumption. Akdi, Gölveren and Okkaoğlu [5] forecasted daily electricity consumption in Turkey using ARIMA and harmonic regression models. Cevik and Cunkas [6,7], Peng et al. [8] and Tay et al. [9] studied the application of the ANFIS model in forecasting short-term electricity load, while Al-Hamad and Qamber [10] used the ANFIS model to forecast the long-term peak electricity loads of Gulf Cooperation Council member countries, and all of these studies found that the ANFIS model performed better than the other models. Koo and Park [11] used the ANN model to forecast short-term electricity load, while Panklib et al. [12], Ozoh et al. [13] and Azadeh et al. [14] applied the ANN model in forecasting electricity consumption, and all but [11,13] found that the ANN model performed the best compared to the other models. On the other hand, Rahman et al. [15] studied the use of the ANN model for forecasting air quality in Malaysia, while Adebiyi et al. [16] and Laboissiere et al. [17] studied the application of the ANN model for forecasting stock prices, and these studies found that the ANN model produced the most accurate results.
Kaytez et al. [18] applied the LSSVM model for forecasting electricity consumption in Turkey and found that this model performed better than the other models. Pham et al. [19], Ahmadi et al. [20], Kisi and Parmar [21], Deo et al. [22], and Arabloo et al. [23] studied the LSSVM model in environmental forecasting, whereby all but [19,22] found that the LSSVM model performed the best. Efendi et al. [24,25] used the FTS model to forecast the electric load in Taiwan, using Taiwan’s regional electric load from 1981 to 2000, and in the forecasting of the electricity load demand in Malaysia using the daily electricity load data from the National Electricity Board of Malaysia (TNB) from January to August 2006 in [24,25], respectively. Chen [26], Lee et al. [27], and Sun et al. [28] also used the FTS model in forecasting and all of the studies in [24,25,26,27,28] found that the FTS model produced the best results.
There has been also massive research on the use of machine learning models in the area of forecasting, and this has led to an increase in the introduction of hybrid models that combine traditional statistical models with the latest machine learning models [29]. Semero et al. [30] used an integrated GA–PSO–ANFIS method to forecast electricity production, and Göçken et al. [31] introduced a hybrid ANN model that used metaheuristic methods and applied this model to stock price prediction, whereas Shukur and Lee [32] studied daily wind speed forecasting using a hybrid KF–ANN model that was based on the ARIMA model. Chaabane [33] introduced a hybrid ARFIMA and neural network model to forecast electricity prices, while Cerjan et al. [34] and Ardakani and Ardehali [35] studied short-term and long-term electricity forecasting, respectively, using different types of dynamic hybrid models. Khandelwal et al. [36] and Babu and Reddy [37] studied time series forecasting using different types of hybrid ARIMA and ANN models. Kabran and Ünlü [38], on the other hand, used a two-step machine learning approach on the support vector machine (SVM). Yuan et al. [39], Zhu and Chevallier [40], Jung et al. [41] and Li et al. [42] all used various types of hybrid LSSVM models and applied these to problems related to forecasting and prediction. Chen and Chen [43], Dincer and Akkuş [44] and Wang et al. [45] used hybrid FTS models in forecasting stock prices and air pollution, respectively.
Even though studies exist regarding the application of machine learning models to the forecasting of electricity consumption, none have been published to validate and compare several typical forecasting methods within a concrete case study with real data. This paper is structured as follows. In Section 2, we recapitulate the concepts related to the ANN, ANFIS, LSSVM and FTS models. In Section 3, we introduce our proposed methodology on forecasting electricity consumption with the proposed models. In Section 4, the implementation of the methodology is described, and the results are analyzed. Electricity consumption data for the seven studied countries were obtained from ceicdata.com. In Section 5, a summary of our findings is presented. In Section 6, the limitations of this research are presented. Finally, Abbreviations section provides a table of the acronyms that are used throughout the present work and their descriptions.

2. Preliminaries

In this section, we briefly present an introduction to the concepts that are pertinent to the study presented in this paper.

2.1. Artificial Neural Network (ANN)

McCulloch and Pitts [1] introduced this model whereby the neural network structure is based on the neurons in the human nervous system. The dendrites receive information from other neurons, which is processed through synapses and is sent to the axon for output.
Figure 1 shows an example of the multilayer perceptron (MLP), which is the network structure of the ANN that consists of three layers: the input layer, the hidden layer, and the output layer, all of which are connected through weights. Every neuron in the hidden layer is connected to every neuron in the input layer and the output layer [46]. External information is received from the input layer, and the result is sent out in the output layer. The parameters of the neural network structure are adjusted to identify which structure gives a more accurate result, thus increasing the performance of predicting the testing data [47].
Generally, there is a transfer function that connects the hidden layer to the output, which is given by g ( x ) = 1 / ( 1 + e x ) , where x is the input.
The MLP with only the input layer and the hidden layer can be computed using the equation below:
Y t = W 0 + i = 1 n W i Y i
where Y t   is the output, and W i Y i denotes the connection weights. The function of the hidden layer is given by:
Y t = W 0 + k = 1 q W k g ( W 0 , k + j = 1 p W j , k Y t j ) + ε t  
Referring to Equation (2), the connection weights are denoted as W k and W j , k , while p is the number of input nodes, q is the number of output nodes and ε t is the error term. Thus, Equation (2) maps a nonlinear equation based on the historical observations given by Y t = g ( Y t 1 , Y t 2 ,     ,     Y t p ,   ω ) + ε t , whereby g is the function formed by the connection weights, and ω is a vector for all parameters [48].

2.2. Adaptive Neuro-Fuzzy Inference System (ANFIS)

This model was introduced by Jang [2], and it was based on the Takagi–Sugeno inference system. This model was proposed to overcome some of the weaknesses of the ANN model as well as some of the weaknesses of the fuzzy logic system. The ANFIS uses the hybrid learning method to decide the optimal distribution of membership functions in order to obtain the mapping relationship of the input and output data [49].
Figure 2 shows the basic ANFIS model consisting of two input data and one output. The rule base of the ANFIS contains the IF–THEN rules of the Sugeno type. The rules are as shown below:
Rule   1 .   If   x   is   A 1   and   y   is   B 1 ,   then   f 1 = p 1 x + q 1 y + r 1 .
Rule   2 .   If   x   is   A 2   and   y   is   B 2 ,   then   f 2 = p 2 x + q 2 y + r 2 .
where A i and B i are known as linguistic variables of the fuzzy sets; x and y are the input data; p i , q i and r i are the output parameters. The ANFIS model consists of five layers, and they are explained below. Layer 1 can be known as the fuzzification layer. The nodes are fuzzified in the first layer to provide the output stated as O i 1 = μ A i ( x ) ,     i = 1 ,   2 and O i 1 = μ B i ( y ) ,   i = 3 ,   4 . Every node in this layer will have a bell function for fuzzification, which is:
μ A i ( x ) = μ B i 2 ( y ) = exp [ ( x i c i a i ) 2 ] = 1 1 + { ( x c i a i ) 2 } b i
where x is known as the input; a i ,     b i       and   c i are the premise parameters of control; μ A i ( x ) is known as the output.
In Layer 2, every node will be multiplied by input signals to serve as output given as O i 2 = w i = μ A i ( x ) μ B i ( y ) ,   i = 1 ,   2 . The output, w i , is also known as the firing strength of rules.
Layer 3 is the normalization layer, also known as the normalization of the firing strength. The output of the third layer is denoted as O i 3 = w i ¯ = w i w 1 + w 2 .
Layer 4 is known as the defuzzification stage, where the firing strengths from the third layer are multiplied by the first-order polynomial of the Sugeno model and then normalized. The output is denoted as O i 4 = w i ¯ f i = w i ¯ ( p i x + q i y + r i ) ,   i = 1 ,   2 , where p i ,   q i   and   r i are the consequent parameters.
Layer 5 is where all input signals are summed to calculate the overall output of the ANFIS model. The output is denoted as O i 5 = i w i f i i w i , where f i is the first-order polynomial based on the first-order Sugeno model.

2.3. Least Squares Support Vector Machines (LSSVMs)

This model was proposed by Suykens and Vandewalles [3] in order to solve quadratic programming (QP) problems faced by the support vector machines (SVMs). Instead of solving QP problems, LSSVMs solve a set of linear equations under the least squares cost function with equality constraints, thus reducing the complexity of computation [51]. Wang and Yu [52] used the LSSVM model to forecast electricity consumption. The modified LSSVM model introduced by Wang and Yu [52] is presented below.
  • The modified LSSVM model by Wang and Yu [52] supposing the extracted samples are D = { ( x 1 , y 1 ) , ( x 2 , y 2 ) , , ( x N , y N ) } , where N is the number of samples and x i is the extracted factor vector, x i R n , y i R ;
  • The electricity consumption model, y = w T φ ( x ) + b , is derived from the data D = { ( x i , y i ) } i = 1 N by minimizing the least squares cost function, min w , b J 1 ( w , b ) = μ E w + ζ E D . The regularization and error term are defined as E w = 1 2   w T w and E D = 1 2   i = 1 N e i 2 . Thus, the minimized cost function is min w , b J 1 ( w , b ) = μ 2   w T w + ζ 2   i = 1 N e i 2 , which is subjected to the constraint e i = y i ( w T φ ( x i ) + b ) , where i = 1 , ,   N ;
  • The Lagrangian function, L 1 ( w , b , e , α ) = J 1 ( w , e ) i = 1 N α i [ w T φ ( x i ) + b + e i y i ] , is constructed by introducing the Lagrange multipliers for equality constraints and taking the conditions for optimality to find the solution for the minimized cost function;
  • A linear Karush–Kuhn–Tucker (KKT) system, used to find the load model, is obtained in dual space as [ 0 1 v T 1 v Ω + γ 1 I N ] [ b α ] = [ 0 Y ] , where Y = [ y 1 ; ; y N ] , 1 v = [ 1 ; ; 1 ] , e = [ e 1 ; ; e N ] and α = [ α 1 ; ; α N ] ;
  • Mercer’s condition is applied within Ω matrix results in Ω i j = φ ( x i ) T φ ( x j ) = K ( x i , x j ) . The possible kernel functions are linear kernel, K ( x 1 , x 2 ) = x 1 T x 2 and radial basis function (RBF) kernel, K ( x 1 , x 2 ) = exp ( x 1 x 2 2 2 / σ 2 ) , where Mercer’s condition holds for all possible kernel parameters;
  • Then, the electricity consumption regressor is constructed as y ( x ) = i = 1 N α i K ( x , x i ) + b . The mapping relationship of electricity consumption and its extracted influence factors are obtained in this way.

2.4. Fuzzy Time Series (FTS)

In 1965, Zadeh [4] developed the fuzzy set theory in order to solve the vagueness of the data by combining linguistic variables with the analysis process of applying fuzzy logic into time series. Song and Chissom [53] further expanded the study of Zadeh’s fuzzy set theory in forecasting. In 1996, Chen [54] improved the steps involved in the fuzzy time series (FTS) model using simple operations. The main characteristic of Chen’s model is that it uses simple calculations and can provide better forecasting results [55]. The model begins with the process of fuzzification, developing fuzzy logical relationships (FLRs), forming the fuzzy logical group (FLG) and the defuzzification process [25]. The definitions and concepts of FTS forecasting were developed by Song and Chissom [56] as well as by Singh [57].
Singh [57] developed a method for time series to solve real-life problems. The steps for FTS forecasting based on historical time series data that were introduced by Singh [57] is presented below (Figure 3):
Step 1: Define the universe of discourse ( U ).
U = [ D m i n D 1 , D m a x D 2 ]  
Step 2: Divide the universe of discourse into equal-length intervals, u 1 ,   u 2 ,     ,   u m , according to the number of linguistic variables, A 1 ,   A 2 ,     ,   A m . The number of intervals is the same as the number of linguistics variable, which is m .
Step 3: Define a fuzzy set for observation according to the intervals in Step 2. The triangular membership rule is applied to each interval in each fuzzy set that is constructed.
Step 4: Fuzzify the historical data.
Step 5: Establish FLRs by the following rule:
Rule: A i (current state) is a fuzzy production of year n , A j (next state) is a fuzzy production of year n + 1 ; then, the FLRs is denoted as A i A j .
Step 6: Determine the forecasting rule.

3. Methodology

In this section, we present the research methods used in this paper. The section also presents a description of the countries studied as well as the utilized data sources, error metrics and forecasting procedures.

3.1. Countries Chosen for the Study

The seven countries studied in this paper were Norway, Switzerland, Malaysia, Egypt, Algeria, Bulgaria and Kenya. The selection of these specific countries was mainly based on their level of development, whereby Norway and Switzerland are developed countries; Malaysia, Egypt, Algeria and Bulgaria are developing countries; Kenya is an underdeveloped country. In this research, the electricity consumption data for the seven countries studied were required in order to train and test the forecasting models. The electricity consumption data were obtained from ceicdata.com; the monthly electricity consumption data for the years 2007 to 2016 were utilized in this study. A data set from the years 2007 to 2015 was used as the training set, while a data set for the year 2016 was used as the testing set.

3.2. Error Metrics

There are many error metrics that can be used to compare the accuracy of the forecasting models such as mean absolute error (MAE), mean absolute deviation (MAD), root mean square error (RMSE), average forecasting error (AFE) and performance parameter (PP). In this paper, the accuracy of the forecasting results was compared using the RMSE, AFE and PP metrics. The reason for using these specific error metrics was because RMSE is the most popular error metric used in regression problems. AFE was used to calculate the mean absolute forecasting error based on the relativeness of the error to the actual value, whereas PP was used to indicate the efficiency of the model. The formulae to calculate these three metrics are as below:
RMSE = 1 n i n ( A i F i ) 2
AFE = 1 n ( i n | F i A i | A i × 100 % )
PP = 1 RMSE σ

3.3. Forecasting Procedures

The procedures that were implemented for the forecasting of electricity consumption are briefly expounded upon in this section.

3.3.1. Overview of Forecasting Procedures

The overview of the forecasting process is shown in Figure 4 below.

3.3.2. ANN

The “keras” library in the Spyder IDE (https://keras.io/, accessed on 5 November 2021) was used to model the artificial neural network. The electricity consumption data were normalized using the formula as given below:
N o r m a l i z a t i o n   o f   d a t a = Y i m i n y m a x y m i n y  
The normalized data were then imported into the data frame, and the model was trained using 2 hidden layers (6,3). The model was then used to forecast the electricity consumption for 2016.

3.3.3. ANFIS

The computation for the ANFIS was conducted using the Fuzzy Logic toolbox in MATLAB. The training and testing data were imported into workspace. Then, the Neuro-fuzzy Designer window was initiated using anfisedit(). The model was trained and exported to the workspace to generate output values.

3.3.4. LSSVMs

The computation for the LSSVMs was performed using the LSSVMlab toolbox in MATLAB. The training and testing data were imported into the workspace. Then, the model was tuned using the LSSVMlab’s built-in procedure. The model was trained and used to forecast electricity consumption for the year 2016.

3.3.5. FTS

The computation for the FTS was conducted in RStudio using the AnalyseTS package. Figure 3 displays the general procedures for forecasting using the fuzzy time series model. The data set was first imported into RStudio and was fit into a time series. Then, the time series data were fit into Singh’s fuzzy time series model.

4. Performance Evaluation

In this section, a brief overview of the countries studied is discussed. The evaluation of the error metrics computed from the forecasted results and actual results are presented as well.

4.1. Brief Overview of the Countries Studied

In this section, a brief overview of the seven countries that were studied in this paper, namely, Norway, Switzerland, Malaysia, Egypt, Algeria, Bulgaria and Kenya, are presented.

4.1.1. Norway

A plot of Norway’s electricity consumption from 2007 to 2016 is shown in Figure 5. Norway is a highly developed country due to the fact of its high standard of living as well as high human development. Although Norway has a rather low population count, this country has a large energy-intensive manufacturing sector, hence, explaining the high consumption of electricity. Norway experiences winter from December to February every year and also faces polar nights in midwinter, where daylight only lasts for approximately five to six hours. Citizens in Norway may use more electricity during the winter for heating purposes, which explains the higher electricity consumption from December to February. Electricity is widely used to heat up buildings and water in Norway compared to other countries in the world. As Norway experiences summer from June to August, there is a lesser need for citizens to use electricity for heating purposes. Furthermore, hydropower is Norway’s main source of energy, and Norway is able to generate enough energy for their own usage.

4.1.2. Switzerland

A plot of Switzerland’s electricity consumption from 2007 to 2016 is shown in Figure 6. Switzerland is also a highly developed country with low unemployment and a highly skilled labor force. Since Switzerland is already a developed country, the electricity consumption pattern for every year was almost the same. The climate in Switzerland is often moderate, where it does not get too warm during summer or too cold during winter. However, citizens in Switzerland may use more electricity during the winter from December to February for heating purposes. Switzerland’s main source of energy is hydropower, since approximately two-thirds of the country’s land is covered by the Alps, and Switzerland is able to produce enough energy for their own usage.

4.1.3. Malaysia

A plot of Malaysia’s electricity consumption from 2007 to 2016 is shown in Figure 7. Malaysia is a developing country. Even though Malaysia has been undergoing rapid economic growth over the past few years, its standard of living is still not on par with that of developed countries. The major consumers of energy in Malaysia include the manufacturing sector, transportation sector and the domestic sector. As Malaysia has been undergoing periods of economic growth, its electricity consumption has increased for developmental purposes over the years. Malaysia’s climate is hot and humid throughout the whole year; hence, there is no rapid change in electricity consumption throughout the months of every year due to the weather. It also experiences monsoon seasons, which are the northeast monsoon from mid-October to January and the southeast monsoon from June to September. Malaysia’s main source of energy is from the burning of fossil fuels, and Malaysia is able to generate enough energy for their own usage.

4.1.4. Egypt

A plot of Egypt’s electricity consumption from 2007 to 2016 is shown in Figure 8.
Egypt is a developing country, where lately there have been some economic reforms and the building of infrastructure, thereby making Egypt a fast-growing economy. Egypt is one of the countries whereby a large proportion of citizens have access to electricity. The increase in electricity consumption over the years is driven by factors such as population growth, industrial output and economic growth [58]. The climate in Egypt is rather moderate, even though temperatures are lower from December to February. Egypt’s main source of energy is oil, natural gas and hydroelectric power. Egypt is also able to generate enough energy for their own usage with rapid increases each year, especially in September 2012, whereby a number of protests were organized along with political reforms.

4.1.5. Algeria

A plot of Algeria’s electricity consumption from 2007 to 2016 is shown in Figure 9.
Algeria is a slow-developing country with a slightly high unemployment rate. Although Algeria and Malaysia are both developing countries, and the population of Algeria is approximately 10 million more than the population of Malaysia, Algeria has a relatively lower electricity consumption compared to Malaysia. The economy in Algeria is growing too slowly to provide jobs for the increasing population. The temperature in Algeria is moderate with a higher temperature during the month of August, which may explain the increase in electricity consumption for cooling purposes in that month. Algeria’s main source of energy is natural gas. The total energy consumption in Algeria increased by 32% from 2010 to 2014, whereby the increase was mainly in electricity consumption by the residential sector [59].

4.1.6. Bulgaria

A plot of Bulgaria’s electricity consumption from 2007 to 2016 is shown in Figure 10.
Bulgaria is a developing country with a rather high literacy rate and low unemployment rate. Bulgaria has a temperate-continental climate with moderate features with January being the coldest month of the year with an average low temperature of 3.9   ° C . This may explain the increase in electricity consumption for heating purposes in the month of January. Approximately 65% of houses in Bulgaria were built in poor condition and with inefficient or non-existent thermal insulation [60]. A study in 2016 stated that 41% of Bulgarians are unable to maintain thermal comfort in their homes due to the fact of rising electricity prices [61]. This has led Bulgarians to use other heat sources, such as coal and wood, which in turn worsens the quality of the air. Bulgaria’s main energy source is coal and nuclear, and they are also able to generate enough energy for their own usage.

4.1.7. Kenya

A plot of Kenya’s electricity consumption from 2007 to 2016 is shown in Figure 11. Kenya is an underdeveloped country where there is limited access to electricity, especially in rural areas. As some of the citizens in Kenya live in poverty, they are also unable to afford electricity. The temperature in Kenya is moderate throughout the whole year. Its electricity consumption is rather stable with slight increases over the years. Approximately 75% of the population in Kenya uses biomass for activities such as cooking and for heating purposes. Electricity only accounts for approximately 9% of the energy source in Kenya [62]. Kenya is able to generate enough energy for its own usage.

4.2. Forecasting the Results for Each of the Forecasting Models

The results of the forecasting of electricity consumption for the year 2016 using the ANN, ANFIS, LSSVM and FTS models for the seven countries that were considered in this study are presented in Table 1, Table 2, Table 3 and Table 4.

4.3. Forecasting Results by Country

The forecasting of electricity consumption for different forecasting periods (i.e., short-term and long-term forecasting) for the seven countries were studied for the ANN, ANFIS, LSSVM and FTS models. The short-term and long-term forecasting results for each country are presented in Table 5, Table 6, Table 7, Table 8, Table 9, Table 10 and Table 11.

4.4. Analysis and Discussion

The results of the forecasting of electricity consumption for the year 2016 for the seven countries that were studied are tabulated according to the forecasting model and presented in Table 1, Table 2, Table 3 and Table 4, while the results for the short-term and long-term forecasting are tabulated for each country and presented in Table 5, Table 6, Table 7, Table 8, Table 9, Table 10 and Table 11. Table 1 presents the computation results for the ANN model, whereby this model produced the lowest AFE for Kenya, which was 2.931%. The ANN model produced a positive PP for all seven countries, whereby a higher PP value shows greater efficiency of the model. Table 2, on the other hand, presents the computation results for the ANFIS model, whereby this model produced the lowest AFE value of 2.042% and a PP of 0.7481 for Switzerland. The ANFIS model, however, produced a negative PP for Malaysia, Egypt and Kenya, showing that this model was not very efficient in the forecasting of electricity consumption for these countries. Table 3 presents the computation results for the LSSVM model, whereby this model produced the lowest AFE of 5.654% but a negative PP of −0.4024 for Kenya. It also produced a negative PP for Switzerland, Malaysia, Egypt and Algeria, showing that the LSSVM model was not very effective in forecasting electricity consumption for these countries. Table 4 presents the computation results for the FTS model, whereby this model produced the lowest AFE of 1.008% for Bulgaria. The FTS model produced a positive PP for all seven countries studied, which shows that this model was efficient in forecasting electricity consumption.
Table 5 presents the short-term and long-term forecasting results for Norway, whereby the FTS model produced the lowest RMSE for all forecasting periods. Its RMSE was relatively lower than the other models. The FTS model also produced the lowest AFEs for all of the forecasting periods with values of 3.133%, 3.400%, 3.142%, 2.782%, 2.649% and 2.479% for 1, 2, 3, 6, 9 and 12 months, respectively. The FTS model consistently performed the best in forecasting electricity consumption for all forecasting periods in Norway. Table 6 presents the short-term and long-term forecasting results for Switzerland, whereby the ANFIS model produced the lowest RMSEs for short-term forecasting, while the FTS model produced the lowest RMSEs for long-term forecasting. The ANFIS model also produced the lowest AFEs for short-term forecasting at 0.204%, 0.884% and 1.001% for 1, 2 and 3 months, respectively. The FTS model, on the other hand, produced the lowest AFEs for long-term forecasting at 1.526%, 1.410% and 1.419% for 6, 9 and 12 months, respectively. Hence, the ANFIS model was the most accurate for short-term electricity consumption forecasting, while the FTS model was the most accurate for long-term electricity consumption forecasting.
Table 7 presents the short-term and long-term forecasting results for Malaysia, where the ANN model showed the lowest RMSEs for 1 and 2 months of forecasting, while the FTS model showed the lowest RMSEs for 3, 6, 9 and 12 months of forecasting. The ANN model also showed the lowest AFEs for 1, 2 and 3 months at 1.552%, 1.896% and 1.795% respectively, while the FTS model showed the lowest AFEs for 6, 9 and 12 months of forecasting at 2.305%, 1.290% and 1.357%, respectively. Thus, the ANN model was more accurate in short-term forecasting, while the FTS model was more accurate in the long-term forecasting of electricity consumption. Table 8 presents the short-term and long-term forecasting results for Egypt, whereby the ANN model produced the lowest RMSEs for 1 and 2 months of forecasting, while the LSSVM model produced the lowest RMSE for 3 months of forecasting. The FTS model produced the lowest RMSEs for 6, 9 and 12 months. The ANN model produced the lowest AFEs of 1.683% and 4.122% for 1 and 2 months of forecasting, respectively, while the LSSVM produced the lowest AFE of 2.412% for 3 months forecasting. The FTS model on the other hand produced the lowest AFEs for 6, 9 and 12 months of forecasting at 4.910%, 4.292% and 4.245%, respectively. Hence, the ANN model was the most accurate for 1 and 2 months of forecasting, while the LSSVM model was the most accurate for 3 months of forecasting, and the FTS model provided the most accurate results for long-term forecasting.
Table 9 presents the short-term and long-term forecasting results for Algeria, whereby the FTS model produced the lowest RMSE for both short-term and long-term forecasting with RMSEs of 18.768, 21.796, 128.216, 181.178, 171.200 and 179.943 for 1, 2, 3, 6, 9 and 12 months, respectively. The FTS model also produced the lowest AFE compared to the other models. Thus, the FTS model was the most accurate in both short-term and long-term forecasting of electricity consumption in Algeria. Table 10 presents the short-term and long-term forecasting results for Bulgaria, whereby the FTS model produced the lowest RMSEs for 1, 2, 3, 6, 9 and 12 months of forecasting at 13.219, 13.079, 19.092, 28.449, 24.638 and 33.769, respectively. There was also quite a large difference in the RMSEs of the FTS model compared to the other three models. The FTS model also produced the lowest AFEs for both short-term and long-term forecasting. Hence, this shows that the FTS model was the most accurate in both short-term and long-term forecasting of electricity consumption in Bulgaria. Table 11 presents the short-term and long-term forecasting results for Kenya, whereby the FTS model produced the lowest RMSEs for 1, 2, 3, 6, 9 and 12 months of forecasting at 0.611, 17.670, 17.482, 16.571, 15.483 and 14.005, respectively. The FTS model also produced the lowest AFEs for 1, 2, 3, 6, 9 and 12 months of forecasting at 0.092%, 2.028%, 2.207%, 2.065%, 1.983% and 1.725%, respectively. Thus, the FTS model was the most accurate in both long-term and short-term forecasting of electricity consumption in Kenya.
Summary of the main findings: Overall, the different models performed better than others in different forecasting periods and different countries. The ANN model was the most accurate in forecasting short-term electricity consumption in Malaysia as well as 1 and 2 months of forecasting of electricity consumption in Egypt. The ANFIS model was the most accurate in short-term electricity consumption forecasting in Switzerland. The LSSVM model, on the other hand, was the most accurate in 3 months of forecasting of electricity consumption in Egypt. The FTS model was the most accurate in short-term forecasting of electricity consumption in Norway, Algeria, Bulgaria and Kenya. The FTS model was also the most accurate in the long-term forecasting of electricity consumption, which was considered to be 6, 9 and 12 months of forecasting, in all of the seven countries studied in this research. The FTS model was able to perform well and produced low AFEs of less than 6% for all seven countries. This may be due to the ability of the FTS model to perform well with small numbers of data, and the fuzzy component that was present in the FTS model enabled it to capture the uncertainty of the data. The ANN model may not have performed as well as the FTS model because the ANN model requires large numbers of time series data to train the model before it is able to produce accurate results. It can also be seen that the ANFIS model did not perform as well as the FTS model due to the fact that the ANFIS model usually performs better on volatile data. The LSSVM model, on the other hand, was shown to produce the highest AFEs for quite many forecasting periods and different countries. Its lack of accuracy may be due to the fact of its nature as a model that lacks in sparsity. The LSSVM model was also sensitive to the parameters of the kernel function; thus, it was rather difficult to train the model well.

5. Conclusions

The main contributions of this study are summarized below:
  • Seven countries were studied in this research, namely, Norway, Switzerland, Malaysia, Egypt, Algeria, Bulgaria and Kenya, and the monthly electricity consumption data for these seven countries from 2007 to 2016 were used as the data sets for this study. The main objective of this study was to determine the best model to forecast electricity consumption with the highest level of accuracy for countries with different characteristics;
  • The ANN, ANFIS, LSSVM and FTS models were used to forecast the electricity consumption for the year 2016 for the seven selected countries. These four models showed differing performances in different forecasting periods and in the forecasting of electricity consumption for the different countries. The ANN model was found to be the most accurate model in forecasting short-term electricity consumption for Malaysia as well as for 1 and 2 months of forecasting electricity consumption in Egypt. The ANFIS model was found to be the most accurate model in short-term electricity consumption forecasting in Switzerland. The LSSVM model, on the other hand, was found to be the most accurate model for 3 months of forecasting electricity consumption in Egypt. The FTS model was found to be the most accurate model for short-term forecasting of electricity consumption in Norway, Algeria, Bulgaria and Kenya. The FTS model was also found to be the most accurate model for the long-term forecasting of electricity consumption for the periods of 6, 9 and 12 months for all of the seven countries that were studied in this research;
  • In terms of long-term forecasting, the FTS model was found to be the most accurate model and produced the lowest AFEs for all seven countries that were studied. This may be due to the ability of the FTS model to perform well with small numbers of data, and the fuzzy component that is present in the FTS model enabled it to capture the uncertainty of the data;
  • From the graphs of the electricity consumption patterns for the seven countries that were studied in this paper, it can be seen that Norway, Switzerland and Bulgaria had a rather similar electricity consumption pattern, while Algeria’s electricity consumption pattern had a higher peak during August, instead of a peak between the months of December and February. Malaysia, Egypt and Kenya, on the other hand, had a more stable electricity consumption pattern, although Egypt’s electricity consumption had an obvious outlier. Although the seven countries that were studied had different electricity consumption patterns, the FTS model was found to perform the best and consistently produced the lowest AFE values compared to the other models;
  • The application of predictive models in the forecasting of electricity consumption and production is continuously gaining ground in the area of power generation due to the fact of their improved accuracy and increased ability to handle complex relationships and to uncover hidden patterns in big data. Among the most commonly applied supervised learning approaches for electricity consumption and production forecasting are ML models, such as ANNs and SVMs, and metaheuristic methods, such as fuzzy logic-based approaches that include the ANFIS and FTS models. This can be seen from the various studies that were expounded upon in Section 1 of this paper. The absence of a clearly defined answer to every problem and the fact that different results may be produced, even for the same problem, but under different circumstances, makes comparative studies involving different ML models highly relevant and an important component of the body of knowledge in that area of research. Furthermore, due to the complex nature of electricity consumption, which involves many different factors, it is a challenging task to compare the performance of different models/methods that are used in forecasting electricity consumption. Hence, our study, which compared the performances of the ANN, ANFIS, FTS and LSSVM models, is in fact adequate, as it studied the performance of several of the most commonly applied supervised learning approaches in the context of electricity consumption. Our study contributes to the continuous efforts of the research community to assess the performances of various ML models to develop accurate data-driven forecasting models for the forecasting of electricity consumption.

6. Limitations and Future Research

The limitations of this study are as given below:
(i)
Monthly electricity consumption data for 10 years for seven countries was used in this research. It would have been better if daily or hourly electricity consumption data were used, as many machine learning methods work best with large amounts of data, and the use of larger amounts of data for training of the models would also produce better forecasts. However, it is rather difficult to obtain daily or even hourly electricity consumption data of countries. Better forecasts would be more useful, as it would enable electricity management companies, city councils and governments to better estimate the amount of electricity needed to be supplied to each region in a country.
Some suggestions for future research are as given below:
(ii)
It is recommended for future studies in this area to use a larger size of sample data, as increasing the numbers of data would help improve the accuracy of the forecasts that are produced;
(iii)
It is recommended to consider a larger number of countries in future studies in this area. The difficulty in obtaining electricity consumption data for many countries led to only seven countries being considered in this study. Using longer periods of data for a larger number of countries would enable future research in this area to study the electricity consumption patterns of different countries to be able to draw more conclusive and convincing conclusions.

Author Contributions

Conceptualization, M.H.L.L., Y.C.S., G.S., P.H.T., L.C., L.H.S., N.T.T. and V.C.G.; Data curation, P.H.T. and N.T.T.; Formal analysis, M.H.L.L., Y.C.S., G.S., P.H.T., L.C., L.H.S. and V.C.G.; Methodology, M.H.L.L., Y.C.S., G.S., P.H.T., L.C., L.H.S. and V.C.G.; Project administration, L.H.S. and V.C.G.; Writing—original draft, M.H.L.L., Y.C.S., G.S., P.H.T., L.C., L.H.S., N.T.T. and V.C.G.; Writing—review & editing, M.H.L.L., Y.C.S., G.S., P.H.T., L.C., L.H.S., N.T.T. and V.C.G. 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

Not applicable.

Conflicts of Interest

The authors declare that there is no conflict of interest.

Abbreviations

AcronymDescription
AFEAverage forecasting error
ANFISAdaptive neuro-fuzzy inference system
ANNArtificial neural network
ARIMAAutoregressive integrated moving average
ARMAAutoregressive moving average
FLGFuzzy logical group
FLRFuzzy logical relationship
FTSFuzzy time series
GA–PSO–ANFISGenetic algorithm–particle swarm optimization–adaptive neuro-fuzzy inference system
HDIHuman development index
KKTKarush–Kuhn–Tucker
LSSVMsLeast squares support vector machines
MADMean absolute deviation
MAEMean absolute error
MLPMultilayer perceptron
PPPerformance parameter
QPQuadratic programming
RBFRadial basis function
RMSERoot mean square error
SVMsSupport vector machines
UNSDGsUnited Nation’s Sustainable Development Goals

References

  1. McCulloch, W.S.; Pitts, W. A logical calculus of the ideas immanent in nervous activity. Bull. Math. Biol. 1990, 52, 99–115. [Google Scholar] [CrossRef]
  2. Jang, J.-S.R. ANFIS: An adaptive-network-based fuzzy inference system. IEEE Trans. Syst. Man Cybern. 1993, 23, 665–685. [Google Scholar] [CrossRef]
  3. Suykens, J.A.K.; Vandewalle, J. Least squares support vector machine classifiers. Neural Process. Lett. 1999, 9, 293–300. [Google Scholar] [CrossRef]
  4. Zadeh, L.A. Fuzzy sets. Inf. Control 1965, 8, 338–353. [Google Scholar] [CrossRef] [Green Version]
  5. Akdi, Y.; Gölveren, E.; Okkaoğlu, Y. Daily electrical energy consumption: Periodicity, harmonic regression method and forecasting. Energy 2020, 191, 116524. [Google Scholar] [CrossRef]
  6. Cevik, H.H.; Cunkas, M. A comparative study of artificial neural network and ANFIS for short term load forecasting. In Proceedings of the 2014 6th International Conference on Electronics, Computers and Artificial Intelligence (ECAI), Bucharest, Romania, 23–25 October 2014; pp. 29–33. [Google Scholar]
  7. Cevik, H.H.; Cunkas, M. Short-term load forecasting using fuzzy logic and ANFIS. Neural Comput. Appl. 2015, 26, 1355–1367. [Google Scholar] [CrossRef]
  8. Peng, J.; Gao, S.; Ding, A. Study of the short-term electric load forecast based on ANFIS. In Proceedings of the 2017 32nd Youth Academic Annual Conference of Chinese Association of Automation (YAC), Hefei, China, 19–21 May 2017; pp. 832–836. [Google Scholar]
  9. Tay, K.G.; Muwafaq, H.; Tiong, W.K.; Choy, Y.Y. Electricity consumption forecasting using adaptive neuro-fuzzy inference system (ANFIS). Univers. J. Electr. Electron. Eng. 2019, 6, 37–48. [Google Scholar] [CrossRef]
  10. Al-Hamad, M.Y.; Qamber, I.S. GCC electrical long-term peak load forecasting modelling using ANFIS and MLR methods. Arab J. Basic Appl. Sci. 2019, 26, 269–282. [Google Scholar] [CrossRef] [Green Version]
  11. Koo, B.; Park, J. Comparative study on short-term electric load forecasting techniques. Int. J. Control Autom. 2014, 7, 93–102. [Google Scholar] [CrossRef]
  12. Panklib, K.; Prakasvudhisarn, C.; Khummongkol, D. Electricity consumption forecasting in Thailand using artificial neural network and multiple linear regression. Energy Sources Part B Econ. Plan. Policy 2015, 10, 427–434. [Google Scholar] [CrossRef]
  13. Ozoh, P.; Abd-Rahman, S.; Labadin, J.; Apperly, M. A comparative analysis of techniques for forecasting electricity consumption. Int. J. Comput. Appl. 2014, 88, 8–12. [Google Scholar] [CrossRef]
  14. Azadeh, A.; Narimani, A.; Nazari, T. Estimating household electricity consumption by environmental consciousness. Product. Qual. Manag. 2015, 15, 1–19. [Google Scholar] [CrossRef]
  15. Rahman, N.H.A.; Lee, M.H.; Latif, M.T. Artificial neural networks and fuzzy time series forecasting: An application to air quality. Qual. Quant. 2015, 49, 2633–2647. [Google Scholar] [CrossRef]
  16. Adebiyi, A.A.; Adewumi, A.O.; Ayo, C.K. Comparison of ARIMA and artificial neural networks models for stock price prediction. J. Appl. Math. 2014, 2014, 614342. [Google Scholar] [CrossRef] [Green Version]
  17. Laboissiere, L.A.; Fernandes, R.A.; Lage, G.G. Maximum and minimum stock price forecasting of Brazilian power distribution companies based on artificial neural networks. Appl. Soft Comput. 2015, 35, 66–74. [Google Scholar] [CrossRef]
  18. Kaytez, F.; Taplamacioglu, M.C.; Cam, E.; Hardalac, F. Forecasting electricity consumption: A comparison of regression analysis, neural networks and least squares support vector machines. Int. J. Electr. Power Energy Syst. 2015, 67, 431–438. [Google Scholar] [CrossRef]
  19. Pham, B.T.; Bui, D.T.; Dholakia, M.B.; Prakash, I.; Pham, H.V. A comparative study of least square support vector machines and multiclass alternating decision trees for spatial prediction of rainfall-induced landslides in a tropical cyclones area. Geotech. Geol. 2016, 34, 1807–1824. [Google Scholar] [CrossRef]
  20. Ahmadi, M.; Ebadi, M.; Hosseini, S.M. Prediction breakthrough time of water coning in the fractured reservoirs by implementing low parameter support vector machine approach. Fuel 2014, 117, 579–589. [Google Scholar] [CrossRef]
  21. Kisi, O.; Parmar, K.S. Application of least square support vector machine and multivariate adaptive regression spline models in long term prediction of river water pollution. J. Hydrol. 2015, 534, 104–112. [Google Scholar] [CrossRef]
  22. Deo, R.C.; Kisi, O.; Singh, V.P. Drought forecasting in eastern Australia using multivariate adaptive regression spline, least square support vector machine and M5 Tree model. Atmos. Res. 2016, 184, 149–175. [Google Scholar] [CrossRef] [Green Version]
  23. Arabloo, M.; Ziaee, H.; Lee, M.; Bahadori, A. Prediction of the properties of brines using least squares support vector machine (LS-SVM) computational strategy. J. Taiwan Inst. Chem. Eng. 2015, 50, 123–130. [Google Scholar] [CrossRef]
  24. Efendi, R.; Ismail, Z.; Deris, M.M. Application of fuzzy time series approach in electric load forecasting. New Math. Nat. Comput. 2015, 11, 229–248. [Google Scholar]
  25. Efendi, R.; Ismail, Z.; Deris, M.M. A new linguistic out-sample approach of fuzzy time series for daily forecasting of Malaysian electricity load demand. Appl. Soft Comput. 2015, 28, 422–430. [Google Scholar] [CrossRef]
  26. Chen, M.Y. A high-order fuzzy time series forecasting model for internet stock trading. Future Gener. Comput. Syst. 2014, 37, 461–467. [Google Scholar] [CrossRef]
  27. Lee, Y.; Wu, C.; Tsai, S. Grey system theory and fuzzy time series forecasting for the growth of green electronic materials. Int. J. Prod. Res. 2014, 52, 2931–2945. [Google Scholar] [CrossRef]
  28. Sun, B.; Guo, H.; Karimi, H.R.; Ge, Y.; Xiong, S. Prediction of stock index futures prices based on fuzzy sets and multivariate fuzzy time series. Neurocomputing 2015, 151, 1528–1536. [Google Scholar] [CrossRef]
  29. Gellert, A.; Fiore, U.; Florea, A.; Chis, R.; Palmieri, F. Forecasting Electricity Consumption and Production in Smart Homes through Statistical Methods. Sustain. Cities Soc. 2022, 76, 103426. [Google Scholar] [CrossRef]
  30. Semero, Y.K.; Zhang, J.; Zheng, D. PV power forecasting using an integrated GA-PSO-ANFIS approach and Gaussian process regression based feature selection strategy. CSEE J. Power Energy Syst. 2018, 4, 210–218. [Google Scholar] [CrossRef]
  31. Göçken, M.; Özçalıcı, M.; Boru, A.; Dosdoğru, A.T. Integrating metaheuristics and artificial neural networks for improved stock price prediction. Expert Syst. Appl. 2015, 44, 320–331. [Google Scholar] [CrossRef]
  32. Shukur, O.B.; Lee, M.H. Daily wind speed forecasting through hybrid KF-ANN model based on ARIMA. Renew. Energy 2015, 76, 637–647. [Google Scholar] [CrossRef]
  33. Chaabane, N. A hybrid ARFIMA and neural network model for electricity price prediction. Int. J. Electr. Power Energy Syst. 2014, 55, 187–194. [Google Scholar] [CrossRef]
  34. Cerjan, M.; Matijas, M.; Delimar, M. Dynamic hybrid model for short-term electricity price forecasting. Energies 2014, 7, 3304–3318. [Google Scholar] [CrossRef]
  35. Ardakani, F.J.; Ardehali, M.M. Long-term electrical energy consumption forecasting for developing and developed economies based on different optimized models and historical data types. Energy 2014, 65, 452–461. [Google Scholar] [CrossRef]
  36. Khandelwal, I.; Adhikari, R.; Verma, G. Time series forecasting using hybrid ARIMA and ANN models based on DWT decomposition. Procedia Comput. Sci. 2015, 48, 173–179. [Google Scholar] [CrossRef] [Green Version]
  37. Babu, C.N.; Reddy, B.E. A moving-average filter based hybrid ARIMA-ANN model for forecasting time series data. Appl. Soft Comput. 2014, 23, 27–38. [Google Scholar] [CrossRef]
  38. Başoğlu Kabran, F.; Ünlü, K.D. A two-step machine learning approach to predict S&P 500 bubbles. J. Appl. Stat. 2021, 48, 2776–2794. [Google Scholar]
  39. Yuan, X.; Tan, Q.; Lei, X.; Yuan, Y.; Wu, X. Wind power prediction using hybrid autoregressive fractionally integrated moving average and least square support vector machine. Energy 2017, 129, 122–137. [Google Scholar] [CrossRef]
  40. Zhu, B.; Chevallier, J. Carbon price forecasting with a hybrid ARIMA and least squares support vector machines methodology. In Pricing and Forecasting Carbon Markets: Models and Empirical Analyses; Springer Nature: Cham, Switzerland, 2017; pp. 87–107. [Google Scholar]
  41. Jung, H.C.; Kim, J.S.; Heo, H. Prediction of building energy consumption using an improved real coded genetic algorithm based least squares support vector machine approach. Energy Build. 2015, 90, 76–84. [Google Scholar] [CrossRef]
  42. Li, C.; Li, S.; Liu, Y. A least squares support vector machine model optimized by moth-flame optimization algorithm for annual power load forecasting. Appl. Intell. 2016, 45, 1166–1178. [Google Scholar] [CrossRef]
  43. Chen, M.Y.; Chen, B.T. A hybrid fuzzy time series model based on granular computing for stock price forecasting. Inf. Sci. 2015, 294, 227–241. [Google Scholar] [CrossRef]
  44. Dincer, N.G.; Akkuş, O. A new fuzzy time series model based on robust clustering for forecasting of air pollution. Ecol. Inform. 2017, 43, 157–164. [Google Scholar] [CrossRef]
  45. Fan, G.F.; Wei, X.; Li, Y.T.; Hong, W.C. Forecasting electricity consumption using a novel hybrid model. Sustain. Cities Soc. 2020, 61, 102320. [Google Scholar] [CrossRef]
  46. Demir, A. Forecasting production and consumption for different types of energy using Artificial Intelligence. ProQuest Diss. Theses Glob. 2017, 2137550171, 1–61. [Google Scholar]
  47. Ayoub, N.; Musharavati, F.; Pokharel, S.; Gabbar, H.A. ANN model for energy demand and supply forecasting in a hybrid energy supply system. In Proceedings of the 2018 IEEE International Conference on Smart Energy Grid Engineering (SEGE), Oshawa, ON, Canada, 12–15 August 2018; pp. 25–30. [Google Scholar]
  48. Zhang, P.G. Time series forecasting using a hybrid ARIMA and neural network model. Neurocomputing 2003, 50, 159–175. [Google Scholar] [CrossRef]
  49. Ying, L.C.; Pan, M.C. Using adaptive network based fuzzy inference system to forecast regional electricity loads. Energy Convers. Manag. 2008, 49, 205–211. [Google Scholar] [CrossRef]
  50. Caydas, U.; Hascalik, A.; Ekici, S. An adaptive neuro-fuzzy inference system (ANFIS) model for wire-EDM. Expert Syst. Appl. 2009, 36, 6135–6139. [Google Scholar] [CrossRef]
  51. Suykens, J.A.K.; De Brabanter, J.; Lukas, L.; Vandewalle, J. Weighted least squares support vector machines: Robustness and sparse approximation. Neurocomputing 2002, 48, 85–105. [Google Scholar] [CrossRef]
  52. Wang, Y.; Yu, S. Annual electricity consumption forecasting with least squares support vector machines. In Proceedings of the Third International Conference on Electric Utility Deregulation and Restructuring and Power Technologies, Nanjing, China, 6–9 April 2008; pp. 714–719. [Google Scholar]
  53. Song, Q.; Chissom, B.S. Fuzzy time series and its models. Fuzzy Sets Syst. 1993, 54, 269–277. [Google Scholar] [CrossRef]
  54. Chen, S. Forecasting enrollments base on fuzzy time series. Fuzzy Sets Syst. 1996, 81, 311–319. [Google Scholar] [CrossRef]
  55. Yu, H.K. Weighted fuzzy time series models for TAIEX forecasting. Phys. A 2005, 349, 609–624. [Google Scholar] [CrossRef]
  56. Song, Q.; Chissom, B.S. Forecasting enrollments with fuzzy time series—Part I. Fuzzy Sets Syst. 1993, 54, 1–9. [Google Scholar] [CrossRef]
  57. Singh, S.R. A simple method of forecasting based on fuzzy time series. Appl. Math. Comput. 2007, 186, 330–339. [Google Scholar] [CrossRef]
  58. U.S. Energy Information Administration. Country Analysis Brief: Egypt; U.S. Energy Information Administration: Washington, DC, USA, 2018; Volume 10.
  59. International Energy Agency (IEA). Statistics and Energy Balances by Countries, Non-Member Countries, Algeria; International Energy Agency, OECD/IEA: Paris, France, 2017. [Google Scholar]
  60. Gaydarova, E. Energy saving measures in residential buildings in Bulgaria. In Proceedings of the Financing Energy Efficiency Seminar, Brussels, Belgium, 6 November 2012; Volume 5. [Google Scholar]
  61. Energy Poverty Advisory Hub. Available online: https://energy-poverty.ec.europa.eu/index_en (accessed on 5 November 2021).
  62. Owiro, D.; Poquillon, G.; Njonjo, K.S.; Oduor, C.; Institute of Economic Affairs. Situational Analysis of Energy Industry, Policy and Strategy for Kenya; IEA Press: Nairobi, Kenya, 2015. [Google Scholar]
Figure 1. Example of a network structure of an ANN.
Figure 1. Example of a network structure of an ANN.
Mathematics 10 01329 g001
Figure 2. Example of the basic ANFIS model [50].
Figure 2. Example of the basic ANFIS model [50].
Mathematics 10 01329 g002
Figure 3. Basic forecasting steps using the fuzzy time series.
Figure 3. Basic forecasting steps using the fuzzy time series.
Mathematics 10 01329 g003
Figure 4. Overview of the forecasting process.
Figure 4. Overview of the forecasting process.
Mathematics 10 01329 g004
Figure 5. Electricity consumption in Norway from 2007 to 2016.
Figure 5. Electricity consumption in Norway from 2007 to 2016.
Mathematics 10 01329 g005
Figure 6. Electricity consumption in Switzerland from 2007 to 2016.
Figure 6. Electricity consumption in Switzerland from 2007 to 2016.
Mathematics 10 01329 g006
Figure 7. Electricity consumption in Malaysia from 2007 to 2016.
Figure 7. Electricity consumption in Malaysia from 2007 to 2016.
Mathematics 10 01329 g007
Figure 8. Electricity consumption in Egypt from 2007 to 2016.
Figure 8. Electricity consumption in Egypt from 2007 to 2016.
Mathematics 10 01329 g008
Figure 9. Electricity consumption in Algeria from 2007 to 2016.
Figure 9. Electricity consumption in Algeria from 2007 to 2016.
Mathematics 10 01329 g009
Figure 10. Electricity consumption in Bulgaria from 2007 to 2016.
Figure 10. Electricity consumption in Bulgaria from 2007 to 2016.
Mathematics 10 01329 g010
Figure 11. Electricity consumption in Kenya from 2007 to 2016.
Figure 11. Electricity consumption in Kenya from 2007 to 2016.
Mathematics 10 01329 g011
Table 1. Forecasting results for the ANN model.
Table 1. Forecasting results for the ANN model.
CountryRMSEAFEPP
Norway1041.446.692%0.5324
Switzerland243.3664.349%0.5862
Malaysia402.0313.046%0.0204
Egypt930.4675.510%0.09297
Algeria644.7817.815%0.1147
Bulgaria310.0477.986%0.3264
Kenya24.91452.931%0.2365
Table 2. Forecasting results for the ANFIS model.
Table 2. Forecasting results for the ANFIS model.
CountryRMSEAFEPP
Norway1096.197.566%0.5078
Switzerland148.112.042%0.7481
Malaysia439.0773.327%−0.0699
Egypt1503.5710.125%−0.4657
Algeria629.7798.436%0.1353
Bulgaria197.7864.642%0.57031
Kenya59.6347.103%−0.8274
Table 3. Forecasting results for the LSSVM model.
Table 3. Forecasting results for the LSSVM model.
CountryRMSEAFEPP
Norway2029.6618.199%0.08867
Switzerland659.5689.929%−0.12161
Malaysia1878.8814.863%−3.5783
Egypt1044.996.517%−0.01867
Algeria1402.3318.863%−0.9254
Bulgaria437.07714.376%0.0504
Kenya45.76635.654%−0.4024
Table 4. Forecasting results for the FTS model.
Table 4. Forecasting results for the FTS model.
CountryRMSEAFEPP
Norway311.51722.279%0.8601
Switzerland80.42741.419%0.8632
Malaysia197.34711.357%0.5191
Egypt678.37924.245%0.3387
Algeria179.94322.649%0.7529
Bulgaria33.76861.008%0.9266
Kenya14.00481.725%0.5708
Table 5. Short-term and long-term forecasting results for Norway.
Table 5. Short-term and long-term forecasting results for Norway.
Error MetricsTermForecasting Period (Months)Results
ANNANFISLSSVMFTS
RMSEShort12096.4131696.8521922.852472.412
21460.0551424.7311430.165476.622
31394.5461169.4481485.376434.117
Long61078.152863.8782934.775360.517
9960.801846.0112159.390324.677
121041.4381096.1892029.658311.517
AFEShort113.902%11.252%12.751%3.133%
29.300%9.769%6.908%3.400%
37.616%7.059%7.351%3.142%
Long66.699%5.321%19.900%2.782%
96.344%5.869%16.278%2.649%
126.692%7.566%18.199%2.479%
Table 6. Short-term and long-term forecasting results for Switzerland.
Table 6. Short-term and long-term forecasting results for Switzerland.
Error MetricsTermForecasting Period (Months)Results
ANNANFISLSSVMFTS
RMSEShort1262.20812.30068.000108.271
2229.62463.391182.180109.344
3247.57066.025152.60593.044
Long6188.855133.304726.36187.479
9229.037111.302392.95178.193
12243.366148.110558.56880.427
AFEShort14.345%0.204%1.127%1.794%
23.885%0.884%3.062%1.869%
34.239%1.001%2.055%1.509%
Long63.258%2.105%12.139%1.526%
94.042%1.621%6.323%1.410%
124.349%2.042%9.929%1.419%
Table 7. Short-term and long-term forecasting results for Malaysia.
Table 7. Short-term and long-term forecasting results for Malaysia.
Error MetricsTermForecasting Period (Months)Results
ANNANFISLSSVMFTS
RMSEShort1169.870208.8751006.775317.575
2216.093308.832364.774217.658
3232.151279.019777.816212.657
Long6657.047419.9122056.195266.102
9449.889426.9631355.522191.616
12402.031439.0771878.882197.347
AFEShort11.552%1.909%9.200%2.902%
21.896%2.677%3.304%1.967%
31.795%2.426%6.914%1.938%
Long65.077%3.120%16.079%2.305%
93.431%3.066%9.951%1.290%
123.046%3.327%14.863%1.357%
Table 8. Short-term and long-term forecasting results for Egypt.
Table 8. Short-term and long-term forecasting results for Egypt.
Error MetricsTermForecasting Period (Months)Results
ANNANFISLSSVMFTS
RMSEShort1202.5101944.000927.000450.220
2491.6641847.654595.619619.783
3460.1091508.609292.002537.221
Long6957.2781281.3021013.112772.526
91028.3501476.9161054.410698.380
12930.4671503.5681044.990678.379
AFEShort11.683%16.153%7.703%3.741%
24.122%15.615%4.614%5.118%
33.791%10.429%2.412%4.257%
Long66.283%8.839%6.945%4.910%
96.429%9.747%7.348%4.292%
125.510%10.125%6.517%4.245%
Table 9. Short-term and long-term forecasting results for Algeria.
Table 9. Short-term and long-term forecasting results for Algeria.
Error MetricsTermForecasting Period (Months)Results
ANNANFISLSSVMFTS
RMSEShort1158.350166.900369.30018.768
2261.263300.353269.20821.796
3160.681255.136227.074128.216
Long6487.918422.336376.919181.178
9790.539698.369771.629171.200
12644.781629.7791402.331179.943
AFEShort12.992%3.154%6.978%0.355%
23.563%5.552%5.010%0.426%
32.644%4.498%3.469%1.720%
Long67.448%6.913%6.296%2.709%
99.704%9.250%12.925%2.519%
127.815%8.436%18.863%2.649%
Table 10. Short-term and long-term forecasting results for Bulgaria.
Table 10. Short-term and long-term forecasting results for Bulgaria.
Error MetricsTermForecasting Period (Months)Results
ANNANFISLSSVMFTS
RMSEShort1413.928270.500194.70013.219
2321.005437.719384.13813.079
3351.930359.284357.66319.092
Long6329.956256.268680.29728.449
9314.810221.491387.99024.638
12310.047197.786437.07733.769
AFEShort111.091%7.248%5.217%0.354%
27.232%12.985%11.677%0.395%
39.756%9.364%11.057%0.567%
Long69.478%5.618%19.979%0.988%
99.013%5.172%9.369%0.808%
127.986%4.642%14.376%1.008%
Table 11. Short-term and long-term forecasting results for Kenya.
Table 11. Short-term and long-term forecasting results for Kenya.
Error MetricsTermForecasting Period (Months)Results
ANNANFISLSSVMFTS
RMSEShort120.64012.21275.0440.611
227.15138.79628.88017.670
317.95736.24530.49417.482
Long626.27243.140102.90216.571
928.41157.98856.48715.483
1224.91459.63445.76614.005
AFEShort13.108%1.839%11.299%0.092%
23.486%5.164%3.789%2.028%
32.422%4.967%3.755%2.207%
Long63.428%5.658%15.229%2.065%
93.727%6.970%7.641%1.983%
122.932%7.103%5.654%1.725%
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Lee, M.H.L.; Ser, Y.C.; Selvachandran, G.; Thong, P.H.; Cuong, L.; Son, L.H.; Tuan, N.T.; Gerogiannis, V.C. A Comparative Study of Forecasting Electricity Consumption Using Machine Learning Models. Mathematics 2022, 10, 1329. https://0-doi-org.brum.beds.ac.uk/10.3390/math10081329

AMA Style

Lee MHL, Ser YC, Selvachandran G, Thong PH, Cuong L, Son LH, Tuan NT, Gerogiannis VC. A Comparative Study of Forecasting Electricity Consumption Using Machine Learning Models. Mathematics. 2022; 10(8):1329. https://0-doi-org.brum.beds.ac.uk/10.3390/math10081329

Chicago/Turabian Style

Lee, Madeline Hui Li, Yee Chee Ser, Ganeshsree Selvachandran, Pham Huy Thong, Le Cuong, Le Hoang Son, Nguyen Trung Tuan, and Vassilis C. Gerogiannis. 2022. "A Comparative Study of Forecasting Electricity Consumption Using Machine Learning Models" Mathematics 10, no. 8: 1329. https://0-doi-org.brum.beds.ac.uk/10.3390/math10081329

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