<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Electricity Price Forecasting for Nord Pool Data Using Recurrent Neural Networks</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Rita Beigaite˙</string-name>
          <email>rita.beigaite@bpti.lt</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Tomas Krilavicˇius</string-name>
          <email>t.krilavicius@bpti.lt</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Faculty of Informatics, Vytautas Magnus University;, Baltic Institute of Advanced Technology</institution>
          ,
          <addr-line>Kaunas</addr-line>
          ,
          <country country="LT">Lithuania</country>
        </aff>
      </contrib-group>
      <fpage>75</fpage>
      <lpage>78</lpage>
      <abstract>
        <p>-Forecasts of electricity spot price can be very useful models generally focus on qualitative issues, high accuracy of for participants of electricity market in order to maximize profits, the forecasts cannot be achieved. minimize risks and make future strategies. In literature various In recent literature many of electricity price forecasting ampepthrooadcshaerse laeptpalicehdiefvoer sdoilfvfeinregntthirsepsurlotbslewmit.hHodwisetivnecrt, tmhearskametse. approaches are hybrid solutions, which combine two or more In this paper we describe our experiments with electricity spot distinct methods. For instance, in [7] and [8] hybrid intelligent price data of Lithuania's price zone in Nord Pool power market. algorithm utilizing a data filtering technique based on wavelet Short-term forecasts are made using recurrent neural networks transform, an optimization technique based on firefly algorithm, and results are reported. and soft computing model based on fuzzy ARTMAP or neural neuInradlexnetTweromrkss-electricity spot price, forecasting, recurrent networks are introduced. Using this method authors make ahead forecasts for the market. I. INTRODUCTION thaAt ncootmhebrineexsa mthpelewwavoeulledt btreaninsfo[9r]mp, rkoepronseeldehxytrbermidealpeparronaincgh machine based on self-adapting particle swarm optimization and an auto regressive moving average methods. Forecasts were made for Pennsylvania-New Jersey-Maryland, Australian and Spanish markets. In this paper we describe application of recurrent neural networks for short-term (day-ahead) electricity price forecasting of Lithuania's price zone in Nord Pool1 market.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Nowadays due to worldwide liberalization of power markets,
electricity can be traded under the rules of free electrical
market. It can be bought and sold as any other commodity. For
participants of electricity market it is important to optimize
profits and risks. This can be done by using forecasts of future
electricity prices. For instance, accurate short-term forecasts
can help to make better biding strategies.</p>
      <p>
        One of the distinct features of electricity is that it cannot
be stored in bulk quantities [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. It is one of the factors
why electricity price has features such as high volatility and
spikes. Extreme price spikes or volatility can also be caused by
uncertainty in factors such as transmission bottlenecks, weather
conditions, fuel price or equipment outages [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. These
factors as well as double seasonality makes it a challenging
task to forecast electricity prices accurately.
      </p>
      <p>
        In literature many different methods are applied for electricity
price forecasting. Based on [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], they can be classified
into five groups. These groups consist of multi-agent models
(e.g. Nash-Cournot framework, agent-based simulation models),
fundamental models (e.g. parameter-rich fundamental models,
parsimonious structural models), reduced-form models (e.g.
Markov regime-switching models, jump-diffusion models),
computational intelligence models (e.g. feed-forward neural
networks, recurrent neural networks) and statistical models
(e.g. exponential smoothing methods, regression models,
ARtype time series models). Each group of methods has its own
advantages and disadvantages. For example, for the analysis of
strategic behaviour in electricity markets, multi-agent models
can be considered as very flexible tools. However, as these
      </p>
    </sec>
    <sec id="sec-2">
      <title>II. METHODS</title>
      <sec id="sec-2-1">
        <title>A. Feed-forward neural network</title>
        <p>
          Neural networks are a class of non-linear models. One of the
most popular models is the feed-forward multilayer network
[
          <xref ref-type="bibr" rid="ref11">11</xref>
          ]. For forecasting problem, the inputs of neural network
usually are the past observations of data series and the output is
the future value. This network performs the following function
mapping
        </p>
        <p>y^T +1 = f (yT ; yT 1; : : : yT p);
where yT is the observation at time T .</p>
      </sec>
      <sec id="sec-2-2">
        <title>B. Elman recurrent neural network</title>
        <p>
          An Elman RNN is a network which in principle is set up
as a regular feed-forward neural network. This means that all
neurons in one layer are connected with all neurons in the
next layer. An exception is the so-called context layer which
1Nord Pool runs the largest market for electrical energy in Europe. It
operates in Norway, Denmark, Sweden, Finland, Estonia, Latvia, Lithuania,
Germany and offers both day-ahead and intraday markets to its customers.
Copyright held by the author(s).
is a special case of a hidden layer. The neurons in the context
layer (context neurons) hold a copy of the output of the hidden
neurons. The output of each hidden neuron is copied into a
specific neuron in the context layer. The value of the context
neuron is used as an extra input signal for all the neurons
in the hidden layer one time step later. Therefore, the Elman
network has an explicit memory of one time lag. [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ]
        </p>
        <p>An example of Elman recurrent neural network is provided
in Figure 1.</p>
      </sec>
      <sec id="sec-2-3">
        <title>D. Measures of accuracy</title>
        <p>
          Point forecasts are used in majority of electricity price
forecasting papers. Therefore, accuracy measures, which are
based on absolute errors, are the mostly used. Error is defined
as the difference between the actual value and the forecast value
for the corresponding period. Due to easy interpretation, by
far the most popular measure in literature is the mean absolute
percentage error (MAPE). Though, MAPE error might be
misleading in the presence of close to zero prices [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ], [
          <xref ref-type="bibr" rid="ref13">13</xref>
          ].
Therefore, we use mean absolute error (MAE) and root mean
squared error (RMSE) for evaluation of model accuracy as well.
In [
          <xref ref-type="bibr" rid="ref14">14</xref>
          ] RMSE measure is said to have advantage for showing
bigger deviations and providing a complete picture of the error
distribution as well as avoiding the use of absolute value, which
is highly undesirable in many mathematical calculations. In
[
          <xref ref-type="bibr" rid="ref15">15</xref>
          ] authors indicate that MAE is the most natural measure
of average error magnitude, and that (unlike RMSE) it is an
unambiguous measure of average error magnitude.
1) Mean Absolute Percentage Error
2) Mean Absolute Error or Mean Absolute Deviation
        </p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3) Mean Squared Error</title>
    </sec>
    <sec id="sec-4">
      <title>4) Root Mean Square Error</title>
      <p>n
