Electronic Journal of Polish Agricultural Universities (EJPAU) founded by all Polish Agriculture Universities presents original papers and review articles relevant to all aspects of agricultural sciences. It is target for persons working both in science and industry,regulatory agencies or teaching in agricultural sector. Covered by IFIS Publishing (Food Science and Technology Abstracts), ELSEVIER Science - Food Science and Technology Program, CAS USA (Chemical Abstracts), CABI Publishing UK and ALPSP (Association of Learned and Professional Society Publisher - full membership). Presented in the Master List of Thomson ISI.
2005
Volume 8
Issue 4
Topic:
Agricultural Engineering
ELECTRONIC
JOURNAL OF
POLISH
AGRICULTURAL
UNIVERSITIES
Trojanowska M. , Ma³opolski J. 2005. FORECASTING OF ELECTRICITY DEMAND IN RURAL AREAS. PART II. COMPARISON OF APPLICABILITY OF ARIMA AND TAKAGI-SUGENO MODELS, EJPAU 8(4), #26.
Available Online: http://www.ejpau.media.pl/volume8/issue4/art-26.html

FORECASTING OF ELECTRICITY DEMAND IN RURAL AREAS. PART II. COMPARISON OF APPLICABILITY OF ARIMA AND TAKAGI-SUGENO MODELS

Ma³gorzata Trojanowska1, Jerzy Ma³opolski2
1 Department of Power Engineering and Agricultural Processes Automation, Agricultural University of Cracow, Poland
2 Department of Engineering and IT in Agriculture, Agricultural University of Cracow, Poland

 

ABSTRACT

The article compares applicability of stochastic models of ARIMA type and Takagi-Sugeno fuzzy models for forecasting the monthly demand for electric energy among recipients in rural areas. It was concluded that although accuracy of forecasts set on the basis of ARIMA model is greater than in the case of Takagi-Sugeno models, fuzzy models are better in reflecting the demand for electric energy, and achievement of good quality forecasts requires much less data from the history of the process forecasted than in the case of ARIMA models.

Key words: electric energy, forecast, ARIMA models, Takagi-Sugeno models.

INTRODUCTION

Process of forecasting is closely related to uncertainty. It is most frequently described using the theory of probability. Then randomness is the only form of describing all uncertainty. The issue is treated differently by the theory of fuzzy sets, where fuzziness is a type of deterministic uncertainty. These two different forms of describing uncertainty generate qualitatively different forecasting models, and for that reason it seems worth comparing their applicability to forecasting demands for electric energy.

Forecasts of demand for electric energy are prepared by energy companies dealing with energy transfer and distribution. In particular, they prepare forecasts of monthly energy demand, and on their basis place orders on the wholesale market for energy procurement.

Therefore, the aim of this work was to compare applicability of selected stochastic and fuzzy models for forecasting of monthly demand for electric energy, whereas the analysis was limited to checking applicability of ARIMA stochastic model and Takagi-Sugeno fuzzy model, as these models seem to be particularly applicable for prediction of this type of processes [5, 6, 8, 12, 13, 14]. The aim of the paper was achieved on the basis of data concerning monthly energy consumption by recipients in rural areas, as a characteristic group of energy users.

MATERIAL AND METHODS

Calculations necessary for preparation of forecasting models and comparison of their applicability were performed on the basis of reports on monthly sales of electric energy in the years 1993-2002 to recipients in rural areas of the Ma³opolska Province, presented in the paper [13]. The data refers to 291,000 recipients. This number includes about 125,000 farms, of which 40% does not exceed the area of 2 ha. Current average monthly consumption of electric energy by a statistical recipient from a rural area in the Ma³opolska Province remains at the level of 200 kWh, varying from ca. 180 kWh in September to 240 kWh in December. In the case of farms, the variables adopt values of respectively about 190, 185 and 200 kWh/month.

Out of all data concerning monthly electricity consumption, the last 12 were used for verifying accuracy of forecasts, while the data on earlier electric energy consumption were used for building the forecasting models and to check the reliability of forecasts. Just in the paper [13] the accuracy and the reliability of forecasts were measured ex post using the mean absolute percentage errors (MAPE_1 and MAPE_2).

ARIMA models are mixed models for autoregression and moving average, and according to the notation introduced by their authors Box and Jenkins [1], they are defined as ARIMA(p,d,q) models, or ARIMA(p,d,q)(P,D,Q)S when stochastic processes feature periodic variances, where: p, P – autoregressive parameters, d, D – differentiation orders, q, Q – moving average parameters, S – periodicity. In the analysis, for construction of the model, software STATISTICA PL for Windows [10] was used.

