Next Article in Journal
Energy Management Optimization of Fuel Cell Hybrid Ship Based on Particle Swarm Optimization Algorithm
Next Article in Special Issue
Structure Optimization of Ensemble Learning Methods and Seasonal Decomposition Approaches to Energy Price Forecasting in Latin America: A Case Study about Mexico
Previous Article in Journal
Renewable Energy Forecasting Based on Stacking Ensemble Model and Al-Biruni Earth Radius Optimization Algorithm
Previous Article in Special Issue
Influence of Increasing Renewable Power Penetration on the Long-Term Iberian Electricity Market Prices
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Aggregating Prophet and Seasonal Trend Decomposition for Time Series Forecasting of Italian Electricity Spot Prices

by
Stefano Frizzo Stefenon
1,2,*,
Laio Oriel Seman
3,
Viviana Cocco Mariani
4,5 and
Leandro dos Santos Coelho
4,6
1
Digital Industry Center, Fondazione Bruno Kessler, 38123 Trento, Italy
2
Department of Mathematics, Computer Science and Physics, University of Udine, 33100 Udine, Italy
3
Graduate Program in Applied Computer Science, University of Vale do Itajai, Itajai 88302-901, Brazil
4
Department of Electrical Engineering, Federal University of Parana, Curitiba 81530-000, Brazil
5
Mechanical Engineering Graduate Program, Pontifical Catholic University of Parana, Curitiba 80215-901, Brazil
6
Industrial and Systems Engineering Graduate Program, Pontifical Catholic University of Parana, Curitiba 80215-901, Brazil
*
Author to whom correspondence should be addressed.
Energies 2023, 16(3), 1371; https://doi.org/10.3390/en16031371
Submission received: 27 December 2022 / Revised: 24 January 2023 / Accepted: 25 January 2023 / Published: 29 January 2023
(This article belongs to the Special Issue Coherent Security Planning for Power Systems)

Abstract

:
The cost of electricity and gas has a direct influence on the everyday routines of people who rely on these resources to keep their businesses running. However, the value of electricity is strongly related to spot market prices, and the arrival of winter and increased energy use owing to the demand for heating can lead to an increase in energy prices. Approaches to forecasting energy costs have been used in recent years; however, existing models are not yet robust enough due to competition, seasonal changes, and other variables. More effective modeling and forecasting approaches are required to assist investors in planning their bidding strategies and regulators in ensuring the security and stability of energy markets. In the literature, there is considerable interest in building better pricing modeling and forecasting frameworks to meet these difficulties. In this context, this work proposes combining seasonal and trend decomposition utilizing LOESS (locally estimated scatterplot smoothing) and Facebook Prophet methodologies to perform a more accurate and resilient time series analysis of Italian electricity spot prices. This can assist in enhancing projections and better understanding the variables driving the data, while also including additional information such as holidays and special events. The combination of approaches improves forecast accuracy while lowering the mean absolute percentage error (MAPE) performance metric by 18% compared to the baseline model.

Graphical Abstract

1. Introduction

The price of electricity and gas directly affects the routine of the people who need this availability to maintain their daily activities. With the Russia–Ukraine conflict that started on 24 February 2022, the value of electricity and gas has increased considerably for consumers in neighboring countries. The value of electricity is directly linked to the value of spot market prices [1], and with the onset of winter and increased energy consumption due to the need for heating, the value that energy can reach is something that needs to be assessed [2].
Several authors have been researching this subject in recent years. Various approaches based on artificial intelligence paradigms—mainly machine learning and deep learning—have been designed to forecast the price of energy [3,4,5]. Before the deregulation of electricity markets, spot price forecasts were laborious and detailed [6]. They were based on estimating the future market forecast based on historical data, calculating supply by adding the operating costs of generating units, and by comparing supply and demand. Thus, cost-based models were reliable tools for forecasting electricity spot prices and required negligible changes. However, currently, such models are outdated, and unfortunately, the models implemented at present for electricity spot prices are not yet accurate enough [3].
Due to increasing competition, seasonal variations on the demand and supply sides, seasonal variations in temperature, the availability of renewable energy sources in the energy systems, macroeconomics, and many other factors, it is essential to develop more accurate price modeling and new forecasting techniques, which is a challenge for market participants [7]. As electricity cannot be stored, a balance must be maintained between demand and supply, thus electricity spot markets can have opportunities and risks. Thus, it is important to develop profitable strategies using appropriate tools that require accurate day-ahead electricity spot prices, where large amounts of electricity are commercialized daily. The daily price volatility is high, they are also characterized by high frequency, a variable average, and multiple seasonality due to several unique characteristics that differentiate electricity from other forms of energy [8].
The European wholesale electricity price data refers to the prices of electricity that are traded on the wholesale market in Europe [9]. Wholesale electricity markets are where electric utilities, large industrial users, and other electricity generators buy and sell electricity in bulk. These markets are typically organized and regulated by national or regional regulatory bodies. As mentioned by Bahn, Samano, and Sarkis [10], the use of renewable energy has changed electricity market prices; according to the authors, the merit order effect has a downward pressure on prices whereas, with market power, higher infra-marginal rents will tend to increase prices.
The formation of wholesale electricity prices in Europe is influenced by a variety of factors, including the supply and demand for electricity, the cost of generation and transmission, and the availability of different types of electricity generation [11]. On the supply side, the availability of electricity is influenced by factors such as the capacity of electricity generation facilities, the availability of fuel sources, and the reliability of transmission and distribution systems [12]. On the demand side, the demand for electricity is influenced by factors such as economic activity, population growth, and changes in consumer behavior.
The cost of electricity generation and transmission is also an important factor in the formation of wholesale electricity prices [13]. This includes the cost of fuel sources, such as coal, natural gas, and renewable energy sources, as well as the cost of maintaining and operating electricity generation and transmission infrastructure [14]. The availability of different types of electricity generation can also affect the formation of wholesale electricity prices. For example, the use of renewable energy sources, such as wind and solar power, can help to reduce the overall cost of electricity generation, which may lead to lower wholesale electricity prices [15].
In the literature, there are many recent works related to energy consumption in Italy. Some researchers have especially studied this variation due to the pandemic, such as the works of Ghiani et al. [16], Bahmanyar, Estebsari, and Ernst [17], and Krarti, and Aldubyan [18]. Current studies related to the price of energy, such as the work of Moreno and Díaz [19], are rarer, and the analyses performed are in relation to previous years [20] in which there was not such a wide variation in the time series; this is the challenge of this research. One of the latest works related to electricity prices in Italy is presented by Ghanem et al. [21], wherein an evaluation is also performed due to the impact of the coronavirus disease of 2019 (COVID-19).
Different time frames, such as short-term, medium-term, and long-term, can be used for forecasting [22]. When developing a forecast, the time horizon of the forecast might impact which aspects are most important to examine. Short-term forecasting may place a greater emphasis on current market conditions and immediate supply and demand dynamics. Seasonal changes and the adoption of new technology may be more meaningful for medium-term forecasting. For long-term forecasting, it may be crucial to include macroeconomic trends and structural changes in the market. It is essential to evaluate the time horizon of the forecast and the elements that are likely to influence the forecast for that horizon [23].
The development of more accurate forecasting methodologies has become more complex and dynamic, and is a key task for investors when planning their bidding strategies to maximize their effectiveness from short, medium, and long-term horizons [24,25,26]. Finally, they help regulators ensure the long-term sufficiency and security of supply and the constancy of energy markets. For these reasons, there has been growing interest in the literature with respect to developing better price modeling and forecasting techniques [27,28,29]. Based on that, an assessment will be presented of the variation in electricity prices on the stock market in Italy, which is reflected in the increase in the cost of energy for consumers.
Summarily, the contributions of this paper are:
  • Developing a less error-prone forecasting model for electricity spot prices, which combines Facebook’s Prophet approach and the seasonal and trend decomposition using LOESS (locally estimated scatterplot smoothing);
  • Performing a pre-processing filter to reduce noise in the time series, avoiding the evaluation of abrupt variations that do not correspond to a variation trend;
  • Evaluating stock market behavior in relation to days of the week, time of year, and variation trend, based on the mean square error, root-mean-square error, and mean absolute percentage error.