MAPE = 100 X
n
t=1</p>
      <p>At</p>
      <p>At</p>
      <p>Ft :
n
MAE = MAD = 1 X
n</p>
      <p>t=1
n
MSE = 1 X (Ft
n
t=1
jFt</p>
      <p>Atj :
At)2 :
RMSE = pM SE = tuuv n1 Xn (Ft
t=1</p>
      <p>At)2:
Here At is the real value and Ft – forecast value.</p>
    </sec>
    <sec id="sec-5">
      <title>III. FORECASTING</title>
      <sec id="sec-5-1">
        <title>A. Data set</title>
        <p>In this paper data of Lithuania’s price zone in Nord Pool
power market is analysed. This data set (source of the data is
https://www.nordpoolgroup.com) consists of historical hourly
electricity prices (Eur/MWh) from January 1, 2016 to December
31, 2017.</p>
      </sec>
      <sec id="sec-5-2">
        <title>B. Experiments</title>
        <p>C. Jordan recurrent neural network Forecasting experiments were performed for each day of
the year 2017. Data of the year 2016 was used for training</p>
        <p>
          Jordan network consists of a multilayer perceptron with one and data of the year 2017 was used for testing. We use the
hidden layer and a feedback loop from the output layer to an whole year for training data to capture seasonality effects on
additional input called the context layer. In the context layer, the price.
there are self-recurrent loops. [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ] Elman and Jordan recurrent neural networks were used for
        </p>
        <p>An example of Jordan recurrent neural network can be seen short-term day-ahead prognosis of total 24 points. The accuracy
in Figure 2. of forecasts was measured for each day using RMSE, MAE and
MAPE errors. All experiments were computed using statistical
package R (https://www.r-project.org).</p>
        <p>The input features of the networks was lagged electricity
prices. Based on correlation analysis lags of Pt 1, Pt 2, Pt 3,
Pt 22, Pt 23, Pt 24, Pt 25, Pt 26, Pt 47, Pt 48, Pt 71,
Pt 72, Pt 73, Pt 95, Pt 96, Pt 97, Pt 120, Pt 143, Pt 144,
Pt 145, Pt 167, Pt 168, which had statistically significant
correlation with target price, were chosen as input features. All
features as well as target were scaled in to be in range from
-1 to 1 before training.</p>
        <p>Structures of both Elman and Jordan networks had an input
layer composed of 22 neurons, a hidden layer composed of 10
neurons, and an output layer with 1 neuron. Forecasts for all
24 points were calculated recursively. Non-linear
hyperbolictangent-sigmoid and pure linear activation functions were used
in the hidden layer neurons and the output layer neuron,
respectively.</p>
      </sec>
      <sec id="sec-5-3">
        <title>C. Results</title>
        <p>Summary for accuracy values obtained by each method are
presented in Tables I and II. Results show that considering all
three measures of accuracy, the highest average accuracy with
lowest standard deviation was achieved using Elman neural
network. Although, the most precise prognosis was made using
Jordan neural network with MAPE error equal to 2.94%.</p>
        <p>
          We compared the accuracy with results of benchmark Mean
and Seasonal Naïve methods described in [
          <xref ref-type="bibr" rid="ref16">16</xref>
          ]. Comparison of
MAPE errors is shown using box plot (a.k.a. box and whisker)
diagrams in Figure 3. It can be seen that the accuracy of both
Elman and Jordan networks is higher compared with Mean
method but lower compared with benchmark Seasonal Naïve.
Although, it is visible that using Elman network there are
fewer errors, which would be considered as outliers, than using
Seasonal Naïve method.
        </p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>IV. CONCLUSIONS AND FUTURE WORK</title>
      <p>Even though in literature there are many approaches which
can be used for electricity price forecasting, features such
as multiply seasonality, high volatility and spikes make it
difficult to achieve high accuracy of prediction. Highest average
accuracy during forecasting experiments was achieved using
Elman neural network. The most accurate prediction, with
MAPE error equal to 2.94 %, was made by using Jordan
network. Compared to benchmark Mean method both Elman
and Jordan networks enable to achieve more accurate forecasts.
Although, forecasts made by these recurrent networks are
less accurate than using benchmark Seasonal Naïve approach.
For future work we plan to continue searching for the best
forecasting approach for Lithuania’s electricity price zone by
testing various hybrid models, as well as including not only
historical electricity data but also external data such as wind
power which can influence electricity prices.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>S.</given-names>
            <surname>Anbazhagan</surname>
          </string-name>
          and
          <string-name>
            <given-names>N.</given-names>
            <surname>Kumarappan</surname>
          </string-name>
          , “
          <article-title>Day-ahead deregulated electricity market price forecasting using recurrent neural network,” IEEE Systems Journal</article-title>
          , vol.
          <volume>7</volume>
          , no.
          <issue>4</issue>
          , pp.
          <fpage>866</fpage>
          -
          <lpage>872</lpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>G.</given-names>
            <surname>Capizzi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Bonanno</surname>
          </string-name>
          , and
          <string-name>
            <given-names>C.</given-names>
            <surname>Napoli</surname>
          </string-name>
          , “
          <article-title>Recurrent neural network-based control strategy for battery energy storage in generation systems with intermittent renewable energy sources</article-title>
          ,” in International Conference on Clean Electrical Power. IEEE,
          <year>2011</year>
          , pp.
          <fpage>336</fpage>
          -
          <lpage>340</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>N. A.</given-names>
            <surname>Shrivastava</surname>
          </string-name>
          and
          <string-name>
            <given-names>B. K.</given-names>
            <surname>Panigrahi</surname>
          </string-name>
          , “
          <article-title>A hybrid wavelet-elm based short term price forecasting for electricity markets</article-title>
          ,”
          <source>International Journal of Electrical Power &amp; Energy Systems</source>
          , vol.
          <volume>55</volume>
          , pp.
          <fpage>41</fpage>
          -
          <lpage>50</lpage>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>F.</given-names>
            <surname>Bonanno</surname>
          </string-name>
          , G. Capizzi,
          <string-name>
            <given-names>G. L.</given-names>
            <surname>Sciuto</surname>
          </string-name>
          , and
          <string-name>
            <given-names>C.</given-names>
            <surname>Napoli</surname>
          </string-name>
          , “
          <article-title>Wavelet recurrent neural network with semi-parametric input data preprocessing for microwind power forecasting in integrated generation systems</article-title>
          ,” in International Conference on Clean Electrical Power. IEEE,
          <year>2015</year>
          , pp.
          <fpage>602</fpage>
          -
          <lpage>609</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>R.</given-names>
            <surname>Weron</surname>
          </string-name>
          , “
          <article-title>Electricity price forecasting: A review of the state-of-the-art with a look into the future</article-title>
          ,”
          <source>International journal of forecasting</source>
          , vol.
          <volume>30</volume>
          , no.
          <issue>4</issue>
          , pp.
          <fpage>1030</fpage>
          -
          <lpage>1081</lpage>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>C.</given-names>
            <surname>Napoli</surname>
          </string-name>
          , G. Pappalardo,
          <string-name>
            <given-names>G. M.</given-names>
            <surname>Tina</surname>
          </string-name>
          , and E. Tramontana, “
          <article-title>Cooperative strategy for optimal management of smart grids by wavelet rnns and cloud computing,” IEEE transactions on neural networks and learning systems</article-title>
          , vol.
          <volume>27</volume>
          , no.
          <issue>8</issue>
          , pp.
          <fpage>1672</fpage>
          -
          <lpage>1685</lpage>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>P.</given-names>
            <surname>Mandal</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. U.</given-names>
            <surname>Haque</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Meng</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. K.</given-names>
            <surname>Srivastava</surname>
          </string-name>
          , and
          <string-name>
            <given-names>R.</given-names>
            <surname>Martinez</surname>
          </string-name>
          , “
          <article-title>A novel hybrid approach using wavelet, firefly algorithm, and fuzzy artmap for day-ahead electricity price forecasting</article-title>
          ,
          <source>” IEEE Transactions on Power Systems</source>
          , vol.
          <volume>28</volume>
          , no.
          <issue>2</issue>
          , pp.
          <fpage>1041</fpage>
          -
          <lpage>1051</lpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>G.</given-names>
            <surname>Capizzi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G. L.</given-names>
            <surname>Sciuto</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Napoli</surname>
          </string-name>
          , and E. Tramontana, “
          <article-title>Advanced and adaptive dispatch for smart grids by means of predictive models</article-title>
          ,
          <source>” IEEE Transactions on Smart Grid</source>
          , p. in press,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>Z.</given-names>
            <surname>Yang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Ce</surname>
          </string-name>
          , and L. Lian, “
          <article-title>Electricity price forecasting by a hybrid model, combining wavelet transform, arma and kernel-based extreme learning machine methods</article-title>
          ,
          <source>” Applied Energy</source>
          , vol.
          <volume>190</volume>
          , pp.
          <fpage>291</fpage>
          -
          <lpage>305</lpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>D. P.</given-names>
            <surname>Mandic</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. A.</given-names>
            <surname>Chambers</surname>
          </string-name>
          et al.,
          <article-title>Recurrent neural networks for prediction: learning algorithms, architectures and stability</article-title>
          . Wiley Online Library,
          <year>2001</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>R. J.</given-names>
            <surname>Hyndman</surname>
          </string-name>
          and
          <string-name>
            <given-names>G.</given-names>
            <surname>Athanasopoulos</surname>
          </string-name>
          ,
          <article-title>Forecasting: principles and practice</article-title>
          .
          <source>OTexts</source>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>E. D.</given-names>
            <surname>Übeyli</surname>
          </string-name>
          and
          <string-name>
            <given-names>M.</given-names>
            <surname>Übeyli</surname>
          </string-name>
          , “
          <article-title>Case studies for applications of elman recurrent neural networks,” in Recurrent Neural Networks</article-title>
          .
          <source>InTech</source>
          ,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>N.</given-names>
            <surname>Singh</surname>
          </string-name>
          and
          <string-name>
            <given-names>S.</given-names>
            <surname>Mohanty</surname>
          </string-name>
          , “
          <article-title>A review of price forecasting problem and techniques in deregulated electricity markets</article-title>
          ,
          <source>” Journal of Power and Energy Engineering</source>
          , vol.
          <volume>3</volume>
          , no.
          <issue>09</issue>
          , p.
          <fpage>1</fpage>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>T.</given-names>
            <surname>Chai</surname>
          </string-name>
          and
          <string-name>
            <given-names>R. R.</given-names>
            <surname>Draxler</surname>
          </string-name>
          , “
          <article-title>Root mean square error (rmse) or mean absolute error (mae)?-arguments against avoiding rmse in the literature,” Geoscientific model development</article-title>
          , vol.
          <volume>7</volume>
          , no.
          <issue>3</issue>
          , pp.
          <fpage>1247</fpage>
          -
          <lpage>1250</lpage>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>C. J.</given-names>
            <surname>Willmott</surname>
          </string-name>
          and
          <string-name>
            <given-names>K.</given-names>
            <surname>Matsuura</surname>
          </string-name>
          , “
          <article-title>Advantages of the mean absolute error (mae) over the root mean square error (rmse) in assessing average model performance,” Climate research</article-title>
          , vol.
          <volume>30</volume>
          , no.
          <issue>1</issue>
          , pp.
          <fpage>79</fpage>
          -
          <lpage>82</lpage>
          ,
          <year>2005</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>R.</given-names>
            <surname>Beigaite</surname>
          </string-name>
          ˙ and T. Krilavicˇius, “
          <article-title>Electricity price forecasting for nord pool data,” ceur-ws</article-title>
          .
          <source>org/</source>
          Vol-1856/p07.pdf.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>