Hybridising Neurofuzzy Model the Seasonal Autoregressive Models for Electricity Price Forecasting on Germany's Spot Market
Abstract
EconStor is a publication server for scholarly economic literature, provided as a non-commercial public service by the ZBW.
Full text
Paraschiv, Dorel Mihai; Balasoiu, Narciz; Ben-Amor, Souhir; Bag, Raul Cristian Article Hybridising Neurofuzzy Model the Seasonal Autoregressive Models for Electricity Price Forecasting on Germany's Spot Market Amfiteatru Economic Provided in Cooperation with: The Bucharest University of Economic Studies Suggested Citation: Paraschiv, Dorel Mihai; Balasoiu, Narciz; Ben-Amor, Souhir; Bag, Raul Cristian (2023) : Hybridising Neurofuzzy Model the Seasonal Autoregressive Models for Electricity Price Forecasting on Germany's Spot Market, Amfiteatru Economic, ISSN 2247-9104, The Bucharest University of Economic Studies, Bucharest, Vol. 25, Iss. 63, pp. 463-478, https://doi.org/10.24818/EA/2023/63/463 This Version is available at: https://hdl.handle.net/10419/281714 Standard-Nutzungsbedingungen: Die Dokumente auf EconStor dürfen zu eigenen wissenschaftlichen Zwecken und zum Privatgebrauch gespeichert und kopiert werden. Sie dürfen die Dokumente nicht für öffentliche oder kommerzielle Zwecke vervielfältigen, öffentlich ausstellen, öffentlich zugänglich machen, vertreiben oder anderweitig nutzen. Sofern die Verfasser die Dokumente unter Open-Content-Lizenzen (insbesondere CC-Lizenzen) zur Verfügung gestellt haben sollten, gelten abweichend von diesen Nutzungsbedingungen die in der dort genannten Lizenz gewährten Nutzungsrechte. Terms of use: Documents in EconStor may be saved and copied for your personal and scholarly purposes. You are not to copy documents for public or commercial purposes, to exhibit the documents publicly, to make them publicly available on the internet, or to distribute or otherwise use the documents in public. If the documents have been made available under an Open Content Licence (especially Creative Commons Licences), you may exercise further usage rights as specified in the indicated licence. https://creativecommons.org/licenses/by/4.0/
Micro and Macroeconomic Impact of EU Energy Policy AE Vol. 25 • No. 63 • May 2023 463 HYBRIDISING NEUROFUZZY MODEL AND THE SEASONAL AUTOREGRESSIVE MODEL FOR ELECTRICITY PRICE FORECASTING ON GERMANY’S SPOT MARKET Dorel Mihai Paraschiv1, Narciz Bălășoiu2 * , Souhir Ben-Amor 3 and Raul Cristian Bag 4 1)2)Bucharest University of Economic Studies, Romania 3)4) Humboldt University, Berlin, Germany Please cite this article as: Paraschiv, D.M., Bălășoiu, N., Ben-Amor, S. and Bag, R.C., 2023. Hybridising Neurofuzzy Model the Seasonal Autoregressive Models for Electricity Price Forecasting on Germany’s Spot Market. Amfiteatru Economic, 25(63), pp. 463-478. DOI: 10.24818/EA/2023/63/463 Article History: Received: 29 December 2022 Revised: 13 February 2023 Accepted: 20 March 2023 Abstract Electricity price forecasting has become an area of increasing relevance in recent years. Despite the growing interest in predictive algorithms, the challenges are difficult to overcome given the restricted access to relevant data series and the lack of accurate metrics. Multiple models have been developed and proven to work in the area of EPF. This paper proposes a new univariate hybrid model, trained, and tested on German electricity market data, based on the Seasonal Auto-Regressive Integrated Moving Average (SARIMA) and the NeuroFuzzy- Local Linear Wavelet Neural Network (LLWNN). Although a series of complex challenges create difficulties in refining the model, the proposed algorithm significantly narrows the gap between predictions and actual prices. The ability to predict the dynamics of the price of electricity on the spot market is an important asset for both suppliers and consumers, with a view on prophylactic calibration of supply-demand ratios. The model can be extended and applied to any energy market with a stable structure. Keywords: electricity price forecasting; Seasonal Auto-Regressive Integrated Moving Average (SARIMA); NeuroFuzzy-Local Linear Wavelet Neural Network (LLWNN); univariate hybrid model; German electricity market. JEL Classification: Q47, C51, C52, C53, C55. * Corresponding author, Narciz Bălășoiu – e-mail: [email protected] This is an Open Access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. © 2022 The Author(s).
AE Hybridising NeuroFuzzy System and Seasonal Autoregressive Models for Electricity Price Forecasting on Germany’s Spot Market 464 Amfiteatru Economic Introduction In a period dominated by crises, it becomes cardinal for states to anticipate consumption fluctuations and cost variations, considering the impact this resource has on both households and the business environment. The ability to forecast the price of electricity has been a constant concern in research, and efforts to create a model capable of accurately reproducing market fluctuations are of the utmost importance. The present article adheres to research efforts aimed at determining a correlation algorithm dedicated to forecasting the evolution of prices in the electricity market (Zema and Sulich, 2022). Considering the easy access to current information, the degree of development, the relevance to the market of the entire Union, as well as the stability of the system, we used Germany’s spot electricity market for the validation of the proposed model. The spot market, also known as the day-ahead market, is the place where firm hourly electricity transactions are carried out with delivery on the day following the trading day. In other words, the seller and buyer agree today at a price negotiated on the spot, and the quantity negotiated is delivered tomorrow at a certain time. Germany had the highest net electricity production in recent years. This was 20.5% of the total production of the European Union, closely followed by France with 19.1%. Italy (10.2%) was another EU member state with a double-digit share (Eurostat, 2022). More than half of all the EU’s net electricity production was generated from non-combustible primaries. A mere 41.3% of net electricity was generated from combustible sources, including natural gas, oil, and coal. Twenty-four percent of net electricity generation came from nuclear power plants, while hydropower plants (13.8%), and solar energy (5.3%) close the echelon. The clear trend towards a changing energy mix, along with complex geopolitical developments, will have a relevant impact on energy market price developments in the near future (European Commission’s Directorate for Energy, 2022). The present paper is proposing a new, univariate hybrid model to be used for electricity price forecasting, based on work already developed in the literature and proven to work in this area, based on the SARIMA (Seasonal Autoregressive Integrated Moving Average) model and the NeuroFuzzy-LLWNN (Local Linear Wavelet Neural Network) model. The article begins with a chapter of theoretical considerations intended to place the topic in the context of specialised literature, while also bringing considerations regarding its relevance and topicality. Subsequently, a foray into the methodological plan is made, the two models, SARIMA and NeuroFuzzy-LLWNN, being explained, based on which the hybrid electricity price forecasting model will be developed. In the analysis chapter, the algorithm obtained is applied to the electricity spot market in Germany. In the last part of the paper, the forecast results are evaluated, demonstrating the accuracy of the developed hybrid model by referring to the independent operation of its basic components. 1. Theoretical considerations Electricity Price Forecasting (EPF) is becoming a more and more pressing issue year by year, as shown in the bibliometric study done by Zema and Sulich (2022). As mentioned in their paper, some of the arguments for the importance of EPF range from the influence it brings on a company’s stock (Tanasie et al., 2022) to influencing the operational decisions made by certain companies (Weron, 2014a).
Micro and Macroeconomic Impact of EU Energy Policy AE Vol. 25 • No. 63 • May 2023 465 A growing number of parametric and non-parametric models have been applied to the area of electricity price forecasting (EPF) in the research literature over the years (Weron; 2014b). Models such as SARIMA have already demonstrated to be very effective for the task of predicting electricity prices (Karabiber and Xydis, 2019), but of course, the fact that SARIMA models have a difficulty in predicting non-linear behaviour has to be taken into consideration. For tackling this issue, the literature suggests the usage of Artificial Neural Networks (ANNs) with different kinds of variation in their architecture (Wang and Ramsay, 1998; Pao, 2007; Wang, et al., 2016). Models like these come with a series of initial advantages, such as handling the aforementioned non-linearity issue, improving the overall robustness of the analysis. However, ANNs can present some limitations when taking into account the choice of activation function (sigmoid), which can make the model converge to a point of local minima. Moreover, the random sampling of the initial weights can increase the training times significantly, which makes it even harder to iterate on the model architecture (Ben-Amor, Boubaker and Belkacem, 2018). In order to solve the classical ANNs shortcomings, the literature suggests using LLWNNs instead, to try to forecast electricity prices (Pany and Ghoshal, 2015). LLWNN stands for Local Linear Wavelet Neural Network and represents a special solution to the multidimensionality problem of the WNN networks (Chen et al.; 2004) as originally developed by (Pati and Krishnaprasad, 1993). However, creating a hybrid model between LLWNN and the NeuroFuzzy Model, was proven to improve it when applied to price forecasting in FOREX (Forex, also known as FX or foreign exchange, is the exchange of one currency for another at an agreed price) markets by Mohapatra, Munnangi and Patra (2013), but was also successfully applied to electricity price forecasting by (Pany and Ghoshal, 2013). Chen (2004), Dong, et al. (2011), Maciejowska and Nowotarski (2016) and Zhang, Tan and Wey (2020) have also addressed the issue of hybrid models in an attempt to solve the complex difficulties of forecasting electricity prices. In light of the proven effectiveness of hybrid models, we propose such a model using SARIMA for the regular components and a NeuroFuzzy-LLWNN for the irregular ones. Using a NeuroFuzzy-LLWNN instead of a more classical ANN approach, we solve the issues mentioned in the above paragraphs, thus improving the overall effectiveness of the model. An approach to break down a signal into a number of intrinsic mode functions (IMF) and a residue that represents the trend is known as Empirical Mode Decomposition (EMD). EMD is a technique for obtaining instantaneous frequency data, performing well for data sets that are characterised by non-linearity and non-stationarity (Qiu, Suganthan and Amaratunga, 2017). Ensemble empirical mode decomposition builds upon the classical EMD technique by combining the original timeseries with an ensemble of white noise data. Because the white noise has the effect of creating a consistent reference frame in the time-frequency domain, it captures the component of the signal with a similar scale into one IMF (Rilling and Flandrin; 2009). EMD has been successfully applied, using different model architectures, in the area of EPF by multiple authors (Qiu, Suganthan and Amaratunga, 2017; Buyukshain and Ertekin, 2019). The aim of our paper is to create a hybrid model architecture based on previously proven statistical techniques that aims to solve the weaknesses present in the models when taken
AE Hybridising NeuroFuzzy System and Seasonal Autoregressive Models for Electricity Price Forecasting on Germany’s Spot Market 466 Amfiteatru Economic separately. This can be achieved by decomposing the time series and trying to predict its regular and irregular components separately. 2. Methodology 2.1. SARIMA Model Because of the dependence on climate conditions that can affect changes in demand, electricity prices show seasonal features (Huurman, Ravazzolo and Zhou, 2012). The seasonal Autorregressive Integrated Moving Average Model (SARIMA) has been proven to work for predicting regular components of nonstationary time series, having been successfully applied in the area of electricity price forecasting (Buyukshain and Ertekin, 2019; Zhang, Tan and Wey (2020). George, Jenkins and Reinsel (1970) and Zhang, Tan and Wey (2020) describe the SARIMA model (p,d,q)(P,D,Q)S using the following: (1) With Where: D and d are the order of the seasonal and regular differences, respectively; P and p represent the order of the periods taken into account in the autoregressive component (seasonal and regular); Q and q represent the order of the periods considered in the moving average component, S is the number of periods in a year for which the seasonality of the time series repeats; B being the lag operator; and xt and et represent the regular component and the white noise; ( (B) and ( (B) represent the regular, respectively seasonal autoregressive components, and - (B) and (B) represent the regular, respectively seasonal moving average components.
Micro and Macroeconomic Impact of EU Energy Policy AE Vol. 25 • No. 63 • May 2023 467 2.2. NeuroFuzzy model Ever since the creation of the LLWNN model by Whitcher (2004), it has shown more accuracy than the traditional WNN for time series forecasting. The main idea of LLWNN is to replace the connections between the hidden layer and the output with a local linear model. The advantages of this approach, as presented by (Mohapatra, Munnangi and Patra, 2013), include the good performance proven by the adoption of local linear models in several neurofuzzy systems, performing better than the standard LLWNN in terms of accuracy, error convergence speed, and its capability of handling uncertainties. The general architecture for this neural network can be seen in (Figure no. 1). The model consists of 5 layers, starting with layer 1 which takes the form u(1)i = xi, and just represents the plain input layer. For the LLWNN side, the second layer represents the wavelet function for each node: (2) ai and bi are the scale and translation parameters, and i = 1,...,2n. The third layer on the LLWNN side is represented by the two outputs of each part of the neural network. Recall that the output of an LLWNN network is given by: (3) For the NeuroFuzzy component, the second layer is represented by the following equation that calculates the membership for a given input, using a Gaussian membership function: (4) From the nodes of a set in layer 2, the nodes in layer 3 obtain one-dimensional membership degrees of the related rule. Here, the precondition function of the fuzzy rules is carried out using the product operator that is defined as: (5)
AE Hybridising NeuroFuzzy System and Seasonal Autoregressive Models for Electricity Price Forecasting on Germany’s Spot Market 468 Amfiteatru Economic Figure no. 1. LLWNN-Neurofuzzy model architecture Layer 4 is a layer that consists of consequent nodes, and they contain the NeuroFuzzy ouput from Layer 3, and the LLWNN output from layer 3, using the following equation: (6)
Micro and Macroeconomic Impact of EU Energy Policy AE Vol. 25 • No. 63 • May 2023 469 where ψk is the functional expansion of the input and wkj represents the weights of the LLWNN. The last layer of the neural network acts as a defuzzification one and takes as input the Layer 3 outputs of the LLWNN and NeuroFuzzy parts of the model, being represented by the following equation: y = (y11.Fz11 + y22.Fz22)/(Fz11 + Fz22) (7) where y11 and y22 represent the output values of the LLWNN component and Fz11 and Fz22, respectively, represent the output values of the NeuroFuzzy component. More details regarding (1), (2), (3), (4), (5), (6), (7), internal architecture and backpropagation are presented by the authors in Mohapatra et al. (2013). Taking this into consideration, we propose the usage of this model for the prediction of the irregular components in our final hybrid model. 2.3. Ensemble Empirical Mode Decomposition (EEMD) As mentioned in Section 2, EEMD is an extension of EMD designed to solve the mode mixing problem. The data x(t) often consists of both the signal s(t) and the noise n(t): x(t) = s(t) + n(t) (8) As mentioned in Khan et al. (2021), EEMD is a technique designed to remove the white noise from the data, since it is usually what obstructs it. To get rid of the noise in the data, EMD decomposes it by extracting a set of IMFs and a residual. Intrinsic Mode Functions are oscillatory, with variation in amplitude and frequency. By locating all local maxima and minima and linking them with cubic splines to construct the upper and lower envelope, a time series must first be divided into a number of IMFs. The envelopes’ means are then calculated. The first IMF is then produced by subtracting the mean from the original data. The process repeats until a monotonic function is obtained. Given equation nr. 8, and according to Khan, et al. (2021), this process can be represented mathematically by: (9) where r is the residue and n is the number of IMF extracted. 2.4 . Stages of the hybrid univariate model As previously shown, the main contribution of our paper is creating a hybrid model that combines SARIMA and NeuroFuzzy-LLWNN in order to forecast day-ahead electricity prices. Our proposed hybrid model consists of two steps, as described below (see also figure No. 2): The first step is Data decomposition. Different components with different characteristics should be extracted to better capture the complex features of electricity prices. Thus, Ensemble Empirical Mode Decomposition EEMD is used to convert the original electricity price into some regular and irregular component. The second step consists of selecting a suitable model for each component according to its own characteristics. Some components will exhibit regular characteristics. Thus, SARIMA is
AE Hybridising NeuroFuzzy System and Seasonal Autoregressive Models for Electricity Price Forecasting on Germany’s Spot Market 470 Amfiteatru Economic used for these regular components. Then the hybrid NeuroFuzzy model is selected for irregular components forecasting, which can capture the irregular changing trend. Figure no. 2. LLWNN-NeuroFuzzy model architecture 3. Analysis 3.1. Data Our dataset consists of day-ahead electricity price data downloaded from the ENTSO-E transparency platform (see transparency.entsoe.eu). The dataset begins on 01.01.2015 and ends on 31.12.2021. In figure no. 3, we can see an overview of the full dataset. We can immediately deduct some special characteristics of the German electricity market, that being the occurrence of price spikes in both the positive and negative directions. The model is applied to the German spot electricity market. This specific market was chosen for the implementation of the presented model, because it is considered to be a welldeveloped market, which is why the model could be generalised for other spot-type energy markets. The proposed data set is divided into two subsets, the first being represented by energy prices between 2015 and 2018, used to estimate the parameters of the presented model, and the second, between 2019 and 2021, used to test its accuracy, this testing having been carried out outside the sample used for estimation .
Micro and Macroeconomic Impact of EU Energy Policy AE Vol. 25 • No. 63 • May 2023 477 References Ben-Amor, S., Boubaker, H. and Belkacem, L. 2018. Forecasting electricity spot price for Nord Pool market with a hybridk-factor GARMA-LLWNN model. Journal of Forecasting, 37(8), pp.832-851. https://doi.org/10.1002/for.2544. Büyükşahin, Ü.Ç. and Ertekin, S., 2019. Improving forecasting accuracy of time series data using a new ARIMA-ANN hybrid method and empirical mode decomposition. Neurocomputing, 361, pp.151-163. https://doi.org/10.1016/j.neucom.2019.05.099. Chaâbane, N., 2014. A hybrid ARFIMA and neural network model for electricity price prediction. International Journal of Electrical Power & Energy Systems, 55, pp.187-194. https://doi.org/10.1016/j.ijepes.2013.09.004. Chen, Y., Dong, J., Yang, B. and Zhanget, Y., 2004. A local linear wavelet neural network. World Congress on Intelligent Control and Automation [Preprint]. https://doi.org/10.1109/wcica.2004.1341921. Dong, Y., Wang, J., Jiang, H. and Wu, J., 2011. Short-term electricity price forecast based on the improved hybrid model. Energy Conversion and Management, 52(8-9), pp.2987-2995. https://doi.org/10.1016/j.enconman.2011.04.020. European Comission, 2022. Quarterly Report On European electricity markets. Market Observatory for Energy, DG Energy, 15(3). Eurostat, 2022. Shedding light on energy in the EU, 2022 INTERACTIVE EDITION, [online] Available at: <https://ec.europa.eu/eurostat/cache/infographs/energy/img/pdf/sheddinglight-in-the-EU-2022_en.pdf?lang=en> [Accessed 14 January 2023]. George, E., Jenkins, G.M. and Reinsel, G.C., 1970. Time series analysis: forecasting and control. 5th Edition. New York: Wiley Series in Probability and Statistics. Huurman, C., Ravazzolo, F. and Zhou, C., 2012. The power of weather. Computational Statistics & Data Analysis, 56(11), pp.3793-3807. https://doi.org/10.1016/ j.csda.2010.06.021. Karabiber, O.A. and Xydis, G., 2019. Electricity price forecasting in the Danish day-ahead market using the TBATS, ANN and ARIMA methods. Energies, 12(5), 928 https://doi.org/10.3390/en12050928. Khan, S., Aslam, S., Mustafa, I. and Aslam, S., 2021. Short-Term Electricity Price Forecasting by Employing Ensemble Empirical Mode Decomposition and Extreme Learning Machine. Forecasting, 3(3), pp.460-477. https://doi.org/10.3390/forecast3030028. Lago, J., Marcjasz, G., De Schutter, B. and Weron, R., 2021. Forecasting day-ahead electricity prices: A review of state-of-the-art algorithms, best practices and an openaccess benchmark. Applied Energy, 293, article no. 116983. https://doi.org/10.1016/ j.apenergy.2021.116983 Maciejowska, K. and Nowotarski, J., 2016. A hybrid model for GEFCom2014 probabilistic electricity price forecasting. International Journal of Forecasting, 32(3), pp.1051-1056. https://doi.org/10.1016/j.ijforecast.2015.11.008. Mohapatra, P., Anirudh, M. and Patra, T., 2013. Forex Forecasting: A Comparative Study of LLWNN and NeuroFuzzy Hybrid Model. International Journal of Computer Applications, 66(18), pp.46-53.
AE Hybridising NeuroFuzzy System and Seasonal Autoregressive Models for Electricity Price Forecasting on Germany’s Spot Market 478 Amfiteatru Economic Pany, P.K. and Ghoshal, S.K., 2015. Dynamic electricity price forecasting using local linear wavelet neural network. Neural Computing and Applications, 26(8), pp.2039-2047. https://doi.org/10.1007/s00521-015-1867-2. Pany, P.K. and Ghoshal, S.P., 2013. Day-ahead Electricity Price Forecasting Using PSO - Based LLWNN Model. International Journal of Energy Engineering, 3(4), pp.99-106. Pao, H.-T., 2007. Forecasting electricity market pricing using artificial neural networks. Energy Conversion and Management, 48(3), pp.907-912. https://doi.org/10.1016/ j.enconman.2006.08.016. Pati, Y.C. and Krishnaprasad, P.S., 1993. Analysis and synthesis of feedforward neural networks using discrete affine wavelet transformations. IEEE Transactions on Neural Networks, 4(1), pp.73-85. https://doi.org/10.1109/72.182697. Qiu, X., Suganthan, P.N. and Amaratunga, G.A.J., 2017. Short-term Electricity Price Forecasting with Empirical Mode Decomposition based Ensemble Kernel Machines. Procedia Computer Science, 108, pp.1308-1317. https://doi.org/10.1016/ j.procs.2017.05.055. Rilling, G. and Flandrin, P., 2009. Sampling Effects on the Empirical Mode Decomposition. Advances in Adaptive Data Analysis, 1(1), pp.43-59. https://doi.org/10.1142/ s1793536909000023. Tănasie, A.V., Năstase, L.L., Vochița, L.L., Manda, A.M., Boțoteanu, G.I. and Sitnikov, C.S., 2022. Green Economy – Green Jobs in the Context of Sustainable Development. Sustainability, 14(8), article no. 4796. https://doi.org/10.3390/su14084796. Wang, A. and Ramsay, B.A., 1998. A neural network based estimator for electricity spotpricing with particular reference to weekend and public holidays. Neurocomputing, 23(1-3), pp.47-57. https://doi.org/10.1016/s0925-2312 (98)00079-4. Wang, J., Liu, F., Song, Y. and Zhao, J., 2016. A novel model: Dynamic choice artificial neural network (DCANN) for an electricity price forecasting system. Applied Soft Computing, 48, pp.281-297. https://doi.org/10.1016/j.asoc.2016.07.011. Weron, R., 2014. Electricity price forecasting: A review of the state-of-the-art with a look into the future. International Journal of Forecasting, 30(4), article no. 1030-1081. https://doi.org/10.1016/j.ijforecast.2014.08.008. Whitcher, B., 2004. Wavelet-Based Estimation for Seasonal Long-Memory Processes. Technometrics, 46(2), pp.225-238. https://doi.org/10.1198/004017004000000275. Zema, T. and Sulich, A., 2022. Models of Electricity Price Forecasting: Bibliometric Research. Energies, 15(15), 5642. https://doi.org/10.3390/en15155642. Zhang, J., Tan, Z. and Wei, Y.M., 2020. An adaptive hybrid model for short term electricity price forecasting. Applied Energy, 25, article no. 114087. https://doi.org/10.1016/ j.apenergy.2019.114087.