Você está na página 1de 5

2004 IEEE International Conference on Elecmc Utility Deregulation, Restructuringand Power Technologies (DRF'T2004) April 2004 Hong Kong

An Adaptive BP-Network Approach to Short


Term Load Forecasting
Liang Haifeng, Li Gengyin, Member, IEEE, Zhou Ming, Student Member, IEEE

Abstract-This paper proposes an adaptive BP-network are trying to study the modem techniques based on
approach to Short Term Load Forecasting (STLF) in a Artificial Intelligence (AI). Of all AI based approaches,
deregulated environment, which is to determine the BP- Artificial Neural Network (ANN) receives the most
network structure using Genetic Algorithm (GA). The aim is attention. ANN is regarded as an effective approach and is
to optimize the network structure and improve the accuracy
now commonly used for electricity load forecasting [6]-
of STLF. The realization process consists of three steps. I n
the first step, the number of hidden nodes of BP-network is [7]. Among all kinds of ANN, the network using
calculated by use of GA. In the second step, by use of GA a Back-Propagation (BP) algorithm, i.e., BP-network, is
fittest initial weight value is selected from the solution group widely applied.
of initial weight values to avoid the blindness in the selection BP-network is a dynamic system that consists of many
of initial weight value. In the third step, combining the
nonlinear elements connected each other. Its behavior is
structure of the obtained BP-network and the fittest initial
weight value, the STLF of power system can he performed up to two factors. One is topology, including the number
by use of improved BP algorithm. Simulation results show of nodes and the mode of connection. The other is the
that the percentage errors of mostly of 24h forecasting load connected weight value between nodes. The Kolmogorov
are less than 3%, and prove that the approach can meet the theory indicates if three layers feedforward neural
need of forecast accuracy and enhance the performance of networks have reasonable structures and right weight
the network. values they can satisfactorily map any continuous
functions, but it doesn't explain how to c o n f m the
Index Terms-Adaptive BP-network, electricity markets,
genetic algorithms, short term load forecasting reasonable structure. For a three layers feedforward
network, the nodes of input and output are decided by
I. INTRODUCTION objectives and the mode of connection is also fixed, so the
structure only depends on the number of nodes in the
J) eregulation of the power industry introduces
. . .
competition into the electricity market, thereby the
hidden layer. Traditional BP-algorithm is a studying
parameters algorithm using fixed structure, i.e., its study
accuracy of the electricity load forecasting is crucial in
only aims at connected weight values. For lacking guide
providing better cost effective risk management plans for
theories, the hidden nodes can only be chosen through the
market participants. STLF, especially 24h ahead
method of experience or experiment. The study method of
forecasting, is an important component in the operation of
fixed structure bas destroyed the precondition of the
power industry. The forecasting results are used for many
Kolmogorov theory before networks are trained, thereby
operational decisions such as economic scheduling of
reducing the study ability of feedforward networks. It may
generating capacity, scheduling of fuel purchase, security
be feasible for a certain question, but as a general training
assessment, and planning for energy transactions. Hence,
method, especially for time variable system, it is hard to
improving the accuracy of STLF can result in significant
get good study effect. In addition, because the power
benefits for power market.
Generally speaking, there are two different categories system is non-linear, the initial weight values of BP-
networks have important effects on achieving minimum
of forecasting approaches - traditional approaches and
and convergence. Optimizing the initial weight values is a
modem techniques. The traditional forecasting
very important means to improve the convergent speed
approaches include time series approach and regression
and performance of networks [I].
analysis approach by setting up statistical models. These
Genetic Algorithm (GA) is a general optimized
approaches are mostly linear methods and have limited
algorithm based on natural choice and natural inheritance.
ability to capture non-linearity in the load time series
It adopts some operators abstracted from natural choice to
pattern. They require expert knowledge and are much
optimize parameters and has natural parallel calculating
complex to operate. In the recent years, many researchers
character. The operation aims at the collection consisted
of a group of feasible solutions, so it can parallel search
T h i s work was supported in pan by Foundation for University Key the space of parameters and makes the search go along the
Teacher by the Ministly of Education (Grant No. GG-470-10079-1001). orientation of general optimum, thereby avoiding local
Liang Haifeng, Li Gcngyin and zhou Ming are with the School of
Elecmfal Engineering, Nonh China Electric Power University, Baoding,
minimum [2].
Hebei 071003, P.R.China (e-mail: hfliang@ncepu.cdu.cn, The kemel idea of this paper is to make use of the
Iigy@ncepu,edu.cn, zhauming@ncepu.edu.cn)

