1. Introduction
Market uncertainty is currently playing a significant role in day-ahead electricity prices, which are shaped by a range of external factors, particularly global fluctuations in commodity markets. While the EU has made significant progress in increasing renewable energy capacity, a significant portion of electricity generation still relies on fossil fuels. This reliance is an important determinant of prices, particularly during periods of increased volatility in international commodity markets [
1]. The liberalization and integration of electricity markets across Europe have further increased the complexity of price formation in the day-ahead market (DAM). As large-scale electricity storage remains economically challenging, DAM prices are highly sensitive to short-term supply and demand fluctuations. Therefore, understanding the relationship between exogenous variables and DAM prices is crucial for market participants, system operators, and policymakers [
2].
Prices of energy commodities, including but not limited to crude oil, natural gas, and coal, are among the most extensively studied external factors. These commodities are often used as marginal fuels in power generation, meaning that cost shocks can be transmitted directly into electricity markets by changes in their prices. Ref. [
3] analyzes 21 European markets, showing that natural gas price shocks propagate into electricity prices across various generation mix scenarios. In a similar context, Ref. [
4] found that the transmission of gas price fluctuations to electricity prices has intensified across bidding zones, particularly following recent geopolitical disruptions. Ref. [
5], in relation to this, identified significant mutual interaction between fossil fuel and electricity markets.
In relation to this, significant bidirectional spillovers exist between the fossil fuel and electricity markets. The analysis accentuates the profound consequences of natural gas prices and weather-related factors, including heating degree days. Alongside fossil fuel prices, meteorological variables also play a crucial part in determining day-ahead electricity prices. Weather conditions affect both electricity demand, through factors such as temperature and wind speed, and supply, particularly in systems with a growing share of variable renewable energy sources, such as wind and solar power [
5].
It is key to understand these multiple drivers, as shown by the structural evolution of electricity generation in the EU
Figure 1. As illustrated, the generation mix has been gradually transforming over recent years. A steady increase in the share of renewable energy sources has been observed, while a decline in generation from fossil fuels has been experienced. Nevertheless, fossil fuels continue to account for a significant proportion of total electricity production [
6]. In contrast, nuclear power generation has remained stable, with only minor year-on-year fluctuations. Despite the expansion of renewables, this ongoing dependence on fossil fuels explains why commodity price shocks continue to show a significant association with DAM prices, highlighting the importance of investigating their transmission mechanisms [
7].
Although a substantial body of research has examined the influence of commodity prices and meteorological conditions on electricity markets, important questions remain regarding the relative and evolving importance of these factors in shaping DAM prices. While much of the existing literature has concentrated on forecasting accuracy or identifying long-term relationships, fewer studies have undertaken a comprehensive empirical analysis of how key external drivers such as fossil fuel prices, renewable generation, and demand conditions interact within specific market contexts [
8].
Despite extensive evidence that renewable energy sources exert downward pressure on wholesale electricity prices across Europe [
9] and globally [
10], the joint dynamics between fossil fuel prices, variable renewable generation, and market design remain insufficiently understood. As renewable penetration increases and flexibility requirements grow, the sensitivity of DAM prices to traditional determinants—such as natural gas prices and system demand—appears to be shifting.
Recent evidence from European markets indicates that gas prices and wind generation have become increasingly dominant determinants of DAM price formation, often surpassing conventional demand-related effects [
11]. These developments highlight the need for renewed analytical focus on the structural drivers and transmission mechanisms of electricity prices, rather than on forecasting performance alone, to better understand how energy transitions reshape short-term market behavior.
Electricity prices in liberalized power markets increasingly reflect the interaction of economic, geopolitical, and structural factors. In recent years, periods of heightened uncertainty have shown that shocks originating in fossil fuel markets can propagate rapidly into day-ahead electricity prices, affecting both short-term market outcomes and longer-term investment signals [
12]. The worldwide conflict represents a clear example of how external disruptions can intensify price volatility across European electricity markets. In this broader context, electricity price dynamics can be interpreted as indicators of economic and social conditions related to energy security, as sustained price instability is commonly associated with affordability pressures, competitiveness concerns, and increased exposure to energy poverty [
13]. Moreover, market responses to price volatility provide an indirect link to environmental outcomes, as they reflect shifts in generation and fuel use within electricity systems that remain partly dependent on non-renewable resources. Consequently, the analysis of DAM price formation has gained renewed importance, as DAM prices incorporate not only immediate supply and demand conditions, but also the underlying generation mix, renewable energy availability, and regulatory constraints [
12].
Although there has been extensive research into predicting electricity prices on the DAM, significant gaps remain in our understanding of the mechanisms behind price formation in a changing market environment. Existing studies often examine the prices of fossil fuels, renewable energy sources, and meteorological variables separately, lacking a comprehensive empirical analysis of their interactions and time-varying importance within specific national markets. This shortcoming is particularly pronounced in smaller and less analyzed markets, such as the Slovak DAM, where specific price dynamics may result from the regional production mix, cross-border electricity flows, and regulatory conditions. At the same time, the link between market fundamentals analysis and the design of prediction models has been insufficiently explored in the literature, as many studies apply advanced deep learning methods without systematically taking into account identified cyclical patterns, commodity correlations, or meteorological factors. Last but not least, the question of the optimal range of historical data for short-term price prediction remains open, as longer time-series capture seasonality and extreme events, but their higher computational complexity may not lead to a proportional improvement in accuracy. From a practical point of view, there is a lack of approaches that focus on the use of such prediction tools by small prosumers who have limited computational resources but are increasingly interested in actively participating in the DAM. This work therefore focuses on the design and verification of a prediction framework that combines market fundamentals analysis with effective historical price modeling and can serve as a support tool for small prosumers or aggregators in optimizing their trading and operational strategies.
2. Forecasting Electricity Price
Accurate electricity price forecasting enables market participants to optimize their trading strategies and minimize the risks associated with price volatility. For electricity producers, accurate forecasting is crucial for production planning and profit maximization, while distributors and large consumers use it to manage their purchasing portfolios and reduce costs [
14]. In an environment with an increasing proportion of renewable energy sources and rising price volatility, the importance of reliable forecasting tools is growing, as the quality of forecasts directly affects the financial performance of energy companies [
15]. Price predictions are relied on by system operators to ensure the balance between supply and demand is maintained and to identify potential network congestion [
15]. With a growing share of intermittent renewable sources, price forecasting becomes more complex but essential for effective power system management, and its accuracy requires reliable tools for measuring and comparing different predictive models [
16]. Forecast evaluation uses several metrics to measure the deviation between actual and predicted values. The choice of metric depends on the data type and the objective of the analysis [
15]. Five commonly used error metrics are employed in this study to systematically evaluate forecast performance: mean absolute error (
MAE), mean squared error (
MSE), root mean squared error (
RMSE), and mean absolute percentage error (
MAPE), as well as the coefficient of determination (
R2).
where
,
, and
are the sample size as well as the actual and predicted values, respectively [
17].
2.1. Basic Forecasting Model
This section provides an overview of commonly used forecasting approaches for short-term electricity price prediction, with a particular focus on deep learning-based models. The aim is to contextualize the proposed LSTM with sequence-to-sequence architecture by comparing it with existing methods reported in the literature. The reviewed models include recurrent neural networks (RNNs), Long Short-Term Memory (LSTM) networks, Convolutional Neural Networks (CNNs), attention-based models, Graph Neural Networks (GNN), and transformer-based approaches such as the Informer model. These models differ in terms of their input data structure, temporal dependency modeling, and ability to incorporate spatial or multivariate information.
Forecasting electricity prices using prediction methods based on historical data is possible [
18] applied an artificial neural network (ANN) model in combination with the Markov Chain (MC) method to forecast electricity prices, with the aim of increasing prediction accuracy. For the study, the dataset was divided into two parts. The training set contained data from 2004 to 2018 and the test set covered the period from 2018 to 2020. The training set was used to implement the model and estimate its parameters. Results showed that the ANN model alone achieved a
MAPE of 12.65% and
MAE of USD2.95/MWh. In contrast, the combined ANN-MC model demonstrated slight improvement, achieving
MAPE and
MAE values of 12.57% and USD2.29/MWh, respectively. These results confirm that incorporating the Markov Chain method into the model increased the accuracy of electricity price predictions [
18]. A variety of prediction models are used for short-term electricity price forecasting [
19,
20,
21]. The methodologies that have been implemented for short-term forecasts in recent years can be categorized into regression models, such as Regression Splines Decomposition (RSD) and Smoothing Splines Decomposition (SSD) [
22], neural network methods, specifically Long Short-Term Memory (LSTM) using Wavelet transform to prevent model fluctuations in prediction [
19], and the extensive use of machine learning methods [
20].
Table 1 provides an overview of the accuracy of these models [
19,
20,
22]. Different models show varying degrees of accuracy in short-term electricity price forecasts, depending on the input data. The highest accuracy is achieved by the LSTM models when working with data divided into smaller time periods [
19], but a significant advantage over alternative approaches is not shown by it when continuous data is used without this adjustment [
20]. When working with continuous data, the Multi-Task Graph Neural Network (MTGNN) model tends to achieve higher prediction accuracy. Graph neural network (GNN) models perform better than Informer and ST-Norm models. This is due to the effective inclusion of spatial characteristics in the prediction. Examples of GNN models include Multi-Graph Adversarial Attention Learning (MGAAL) and Adaptive Spatial–Temporal Graph Convolutional Network (ASTGCN). The MGAAL model achieves the best performance on most evaluation metrics across different prediction horizons [
20]. Significant regional differences in prediction accuracy have been identified, with prices in areas with a higher share of renewable energy sources showing greater fluctuations and being more difficult to predict. In contradistinction to artificial neural network-based approaches, decomposition models such as Residual Seasonal Decomposition (RSD) focus on the decomposition of time-series data into long-term trends, as well as seasonal and residual components [
22]. This separation enables more accurate modeling of hidden patterns, particularly in datasets with strong seasonality or irregular trends. When configured correctly, the RSD model can significantly improve the accuracy of short-term electricity price prediction and other continuous data forecasting. According to Ref. [
22], specific RSD model combinations achieve the lowest mean prediction errors, with performance varying slightly by season achieving the highest accuracy in spring and slightly higher, yet still acceptable, errors in summer.
2.2. Forecasting with Multiple Input Data
Hyperparameter-based models are used to predict electricity prices over longer time horizons. These models also use other data affecting electricity prices to make predictions [
23]. The use of electricity prices and consumption levels was the approach taken in these cases. Predicting prices based on multiple data points is a relatively complex process that requires thorough data analysis. Ref. [
23] used Fourier series to analyses the data, enabling him to effectively approximate the electricity price profile. We define the approximation of the non-new profile as follows:
where
ft is the approximate price of electricity at time
t, consisting of the main frequency components of the Fourier series;
a0 represents the mean value of
pt;
an and
bn are the Fourier coefficients that define the shape of the periodic functions at frequency
n, with
N representing the length of the original time series.
While this approximate price captures the basic development of the electricity price, it cannot describe hourly fluctuations or periods of extreme prices that exceed the basic patterns of the price profile. These fluctuations are described by the residual term Rt, which consists of all frequency dependencies. Three predictive models were employed by Ref. [
23] to forecast electricity prices Linear Regression, Gaussian Process Regression (GPR), and ANN. The GPR model achieved the best overall performance among these, with a
MAPE of approximately 13.5% for multi-output configurations and 13.2% for single-output configurations. By comparison, the linear regression model produced higher errors of 18.9% and 19.2%, while the ANN model produced intermediate accuracy with errors of 14.3% and 15.2%, respectively. These results suggest that GPR offers the most reliable and consistent forecasts for predicting electricity prices over extended time horizons [
23].
Ref. [
24] proposed a multivariable bi-forecasting system for predicting electricity prices that integrates point and interval forecasting in order to overcome the limitations of single-variable and single-output models. This begins with data pre-processing using Improved Complete Ensemble Empirical Mode Decomposition with Adaptive Noise (ICEEMDAN) to enhance the quality of electricity price and load data by eliminating noise. A rolling forecasting framework with multi-input and multi-output structures is then constructed to combine electricity prices and power demand, improving prediction stability and accuracy. A hybrid predictive model employing linear operators is then established, with its parameters optimized using the Multi-Objective Golden Eagle Optimizer (MOGEO) algorithm. Experimental results using New South Wales datasets demonstrated superior performance in terms of both point and interval forecasting accuracy, confirming the robustness and effectiveness of the method [
24].
Forecasting electricity prices is a complex process involving varying models, which differ depending on the number of factors taken into account and the time horizon of the forecast. The majority of models concentrate on a restricted number of input parameters, with certain predictions being based on a few primary factors, such as fuel prices and electricity consumption requirements [
25]. High accuracy in short-term forecasts is achieved by these models, with minute-by-minute or hour-by-hour forecasts being focused on. They utilize historical data and incorporate operational data from networks in their analysis, which can unveil patterns in electricity consumption and generation over time [
26]. But when they try to predict what prices will be in the long term, these models often produce results that differ significantly from the actual prices. This suggests a lack of capability in the prediction of long-term price changes. Other models take a wider range of factors into account, such as fuel prices, political decisions, power plant outages, renewable energy production, and meteorological conditions that directly affect renewable energy production [
27]. These models provide more accurate and comprehensive forecasts. These models are primarily used for short-term predictions, enabling minute-by-minute or hour-by-hour price fluctuations to be predicted, which is crucial for market participants who must adapt to rapidly changing conditions. For longer time periods, the focus is on macroeconomic factors such as global energy demand, political factors, and technological advances in renewable energy in order to assess price fluctuations and risks associated with future market developments [
28]. Models such as AleaSoft and Enerdata apply advanced machine learning techniques and econometric approaches, integrating factors such as fuel prices, market sentiment, political changes, power plant outages, and other relevant information [
29,
30]. They enhance forecast accuracy and support risk identification in both real-time and long-term markets. However, such models are usually available only to commercial subscribers, and their data are not publicly accessible.
2.3. Electricity Price Prediction Using Optimization Methods
Electricity price prediction models are increasingly being optimized, with the aim of improving the accuracy of predictions and reducing the impact of price fluctuations on consumers. The accuracy of prediction models is significantly improved by these methods, which adjust their parameters to minimize errors and maximize output accuracy [
31]. The optimization process is carried out at several levels, with a key role being played by hyperparameter tuning in determining the model’s effectiveness. Common approaches to identifying optimal parameter combinations include grid Random Search (RS) [
32]. However, for models with a large number of parameters, more advanced optimization algorithms such as the Particle Swarm Optimization (PSO) and Genetic Algorithm (GA) need to be applied [
32,
33]. As part of the optimization process, datasets from the English and German electricity markets were used to train a Convolutional Neural Network (CNN) with a Bidirectional-LSTM architecture, for which GA and Random Search (RS) methods were implemented. The application of these methods resulted in a substantial enhancement in prediction accuracy, with the PSO method attaining the desired deviation. Subsequent research [
32], focused on improving the accuracy of LSTM, recurrent neural network (RNN), and Backpropagation (BP) models by integrating decomposition techniques, such as Variation Mode Decomposition (VMD), with an Attention mechanism (ATT) and Gray Wolf Optimizer (GWO). The best results were achieved by models combining all three techniques, as was confirmed by testing various combinations of these approaches [
33]. As shown in
Table 2, the VMD-GWO-ATT-LSTM model achieved the lowest errors (
RMSE = 1.78 €/MWh and
MAE = 1.45 €/MWh), confirming that integrating optimization and decomposition methods can significantly improve the ability of models to accurately predict short-term movements in electricity prices [
32,
33]. The performance metrics of the optimized models are summarized in
Table 2 [
32,
33]. The accuracy of short-term electricity price forecasts has been shown to be improved by combining advanced optimization models with hybrid architectures [
31]. In comparison to earlier models that relied exclusively on rudimentary methods without resorting to optimization techniques [
19,
20,
22], the implementation of sophisticated algorithms such as Particle Swarm Optimization, Genetic Algorithms, Gray Wolf Optimizers, and Bayesian optimization algorithms led to a substantial reduction in prediction errors across a range of model architectures. The best results were achieved by the integration of these optimization methods with decomposition techniques such as variational mode decomposition and the attention mechanism [
33].
3. Data Description and Methodological Framework
To understand the electricity market, it is necessary to analyses the DAM in detail, because it represents a key segment of short-term electricity trading and interacts closely with other energy commodities. The data used for this analysis was obtained from the publicly available OKTE [
34] source and relates to the Slovak electricity market. To enable automated historical data retrieval within the required time frame, an API was implemented [
35]. Data processing and analysis were carried out in the Python programming language using the JSON library to load and process files. Data covering the period from 1 January 2020 to 30 June 2025 was obtained from the day-ahead market database, with all data recorded at hourly intervals. Fast Fourier Transform (FFT) and Autocorrelation coefficient were then implemented to identify periodic patterns and dominant frequency components in the time series.
As shown in
Figure 2 and
Figure 3, two methodologies were used to identify periodic patterns in electricity prices, showing three main cycles: daily, weekly, and semi-daily. Analyzing a smaller subset of the data in
Figure 2 reveals that the filtered data more closely follows real values than when a longer period is analyzed in
Figure 3. The noise distribution graph shows that the residual component is approximately normally distributed around zero. This suggests that most deviations from the filtered signal are random, and that the filtering process effectively captures the dominant periodic patterns in DAM prices. Between 2020 and 2023, the world faced a number of major crises, which caused significant disruption to commodity markets and typical price dynamics. This led to more volatile and sudden fluctuations in prices. These outcomes are consistent with recent studies by [
36,
37], which emphasize the significant sensitivity of commodity prices to external and uncontrollable factors, such as geopolitical tensions and global changes. Ref. [
36] demonstrated that the volatility and spillover effects across fossil energy, electricity, and carbon markets were substantially increased by the effects of the pandemic and the Russia–Ukraine conflict, while [
37] highlighted synchronized changes in oil, coal, and natural gas markets driven by uncertainty, investor sentiment, and structural market.
Even within the shorter time frame of 2023–2025, daily, weekly, seasonal, and sub-seasonal cycles are evident, suggesting that predictive models for DAM prices should be able to capture long-term cyclical behavior using limited historical data. However, extending the analysis to the period from 2020 to 2025 provides a clearer identification of seasonal and semi-annual patterns driven by broader market and macroeconomic factors.
Table 3 summarizes the dominant periodicities in DAM prices for two different data lengths. It shows that daily, weekly, and seasonal cycles are consistently present, while longer datasets reveal additional long-seasonal and semi-annual patterns. The “Extent” column indicates the magnitude of price fluctuations for each cycle.
In today’s highly interconnected global economy, commodity markets are increasingly interdependent. Price movements in one market often cause changes in others. Numerous studies have demonstrated significant interlinkages among commodities—for instance, electricity prices are closely tied to the dynamics of emission allowance markets and fossil fuel prices. For example, “Energy commodities spillover analysis for assessing the functioning of the European Union Emissions Trading System trade network of allowances” shows that energy commodity shocks (brent, coal, gas) act as transmission channels into the European Union Emissions Trading System trade network of allowances, making the carbon market network a net receiver of spillovers from energy markets [
38]. Similarly, the study, “Alarming contagion effects: The dangerous ripple effect of extreme price spillovers across crude oil, carbon emission allowance, and agriculture future markets”, finds that under extreme market conditions, the interdependence among crude oil, carbon emission allowances, and other commodity futures can surge dramatically, reducing diversification benefits and increasing systemic risk [
39]. Another investigation, “A Study Based on Positive and Negative Price Volatility”, identifies that feedback loops exist between energy and carbon markets, where volatility shocks in fossil fuel markets propagate into carbon pricing, demonstrating a contagion pathway across commodity systems [
40]. Moreover, Ref. [
41] found dynamic, bidirectional volatility spillovers between carbon and energy markets, confirming the presence of persistent co-movements across energy commodities. These findings consistently indicate that fossil fuels, electricity, and emission allowances form a tightly connected network in which shocks in one market can rapidly transmit to others, influencing both pricing behaviors and market stability.
Historical commodity price data were obtained from Yahoo Finance using the yfinance Python library [
42], while electricity price data were sourced from the OKTE day-ahead market platform [
35]. Our comparative analysis focuses on the year 2024, for which complete datasets across all examined commodities are available. Before computing correlation coefficients, it is essential to ensure that all datasets have consistent lengths and comparable temporal characteristics. Commodities such as crude oil and electricity [
35] provide daily trading values, whereas other commodities exhibit different temporal resolutions. To address this, we adopt an approach that considers relative price changes over time, enabling meaningful comparison across markets. Specifically, daily price variations are analyzed to capture year-long dynamics. Natural gas trading occurs during specific hours (8:00–22:00), coal prices are updated once per day, emission allowances are traded continuously within a 24-h window, and uranium prices, similar to coal, are revised once daily.
Figure 4 shows a positive correlation between electricity prices and three selected commodities: natural gas, emission allowances, and coal. The strongest positive correlation (r = 0.59) was observed between electricity and natural gas, suggesting that gas plays a key role in electricity pricing, particularly given the significant proportion of electricity produced by gas-fired power plants. The moderately positive correlations with emission allowances (r = 0.28) and coal (r = 0.14) imply that these commodities may also shape electricity prices to some extent, primarily through emission costs and fuel substitution. On the other hand, the negative correlations seen among electricity and Brent crude oil (r = −0.48) and Uranium (r = −0.47) imply that these markets might be driven by different dynamics, influenced by factors not directly connected to the electricity market, such as macroeconomic cycles, geopolitical events, or specific nuclear sector developments. As well as the previously mentioned correlations between electricity prices and specific commodities, additional interconnections can be seen between the commodities themselves. For example, gas shows a positive correlation with emission allowances and a negative correlation with coal, while it correlates negatively with Brent crude oil and uranium. Emission allowances are positively linked to coal, but have weaker or negative relationships with other fuels. There is a slightly positive correlation between Brent crude oil and Uranium.
The aim of the second part of the data analysis is to determine the potential effect of weather factors on electricity prices. As in the previous case, this step involves comparing parameters received from the OKTE platform with historical meteorological data obtained from the Historical Weather API [
34,
43]. Since only variables for 2024 were included in the previous part of the analysis, data from the same period is used in this case as well. Five meteorological variables were received from the API: air temperature, wind speed, precipitation, humidity, and cloud cover [
43].
Contrary to the previous database, where it was required to summaries the data into daily values, the data in this case is provided in hourly intervals. For analysis purposes, all variables were normalized into relative units, since individual meteorological variables differ in their physical scales. This process of standardization enables the comparison of these values and prevents any distortion of the results of the correlation analysis. When looking at how weather affects things, it is important to remember that, unlike with other products, the weather can have a positive or negative correlation on the price of electricity.
The average correlation between weather variables and electricity prices depending on the hour of the day is shown in
Figure 5. This has been calculated using a 24-h rolling window. As can be seen from the graph, the correlation varies significantly throughout the day. During the day, there is a notable negative relationship between temperature and time, with a peak of around −0.5 at midday. However, this shifts to positive correlation at night. The opposite pattern is exhibited by relative humidity, which has a positive correlation during the day, peaking at around 0.5, and a negative correlation at night. A slight negative correlation is shown by wind speed, which remains relatively stable throughout the day. The correlation values of cloud cover and precipitation are smaller and more variable. These distinct daily patterns in correlation are probably due to the increase in electricity prices caused by renewable energy sources, especially solar and wind. The observed relationships are also significantly shaped by daily consumption profiles and seasonal factors.
Figure 5 shows average values only and cannot capture the full range of variability in correlations that occur at different times and under different conditions.
Figure 6 was created to analyze the distribution of correlation coefficients between electricity prices and individual weather variables in detail. The histograms show how frequently different correlation values occurred during the analyzed period. These reveal that all weather variables exhibit a significantly wider range of correlation values, ranging from strongly negative to strongly positive, than the average values shown in
Figure 5 suggest. Temperature tends to be negatively correlated with electricity prices, with a significant shift in the distribution towards negative values. This suggests that rising temperatures are linked to falling prices. A distribution that is shifted towards higher values is often associated with increased relative humidity. Wind speed, cloud cover, and precipitation exhibit a relatively symmetrical distribution of correlations around zero, but with a wide range of values. In
Figure 6, a cumulative histogram reveals considerable overlap in the correlation values of the individual parameters across the entire spectrum from −1 to +1, despite their different distribution characteristics. This indicates a complex interaction between weather variables and electricity prices that is not apparent from average values alone.
When considering the different factors affected by weather, it is important to note that, unlike other products, weather can have a positive or negative impact on electricity prices. This concept is reflected in recent research. Ref. [
44] demonstrated that weather conditions and climate change significantly influence wholesale electricity prices, with both extremely low and high temperatures leading to price increases due to increased demand for heating and cooling. Similarly, Ref. [
45] emphasizes a simultaneous hedging strategy for price and volume risks in electricity businesses using energy and weather derivatives, noting that variations in temperature and wind speed represent key risk factors in electricity markets, affecting not only consumption but also price volatility. Furthermore, Ref. [
46] presents evidence suggesting that weather-related variations in electricity demand, particularly those associated with heating and cooling requirements, vary considerably between high-income and middle-income countries. The analysis indicates that middle-income economies, characterized by rapid electrification and growing cooling needs, exhibit greater demand elasticity in response to temperature changes, whereas electricity consumption in high-income OECD countries remains more sensitive to heating requirements.
5. Discussion
The results of empirical analysis confirm that electricity prices on the Slovak DAM are driven by a combination of cyclical patterns, commodity prices, and meteorological factors, whose significance varies over time and depends on the daily and seasonal context. Analysis using Fourier transform and autocorrelation coefficients clearly identified daily, half-daily, and weekly cycles, which represent the dominant frequency components of price developments. These findings are consistent with the operational characteristics of the electricity system and the typical consumption profiles of market participants.
Extending the analyzed period to 2020–2025 made it possible to capture longer-term seasonal and semi-annual cycles that were not as pronounced in the shorter time window. The correlation analysis of commodities confirmed the dominant role of natural gas in shaping electricity prices, which is consistent with the high share of gas sources in the marginal generation mix. The positive correlation with emission allowances points to the importance of carbon costs, while weaker or negative relationships with oil and uranium suggest different market mechanisms and investment motivations in these segments. The results thus support the hypothesis of strong interconnections between electricity, fossil fuels, and the carbon market. Historical evidence from the COVID-19 pandemic and the Russia–Ukraine conflict further illustrates how external shocks can temporarily alter these interdependencies, emphasizing the evolving nature of commodity–electricity linkages under stress conditions [
50,
51].
Analysis of meteorological factors revealed significant temporal variability in correlations that would not have been captured using average values. Temperature and relative humidity showed different daily patterns, reflecting the combined impact of heating and cooling demand as well as variable renewable energy production. The wide distribution of correlation coefficients confirms that the relationship between weather and electricity prices is nonlinear and conditioned by several factors, including time of day, season, and current generation mix. In electricity systems with increasing renewable penetration, these effects become more pronounced and nonlinear, as periods of high renewable output can substantially suppress prices, while unfavorable weather conditions increase reliance on thermal generation with higher marginal costs [
52]. The correlation-based approach adopted in this study captures these interactions at a descriptive level but does not establish causality, and the observed relationships may reflect combined effects of demand variability, renewable generation patterns, fuel price dynamics, and system constraints [
53].
The application of the LSTM model with Seq2Seq architecture showed that the model is capable of effectively capturing short-term price dynamics even when using historical prices exclusively. The best results were achieved for shorter prediction horizons ranging from 1 to 24 h, which is in line with theoretical assumptions and the practical needs of the DAM, where trading is conducted exclusively 24 h in advance. An interesting finding is that the model trained on a shorter historical period (2023–2025) achieved comparable and, in some cases, even better accuracy with significantly lower computational requirements. This suggests that for short-term electricity price prediction, the relevance and timeliness of data may be more important than its volume, which increases the practical usefulness of the proposed approach as a support tool for aggregators of small prosumers in optimizing their participation in the DAM.
When compared to the forecasting models reviewed in “
Section 2”, the LSTM-Seq2Seq architecture demonstrates clear benefits in handling variable-length sequences and capturing temporal dependencies over longer horizons. Standard LSTM models and their hybrid versions with CNN or attention mechanisms generally perform well for short-term predictions, particularly when high-resolution data or seasonal decomposition is applied. However, highly optimized models combining decomposition techniques such as VMD with attention mechanisms or metaheuristic optimizers often achieve lower
RMSE and
MAE values, reflecting superior accuracy under volatile conditions. The results of this study, summarized in
Table 4, confirm that while the LSTM-Seq2Seq model provides robust short-term forecasts, careful selection of sequence length, forecast horizon, and training configuration is essential to balance predictive accuracy and computational efficiency.
On the other hand, the model’s weaker performance over longer prediction horizons points to its limited ability to capture extreme price events and structural market changes, which are often the result of external shocks such as geopolitical events, sudden changes in fuel prices, or production capacity outages. Since these factors are not explicitly included in historical price data, further improving the accuracy of the prediction would require extending the model framework to include exogenous variables such as fossil fuel prices, renewable energy production, or meteorological inputs. These directions represent a natural continuation of this work and open up space for future research focused on multivariate and adaptive prediction models.
Overall, the results of this work confirm that the combination of market fundamentals analysis and advanced deep neural networks represents a promising approach to understanding and short-term prediction of electricity prices in the DAM. At the same time, they point to the need for further research focused on extending models with exogenous information and adaptive architectures that could better respond to growing volatility and the ongoing transformation of energy markets.
6. Conclusions
This study provides a thorough analysis of the factors that contribute to electricity prices on the Slovak DAM. It combines an examination of commodity market dynamics and meteorological conditions with data-driven forecasting methodologies. The results confirm that electricity prices are highly sensitive to external changes, particularly natural gas and carbon allowance prices, as well as extreme weather events. Despite the growing share of renewable energy, fossil fuels continue to determine the marginal price for many hours, explaining the strong correlation between DAM prices and gas markets.
The investigation demonstrates that advanced machine learning models, specifically the LSTM-Seq2Seq framework, can effectively capture short-term price dynamics using historical data alone. Complementary methods, such as FFT and autocorrelation analysis, were instrumental in identifying daily, weekly, and seasonal cycles, which improved understanding of price patterns and guided predictive modeling. Comparing training datasets highlighted trade-offs between data volume and forecast horizon: shorter datasets (2023–2025) were more efficient and accurate for very short-term predictions, whereas longer datasets (2020–2025) improved accuracy for medium-term forecasts.
The findings indicate that predictive accuracy could be further enhanced by extending the model to a multivariate framework incorporating commodity prices, meteorological variables, renewable generation, and load indicators. Such an expansion would require balancing model complexity, data availability, and computational efficiency. Additionally, considering cross-border flows and neighboring bidding zones could provide a more complete picture of structural determinants in DAM price formation.
Overall, this study contributes to a deeper understanding of the structural drivers shaping DAM prices and demonstrates the practical feasibility of accessible forecasting tools based on publicly available data. The proposed approach offers added value for market participants, including smaller consumers and aggregators of prosumers, who wish to engage in short-term market participation without relying on costly commercial tools. While limitations remain—particularly the exclusion of exogenous causal factors and the focus on a single bidding zone—this work lays a foundation for future research on multivariate, adaptive, and more robust forecasting frameworks capable of responding to the growing volatility and transformation of energy markets.