ARIMA methodology became very popular in many areas, including forecasting energy demand [5, 6]. Unlike ARIMA models, fuzzy models are not used in practice for prediction of demand for electric energy, although results of studies are known concerning successful application of the theory of fuzzy sets to make forecasts in the electric energy sector [4].

For forecasts purposes, the best suited models are the ones with Takagi-Sugeno logic [8, 14]. These are predictive models allowing for setting the envisaged value of the output provided that the values of present and past inputs and outputs are known.

The fuzzy logic method proposed by Sugeno et al. [11] is based on the base of rules of a special format, which is marked with function:

IF (x1 = A11) AND ... AND (xr = A1r) THEN (y = f1 (x1, ..., xr))          (1)
ALSO
...
ALSO
IF (x1 = Am1) AND ... AND (xr = Amr) THEN (y = fn (x1, ..., xr))

where:
x1, ..., xr – data input;
A11, ..., Amr – fuzzy subsets of respective sets X1, ..., Xr;
y – data output;
f1 (x1, ..., xr), ..., fn (x1, ..., xr) – linear functions.

In order to define the optimum model, its parameters were set using the conjugate gradient method in such a way that the total square error of the model be kept to the minimum [3, 7].

RESULTS

ARIMA models. Because ARIMA models can only be used for modelling stationary time series, and the analyzed electric energy consumption is a non-stationary process, characterized with a development tendency and multiplicative seasonability, in order to achieve stationary character of the process, it was necessary to apply seasonal and non-seasonal differentiation of the original series (d = 1, D = 1). The number and type of model parameters were identified on the basis of a diagram of empirical series and differentiated series, correlograms of process autocorrelation and partial autocorrelation. Model parameters were estimated using the highest credibility method, and the final adoption of the model was decided upon by importance of parameters, randomness of remainders and normality of model remainders distribution.

As a result of calculations and analyses performed, it was concluded that for description of monthly demand for electric energy by recipients in rural areas the model of moving average of the first order is well suited (q = 1), with periodical component of first order (Q = 1), with periodicity S = 12, i.e. ARIMA (0, 1, 1) (0, 1, 1)12, which has general form:

(1 – B)(1 – BS) zt = (1 – θB)(1 – ΘBS) at          (2)

where:
B – shift operator backwards;
1 – B – differential operator backwards;
zt – stochastic component;
1 – θB, 1 – ΘBS – moving average reversible operators;
θ, Θ – parameters of the moving average model;
at – random variable.

Results of estimation of model parameters are presented in table 1. Model preparation involved the use of 108 data (data for the period of 9 years). This is the smallest quantity of observations necessary for estimation of a model of this type.

Table 1. Results of estimations of ARIMA model parameters of monthly demand for electric energy in the years 1993-2001 by rural recipients

ARIMA (0, 1, 1)(0, 1, 1)12

Parameter

Estimate value

Standard deviation

t-Student

Significance level

q

0.577

0.125

4.607

0.0000

Θ

0.585

0.108

5.398

0.0000

Takagi-Sugeno models. Due to the character of variability of monthly demand for electric energy, the analysis involved construction of fuzzy models describing the function xt = f(xt-1, xt-12), where xt stands for electric energy consumption in month t. In the fuzzy rules (1) the following assumption were made: r = 2, m = 2, n = 4 and y = xt, x1 = xt-1, x2 = xt-12. Therefore the analysis concerned models of systems with two fuzzy inputs X1 and X2, and one fuzzy output Y [7]. Geometrically, rules of the Takagi-Sugeno model correspond to the approximation of representation X1 × X2 ® Y using the sectional linear function. Each of the sets X1 and X2, which are closed intervals, has been divided into two fuzzy subsets with trapezoid membership functions, meeting the condition of unit division. Previous studies performed by the authors have proved that adoption of a greater number of subsets does not improve the quality of forecasts, yet significantly hinders optimization.

Six models of this type were constructed (TS9, TS8, ..., TS4), using data on monthly consumption of electric energy from 9, 8, 7, 6, 5 and 4 years respectively. In these models, the universe of discourse of inputs were different, starting with X1 = [41.61,82.22] and X2 = [41.61, 82.22] for model TS9, and ending with X1 = [53.17, 82.22] and X2 = [49.06, 82.22] for model TS4. Membership functions and general form of the base of rules for the models analyzed are presented in figure 1.