The rest of this article is structured in the following way. Section 2 reviews the related works in the forecasting theme applied to electricity prices and related fields. Then, this Section describes the dataset and preprocessing steps of electricity prices in Italy. Facebook’s Prophet method and Seasonal and Trend decomposition using LOESS (STL) are introduced in Section 3. Section 4 summarizes and discusses the forecasting results. Finally, concluding remarks and potential future directions are given in Section 5.

2. Related Works

In the European Union (EU), the wholesale electricity price is decided by the last power plant needed to meet demand [9]. Wind, nuclear, coal, and gas power facilities submit bids to the electricity market, with the lowest sources chosen first. In this approach, gas plants often set prices. This approach ensures that all generators sell their power at the same price, allowing cheaper renewable energy generators to have a wider profit margin as an incentive for increasing investment in renewable energy, which the EU needs in order to accomplish its climate change goals [11].
The uncertain future value of electricity has drawn the attention of several authors who have proposed solutions to reduce the impact of price variation, by preparing the market for possible price hikes and the need for rationing [30]. To solve this issue, researchers have been conducting evaluations on the possibility of optimizing the power generation scheduling [31], optimization in equipment design [32], and improvements in the identification of faults in the electrical power system based on computer vision techniques [33], standard classifiers [34], classical convolutional neural networks [35], and using interpretable models [36]. A further possibility that has been explored is the estimation of the future value of electricity based on time series forecasting [37], which is the focus of this paper.
Defining which model is appropriate for the evaluation of electricity spot prices can be a challenging task since there are large fluctuations in the energy market due to external factors [38], as well as uncertainties regarding wind power generation [39]. Ensemble-based models that use weak learners to have a robust model are increasingly being used. More recently, the decomposition ensemble forecasting paradigm has been proposed for energy price forecasting. This approach often decomposes time series data into several components with simple structures and aggregates the forecast results from all the components to obtain a final forecast [40]. Models that are increasingly being applied for time series forecasting include the group method of data handling [41], ensemble learning models [42], long short-term memory [43], and other classical approaches [44].
Three electricity price series from Australian and Spanish electricity markets were used to verify the prediction performance of a hybrid model, with a two-layer decomposition based on the combination of variational modal decomposition (VMD) and ensemble empirical modal decomposition (EEMD) carried out on the residual term, combining the extreme learning machine (ELM) optimized by differential evolution (DE). The generalization ability and effectiveness of the proposed model were verified through tests on data with different characteristics [40]. The proposed decomposition–ensemble learning models, using randomized algorithms as individual forecasting tools, were extremely efficient and fast compared with other benchmarking models for energy forecasting the Brent crude oil spot price and the Henry Hub natural gas price [45].
The bagging, boosting, random subspace, bagging plus random subspace, and stacked generalization ensemble models were applied to predict emergency situations 1-h ahead in hydroelectric power plants, with the dam, installed at Santa Catarina state, Brazil, advancing the necessary decision-making in a situation of risk to the dam [46]. A very short-term electricity price forecasting model was developed by Bhatia et al. [47], applying ensemble learning. The model combined bagging and boosting in the stacking phase, reducing the overall variances due to the stacking process by inculcating bootstrap aggregation. Improved forecasting performance in terms of accuracy and statistical tests was obtained. Were utilized data for day-ahead electricity price, load consumption, wind generation, and other parameters, in Austria from January 2015 to December 2016.
The research of Jiang et al. [48] proposed a new decomposition–selection–ensemble forecasting system adopting multiple predictors to forecast time series, which can lift the restriction of a single model, and can objectively and adaptively select the best predictor for every sub-series via an optimal sub-model selection scheme, determining the most appropriate sub-models without being subjective. They selected two datasets of crude oil and natural gas future prices. The proposed model always achieves high-quality precision and stability relative to other models.
Ribeiro et al. [49] proposed a self-adaptive, decomposed, heterogeneous, and ensemble learning model for short-term electricity price forecasting. The coyote optimization algorithm was adopted to tune the decomposition hyperparameters in an empirical complementary ensemble manner in the preprocessing stage, and three machine learning models were designed with the intention of handling the components obtained through the signal decomposition approach with a focus on time series forecasting. The results showed the efficiency of the proposed model. A predictive model was developed by Lucas et al. [50] to capture the dynamics and identify deterministic or quasi-determinist variables which may influence the energy market prices. A total of 19 predictors were considered to develop a regression model using three machine learning algorithms. In terms of feature importance, many variables were analyzed and scores were assigned, and the ELEXON Balancing Energy Market in the United Kingdom was considered. The proposed approach could be used as a support tool for market price forecasting.
Hybrid models that use noise reduction techniques increase the model’s ability to perform accurate predictions [51]. A novel hybrid prediction model was proposed in the work of Qiao and Yang [52] using the wavelet transform (WT), stacked autoencoders, and long short-term memory. Compared with other advanced prediction models, the forecasting accuracy of the developed model is obviously improved based on some general evaluation indexes. In addition, this model overcomes the shortcomings of determining wavelet’s orders and layers based on experience. Its prediction accuracy is higher than that of using long short-term memory alone to predict residential, commercial, and industrial electricity prices [53].
Techniques combining WT with fixed and adaptive machine learning time series models have been evaluated [53]. To create an adaptive model, an extended Kalman filter was used to update the parameters continuously on the test set. This paper compared two approaches combining WT with prediction models—multicomponent and direct—applied to stationary and non-stationary data from the United Kingdom electricity demand/gas price markets. The results showed that the forecasting accuracy is significantly improved by using the WT and adaptive models. Another study using a novel hybrid method with empirical wavelet transform (EWT), support vector regression, bi-directional long short-term memory, and Bayesian optimization, was proposed to increase the accuracy of electricity price forecasting [54]. The proposed hybrid model is employed on the data gathered from the European Power Exchange Spot. Five different case studies were adopted to verify the effectiveness of the hybrid model that achieved a better forecasting performance. The use of WT is a promising alternative because it considers the signal energy to be superior to other filters [55].
In addition to noise reduction, optimizers have been applied to improve the predictive power of the model [56]. Thus, a new adaptive hybrid model based on variational mode decomposition, self-adaptive particle swarm optimization, seasonal autoregressive integrated moving average, and a deep belief network was proposed for short-term electricity price forecasting [57]. The effectiveness of the model was verified by using data from Australian, Pennsylvania–New Jersey–Maryland, and Spanish electricity markets. Results showed that the proposed model can significantly improve forecasting accuracy and stability.
Accurate forecasting of electricity spot prices is important for market participants [58], investors, and regulators [59]. A number of different methods have been proposed for this task, including time series models [60], artificial neural networks [61], and hybrid models. Ensemble-based models and decomposition ensemble forecasting have been found to be effective in forecasting electricity spot prices, as have hybrid models combining time series models with artificial neural networks. Self-adaptive, decomposed, heterogeneous and ensemble learning models have also been shown to be effective in this context. From the literature review, it is possible to observe that hybrid models and ensemble-based approaches are particularly effective for forecasting electricity spot prices, particularly in the short and medium term.
In summary, there has been a focus on finding efficient and effective methods for forecasting electricity prices in order to reduce the impact of price variation and prepare the market for potential price hikes and the need for rationing [30,37]. It is inferred from the literature review that hybrid models and ensemble-based approaches are particularly effective for forecasting electricity spot prices, particularly in the short and medium term.
This work is distinct from other research in a number of respects. The first objective is to create a less error-prone power spot price forecasting model by combining the Facebook Prophet technique with seasonal and trend decomposition using LOESS. Second, it incorporates a pre-processing filter to decrease noise in the time series and prevent the evaluation of abrupt variations that do not match a trend variation. The report concludes by evaluating the behavior of the stock market in connection to weekdays, seasons, and variance trends.