0-7803-8237-4/04/$17.00Q2004IEEE
505
2004 IEEE lntemational Conference on Electric Utility Deregulation,Restructuringand Power Technologies(DRPT2004) April 2004 Hang Kong

general convergent character of GA to establish an crossed or else not. The process of the crossover is
adaptive BP-network approach avoiding the defects of illustrated in Fig.1. The crossed points of two individuals
traditional BP-network. The first step of the realization that have been appointed to cross are their positions of
process is to find a reasonable network structure through hidden nodes and are randomly arranged, seeing hland h2
studying the BP-network individuals with different hidden in Fig.1. The variable structure crossover is finished
nodes by use of GA. The second step is to obtain the through the crossing-over of the weight values of this
optimal initial weight values. Finally, combining the point and that followed.
structure of the obtained network and the optimal initial After crossover, the process of the mutation begins.
weight values, STLF of power system can be performed The probability of the mutation, P,, depends on the
by use of improved BP algorithm. The results will testify practice too. Here P, is equal to 0.03. Corresponding to
the availability of the approach. each of The 58 individuals in the population, a random
data in (0, 1) is generated. If the random data is less than
11. FIXINGON THENUMBER
OF HIDDENNODES P,, the corresponding individuals will be mutated or else
The networks all express three layers BP-nenvorks in not. The operation of the mutation is to randomly arrange
the following text. a position of hidden nodes of this individual and then
The adaptive BP-network approach first fixes on the randomly assign the weight values relating to this position.
number of hidden nodes by use of GA. Here, every When the mutation is finished, the fimess of every
individual in the GA is an independent BP-network. The individual is calculated again. According to the fitness,
difference of individuals lies in different number of the individuals are made an order from big to small. Then
hidden nodes. According to the matter of fact researching the result is judged whether the end conditions reach. If
STLF, the number of input nodes in networks is 59 and the end conditions reach, the individual that has the
that of output nodes is 24, so the number of bidden nodes biggest fitness is gained. Its structure is considered the
is selected from 3 to 60, together 58 individuals. The optimal structure of BP-networks. If the end conditions
fitness function is chosen as follows: don't reach, the operation of selection, crossover and
mutation will be done again until the end conditions reach.
q.= E , , - E j ( O < i < 5 7 ) (1)
In the expression, E; expresses the error of the ifh 111. CHOOSING THE 1NlTlALWEIGHT VALUES
individual after studying the samples; E,, is the
maximum of all errors. Fi is the fitness value. This fitness After the optimal structure of BP-network is gotten, a
function can avoid the shortcoming in [4] that it may group of excellent initial weight values will be chosen
result in F; a very big value when E; is little. towards this network.
The 5 8 individuals are randomly assigned the initial The flow chart of choosing the initial weight values is
weight values in [-1,1]. Then, the individuals' fitness is illustrated with Fig.2.
calculated. According to the fitness, the individuals must The first step is to generate the collection of initial
be made an order from big to small and then the selection weight values, namely randomly assign the N groups
operator is adopted. The selection uses the method of initial weight values in [-1, 11 to the gained network,
roulette wheel. The probability of the selection is where N is the number of elements or individuals, such as
calculated as, equal to 100. Then the fitness of each individual, F,, is
calculated and made an order from big to small. The
P,' = &/xc. (0 Si 2 5 7 ) (2) fitness function is same to (I), except the scope of
After selection, the new generational population comes subscript i is from 0 to 99. After that, whether the end
into being. The crossover operator is used. The conditions reach is judged. If they reach, the optimal
probability of the crossover, P,, depends on the practice. solution is exported. If not, the operations of selection,
Here P, is equal to 0.90. The 58 individuals of the new crossover and mutation is adopted in sequence again. The
population are randomly arranged into twosome. To each end conditions may be the fimess or the iterative times
group, a random data in (0, 1) is generated. If the data is more than a setting value.
less than P, , the two individuals in this group will be

q*
Network 1 ht=2 Network2 h,=l Network I Network 2

".. .___..'

+ Fig. I . BP-network variable s m c h l m crossover

506
2004 IEEE International Conference on Electric Utility Deregulation, Restructuring and Power Technologies (DRPT2004) April 2004 Hong Kong

AW'- AW = ( p - 1 ) A W (5)
Where, p is defined the leap factor, p = ABEB(lnA).

I I Calculating the fitness, Fj I It is obvious that when p l , the studying speed is


quickened.
I L
-1 End conditionsjudgement V. SIMULATION
OF STLF
To test the performance of the adaptive BP-network
approach, a simulation of STLF is done by use of the
historical electricity load data and temperature data of
Hubei electric power system, China.
In the simulation, four different ways are used to
Output ofoptimal forecast the electricity loads of the working day (from
Monday to Friday). In the 1" way the number of hidden
nodes and initial weight values of BP-network are both
Fig. 2. ' l h c flow chart ofchoosing the initial weight values determined by use of the adaptive BP-network approach.
In the 2"d way only the number of hidden nodes is
The operation of the selection is same to the relative determined by use of the adaptive BP-network approach;
operation in the section 11. After the selection, the the initial weight values of BP-network are gotten through
individuals in the new generational population are the random assignment. In the 3d way only the initial
randomly arranged into twosome. Then the crossover weight values of BP-network are determined by use of the
operator is used according to the probability of the adaptive BP-network approach; the number of hidden
crossover, P,. The process of the crossover: the first a nodes is gotten by use of the empirical formula. In the 4'h
random integer, rn, is generated corresponding to the two way the number of hidden nodes is determined by use of
individuals that have been appointed to cross. The scope the empirical formula and the initial weight values of BP-
of m is from 1 to h, where h is the number of hidden network are gotten through the random assignment.
nodes. The second is to interchange the weight values The inputs to the BP-network include 59 variables: the
before the mfh hidden node (i.e. m, m-I, ..., I). After 1st-26'hcorrespond to the 24 hourly loads, the maximum
finished, the mutation will be started. The method of the and minimum forecasting temperature of the
mutation is to study the weight values once by use of BP corresponding day in last week; the 27"-5Znd correspond
algorithm. to the 24 hourly loads, the maximum and minimum
When the end condition is reached, the individual that forecasting temperature of the day previous to the
has the biggest fitness is exported. Its weight values are forecasting day; the 53d-S4" correspond to the maximum
the optimal initial weight values to the gained structure of and minimum forecasting temperature of the forecasting
BP-network. day: the 5S'h-S9'h correspond to the day-types. The output
After two steps above, the optimal BP-network is of the BP-network is the 24 hourly forecasting loads of
gotten. the forecasting day.
The empirical formula that is mentioned above
IV. USING THEIMPROVED BP ALGORITHM paragraphs is [3]:
Before training the BP-network, the improved BP
h=[n+m]"'ta (6)
algorithm [SI will be introduced.
Where, h is the number of hidden nodes; n is the number
The improved BP algorithm adopts the exponential
of the input nerve cells; m is the number of the output
energy function:
J=ABE (A>O A# I , B>O) nerve cells; a is a constant in [1,10]. h can be calculated
(3) in [10,19]. Here h is chosen equal to 19.
Where, J is the exponential energy function; E is the sum
The percentage error and the mean square error are
squared error; A and B are the parameters of the
adopted as the analysis target.
exponential energy function. The percentage error = (actual value -predicted ualuc)x(lOO/actual
In traditional BP algorithm, the updated formula of "due)
weight values is: Thcmcansquarcc*or= [?(percentage error/l00)2 1241"'
);1
(4)
The samples are the electricity load data and the
Where, Wis the weight value; 7 is the studying factor; AW temperature data from July 1998 to July 1999. The
is the correction value of weight values. parameters of exponential energy function: A=2.8, B=0.98
In the improved BP algorithm, the updated formula of The electricity load data in August 1999 is predicted.
weight values is: The forecasting results of some day in August 1999 are
AW =-q-
ar ?E
= - ~ / ' B ( I n A ) b =pxAW
listed in Table 1. It can be found that the results of the 1"
JW oW way have the best accuracy. The accuracy of the 3'd way is

507
2004 IEEE lntemational Conference on Electric Utility Deregulation, Restructuring and Power Technologies (DWT2004) April 2004 Hong Kong

TABLE I
THEFORECASTING
RESULTS OF SOME DAY M 1999.8
Actual value The I"W8.V n e 2"d wav

I 4097 4182.4 -2.08 4238.0 -3.44 4341.3 -6.01 4431.9 -8.22


2 3935 3998.0 -1.60 4084.8 -3.81 41 10.7 4.47 4284.4 -8.88
3 3912 3972.7 -1.55 4145.0 -5.95 4025.5 -2.90 4138.7 -5.80
4 3871 3898.1 -0.70 4094.9 -5.78 3983.3 -2.90 4261.1 -IO.OB
5 3925 3884.2 I .04 4035.4 -2.81 3989.0 -1.63 4179.2 -6.48
6 3948 3915.4 0.83 4074.6 -3.21 3971.0 -0.58 4031.1 -2.10
7 4243 4137.5 2.49 4275.3 -0.76 4218.5 0.58 4223.6 0.46
8 4399 4222.1 4.02 4310.9 1.55 4256.2 3.25 4385.8 0.30
9 4663 4539.9 2.64 4539.6 2.65 4590.5 1.56 4942.1 -5.99
10 4510 4714.2 4.53 4655.6 -3.23 4742.6 -5.16 4759.0 -5.52
II 4878 4910.1 -0.66 4758.9 2.44 4994.6 -2.39 5015.2 -2.81
I2 5248 5295.3 -0.90 5010.4 4.53 5314.5 -1.27 5187.6 1.15
13 4849 4849.1 0.00 471 1.8 2.83 4947.1 -2.02 4989.5 -2.90
14 4664 4672.5 -0.18 4579.2 I .82 4715.2 -1.10 5011.5 -7.45
15 4691 4711.3 -0.43 4609.6 1.73 4742.4 -1.10 4874.3 -3.91
16 4798 4858.4 -1.26 4745.6 1.09 485 I .4 -1.11 5164.6 -7.64
17 4830 4923.9 -1.95 4783.5 0.96 4898.1 -1.41 4984.9 -3.21
18 5107 5 174.8 -1.33 4992.4 2.24 5142.8 -0.70 5271.2 -3.22
19 5265 5275.9 -0.21 5154.3 2.10 5294.4 -0.56 5429.5 -3.13
20 5585 5501.5 1.50 5336.4 4.45 5450.8 2.40 5405.2 3.22
21 5673 5586.8 1.52 5337.4 5.92 5412.1 4.60 5574.2 I .74
22 5275 5198.5 1.45 5032.0 4.61 5041.1 4.43 5210.0 1.23
23 4926 4804.5 2.47 4727.0 4.04 4679.8 5.00 4842.5 1.70
24 4413 4406.7 0.14 4468.7 -1.26 4329.9 1.88 4456.2 -0.98
The mean square error 1.86 1.42 2.95 4.96
The average ermr 1.48 3.05 2.46 4.09

better than that of the 2"dway. It shows the optimization


of initial weight values has an important impact on the VII. REFERENCES
convergence of the BP-network. The accuracy of the 4" [I] Wang Pingymg. Hu Z h a o p n g , Application o/ Fuzzy
way is the least. Its results have great randomness seeing hfathemotics on Elecwic Power Sysrem. Beijing: China Electric
Power Publishing Company, 1999.
to Fig.3. Its matching ability is far lower than the three
[2] Wang Yaonan, lnre/ligenl Control System. Changsha: Hunan
former based on the certain iterate times. It can he seen University Publishing House, 1996.
from Fig.4 that the variation of the percentage errors of [ I ] Jin Xianji, The Handouts o/Arfificid Neural Nerwork. Wuhan:
the 1" way is relative even. Except those of two points, The Publishing House of Huazhong University of Science and
Technology, 1996.
the other's variations are among *3%. [4] Liang Haifeng, Tu Guangyu, Tang Hongwei, "Application of
genetic algorithm neural network for short term load forecasting a f
VI. CONCLUSIONS power system,'*Power System 7eechnologv,~01.25,no. I , pp.49-53,
Jan.2001
In this paper, an adaptive BP-network approach is [SI He Shudong, Qu Tan, Huang Xinghan, "An improved nmm1
developed to forecast short term load by use of GA. This network method for short term load forecasting," Automarion of
€lecrricPowerSyslem, vo1.21,no.I I,pp.13-15,Nov.l997.
approach solves the blindness in the confirmation of the
[6] Zhou Dianmin, Guan Xiaahong, Sun lie, Huang Yong, "A short
structure of BP-network. short-term load forecasting system based on BP artificial neural
The forecasting results indicate that this approach can network," Power System Technolag,, ~01.26, no.2, pp.lO-l3.
Feb.2002.
meet the need of improving forecast accuracy and [7] Ma Wenxiao, Bai Xiaomin, Mu Lianshun, "Short term load
enhancing the performance of the network. It proves the forecasting using artificial neuron network and fuzzy inference,"
effectiveness of the approach. Power Svstem Technolog?, Va1.27, No.5, May.2001.
By the way, this approach aims at the BP-network, not [XI Dipti Snnivasan, C.S.Chang, A.C.Liew, "Demand forecasting
using Fuzzy neural computation, with special emphasis on
just the question of STLF, so to other fields of power weekend and public holiday forecasting. " I€€€Trans. Power
system using BP-network it can still be used. Sysems, vol.lO, pp. 1897-1903. Nov. 1995.

508
2004 EEE International Conference on Electric Utility Deregulation, Resmcturing and Power Technologies (DRPT2004) April 2004 Hong Kong

w-

5500 -

5wo -

45w -

m-

3500 ,t/h

3 t
I .)ri
I -

-3 -
-5 -
7 -
-9 - ~ second w v

Fig. 4. The percentage errors of the 24h predicted values of electricity load

[9] T.M.Peng, N.F.Huber, G.G.Karady, "An adaptive network Now, he is a professor and deputy head of the Depanment. His research
approach to one-week ahead load forecasting," JEEE Trans. areas of interest include electricity market, power quality, analysis and
Powerswrems, ~01.8,pp. 1195-1202, Aug. 1993. control of power systems, and new transmission and distribution
[ 101 Alireza Khotanzad, Enwang Zhou, Hassan Elmgal, "A neum-fizzy technologies.
..
aoomach to shan-term load forecastine in a orice-sensitive
I

environment," ' I E E E Trans Power Svslem, ~01.17,pp. 1273.1282, Zhou Ming was bom in Hubei Province, China, on
Nov. 2002. Nov. 24, 1967. She received the B.S. and M.S.
degrees in power system and its automation from
VIII. BIOGRAPHIES Nonh China Electric Power University (NCEPU) in
1989 and 1992 respectively.
Since 1992, MS. Zhou has been with the
Linng Haifeng was bom in Hebei Province, China, Depanment of Electrical Engineering at NCEPU.
on May 20, 1976. He received the B.S. degree in Now, she is an associate professor. Her areas of
power system and its automation f" North China interest include A I application to power system, electricity market, and
Elechic Power University (NCEPU) in 1998 and power system operation and management.
received the M.S. degree in power system and its
automation from Huazhang University of Science
&Technologyin2001.
Since 2001, MI. Liang has been with the
Depanment of Elecmcal Engineering at NCEPU.

-
Now. he IS a lecturer His areas of interest include A I application to
power system. new transmission and dtsmbutm teehnologm, and
STLF

-.
Li Genevin fM'2003)
, was bom in Hebei Province
China, on May 18, 1964. He received the B.S., M.S.
and Ph.D. degrees in power system and i t s
automation from North China Electric Power
University (NCEPU) in 1984, 1987 and 1996
respectively.
Since 1987. Dr. Li h a s been with the
Depanment of Elechical Engineering at NCEPU.

509

Você também pode gostar