Fig. 1. Membership functions and the base of rules for the Takagi-Sugeno models

On the basis of the ARIMA and Takagi-Sugeno models developed, the monthly electricity consumption was forecast. After every forecast is calculated, its reliability and accuracy must be checked [2]. In this study, the reliability of forecasts was assessed by observing the curve of ex post forecasts of electricity demand in the months for which prediction models were built, and on the basis of their absolute percentage errors MAPE_2 [13].

Fig. 2. Monthly demand and ex post forecasts of monthly demand for electric energy in the years 1999-2001 by rural recipients

Fig. 3. Empirical distribution functions of absolute percentage errors of ex post forecasts of monthly demand for electric energy by rural recipients

As the prediction error generally grows along with the increasing length of the forecast period, data from 1999-2001 (36 values) was used to compare the reliability of forecasts. The differences between the real curve of the electricity consumption and the forecast courses are shown in figure 2, while the empirical distribution functions of relative error modules of particular forecasts are shown in figure 3. These figures indicate that forecasts made using fuzzy models are much more reliable than those calculated using the ARIMA model. This is confirmed by the mean annual values of absolute percentage error of ex post forecasts MAPE_2 which are shown in table 2. For comparison, this table also presents the absolute error values for ex post forecasts calculated as the mean values for particular months of the year. The season of the year was found to have an observable impact on the accuracy of forecasts. Forecast errors were usually greater in the winter, which results from significant differences between the winter electricity consumption of different years.

Table 2. Mean absolute percentage errors of ex post forecasts for monthly demand for electric energy in the years 1999-2001 by rural recipients set on the basis of ARIMA and Takagi-Sugeno models

Period

MAPE_2, %

ARIMA

TS9

TS8

TS7

TS6

TS5

TS4

January

8.67

5.48

5.55

5.80

6.58

6.68

4.42

February

6.26

4.07

3.99

4.71

4.45

4.49

3.69

March

5.99

4.10

4.00

4.44

3.88

3.98

4.49

April

8.86

1.52

1.51

1.58

1.66

1.65

2.27

May

7.24

3.14

3.09

2.70

4.13

4.08

1.39

June

8.14

3.59

2.94

2.37

1.41

1.09

0.33

July

6.73

3.96

3.90

4.11

4.33

4.37

3.32

August

5.63

4.71

4.16

3.29

2.63

2.26

2.49

September

9.44

4.29

3.81

3.92

5.71

5.40

2.38

October

7.89

4.60

4.07

3.52

4.13

4.01

0.49

November

8.34

4.31

4.32

4.24

4.22

4.26

5.43

December

8.52

5.47

5.50

6.42

1.88

1.49

1.43

Year

7.64

4.10

3.90

3.93

3.75

3.65

2.68

Fig. 4. Monthly demand and ex post forecasts of monthly demand for electric energy in the year 2002 by rural recipients

Table 3. Mean absolute percentage errors of ex post forecasts for monthly demand for electric energy in the year 2002 by rural recipients set on the basis of ARIMA and Takagi-Sugeno models

Model

ARIMA

TS9

TS8

TS7

TS6

TS5

TS4

MAPE_1, %

2.29

3.89

3.98

3.76

3.83

3.78

4.98

Table 4. Results of estimations of Takagi-Sugeno TS5 model parameters of monthly demand for electric energy in the years 1997-2001 by rural recipients

x10

x11

x12

x13

x20

x21

x22

x23

49.06

59.44

59.59

82.22

43.05

53.43

67.49

82.22

a10

a11

a12

a20

a21

a22

a30

a31

a32

a40

a41

a42

-46.91

1.07

0.93

-164.24

-1.03

4.52

56.02

0.35

-0.36

36.62

-0.01

0.50

On the basis of models constructed, forecasts of electric energy consumption were made for particular months of 2002 (fig. 4), and values of mean absolute percentage errors MAPE_1 [13] were calculated for ex post forecasts on the basis of particular fuzzy models, as presented in table 3. As results from table 3, use of data from the past 5 years for construction of such models yields sufficiently accurate forecasts. Results of estimations of TS5 model are presented in table 4.

CONCLUSIONS