Dataset

In this paper, we utilized the European wholesale electricity price dataset to investigate the factors that influence the formation of wholesale electricity prices in Europe. This dataset includes time series data on the prices of electricity that are traded on the wholesale market in Europe, as well as information on the supply and demand for electricity, the cost of generation and transmission, and the availability of different types of electricity generation. For time series evaluation, the stock values of the electricity market of Italy from 1 January 2015 to 30 November 2022 were used, corresponding to 2890 observations (https://ember-climate.org/data-catalogue/european-wholesale-electricity-price-data/ (accessed on 23 December 2022)), corresponding to a daily record of the price variation, where the values are presented in megawatt-hour (MWh).
Using statistical and machine learning techniques, we analyzed the European wholesale electricity price dataset to understand trends and patterns in the data and to make predictions about future electricity prices [62]. Our analysis aims to identify the key factors that contribute to the formation of wholesale electricity prices in Europe and to provide insights into the factors that may impact the future direction of the electricity market.

3. Facebook’s Prophet Method

Facebook Prophet is a time series data forecasting tool created by Facebook’s Core Data Science team. It is constructed on top of the open-source programming language R and is intended to be simple to use while producing credible forecasts, according to [63]. The Prophet technique is based on the assumption that time series data can be described as a mixture of numerous characteristics, such as trends, seasonality, and holidays [64]. The math powering Facebook Prophet entails identifying and modeling these components using a number of mathematical and statistical methodologies: (i) linear regression is used to model the trend component of a time series; (ii) Fourier series are used to model the seasonality component of a time series; and (iii) additive models are used to describe the holidays component of a time series.
A linear or nonlinear regression model is often used to discover and model any underlying patterns or trends in the data for the trend component of the time series. A linear regression model’s equation can be given by:
y = β 0 + β 1 x + ϵ ,
where y is the dependent variable (i.e., the time series), x is the independent variable (i.e., the time of the data point), β 0 and β 1 are the coefficients of the model that are determined by the regression, and ϵ is the error term representing the difference between the predicted value of y and the actual value.
A Fourier series, a mathematical tool for describing periodic functions, is generally used to model the seasonality component of a time series. A Fourier series can be represented as the sum of sines and cosines:
f ( t ) = a 0 + k = 1 n a k cos 2 π k t T + b k sin 2 π k t T ,
where f ( t ) is the time series, t is the time of the data point, T is the period of the time series, n is the number of terms in the series, a 0 is the average value of the time series, a k and b k are the coefficients of the sines and cosines that are determined by the Fourier analysis.
The holidays component of the time series is often modeled using a generative additive model (GAM), a statistical model that allows for the insertion of additional elements that may influence the time series. According to [65], a GAM is a flexible and non-parametric regression model that may be used to match complex data patterns. This is accomplished by representing the relationship between the response variable (the time series data) and the predictor variables (the factors influencing the data) as a sum of smooth functions. The GAM used by the Prophet method can be expressed as follows:
y ( t ) = g 1 ( t ) + g 2 ( t ) + + g k ( t ) + ϵ ( t ) ,
where y ( t ) is the response variable (the time series data), g i ( t ) is the smooth function that models the i th predictor variable, and ϵ ( t ) is the error term that represents the random noise or variation in the data.
Smooth functions g i ( t ) can be described using a number of basis functions that can capture the data’s complexity, such as splines or Fourier series. Maximum likelihood estimation or other optimization approaches can be used to estimate the parameters of these basis functions.
Once the GAM has been fitted to the data, it may be used to predict future values of t by evaluating the smooth functions g i ( t ) . This will generate a forecast of the time series data, as well as uncertainty intervals that can be used to assess the forecast’s trustworthiness. After modeling these components, they can be integrated to generate a single, composite model of the time series (as is presented in Figure 1). Based on the detected and modeled underlying trends, patterns, and factors, this model can then be used to forecast future values of the time series.
The math behind the Facebook Prophet approach is based on the usage of generalized additive models, which are flexible and non-parametric regression models that may be utilized to model complex data patterns. The Prophet technique can generate trustworthy projections of time series data by utilizing these models. The method, in addition to forecasting, offers several other properties that can be beneficial for evaluating time series data. It may, for example, detect and model the impacts of holidays and other special events on data, and it can give visualizations of the data and the fitted model to aid comprehension.

3.1. Seasonal and Trend Decomposition Using LOESS (STL)

STL is a method for decomposing a time series into its trend, seasonality, and residual components. It entails applying a smoothing function to the data and then iteratively deleting the fitted curve from the data to extract the trend and seasonality components. The residuals, or the difference between the original data and the fitted curve, show noise or irregularity in the data [66].
Smoothing functions that can be employed in the STL approach include the LOESS and Savitzky-Golay (SG) filters. LOESS is a non-parametric smoothing approach that fits a smooth curve to the data using local regression. It is good at smoothing noisy data and is more adaptable than other smoothing approaches. The SG filter is a sort of digital smoothing filter that fits a polynomial function to a window of data points and uses the polynomial value at the window’s center point as the smoothed value. It is effective in removing noise while maintaining the underlying trend and structure of the data, according to [67].
This study focused on STL utilizing LOESS, by fitting a smooth curve to each subset of the data separately and then merging these curves to obtain a global fit. This enables the LOESS approach to capture complicated patterns in data that would be difficult to express using a basic mathematical model. To utilize the LOESS method to fit a smooth curve to these data, we must first define the number of subsets to be employed. Typically, this is determined by the quantity of data points and the desired smoothness of the curve. If we have 100 data points and want a somewhat smooth curve, we may utilize 10 subsets. The data are separated into the required number of subgroups when the number of subsets is specified. If we utilize ten subsets, for example, we would divide the data into ten groups of ten data points each.
In the context of STL decomposition, the LOESS method is used in STL decomposition to fit separate smooth curves to the seasonal, trend, and residual components of time series data. These curves are then integrated to form a global fit to the data, which can be used to construct forecasts. To execute STL decomposition, the period of the seasonal component must first be specified, which is often the number of time units (such as months or years) in a single cycle of the seasonal pattern. Once the seasonal component’s period has been set, the STL technique proceeds as follows:
  • The time series data are separated into seasons, each with a set number of time units. For example, if the data includes monthly retail sales with a seasonal span of 12 months (1 year), each season would have 12 months of data;
  • Each season’s data are fitted with an LOESS smooth curve independently. This generates a sequence of smooth curves, one for each data season;
  • Step 2—smooth curves are then joined to give a global fit to the data. The seasonal component of the time series is represented by this global fit;
  • To create a detrended series, the seasonal component is eliminated from the original time series data. This detrended series only includes the data’s trend and residual components;
  • The detrended series is then fitted with an LOESS smooth curve. This smooth curve represents the time series’ trend component;
  • The residual component is then calculated by subtracting the trend component from the detrended series. These are the data that cannot be explained by seasonal or trend components.
Once the seasonal, trend, and residual components of the time series data have been extracted, they can be studied separately to acquire a better understanding of the data’s underlying patterns and trends. The trend component, for example, can indicate key patterns that repeat at regular intervals, whereas the seasonal component can disclose important patterns that repeat at regular intervals.
The residual component, on the other hand, can provide information about random noise or volatility in the data that the seasonal or trend components cannot explain. This can be helpful in determining the dependability of seasonal and trend estimations, as well as finding potential outliers or abnormalities in the data.
The STL approach can be used to forecast time series data after the components have been removed and examined. This is accomplished by extrapolating the smooth curves fitted to the data in steps 2 and 5. The seasonal and trend curves are projected to future time points and then put together to give a time series data forecast. The equation for STL decomposition is as follows:
y t = S t + T t + R t ,
where y t is the original time series data, S t is the seasonal component, T t is the trend component, and R t is the residual component.
Seasonal decomposition with LOESS is accomplished mathematically by fitting a smooth curve to the data using locally weighted regression. This is often accomplished using a weighted least squares method, with the weights determined based on the data’s local features. The equation for locally weighted regression is as follows:
y = f ( x ) + ϵ ,
where y is the dependent variable (i.e., the time series), f ( x ) is the locally weighted regression curve, and ϵ is the error term representing the difference between the predicted value of y and the actual value.
The locally weighted regression curve can be estimated by:
min i X w i ( y i θ T x i ) 2 ,
where x is the independent variable (i.e., the time of the data point), w is a non-negative weight associated with the training point. The points in the training set that are close to x are given a higher “preference" than the points that are far away from x. As a result, the value of w i is large for x lying close to the query point x. The coefficients, associated with a certain training point x are typically chosen as:
w i = exp ( x i x ) T ( x i x ) 2 τ 2 ,
where τ is the bandwidth parameter and controls the rate at which weight falls with distance from x. The parameters can be calculated by the closed-form solution:
θ = ( X T W X ) 1 ( X T W Y )
where X = { x 1 , x 2 , , x n } , Y = { y 1 , y 2 , , y n } , and W = { w 1 , w 2 , , w n } .
Once the smooth curve has been fitted to the data, we can use the curve’s features to identify the individual components of the time series. Fitting a linear or nonlinear regression model to the curve and detecting the overall pattern of the data over time, for example, might be used to estimate the trend component. Seasonality can be detected by recognizing any recurrent patterns in data that occur at regular intervals, such as monthly swings in sales data. The noise component can be identified by looking for any random or unpredictable fluctuations in the data that do not follow any underlying pattern. A high-level of the method is presented in Figure 2.
Seasonal and trend decomposition can aid in comprehending and evaluating time series data. It can assist in identifying relevant patterns and trends in data that can be used to make informed judgments. Statistical techniques like as the STL method and the moving average method can be used to divide data into the seasonal, trend, and residual components, allowing for a better understanding of the underlying patterns in the data.
We can use the strengths of both methodologies to achieve a more accurate and robust time series analysis by combining STL and Facebook Prophet. STL can be used to break down data into its constituent parts, which can then be fed into the Prophet model. This can increase forecast accuracy and help us better understand the variables driving the data. Furthermore, the Prophet model’s flexibility allows us to incorporate extra information, such as holidays and other special events, which can boost forecast accuracy even further.
For a complete evaluation of the time series, it is necessary to analyze the influence of the change in the predicted steps forward and to use different sampling windows with n data points, every Δ t , until time t. Whereas the more steps forward (P) that are predicted ( t + P ), the greater could be a challenging task, and using a small data series may not result in a representative analysis as it is not possible to evaluate seasonality due to the different times of the year. Based on that, the dataset adopted for the forecast can be defined as:
x = [ x t n 1 Δ t , , x t Δ t , x t ] ,
where a predicted value can be defined as:
y ( t + P ) = f ( x ) ,
where y t + P is the predicted value for the time series, and f ( x ) a mapping function considering n regressors.

3.2. Performance Metrics

In this paper the mean square error (MSE), root-mean-square error (RMSE), and mean absolute percentage error (MAPE) were considered, given by:
MSE = 1 n i = 1 n y i y ^ i 2
RMSE = 1 n i = 1 n y i y ^ i 2
MAPE % = 1 n i = 1 n y i y ^ i y i × 100 ,
where n is the length of the original signal, y i is the observed value, and y ^ i is the predicted output [68]. The simulations were performed using the Google Colab platform (https://colab.research.google.com/ (accessed on 23 December 2022)).

4. Analysis of Results

The evaluation of electricity spot price variation and prediction of future values of Italy is presented in this section. To reduce the variation of peaks that are not representative, the decomposition STL technique is used. The first analysis are performed with respect to the pre-processing of the time series.

4.1. Pre-Processing

One of the major challenges in time series forecasting is the presence of oscillations (which in some cases can be considered noise), resulting from variation that is intrinsic to the data used. Using band-pass filtering techniques to reduce high frequencies can impact the loss of signal characteristics, then techniques based on evaluation of the progression of data in the time series, are more promising for this type of evaluation. In this paper, to reduce these oscillations the STL was used for pre-processing the signal. Initially, the seasonal and residue variation in the STL decomposition were analyzed, as presented in Figure 3.
The price variation can be observed when large market variations occur in stock values, these seasonal variations tend to return to the time series variation trend. This makes it even more difficult to predict the future value of electricity considering the large fluctuations that occurred in the last year under evaluation. In addition to the seasonality in the variation that occurs in the stock market, there is a residue generated by this variation which is also present in the time series.
Considering these variations, the trend value was analyzed, this value was used in this paper as the observed value to forecast the electricity price. To use the trend from the STL, it is necessary to define two parameters which are the length of the seasonal smoother (LSS) and the length of the trend smoother (LTS). The results of the STL decomposition analysis are presented in Figure 4 in relation to the LTS of the time series. The variation of the value of LSS did not result in a visual change; for this reason, these results are not presented in graphical form.
To decompose the signal, it is necessary that the LTS values are odd, for this reason, the variation is presented with a step of 50 with the first value at 11, considering that it is not possible to perform the decomposition of the LTS equal to 1. From an LTS value equal to or greater than 51, the peaks were attenuated and this information was lost. Having these preliminary results, a value of LTS equal to 51 was considered the maximum possible value in the decomposition, because an abrupt decomposition causes the signal to lose its characteristics.
Considering the focus on analyzing trend variation in electricity prices, it is promising to use STL in the time series decomposition. Using the STL, oscillations are not considered and a more assertive forecast can be made based on the trend of variation of the electricity price. Based on the resulting trend signal, Facebook’s Prophet was used for forecasting.

4.2. Facebook’s Prophet

In a preliminary one-step analysis (one observation to predict), Facebook’s Prophet results in the forecast presented in Figure 5, wherein the black points are the data used to train the model, the blue line is the forecasting results, and the light blue area represents the confidence intervals.
In the analysis of the forecast about future prices, it is possible to see that there is a tendency the increase the energy bill, the big variation that occurred in the second semester of 2022 shows the volatility in the variation of the electric energy values at the beginning of winter, this variation worries the consumers since the gas value also keeps increasing. As electricity is an alternative source for heating homes in the winter in northern countries, this upward trend has a direct impact on people’s lives.
To further improve the forecasting ability, the results of the error calculation with respect to the STL decomposition are presented in Table 1. The best error results in each LTS configuration are shown in bold, and the best overall value is shown underlined. Since an LSS lower than 21 and greater than 61 would cause the error values to increase, only the values up to this limit are presented.
When more observations are predicted relative to observed values, the model may have more difficulty predicting values with acceptable error. In a step-ahead analysis, this occurs because when a long-term evaluation is performed, the predicted values that do not match the observed reality (error) are accumulated; thus, long-term analysis is more difficult to perform when there is a high nonlinearity in the time series. However, it is possible to have a longer horizon, which in terms of energy planning is promising. Table 2 shows the forecast error values in relation to the use of more observations.
Considering that the observations are daily, 50 observations represent having the ability to forecast the increase in the spot market price of energy 50 days ahead. In terms of market evaluation, one observation (one day ahead) would be promising for any course of action; however, when the issue of energy planning is observed, considering that electric energy is an alternative energy source to the use of gas for heating purposes, the ideal is to observe a forecast of at least 50 days, since this corresponds to the period of greatest need for heating during the winter. The STL Facebook’s Prophet results considering 50 observations are presented in Figure 6. Using 50 observations means assessing to predict the spot market value 50 days ahead.
It was observed that when many observations are used for forecasting and few for training, the model tended to have lower error results, however, the forecast shows that these results occurred because with fewer data for training the model became closer to the exponential energy increase, considering that there are political factors that influence this variation, a long term forecast does not correspond to a guarantee of accuracy, since besides market variations other factors have an influence on the long term price of electricity.
Results that are interesting in terms of model evaluation are the resulting forecast components shown in Figure 7. It can be observed that there was a trend of energy price increase from the year 2021 that was maintained in the year 2022, and based on the results obtained, it will possibly be maintained in 2023. The weekly variation shows that in the middle of the week the highest peaks of variation, with the lowest values being entered on Tuesdays. This indicates that typically the market reacts with an increase in stock purchases after a drop in its value, an expected result in relation to the stock market. The highest share price values occur in the months of September and December. This variation possibly occurs at the end of summer and the beginning of winter, which causes the market value to fluctuate considerably.
The results showed that the lowest errors in the forecast were obtained when the length of the trend smoother (LTS) was equal to 21 and the length of the seasonal smoother (LSS) was equal to 21 or 41. Specifically, the mean squared error (MSE) and root mean squared error (RMSE) values were 4705.48 and 68.60, respectively, while the mean absolute percentage error (MAPE) was 20.56%. These values represent a significant improvement over the other configurations tested, indicating that the forecast was more accurate when these parameter values were used

4.3. Discussion

The results indicate that there is a tendency for electricity prices to increase, with a particularly large variation occurring in the second semester of 2022. This increase in prices is likely due to a combination of factors, including the volatility of the energy market, the rising cost of fuel sources, and the increasing demand for electricity. The variation in prices during the winter months is of particular concern to consumers, as higher electricity prices may impact their ability to affordably heat their homes.
Our results indicated that, using an LTS of 21 and an LSS of 21, resulted in the best overall error values, with an MSE of 4705.48, an RMSE of 68.60, and a MAPE of 20.56. These findings suggest that the STL decomposition can be a useful tool for improving the accuracy of electricity price forecasting, as it allows for a more nuanced analysis of the time series data.
Overall, our analysis of the European wholesale electricity price data highlights the importance of understanding the factors that influence the formation of electricity prices and the potential benefits of utilizing statistical and machine learning techniques to make more accurate forecasts. These insights may be useful for a variety of stakeholders, including electricity generators, transmission and distribution companies, and electricity consumers, as well as policymakers seeking to optimize the functioning of the electricity market in Europe.

4.4. Short-Term Evaluation

The selection of the time window used for forecasting influences the forecast’s capability. When fewer data are observed, the model tends to require less computational effort. This issue raises a reflection on which time window is adequate to perform the market forecast, since reducing this window can lead to an improvement in the error metrics. Nevertheless, these evaluations are not representative in terms of the seasonality of the series, since longer times must be observed for a complete market evaluation. Table 3 presents an evaluation of the forecasts considering variations in the time window used.
When the time window is increased, the error signal (residual) increases until it reaches its maximum (in this evaluation) at 365 observations (at which point predictions are ineffective, since the MAPE error is 58.96%). When 1095 observations are used (3 years), lower error values are found, and within this perspective, an optimization analysis could be performed to determine the optimal number of observations. Since the purpose of this paper was to evaluate the complete variation history to assess the seasonality of the variations, this was not performed. Figure 8 shows the use of STL to filter the signal and Prophet to perform the forecast considering 90 observations.
The evaluation of a short period of time results in a lower forecast error of the model in view of the fact that the predictions only take into account momentary variations, and do not consider the seasonal variations of the market. In this sense using the entire dataset (with 2890 observations) is more challenging. Still, it results in an appropriate reflection of the price variation, and the energy cost scenario compared to previous years.

5. Conclusions and Future Directions of Research

In this study, we employed the decomposition ensemble forecasting paradigm, which decomposes time series data into simple components and aggregates the forecast results from all components to obtain a final forecast. We also utilized the STL technique for pre-processing the data to reduce oscillations and better understand the trends in the data. By defining appropriate values for the length of the seasonal smoother and the trend smoother, we were able to extract the trend in the data and use it as the observed value for forecasting with Facebook’s Prophet model.
Our findings showed that using STL in the decomposition of the time series can provide a better performance forecast of electricity prices in Italy by focusing on the trend of variation rather than considering oscillations as noise. This approach can be a promising tool for market participants and regulators to develop profitable strategies and ensure the security and stability of energy markets.
Future research in this area could include further exploration of different ensemble-based models and their effectiveness in forecasting electricity prices, as well as the development of improved techniques for decomposing and analyzing time series data. Additionally, further work could be undertaken to understand the impact of political and other external factors on the forecasting performance of these models. Future work can be conducted with state-of-the-art models, such as extreme gradient boosting (XGBoost) trees among other models based on ensemble learning methods that have been successfully applied by other authors.

Author Contributions

Writing—original draft, software, S.F.S.; Writing—original draft, methodology, and formal analysis, L.O.S.; Writing—review and editing, V.C.M.; Supervision, L.d.S.C. All authors have read and agreed to the published version of the manuscript.

Funding

The authors Mariani and Coelho thank the National Council of Scientific and Technologic Development of Brazil—CNPq (Grants number: 307958/2019-1-PQ, 307966/2019-4-PQ, and 408164/2021-2-Universal), and Fundação Araucária PRONEX Grant 042/2018 for its financial support of this work.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data to support the results presented in this paper and the proposed model are available at: https://github.com/SFStefenon/STLprophet/ (accessed on 23 December 2022).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Micheli, L.; Theristis, M.; Talavera, D.L.; Nofuentes, G.; Stein, J.S.; Almonacid, F.; Fernández, E.F. The economic value of photovoltaic performance loss mitigation in electricity spot markets. Renew. Energy 2022, 199, 486–497. [Google Scholar] [CrossRef]
  2. Song, S.Y.; Leng, H. Modeling the Household Electricity Usage Behavior and Energy-Saving Management in Severely Cold Regions. Energies 2020, 13, 5581. [Google Scholar] [CrossRef]
  3. Weron, R. Electricity price forecasting: A review of the state-of-the-art with a look into the future. Int. J. Forecast. 2014, 30, 1030–1081. [Google Scholar] [CrossRef] [Green Version]
  4. Lago, J.; Marcjasz, G.; De Schutter, B.; Weron, R. Forecasting day-ahead electricity prices: A review of state-of-the-art algorithms, best practices and an open-access benchmark. Appl. Energy 2021, 293, 116983. [Google Scholar] [CrossRef]
  5. Jędrzejewski, A.; Lago, J.; Marcjasz, G.; Weron, R. Electricity Price Forecasting: The Dawn of Machine Learning. IEEE Power Energy Mag. 2022, 20, 24–31. [Google Scholar] [CrossRef]
  6. Wong-Parodi, G.; Dale, L.; Lekov, A. Comparing price forecast accuracy of natural gas models and futures markets. Energy Policy 2006, 34, 4115–4122. [Google Scholar] [CrossRef] [Green Version]
  7. Martinez-Anido, C.B.; Brinkman, G.; Hodge, B.M. The impact of wind power on electricity prices. Renew. Energy 2016, 94, 474–487. [Google Scholar] [CrossRef] [Green Version]
  8. Lehna, M.; Scheller, F.; Herwartz, H. Forecasting day-ahead electricity prices: A comparison of time series and neural network models taking external regressors into account. Energy Econ. 2022, 106, 105742. [Google Scholar] [CrossRef]
  9. Bosco, B.P.; Parisio, L.P.; Pelagatti, M.M. Deregulated wholesale electricity prices in Italy: An empirical analysis. Int. Adv. Econ. Res. 2007, 13, 415–432. [Google Scholar] [CrossRef]
  10. Bahn, O.; Samano, M.; Sarkis, P. Market power and renewables: The effects of ownership transfers. Energy J. 2021, 42. [Google Scholar] [CrossRef]
  11. Creti, A.; Fumagalli, E.; Fumagalli, E. Integration of electricity markets in Europe: Relevant issues for Italy. Energy Policy 2010, 38, 6966–6976. [Google Scholar] [CrossRef]
  12. Stefenon, S.F.; Seman, L.O.; Sopelsa Neto, N.F.; Meyer, L.H.; Nied, A.; Yow, K.C. Echo state network applied for classification of medium voltage insulators. Int. J. Electr. Power Energy Syst. 2022, 134, 107336. [Google Scholar] [CrossRef]
  13. Ye, H.; Ge, Y.; Shahidehpour, M.; Li, Z. Uncertainty Marginal Price, Transmission Reserve, and Day-Ahead Market Clearing With Robust Unit Commitment. IEEE Trans. Power Syst. 2017, 32, 1782–1795. [Google Scholar] [CrossRef] [Green Version]
  14. Wang, J.; Zhong, H.; Xia, Q.; Kang, C. Optimal Planning Strategy for Distributed Energy Resources Considering Structural Transmission Cost Allocation. IEEE Trans. Smart Grid 2018, 9, 5236–5248. [Google Scholar] [CrossRef]
  15. Amin, U.; Hossain, M.J.; Tushar, W.; Mahmud, K. Energy Trading in Local Electricity Market With Renewables—A Contract Theoretic Approach. IEEE Trans. Ind. Inform. 2021, 17, 3717–3730. [Google Scholar] [CrossRef]
  16. Ghiani, E.; Galici, M.; Mureddu, M.; Pilo, F. Impact on electricity consumption and market pricing of energy and ancillary services during pandemic of COVID-19 in Italy. Energies 2020, 13, 3357. [Google Scholar] [CrossRef]
  17. Bahmanyar, A.; Estebsari, A.; Ernst, D. The impact of different COVID-19 containment measures on electricity consumption in Europe. Energy Res. Soc. Sci. 2020, 68, 101683. [Google Scholar] [CrossRef] [PubMed]
  18. Krarti, M.; Aldubyan, M. Review analysis of COVID-19 impact on electricity demand for residential buildings. Renew. Sustain. Energy Rev. 2021, 143, 110888. [Google Scholar] [CrossRef] [PubMed]
  19. Moreno, B.; Díaz, G. The impact of virtual power plant technology composition on wholesale electricity prices: A comparative study of some European Union electricity markets. Renew. Sustain. Energy Rev. 2019, 99, 100–108. [Google Scholar] [CrossRef]
  20. Lam, L.H.; Ilea, V.; Bovo, C. Impact of the price coupling of regions project on the day-ahead electricity market in Italy. In Proceedings of the IEEE Manchester PowerTech, Manchester, UK, 18–22 June 2017; pp. 1–6. [Google Scholar] [CrossRef]
  21. Ghanem, S.; Fandi, G.; Krepl, V.; Husein, T.; Rzek, O.; Muller, Z.; Kyncl, J.; Tlustỳ, J.; Smutka, L. The Impact of COVID-19 on Electricity Prices in Italy, the Czech Republic, and China. Appl. Sci. 2021, 11, 8793. [Google Scholar] [CrossRef]
  22. Jeong, J.; Pitchik, H.O.; Fink, G. Short-term, medium-term and long-term effects of early parenting interventions in low-and middle-income countries: A systematic review. BMJ Glob. Health 2021, 6, e004067. [Google Scholar] [CrossRef]
  23. Van den Broeke, M.; De Baets, S.; Vereecke, A.; Baecke, P.; Vanderheyden, K. Judgmental forecast adjustments over different time horizons. Omega 2019, 87, 34–45. [Google Scholar] [CrossRef]
  24. Arvanitidis, A.I.; Bargiotas, D.; Kontogiannis, D.; Fevgas, A.; Alamaniotis, M. Optimized Data-Driven Models for Short-Term Electricity Price Forecasting Based on Signal Decomposition and Clustering Techniques. Energies 2022, 15, 7929. [Google Scholar] [CrossRef]
  25. Jan, F.; Shah, I.; Ali, S. Short-Term Electricity Prices Forecasting Using Functional Time Series Analysis. Energies 2022, 15, 3423. [Google Scholar] [CrossRef]
  26. Zeng, S.; Su, B.; Zhang, M.; Gao, Y.; Liu, J.; Luo, S.; Tao, Q. Analysis and forecast of China’s energy consumption structure. Energy Policy 2021, 159, 112630. [Google Scholar] [CrossRef]
  27. Loutfi, A.A.; Sun, M.; Loutfi, I.; Solibakke, P.B. Empirical study of day-ahead electricity spot-price forecasting: Insights into a novel loss function for training neural networks. Appl. Energy 2022, 319, 119182. [Google Scholar] [CrossRef]
  28. Hernandez, L.; Baladron, C.; Aguiar, J.M.; Carro, B.; Sanchez-Esguevillas, A.J.; Lloret, J.; Massana, J. A Survey on Electric Power Demand Forecasting: Future Trends in Smart Grids, Microgrids and Smart Buildings. IEEE Commun. Surv. Tutor. 2014, 16, 1460–1495. [Google Scholar] [CrossRef]
  29. Kontogiannis, D.; Bargiotas, D.; Daskalopulu, A.; Arvanitidis, A.I.; Tsoukalas, L.H. Error Compensation Enhanced Day-Ahead Electricity Price Forecasting. Energies 2022, 15, 1466. [Google Scholar] [CrossRef]
  30. Amjady, N.; Hemmati, M. Energy price forecasting - problems and proposals for such predictions. IEEE Power Energy Mag. 2006, 4, 20–29. [Google Scholar] [CrossRef]
  31. dos Santos, K.V.; Colonetti, B.; Finardi, E.C.; Zavala, V.M. Accelerated dual dynamic integer programming applied to short-term power generation scheduling. Int. J. Electr. Power Energy Syst. 2023, 145, 108689. [Google Scholar] [CrossRef]
  32. Stefenon, S.F.; Seman, L.O.; Pavan, B.A.; Ovejero, R.G.; Leithardt, V.R.Q. Optimal design of electrical power distribution grid spacers using finite element method. IET Gener. Transm. Distrib. 2022, 16, 1865–1876. [Google Scholar] [CrossRef]
  33. Stefenon, S.F.; Corso, M.P.; Nied, A.; Perez, F.L.; Yow, K.C.; Gonzalez, G.V.; Leithardt, V.R.Q. Classification of insulators using neural network based on computer vision. IET Gener. Transm. Distrib. 2021, 16, 1096–1107. [Google Scholar] [CrossRef]
  34. Corso, M.P.; Perez, F.L.; Stefenon, S.F.; Yow, K.C.; Ovejero, R.G.; Leithardt, V.R.Q. Classification of Contaminated Insulators Using k-Nearest Neighbors Based on Computer Vision. Computers 2021, 10, 112. [Google Scholar] [CrossRef]
  35. Stefenon, S.F.; Yow, K.C.; Nied, A.; Meyer, L.H. Classification of distribution power grid structures using inception v3 deep neural network. Electr. Eng. 2022, 104, 4557–4569. [Google Scholar] [CrossRef]
  36. Stefenon, S.F.; Singh, G.; Yow, K.C.; Cimatti, A. Semi-ProtoPNet Deep Neural Network for the Classification of Defective Power Grid Distribution Structures. Sensors 2022, 22, 4859. [Google Scholar] [CrossRef] [PubMed]
  37. Nowotarski, J.; Weron, R. Recent advances in electricity price forecasting: A review of probabilistic forecasting. Renew. Sustain. Energy Rev. 2018, 81, 1548–1568. [Google Scholar] [CrossRef]
  38. Wang, H.; Wang, C.; Zhao, W. Decision on Mixed Trading between Medium- and Long-Term Markets and Spot Markets for Electricity Sales Companies under New Electricity Reform Policies. Energies 2022, 15, 9568. [Google Scholar] [CrossRef]
  39. Goodarzi, S.; Perera, H.N.; Bunn, D. The impact of renewable energy forecast errors on imbalance volumes and electricity spot prices. Energy Policy 2019, 134, 110827. [Google Scholar] [CrossRef]
  40. Qin, Q.; Xie, K.; He, H.; Li, L.; Chu, X.; Wei, Y.M.; Wu, T. An effective and robust decomposition-ensemble energy price forecasting paradigm with local linear prediction. Energy Econ. 2019, 83, 402–414. [Google Scholar] [CrossRef]
  41. Sopelsa Neto, N.F.; Stefenon, S.F.; Meyer, L.H.; Ovejero, R.G.; Leithardt, V.R.Q. Fault Prediction Based on Leakage Current in Contaminated Insulators Using Enhanced Time Series Forecasting Models. Sensors 2022, 22, 6121. [Google Scholar] [CrossRef]
  42. Stefenon, S.F.; Bruns, R.; Sartori, A.; Meyer, L.H.; Ovejero, R.G.; Leithardt, V.R.Q. Analysis of the Ultrasonic Signal in Polymeric Contaminated Insulators Through Ensemble Learning Methods. IEEE Access 2022, 10, 33980–33991. [Google Scholar] [CrossRef]
  43. Fernandes, F.; Stefenon, S.F.; Seman, L.O.; Nied, A.; Ferreira, F.C.S.; Subtil, M.C.M.; Klaar, A.C.R.; Leithardt, V.R.Q. Long short-term memory stacking model to predict the number of cases and deaths caused by COVID-19. J. Intell. Fuzzy Syst. 2022, 6, 6221–6234. [Google Scholar] [CrossRef]
  44. Medeiros, A.; Sartori, A.; Stefenon, S.F.; Meyer, L.H.; Nied, A. Comparison of artificial intelligence techniques to failure prediction in contaminated insulators based on leakage current. J. Intell. Fuzzy Syst. 2022, 42, 3285–3298. [Google Scholar] [CrossRef]
  45. Tang, L.; Wu, Y.; Yu, L. A randomized-algorithm-based decomposition-ensemble learning methodology for energy price forecasting. Energy 2018, 157, 526–538. [Google Scholar] [CrossRef]
  46. Stefenon, S.F.; Ribeiro, M.H.D.M.; Nied, A.; Yow, K.C.; Mariani, V.C.; dos Santos Coelho, L.; Seman, L.O. Time series forecasting using ensemble learning methods for emergency prevention in hydroelectric power plants with dam. Electr. Power Syst. Res. 2022, 202, 107584. [Google Scholar] [CrossRef]
  47. Bhatia, K.; Mittal, R.; Varanasi, J.; Tripathi, M. An ensemble approach for electricity price forecasting in markets with renewable energy resources. Util. Policy 2021, 70, 101185. [Google Scholar] [CrossRef]
  48. Jiang, P.; Liu, Z.; Wang, J.; Zhang, L. Decomposition-selection-ensemble forecasting system for energy futures price forecasting based on multi-objective version of chaos game optimization algorithm. Resour. Policy 2021, 73, 102234. [Google Scholar] [CrossRef]
  49. Ribeiro, M.H.D.M.; Stefenon, S.F.; de Lima, J.D.; Nied, A.; Mariani, V.C.; Coelho, L.d.S. Electricity Price Forecasting Based on Self-Adaptive Decomposition and Heterogeneous Ensemble Learning. Energies 2020, 13, 5190. [Google Scholar] [CrossRef]
  50. Lucas, A.; Pegios, K.; Kotsakis, E.; Clarke, D. Price Forecasting for the Balancing Energy Market Using Machine-Learning Regression. Energies 2020, 13, 5420. [Google Scholar] [CrossRef]
  51. Stefenon, S.F.; Kasburg, C.; Nied, A.; Klaar, A.C.R.; Ferreira, F.C.S.; Branco, N.W. Hybrid deep learning for power generation forecasting in active solar trackers. IET Gener. Transm. Distrib. 2020, 14, 5667–5674. [Google Scholar] [CrossRef]
  52. Qiao, W.; Yang, Z. Forecast the electricity price of US using a wavelet transform-based hybrid model. Energy 2020, 193, 116704. [Google Scholar] [CrossRef]
  53. Nguyen, H.T.; Nabney, I.T. Short-term electricity demand and gas price forecasts using wavelet transforms and adaptive models. Energy 2010, 35, 3674–3685. [Google Scholar] [CrossRef] [Green Version]
  54. Cheng, H.; Ding, X.; Zhou, W.; Ding, R. A hybrid electricity price forecasting model with Bayesian optimization for German energy exchange. Int. J. Electr. Power Energy Syst. 2019, 110, 653–666. [Google Scholar] [CrossRef]
  55. Stefenon, S.F.; Freire, R.Z.; Meyer, L.H.; Corso, M.P.; Sartori, A.; Nied, A.; Klaar, A.C.R.; Yow, K.C. Fault detection in insulators based on ultrasonic signal processing using a hybrid deep learning technique. IET Sci. Meas. Technol. 2020, 14, 953–961. [Google Scholar] [CrossRef]
  56. Stefenon, S.F.; Kasburg, C.; Freire, R.Z.; Silva Ferreira, F.C.; Bertol, D.W.; Nied, A. Photovoltaic power forecasting using wavelet Neuro-Fuzzy for active solar trackers. J. Intell. Fuzzy Syst. 2021, 40, 1083–1096. [Google Scholar] [CrossRef]
  57. Zhang, J.; Tan, Z.; Wei, Y. An adaptive hybrid model for short term electricity price forecasting. Appl. Energy 2020, 258, 114087. [Google Scholar] [CrossRef]
  58. Kostrzewski, M.; Kostrzewska, J. The Impact of Forecasting Jumps on Forecasting Electricity Prices. Energies 2021, 14, 336. [Google Scholar] [CrossRef]
  59. Tesfamicael, A.D.; Liu, V.; Mckague, M.; Caelli, W.; Foo, E. A Design for a Secure Energy Market Trading System in a National Wholesale Electricity Market. IEEE Access 2020, 8, 132424–132445. [Google Scholar] [CrossRef]
  60. Imani, M.H.; Bompard, E.; Colella, P.; Huang, T. Forecasting Electricity Price in Different Time Horizons: An Application to the Italian Electricity Market. IEEE Trans. Ind. Appl. 2021, 57, 5726–5736. [Google Scholar] [CrossRef]
  61. Li, Y.; Yu, N.; Wang, W. Machine Learning-Driven Virtual Bidding With Electricity Market Efficiency Analysis. IEEE Trans. Power Syst. 2022, 37, 354–364. [Google Scholar] [CrossRef]
  62. Grzanić, M.; Morales, J.M.; Pineda, S.; Capuder, T. Electricity Cost-Sharing in Energy Communities Under Dynamic Pricing and Uncertainty. IEEE Access 2021, 9, 30225–30241. [Google Scholar] [CrossRef]
  63. Taylor, S.J.; Letham, B. Forecasting at Scale. Am. Stat. 2018, 72, 37–45. [Google Scholar] [CrossRef]
  64. Shohan, M.J.A.; Faruque, M.O.; Foo, S.Y. Forecasting of Electric Load Using a Hybrid LSTM-Neural Prophet Model. Energies 2022, 15, 2158. [Google Scholar] [CrossRef]
  65. Hastie, T. Gam: Generalized Additive Models. 2011. Available online: http://CRAN.R-project.org/package=gam (accessed on 1 December 2022).
  66. Cleveland, R.B.; Cleveland, W.S.; McRae, J.E.; Terpenning, I. STL: A Seasonal-Trend Decomposition Procedure Based on Loess (with Discussion). J. Off. Stat. 1990, 6, 3–73. [Google Scholar]
  67. Wu, D.; Wang, Y.; Li, L.; Lu, P.; Liu, S.; Dai, C.; Pan, Y.; Zhang, Z.; Lin, Z.; Yang, L. Demand response ability evaluation based on seasonal and trend decomposition using LOESS and S–G filtering algorithms. Energy Rep. 2022, 8, 292–299. [Google Scholar] [CrossRef]
  68. Branco, N.W.; Cavalca, M.S.M.; Stefenon, S.F.; Leithardt, V.R.Q. Wavelet LSTM for Fault Forecasting in Electrical Power Grids. Sensors 2022, 22, 8323. [Google Scholar] [CrossRef]
Figure 1. Representative flowchart of the Facebook Prophets.
Figure 1. Representative flowchart of the Facebook Prophets.
Energies 16 01371 g001
Figure 2. LOESS procedure.
Figure 2. LOESS procedure.
Energies 16 01371 g002
Figure 3. Seasonal and residual outcome of the time series.
Figure 3. Seasonal and residual outcome of the time series.
Energies 16 01371 g003
Figure 4. Trend vs original time series regarding the LTS variation.
Figure 4. Trend vs original time series regarding the LTS variation.
Energies 16 01371 g004
Figure 5. Facebook’s Prophet forecasting.
Figure 5. Facebook’s Prophet forecasting.
Energies 16 01371 g005
Figure 6. Facebook’s Prophet forecasting results considering the prediction of 50 observations.
Figure 6. Facebook’s Prophet forecasting results considering the prediction of 50 observations.
Energies 16 01371 g006
Figure 7. Prophet components of the forecasting.
Figure 7. Prophet components of the forecasting.
Energies 16 01371 g007
Figure 8. Evaluation considering 90 observations: (A) STL filter; (B) Prophet forecasts.
Figure 8. Evaluation considering 90 observations: (A) STL filter; (B) Prophet forecasts.
Energies 16 01371 g008
Table 1. Error evaluation regarding STL decomposition.
Table 1. Error evaluation regarding STL decomposition.
LTSLSSMSERMSEMAPE (%)
11218805.3093.8430.54
418727.3393.4230.33
618552.5992.4830.01
21214705.4868.6020.56
414729.8068.7720.59
614745.2768.8820.63
31216800.0382.4625.73
416743.9082.1225.58
616660.2481.6125.42
41217178.7984.7326.59
417070.9984.0926.35
617035.6083.8826.28
51218837.3794.0130.43
418749.6193.5430.23
618701.0993.2830.13
Table 2. Evaluation of the maximum observations ahead.
Table 2. Evaluation of the maximum observations ahead.
ObservationsMSERMSEMAPE (%)
14705.4868.6020.56
58018.9889.5428.49
1013,451.76115.9840.10
2532,009.12178.9177.71
5061,336.33247.66132.61
Table 3. Evaluation of the variation in the number of days.
Table 3. Evaluation of the variation in the number of days.
Time (Days)MSERMSEMAPE (%)
28904705.4868.6020.56
18251667.8440.8312.24
1460930.8530.509.14
109590.999.532.85
7301406.2737.5011.24
36538,681.73196.6758.96
1804163.3164.5219.34
90253.5915.924.78
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Stefenon, S.F.; Seman, L.O.; Mariani, V.C.; Coelho, L.d.S. Aggregating Prophet and Seasonal Trend Decomposition for Time Series Forecasting of Italian Electricity Spot Prices. Energies 2023, 16, 1371. https://doi.org/10.3390/en16031371

AMA Style

Stefenon SF, Seman LO, Mariani VC, Coelho LdS. Aggregating Prophet and Seasonal Trend Decomposition for Time Series Forecasting of Italian Electricity Spot Prices. Energies. 2023; 16(3):1371. https://doi.org/10.3390/en16031371

Chicago/Turabian Style

Stefenon, Stefano Frizzo, Laio Oriel Seman, Viviana Cocco Mariani, and Leandro dos Santos Coelho. 2023. "Aggregating Prophet and Seasonal Trend Decomposition for Time Series Forecasting of Italian Electricity Spot Prices" Energies 16, no. 3: 1371. https://doi.org/10.3390/en16031371

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