Forecasts of monthly demand for electric energy by recipients in rural areas, made on the basis of ARIMA model, are characterized with greater accuracy than the ones made on the basis of Takagi-Sugeno models. Mean absolute percentage error MAPE_1 of ex post forecasts set on the basis of ARIMA model amounts to ca. 2.3% and is at least by 1.5% smaller than the one set on the basis of fuzzy models. However, Takagi-Sugeno models better reflect the analyzed series of monthly consumption of electric energy, which is confirmed by smaller mean values of errors MAPE_2, which errors are recommended for assessment of forecast reliability [9]. For example, for Takagi-Sugeno TS5 model the error amounts to 3.7%, whereas for ARIMA model it is 7.6%. When one also considers the need to have the data from at least 9 years for the purposes of construction of an ARIMA model, whereas for construction of a fuzzy model yielding good quality forecasts data from only 5 years are needed, it can be concluded that applicability of Takagi-Sugeno models for forecasting monthly consumption of electric energy by recipients in rural areas seems competitive to ARIMA models and worth recommending to apply for the purposes of forecasting.

REFERENCES

  1. Box G.E.P, Jenkins G.M., 1976. Time series analysis: Forecasting and control. San Francisco, Holden-Day.

  2. Dittman P., 2003. Prognozowanie w przedsiêbiorstwie [Enterprise Forecasting]. Oficyna Ekonomiczna Kraków [in Polish].

  3. Findeisen W., Szymanowski J., Wierzbicki A., 1977. Teoria i metody obliczeniowe optymalizacji [Optimization theory and calculation methods]. WNT Warszawa [in Polish].

  4. Ho³ubiec J., 2002. Wybrane problemy prognozowania w elektroenergetyce. Materia³y VI Konferencji Naukowej: Prognozowanie w elektroenergetyce PE’2002 [Selected problems of forecasting in power engineering. Proceedings of the 6th Scientific Conference: Forecasting in Power Engineering PE’2002] Czêstochowa, 5-8 [in Polish].

  5. £yp J., 2000. Przegl¹d technik prognostycznych u¿ywanych w prognozowaniu obci¹¿eñ systemów elektroenergetycznych. Materia³y V Konferencji Naukowej: Prognozowanie w elektroenergetyce PE’2000 [Review of forecast techniques used to predict electric power systems loads. Proceedings of the 5th Scientific Conference: Forecasting in power engineering PE’2000] Czêstochowa, 31-44 [in Polish].

  6. Malko J., 1995. Wybrane zagadnienia prognozowania w elektroenergetyce. Prognozowanie zapotrzebowania energii i mocy elektrycznej [Selected problems of forecasting in power engineering. Electric capacity and power forecasting]. Oficyna Wydawnicza Politechniki Wroc³awskiej Wroc³aw [in Polish].

  7. Osowski S., 1996. Sieci neuronowe w ujêciu algorytmicznym [Neural networks in an algorithmic approach]. WNT Warszawa [in Polish].

  8. Prognozowanie gospodarcze. Metody i zastosowania [Business forecasting. Methods and application]. Red M. Cieœlak. 1999. Wydawnictwo Naukowe PWN, Warszawa [in Polish].

  9. STATISTICA PL for Windows. 1997. StatSoft Polska Sp. z o.o. Kraków [in Polish].

  10. Takagi T. Sugeno M., 1985. Fuzzy identification of systems and its applications to modelling and control, IEEE Transactions on Systems, Man, and Cybernetics, vol. 15, No. 1, pp. 116-132.

  11. Trojanowska M., 2004. ARIMA models in the process of forecasting sales of electric energy to agricultural farms. Annual Review of Agricultural Engineering 3(1), 59-65.

  12. Trojanowska M., Ma³opolski J., 2005. Application of fuzzy models for monthly demand electricity in rural areas. Electronic Journal of Polish Agricultural Universities, Agricultural Engineering, Volume 8, Issue 4. http://www.ejpau.media.pl/volume8/issue4/art-16.html

  13. Yager R.R., Filev D.P., 1995. Podstawy modelowania i sterowania rozmytego [Basic fuzzy modelling and control]. WNT Warszawa [in Polish].


Ma³gorzata Trojanowska
Department of Power Engineering and Agricultural Processes Automation, Agricultural University of Cracow, Poland
Balicka Str. 116B
30-149 Kraków, Poland
email: malgorzata.trojanowska@ur.krakow.pl

Jerzy Ma³opolski
Department of Engineering and IT in Agriculture,
Agricultural University of Cracow, Poland
104 Balicka Street, 30-149 Cracow, Poland
phone: (+48 12) 66 24 688
email: malopolski@ar.krakow.pl

Responses to this article, comments are invited and should be submitted within three months of the publication of the article. If accepted for publication, they will be published in the chapter headed 'Discussions' and hyperlinked to the article.