Abstract
Accurate forecasting of hourly electricity consumption is critical for smart grid management, energy market operations, national policy planning, and—particularly for import-dependent economies such as Türkiye—energy security. This study presents, to the best of the authors’ knowledge, the first systematic benchmark of four state-of-the-art time series architectures—TimesNet, PatchTST, iTransformer, and Temporal Fusion Transformer (TFT)—conducted specifically on a national-scale Turkish multivariate energy dataset from the Energy Exchange Istanbul (EPİAŞ), covering 72,322 hourly observations across 15 generation, consumption, and market-clearing price variables from January 2018 to April 2026. While benchmark studies of Transformer-based architectures exist on general time-series datasets, no prior work has applied this specific combination of architectures to the EPİAŞ dataset under unified experimental conditions with an explicit energy-security interpretation. All models were trained under standardized preprocessing (StandardScaler), a 24 h lookback window, and systematic hyperparameter optimization. Experimental results demonstrate that iTransformer achieves the best predictive performance (MAE = 521.34 MWh, RMSE = 748.12 MWh, R2 = 0.9881, MAPE = 1.34%), followed by TFT (R2 = 0.9863) and PatchTST (R2 = 0.9844). TimesNet, while the most computationally efficient, achieves an R2 of 0.9791. Beyond predictive benchmarking, this study situates the findings within Türkiye’s energy security agenda: the dataset captures fossil fuel dependency, the growing share of domestic renewables, and market-clearing price dynamics shaped by geopolitical shocks, including the Russo–Ukrainian war and evolving EU–Türkiye energy relations. Comprehensive analysis of model architectures, attention mechanisms, temporal feature importance, and computational efficiency is provided. These findings establish a rigorous baseline for deploying modern sequence models in large-scale, real-time national energy forecasting systems that serve both market-efficiency and strategic-energy-autonomy objectives. The results specifically highlight how high-fidelity forecasting can serve as a risk-mitigation tool against geopolitical supply disruptions by quantifying the impact of domestic renewable integration.
1. Introduction
The reliable and accurate forecasting of electricity consumption is a cornerstone of modern energy infrastructure management. National power grids must continuously balance generation and demand in real time, a task that becomes increasingly complex as intermittent renewable energy sources expand rapidly. In Türkiye, where the electricity market is operated by the Energy Exchange Istanbul (EPİAŞ), hourly consumption varies dramatically across seasons, times of day, and economic conditions, making precise demand forecasting essential for both market participants and system operators [1,2].
Türkiye’s energy security landscape adds a further strategic dimension. With an energy import dependency exceeding 70%, Türkiye relies heavily on natural gas from Russia and Iran, and on coal imports from Russia and Colombia, making the national grid acutely sensitive to geopolitical disruptions [1,3]. The Russo–Ukrainian war, which escalated in 2022, exposed the fragility of European and Turkish energy supply chains, triggering significant price volatility in the EPİAŞ market-clearing price (MCP) and accelerating political pressure to diversify toward domestic renewables—wind, solar, geothermal, and hydroelectric—as instruments of strategic autonomy. Simultaneously, evolving EU–Türkiye energy relations, including Türkiye’s potential role as a transit hub for Caspian and Eastern Mediterranean gas, intertwine foreign policy dynamics with electricity market design.
Classical statistical models such as ARIMA and exponential smoothing have long served as the baseline for short-term load forecasting. However, these methods assume linear temporal structure and cannot capture the complex, nonlinear interdependencies among multiple generation sources and market variables that characterize modern power systems [3]. Multiple comparative studies demonstrate that deep learning models—especially RNN variants such as LSTM and GRU—consistently outperform classical approaches for short- and medium-term electricity consumption forecasting [4,5,6,7]. The Transformer architecture [8], originally introduced for natural language processing, fundamentally changed sequence modeling by replacing recurrence with multi-head self-attention. Subsequent adaptations, including TimesNet [9], PatchTST [10], iTransformer [11], and TFT [12], demonstrated strong performance on long-horizon benchmarks.
This paper addresses the gap between technical benchmarking and energy policy relevance with four principal contributions: (i) a rigorous implementation and evaluation of TimesNet, PatchTST, iTransformer, and TFT on the EPİAŞ national electricity dataset under identical experimental conditions, including a four-tier baseline comparison (statistical, ML, prior-generation DL, and state-of-the-art architectures); (ii) a comprehensive cross-architecture analysis spanning predictive accuracy, computational efficiency (using a corrected EFF = MAE/TIME metric), and feature attribution; (iii) an energy security perspective connecting model outputs—particularly variable importance scores and cross-variate attention patterns, interpreted as predictive associations rather than causal relationships—to Türkiye’s fossil fuel dependency, EU energy relations, and post-Ukraine geopolitical context; and (iv) practical recommendations for deploying modern time series models in real-time national energy forecasting systems, with explicit discussion of the forecasting task definition, data leakage prevention, and generalization limitations. The remainder of the paper is structured as follows: Section 2 reviews related work; Section 3 details the dataset, preprocessing, and model architectures; Section 4 presents experimental results and analysis; Section 5 concludes with findings and future directions.
2. Related Work
Early electricity consumption forecasting relied on autoregressive models, including ARIMA, SARIMA, and Vector Autoregression (VAR), which model linear temporal dependencies and seasonal patterns [7]. A critical systematic review by Kuster et al. [13] found that statistical models struggle to generalize across diverse consumption profiles and fail to incorporate multivariate exogenous information effectively. Subsequent benchmarks consistently demonstrated the superiority of deep learning approaches: Amalou et al. [4] showed that GRU outperformed both standard RNNs and LSTMs on Smart Grid datasets. Gasparin et al. [5] confirmed that deep learning models significantly reduce forecast error compared to ARIMAX/SARIMAX. Cascone et al. [6] demonstrated that convolutional LSTM architectures capture spatiotemporal patterns that purely recurrent models miss. Atabay et al. [7] further demonstrated that RNN-based models outperform ARIMAX and SARIMAX for multivariate time series forecasting across multiple horizons.
Hybrid approaches that integrate classical statistical methods with machine-learning or deep-learning components have gained significant attention [14,15,16,17,18,19,20,21,22,23]. Grandón et al. [24] applied hybrid classical-statistical and machine-learning algorithms for electricity demand forecasting in Ukraine, demonstrating that combining seasonal decomposition with neural-network residual correction yields consistent gains. Shahsavari-Pour et al. [25] proposed a novel hybrid deep learning model integrating variational mode decomposition with LSTM-based sequence modeling. Alsalem [26] further demonstrated that integrating fuzzy clustering with machine-learning components improves power consumption prediction.
Transformer-based models have achieved state-of-the-art results on complex temporal datasets. Moustati and Gherabi [27] evaluated Transformer-based models for energy forecasting, confirming that multi-head self-attention captures long-range dependencies that LSTM-based architectures systematically miss. Mohammadi et al. [28] conducted a performance and interpretability analysis, finding that attention-based models generally outperform recurrent architectures when weather and socioeconomic covariates are included. Yaprakdal and Arısoy [29] combined multivariate time-series analysis with a hybrid feature-selection approach and explainable deep learning. Recent advances in smart grid forecasting have further demonstrated the value of deep learning for demand-side management and grid stability: Kim et al. [30] applied time-series clustering to smart meter data to forecast household electricity demand, showing that segment-level models outperform single global models across heterogeneous load profiles. Ertürk et al. [3] developed a hybrid deep learning and Transformer-based framework specifically for the Turkish multivariate electricity consumption context, directly complementing the benchmarking scope of the present study.
Qiu et al. [18] developed TFB, a comprehensive benchmarking platform spanning over 26 datasets and 21 methods, providing unified training and evaluation pipelines. Shao et al. [19] extended this work through BasicTS+, which addresses heterogeneity in dataset characteristics. Both frameworks confirm that no single architecture dominates universally. The EPİAŞ dataset, spanning seven years of hourly observations across 15 energy and market variables, provides a uniquely challenging and practically relevant testbed [31].
As deep learning models achieve higher accuracy, concerns about their black-box nature have intensified. Among the architectures benchmarked in this study, TFT [18] provides intrinsic interpretability through its variable selection network, which assigns learned importance weights to each input feature. Basit et al. [32] highlighted that model interpretability is critical for operational deployment in electricity markets, where regulators and system operators require justification for automated forecasting decisions. From an energy security standpoint, interpretable feature attribution is equally valuable for policymakers seeking to understand which generation sources and price signals drive demand variability.
A strand of the literature that has received less attention in deep learning benchmarks is the intersection of electricity forecasting with energy security and geopolitical dynamics. Türkiye’s electricity sector reflects a highly import-dependent energy structure: natural gas—predominantly sourced from Russia via TurkStream and from Azerbaijan via TANAP—represents the single largest generation input in the EPİAŞ dataset (mean: 8507 MWh/h). Imported coal is the second-largest fossil fuel source (mean: 7403 MWh/h). The market-clearing price (MCP) variable captures the cumulative effects of international commodity prices, currency depreciation, and geopolitical shocks, serving as a composite indicator of energy security stress. The Russo–Ukrainian war, which escalated in February 2022, produced sharp MCP spikes in the dataset (max: 4800 TL/MWh), underscoring the policy relevance of models that accurately forecast consumption amid price volatility. EU–Türkiye energy relations add a further layer: as the EU seeks to reduce dependence on Russian gas, Türkiye’s role as a transit corridor and potential Southern Gas Corridor partner acquires strategic salience, as reflected in the bilateral energy trade volumes captured in the dataset.
3. Materials and Methods
3.1. Dataset
The dataset was obtained from the Energy Exchange Istanbul (EPİAŞ) open-access transparency platform [33], covering hourly national electricity consumption, technology-level generation, and market-clearing price (MCP) from 1 January 2018 to 19 April 2026. The dataset comprises 72,322 observations; after selecting the 15 target and exogenous variables, the feature matrix includes the consumption target and 14 generation and price indicators, as shown in Table 1. Data quality assessment confirmed the absence of missing values and duplicate records. An outlier analysis using the Z-score method (threshold ±3) identified 803 extreme observations (1.2%), primarily during peak summer demand periods, which were retained to preserve the realistic distribution of operational stress conditions [1]. Figure 1 shows that Strong positive correlations are observed among fossil fuel sources; a negative correlation is observed between renewable generation and the market-clearing price (MCP).
Table 1.
Descriptive Statistics of the EPİAŞ Dataset.
Figure 1.
Pearson Correlation Heatmap of EPİAŞ Dataset Variables (2018–2026).
3.2. Data Preprocessing
The forecasting task is defined as one-step-ahead hourly prediction: given input features available at time t − 1 (i.e., strictly historical values), the target is to predict the national electricity consumption at time t (MWh). No contemporaneous or future values of any variable—including generation-by-source and market-clearing price—are used as model inputs; all exogenous features enter exclusively as lagged values (t − 1 and t − 24), ensuring the absence of data leakage and preserving operational forecasting realism. This point is elaborated in Section 3.2. All 15 variables were standardized using scikit-learn’s StandardScaler (zero mean, unit variance), with the scaler fitted exclusively to the training set to prevent data leakage. A temporal feature matrix was constructed using a 24 h sliding window. For each observation at time t, the input consists of: (i) 24 lagged values of the consumption target (t − 1 to t − 24); (ii) the 1 h lag (t − 1) of each of the 14 exogenous variables; and (iii) the 24 h lag (t − 24) of each of the 14 exogenous variables. This yields 24 + 14 + 14 = 52 features, rounded to 54 by the inclusion of two additional engineered temporal indicators (hour-of-day and day-of-week, sine- and cosine-encoded). All exogenous inputs are strictly past-valued: generation-by-source and MCP are only available as lagged observations, not as contemporaneous or target-time values. This design explicitly addresses the potential leakage concern: since generation dispatch and MCP are themselves outcomes determined at or after t, only their lagged proxies—known by time t − 1—are used. The dataset was split chronologically into training (80%, January 2018–July 2024, n = 57,857) and test (20%, July 2024–April 2026, n = 14,465) subsets, preserving temporal integrity and eliminating look-ahead bias as shown in Table 2.
Table 2.
Hyperparameter Configurations of All Benchmarked Models.
3.3. Benchmarked Architectures
3.3.1. TimesNet
TimesNet addresses the challenge of capturing temporal variation at multiple periodicities by transforming 1D time series into 2D representations. Fast Fourier Transform (FFT) first identifies the top-k (k = 3) dominant frequencies [9]. Two-dimensional Inception blocks comprising parallel convolutions process these representations, capturing both fine-grained and coarse temporal patterns. With d_model = 64, d_ff = 128, and n_layers = 3, this architecture is particularly suited to electricity consumption data exhibiting strong daily, semi-daily, and weekly periodicities [10].
3.3.2. PatchTST
PatchTST adapts the Vision Transformer’s patch-based tokenization for time-series data. The input sequence is divided into non-overlapping patches of size P = 9, each of which is linearly projected into d_model = 64-dimensional embeddings with learnable positional encodings [16]. A Transformer encoder with n_heads = 4 and n_layers = 3 processes the patch sequence, enabling attention to span semantically meaningful temporal segments rather than individual time steps [16].
3.3.3. iTransformer
iTransformer inverts the conventional Transformer design by transposing the roles of time and variate dimensions. Rather than treating each time step as a token, iTransformer treats each variate’s full sequence as a single token [17]. Multi-head self-attention (n_heads = 4) then operates across the M = 54 variate tokens, learning global cross-variate correlations—a design uniquely aligned with the substitution dynamics and cross-source dependencies present in heterogeneous energy generation data [11].
3.3.4. Temporal Fusion Transformer (TFT)
TFT, developed at Google, is designed for interpretable multi-horizon forecasting and incorporates Variable Selection Networks (VSN) using Gated Residual Networks (GRN), a 2-layer LSTM encoder, a Transformer attention layer, and GRN-based output projection. The variable selection mechanism provides direct attribution of feature importance—a unique interpretability advantage applicable to energy security policy analysis [12].
Figure 2 shows that, from left to right: TimesNet (FFT-driven 2D convolution), PatchTST (patch attention), iTransformer (cross-variate attention), TFT (gated variable selection + LSTM + attention).
Figure 2.
Architectural Overview of the Four Benchmarked Time Series Models.
3.4. Evaluation Protocol
All models were evaluated on the identical chronological test set using six metrics: Mean Absolute Error (MAE), Root Mean Squared Error (RMSE), Mean Squared Error (MSE), Mean Absolute Percentage Error (MAPE), coefficient of determination (R2), and a computational efficiency score (EFF = MAE/TIME, defined as forecast error per unit of training time in MWh/s; lower values indicate better accuracy per unit of computational cost; values reportedare computed consistently using this definition). All models were implemented in Python 3.11 using PyTorch 2.2.0. Additional libraries used include scikit-learn 1.4.0 (preprocessing, ML baselines, and evaluation metrics), pandas 2.1.0 (data handling), and numpy 1.26.0 (numerical operations). All experiments were conducted on a workstation equipped with an NVIDIA RTX 4090 GPU (24 GB VRAM), an Intel Core i9-13900K CPU, and 64 GB DDR5 RAM, running Ubuntu 22.04 LTS. Models were trained with the Adam optimizer (lr = 1 × 10−3), gradient clipping (norm = 1.0), a batch size of 256, and 30 epochs. Training times reported in Table 3 reflect wall-clock time on this hardware configuration. To provide a more comprehensive baseline comparison, three widely used machine learning methods and two established deep learning baselines were also evaluated under the same train/test split and feature matrix. The ML baselines are: XGBoost (n_estimators = 500, max_depth = 6, learning_rate = 0.05), LightGBM (n_estimators = 500, num_leaves = 63, learning_rate = 0.05), and Support Vector Regression (SVR, RBF kernel, C = 10, epsilon = 0.1). The deep learning baselines are: a standard stacked LSTM (2 layers, hidden_dim = 128, dropout = 0.1, same lookback window and optimizer settings) and Informer [10] (d_model = 64, n_heads = 4, e_layers = 3), a widely cited, efficient Transformer variant that represents the prior generation of sequence models before the four benchmarked architectures. This yields a four-tier comparison: statistical baselines, ML baselines, prior-generation DL (LSTM, Informer), and state-of-the-art architectures (TimesNet, PatchTST, TFT, iTransformer). Table 3 shows Green: top performer. Gold: baselines. EFF = MAE/Training Time (MWh/s); lower values indicate better accuracy per unit of computational cost.
Table 3.
Comparative Performance Metrics of All Models on the EPİAŞ Test Set.
4. Results
4.1. Overall Performance Comparison
The performance gap among the modern models (ΔR2 = 0.009 from TimesNet to iTransformer) is substantially smaller than the gap to classical baselines (ΔR2 ≈ 0.32), suggesting that all four architectures successfully learn the dominant temporal structures. This finding aligns with Qiu et al. [18] and Shao et al. [19], who reported that modern deep learning architectures cluster in performance on complex datasets while uniformly outperforming statistical baselines. Figure 3 shows that the green outlines indicate the best performer for each metric. Gold/hatched bars: baseline models. Solid blue/teal/navy: modern architectures.
Figure 3.
Comparative Performance Metrics Across All Benchmarked Models.
Table 3 presents the complete performance metrics for all evaluated models. iTransformer achieved the best overall predictive accuracy with MAE = 521.34 MWh, RMSE = 748.12 MWh, R2 = 0.9881, and MAPE = 1.34%—representing a 79% reduction in MAE compared to the ARIMA baseline (2871.3 MWh). TFT ranked second (R2 = 0.9863, MAPE = 1.41%), followed by PatchTST (R2 = 0.9844, MAPE = 1.52%) and TimesNet (R2 = 0.9791, MAPE = 1.74%). The ML baselines—XGBoost (R2 = 0.9412, MAE = 1087.3 MWh), LightGBM (R2 = 0.9389, MAE = 1124.6 MWh), and SVR (R2 = 0.8734, MAE = 1683.2 MWh)—substantially outperformed the statistical baselines but fell significantly short of the deep learning tier. The deep learning baselines—LSTM (R2 = 0.9624, MAE = 843.7 MWh) and Informer (R2 = 0.9711, MAE = 724.2 MWh)—bridged the gap, substantially outperforming the ML tier while remaining below all four benchmarked architectures (Figure 3). This four-tier comparison confirms: statistical baselines < ML models < prior-generation DL (LSTM, Informer) < state-of-the-art architectures (TimesNet, PatchTST, TFT, iTransformer), consistent with Alizadegan et al. [21] and Ibrahim and Hossain [22].
4.2. iTransformer: Cross-Variate Attention and Energy Mix Dynamics
iTransformer’s superior performance is attributable to its cross-variate attention mechanism, which is uniquely aligned with the EPİAŞ dataset’s structure. By treating each of the 54 features as a token and applying self-attention across the variate dimension, the model learns a global interaction matrix that captures predictive associations between natural gas and imported coal during high-demand periods, complementarity between hydroelectric and run-of-river generation, and the negative correlation between MCP and renewable penetration. It is important to note that attention weights reflect learned predictive associations—not causal relationships. The patterns described here indicate that these variable interactions improve forecast accuracy; they do not establish that renewable penetration causally reduces fossil-fuel price exposure, which would require separate causal analysis. From a policy-informing perspective, these associations are nonetheless valuable as indicators of which variable interactions drive demand predictability.
4.3. TFT: Interpretable Variable Selection and Policy-Relevant Feature Attribution
TFT achieved R2 = 0.9863 while uniquely providing quantifiable variable importance via its variable-selection network. The learned gate weights revealed that the 24 h lag of the consumption target received the highest importance score (w ≈ 0.17), consistent with the strong daily periodicity of Turkish electricity demand. The market-clearing price (mcp_try_lag_1h, w ≈ 0.09) ranked third, reflecting its predictive relevance for consumption in a market-based dispatch environment. Renewable variables received moderate weights (w ≈ 0.04–0.06), consistent with their growing share in the Turkish energy mix. These variable-selection weights should be interpreted as measures of predictive relevance within the TFT model—not as evidence of causal influence or direct policy levers. Higher gate weights indicate that a variable improves one-step-ahead forecast accuracy; they do not imply that changes in that variable will causally alter consumption outcomes. Policy interpretation of these weights should be supplemented with domain knowledge and, where possible, structural or causal analysis. TFT’s EFF value of 0.479 MWh/s indicates the best error-per-second-of-training ratio among all benchmarked models, making it the most attractive choice for policy-oriented deployments requiring both accuracy and interpretability.
4.4. PatchTST: Sub-Daily Pattern Capture
PatchTST (R2 = 0.9844, MAPE = 1.52%) benefits from patch attention by learning representations over 9 h temporal segments aligned with distinct sub-daily consumption regimes: overnight low demand (0–6 h), morning ramp (7–9 h), midday peak (10–14 h), evening peak (17–21 h), and nocturnal decline (22–23 h). This patch alignment is consistent with the benchmarking findings of Sapnken et al. [34], who demonstrated that architectures capturing local temporal feature hierarchies outperform those operating on individual time steps for load forecasting.
4.5. TimesNet: Multi-Scale Periodicity and Operational Efficiency
TimesNet (R2 = 0.9791) demonstrated competitive performance as the most computationally efficient model (TIME = 614 s). Its FFT-based period detection identified dominant periods of approximately 24 h, 12 h, and 168 h in the EPİAŞ consumption series, corresponding to daily, semi-daily, and weekly patterns. While accuracy is slightly lower than that of attention-based models, TimesNet’s lower training time and absence of attention overhead make it the most practical choice for scenarios requiring frequent model retraining—such as intraday rolling forecast updates in real-time grid-balancing applications [9].
Figure 4 shows that iTransformer and TFT consistently achieve the largest polygons across all five normalized metrics. Note: all metrics are normalized to [0, 1] on a higher-is-better scale. For MAE, RMSE, MAPE, and EFF (where lower values are better), the normalized score is computed as 1 − (value − min)/(max − min), so that the best-performing model scores 1.0 on each axis. R2 is normalized directly as (value − min)/(max − min). This ensures that a larger polygon area consistently represents better overall performance.
Figure 4.
Multi-Metric Radar Chart Comparing All Models.
Table 4 shows that during the peak demand window (14:00–18:00 on 1 April 2026), iTransformer consistently produced the closest approximations to observed consumption, with absolute errors ranging from approximately 331 MWh (18:00) to 531 MWh (14:00)—representing mean absolute deviations of less than 1.1% across the five-hour period. All other deep learning models (TimesNet, PatchTST, TFT) also outperformed classical baselines; however, their predictions systematically underestimated peak-hour demand, particularly during the 14:00–15:00 interval when grid load was highest.
Table 4.
Actual vs. Predicted Electricity Consumption (MWh)—Peak Demand Period, 1 April 2026.
4.6. Computational Efficiency Analysis
The efficiency metric EFF = MAE/TIME (MWh per second of training) quantifies forecast error per unit of computational investment—lower values indicate better efficiency. iTransformer achieves EFF = 0.581 MWh/s, TFT = 0.479 MWh/s, PatchTST = 0.752 MWh/s, and TimesNet = 1.111 MWh/s. iTransformer and TFT therefore achieve the lowest error-per-second ratios, making them the most computationally efficient choices for accuracy-critical deployments. TimesNet, despite its fastest absolute training time (614 s), has the highest EFF value (1.111 MWh/s)—meaning more error is incurred per second of training investment relative to the other architectures. For resource-constrained or high-retraining-frequency environments where absolute training speed matters more than relative accuracy, TimesNet remains attractive; for accuracy-critical deployments, iTransformer and TFT dominate on both absolute accuracy and error-per-second efficiency. These findings echo Ibrahim and Hossain [22] and Baçanin et al. [35], who demonstrated that computational efficiency considerations are critical for practical deployment in large-scale energy systems.
5. Discussion
5.1. Energy Security Implications: Fossil Fuel Dependency, Geopolitics, and the EU–Türkiye Axis
Beyond raw predictive performance, the EPİAŞ benchmark offers insight into the structural vulnerabilities and strategic opportunities embedded in Türkiye’s electricity system. Three energy security dimensions emerge from the data and model results.
First, fossil fuel dependency. The EPİAŞ dataset reveals that natural gas (mean: 8507 MWh/h) and imported coal (mean: 7403 MWh/h) collectively account for the dominant share of electricity generation. The high importance weight assigned to the MCP variable by TFT (w ≈ 0.09) reflects the degree to which Turkish demand is sensitive to international commodity prices. Accurate load forecasting under these conditions is not merely a technical problem: it can support energy security objectives by providing grid operators with better-informed inputs for dispatch scheduling and exposure management during high-price import periods. Interpreted through the typology of environmental discourses, the high sensitivity of MCP exposes the limits of a purely “economic-rationalist” reliance on market signals and price mechanisms to manage strategic energy risk [36]. The market-clearing price is an efficient short-term coordinating device, yet it does not by itself secure long-horizon strategic autonomy; the capacity to steer energy transitions toward a more secure trajectory remains concentrated in the state, which sets the framework conditions that channel investment, support innovation, and signal long-term ambitions [37,38].
Second, the effect of the Russo–Ukrainian war. The post-February 2022 period in the EPİAŞ dataset is characterized by MCP spikes reaching 4800 TL/MWh and elevated volatility in natural gas prices. The iTransformer’s cross-variate attention mechanism captures the predictive association between renewable penetration and MCP that emerged under the post-war market regime. The model’s strong performance on the 2024–2026 test set—which encompasses the post-war energy market stabilization period—is consistent with effective generalization across the pre-war and post-war market regimes present in the training and test splits, respectively. However, a formal test of structural break generalization would require additional methodological steps—such as sub-period evaluation or Chow-test-based regime identification—which are beyond the scope of this benchmarking study. The claim of generalization under structural regime change should therefore be understood as a preliminary empirical observation, not a formally validated finding, and is acknowledged as a direction for future research.
Third, AB–Türkiye energy relations. As the European Union accelerated its diversification away from Russian gas following the 2022 crisis, Türkiye’s strategic position as a transit corridor for Azerbaijani gas (TANAP/TAP) and as a potential supplier of Eastern Mediterranean reserves became more prominent. This geopolitical dynamic has a quantitative footprint in the EPİAŞ dataset, as reflected in natural gas generation volumes and MCP trajectories. Forecasting frameworks that accurately predict Turkish consumption in this bilateral context can inform both domestic grid investment decisions and EU–Türkiye energy partnership negotiations, where demand-side predictability is a prerequisite for supply contract design.
5.2. Methodological and Practical Implications
The four-tier performance hierarchy (statistical < ML < prior-generation DL < state-of-the-art) confirms that architectural advances in sequence modeling translate directly into measurable gains in accuracy for national-scale energy forecasting. The cross-variate attention mechanism of iTransformer is particularly well-suited to the EPİAŞ dataset’s heterogeneous multivariate structure, where substitution dynamics between generation sources and MCP-demand interactions require modeling global inter-variable dependencies. TFT’s interpretability advantage—at marginal accuracy cost—makes it the preferred choice for regulatory and policy-oriented deployments where forecast justification is required. The efficiency metric (EFF = MAE/TIME) confirms that TFT and iTransformer dominate in both accuracy and error per second. At the same time, TimesNet remains the practical choice for high-retraining-frequency operational environments. These findings provide actionable guidance for grid operators and energy regulators designing next-generation forecasting infrastructure in import-dependent economies.
6. Conclusions
This study presented a systematic benchmark of four state-of-the-art time series architectures—TimesNet, PatchTST, iTransformer, and TFT—on the nationwide Turkish electricity consumption dataset from EPİAŞ (2018–2026, 72,322 hourly observations, 15 variables), representing, to the best of the authors’ knowledge, the first such benchmark on this dataset under unified experimental conditions. Under identical experimental conditions, iTransformer achieved the best predictive accuracy (R2 = 0.9881, MAE = 521.34 MWh, MAPE = 1.34%), owing to its cross-variate attention mechanism, which captures global inter-variable dependencies inherent in multivariate energy data. TFT ranked second (R2 = 0.9863) while uniquely providing interpretable variable importance scores, confirming short-term autocorrelation and MCP as the primary predictors.
Three principal technical findings emerge: (i) cross-variate attention (iTransformer) outperforms time-step attention (PatchTST) and convolutional period modeling (TimesNet) for heterogeneous multivariate energy data; (ii) architectural interpretability (TFT) can be achieved at marginal accuracy cost while providing actionable feature attribution; and (iii) all four modern architectures substantially outperform both statistical baselines (ARIMA: R2 = 0.6553) and machine learning baselines (XGBoost: R2 = 0.9412; LightGBM: R2 = 0.9389; SVR: R2 = 0.8734), confirming the necessity of deep sequence modeling for national-scale forecasting and establishing a three-tier performance hierarchy.
Three energy security implications follow from these findings. First, the strong predictive performance of iTransformer on a dataset dominated by fossil-fuel generation variables—and the TFT’s high MCP importance score—confirms that Türkiye’s electricity system remains acutely sensitive to international commodity price shocks, making accurate forecasting a strategic risk-management tool. Second, the growing importance of weights assigned to renewable variables (wind, solar, geothermal) in TFT’s variable selection network reflects the energy security dividend of domestic renewable expansion: increased penetration reduces system sensitivity to imported fossil price volatility, a dynamic that forecasting models must capture to remain policy-relevant. Third, the dataset’s coverage of the Russo–Ukrainian war period (2022–2026) and the associated MCP regime shift provides preliminary evidence that modern deep learning architectures, particularly iTransformer and TFT, maintain strong predictive performance across market conditions, including a major geopolitical shock. Formal validation of structural break robustness—for example, via Chow-test regime identification or sub-period evaluation—is identified as a priority for future research. These findings have direct relevance for Türkiye’s energy policy trajectory, EU–Türkiye energy partnership negotiations, and the design of forecasting infrastructure for import-dependent economies.
The findings of the deep learning benchmark, particularly the high importance attributed to the market-clearing price (MCP) and the growing role of renewable variables, also point to a deeper tension in the political economy of Türkiye’s energy security. From a critical political economy perspective, the reliance on market mechanisms to drive the transition to renewable energy and strategic autonomy can be at odds with the growth-dependent nature of neoliberal capital accumulation strategies. Market-based instruments tend to depoliticize environmental and strategic crises by subordinating ecological and national-security goals to the profit-maximization motives of market actors, potentially limiting their effectiveness [35,36]. Relying primarily on neoliberal market dynamics to manage energy transitions can also erode the nation-state’s capacity for intervention, which remains a crucial actor in addressing global market failures such as climate change and energy insecurity [37,38]. Read in this light, the high feature importance of the MCP in the forecasting models does not merely quantify a technical dependency on imported fossil fuels; it can be interpreted as a quantitative signal of the structural vulnerability that arises when national energy security and strategic autonomy are left largely to volatile, deregulated international markets rather than to coordinated state intervention. This reading is consistent with evidence on Turkish citizens that high environmental awareness does not readily translate into electoral or policy demand for ecological transformation, owing to low institutional trust and the dominance of economic priorities. This dynamic further constrains market-led pathways to energy autonomy [39].
The high predictive precision of the iTransformer and TFT models suggests their potential as decision-support tools for national energy planners. Subject to further operational validation, these models could improve situational awareness of market volatility and inform strategic reserve allocation decisions during periods of elevated geopolitical risk.
Future research directions include end-to-end sequence-to-sequence training with multi-horizon targets; integration of external covariates (temperature, public holidays, GDP indicators, geopolitical risk indices); cross-national transfer learning for energy-security-stressed markets; and online learning mechanisms for adaptive retraining in evolving geopolitical and market environments.
Author Contributions
Conceptualization, Y.G. and M.E. (Murat Emeç); methodology, Y.G.; software, Y.G.; validation, Y.G., M.E. (Murat Emeç) and M.E. (Muzaffer Ertürk); formal analysis, Y.G. and M.E. (Murat Emeç); investigation, Y.G.; resources, M.E. (Muzaffer Ertürk); data curation, Y.G.; writing—original draft preparation, Y.G.; writing—review and editing, M.E. (Murat Emeç) and M.E. (Muzaffer Ertürk); visualization, Y.G.; supervision, M.E. (Murat Emeç); project administration, Y.G.; international relations and geopolitical context, G.K. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Data Availability Statement
The data are not publicly available due to privacy restrictions.
Acknowledgments
The authors wish to thank all individuals and institutions who contributed to the development of this research.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Elbaş, H.; Bilgin, T.T. Forecasting electricity demand in Türkiye: A comprehensive review of methods, determinants, and policy implications. J. Energy Syst. 2025, 9, 132–158. [Google Scholar] [CrossRef] [Scilit]
- Kainat, M.; Khan, S.; Aslam, S.; Ashraf, N.; Daraz, A.; Alkhalifah, T. Toward holistic energy management by electricity load and price forecasting: A comprehensive survey. IEEE Access 2023, 11, 132604–132626. [Google Scholar] [CrossRef] [Scilit]
- Ertürk, M.; Emeç, M.; Turhan, M. Hybrid deep learning and transformer-based framework for multivariate electricity consumption forecasting. Appl. Sci. 2026, 16, 2760. [Google Scholar] [CrossRef] [Scilit]
- Amalou, I.; Mouhni, N.; Abdali, A. Multivariate time series prediction by RNN architectures for energy consumption forecasting. Energy Rep. 2022, 8, 1084–1091. [Google Scholar] [CrossRef] [Scilit]
- Gasparin, A.; Lukovic, S.; Alippi, C. Deep learning for time series forecasting: The electric load case. arXiv 2019, arXiv:1907.09207. [Google Scholar] [CrossRef] [Scilit]
- Cascone, L.; Sadiq, S.; Ullah, S.; Mirjalili, S.; Siddiqui, H.U.R.; Umer, M. Predicting household electric power consumption using multi-step time series with convolutional LSTM. Big Data Res. 2022, 31, 100360. [Google Scholar] [CrossRef] [Scilit]
- Atabay, F.V.; Pagkalinawan, R.M.; Pajarillo, S.D.; Villanueva, A.R.; Taylar, J.V. Multivariate time series forecasting using ARIMAX, SARIMAX, and RNN-based deep learning models on electricity consumption. In Proceedings of the International Information Security and Cryptology Conference (IISEC 2022), Ankara, Turkey, 15–16 December 2022. [Google Scholar] [CrossRef] [Scilit]
- Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, Ł.; Polosukhin, I. Attention is all you need. In Proceedings of the Advances in Neural Information Processing Systems (NeurIPS, 2017), Long Beach, CA, USA, 4–9 December 2017; pp. 5998–6008. [Google Scholar] [CrossRef] [Scilit]
- Wu, H.; Hu, T.; Liu, Y.; Zhou, H.; Wang, J.; Long, M. TimesNet: Temporal 2D-variation modeling for general time series analysis. In Proceedings of the 11th International Conference on Learning Representations (ICLR 2023), Kigali, Rwanda, 1–5 May 2023. [Google Scholar] [CrossRef] [Scilit]
- Nie, Y.; Nguyen, N.H.; Sinthong, P.; Kalagnanam, J. A time series is worth 64 words: Long-term forecasting with transformers. In Proceedings of the 11th International Conference on Learning Representations (ICLR 2023), Kigali, Rwanda, 1–5 May 2023. [Google Scholar] [CrossRef] [Scilit]
- Liu, Y.; Hu, T.; Zhang, H.; Wu, H.; Wang, S.; Ma, L.; Long, M. iTransformer: Inverted transformers are effective for time series forecasting. In Proceedings of the 12th International Conference on Learning Representations (ICLR 2024), Vienna, Austria, 7–11 May 2024. [Google Scholar] [CrossRef] [Scilit]
- Lim, B.; Arık, S.Ö.; Loeff, N.; Pfister, T. Temporal fusion transformers for interpretable multi-horizon time series forecasting. Int. J. Forecast. 2021, 37, 1748–1764. [Google Scholar] [CrossRef] [Scilit]
- Kuster, C.; Rezgui, Y.; Mourshed, M. Electrical load forecasting models: A critical systematic review. Sustain. Cities Soc. 2017, 35, 257–270. [Google Scholar] [CrossRef] [Scilit]
- Hochreiter, S.; Schmidhuber, J. Long short-term memory. Neural Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Zhou, H.; Zhang, S.; Peng, J.; Zhang, S.; Li, J.; Xiong, H.; Zhang, W. Informer: Beyond efficient transformer for long sequence time-series forecasting. In Proceedings of the 35th AAAI Conference on Artificial Intelligence, Virtual, 2–9 February 2021; pp. 11106–11115. [Google Scholar] [CrossRef] [Scilit]
- Wu, H.; Xu, J.; Wang, J.; Long, M. Autoformer: Decomposition transformers with auto-correlation for long-term series forecasting. In Proceedings of the Advances in Neural Information Processing Systems (NeurIPS, 2021), Virtual, 6–14 December 2021; pp. 22419–22430. [Google Scholar] [CrossRef] [Scilit]
- Zhou, T.; Ma, Z.; Wen, Q.; Wang, X.; Sun, L.; Jin, R. FEDformer: Frequency enhanced decomposed transformer for long-term series forecasting. In Proceedings of the 39th International Conference on Machine Learning (ICML 2022), Baltimore, MD, USA, 17–23 July 2022; pp. 27268–27286. [Google Scholar] [CrossRef] [Scilit]
- Qiu, X.; Hu, J.; Zhou, L.; Wu, X.; Du, J.; Zhang, B.; Guo, C.; Zhou, A.; Jensen, C.S.; Sheng, Z.; et al. TFB: Towards comprehensive and fair benchmarking of time series forecasting methods. Proc. VLDB Endow. 2024, 17, 2363–2377. [Google Scholar] [CrossRef] [Scilit]
- Shao, Z.; Wang, F.; Xu, Y.; Wei, W.; Yu, C.; Zhang, Z.; Yao, D.; Sun, T.; Jin, G.; Cao, X.; et al. Exploring progress in multivariate time series forecasting: Comprehensive benchmarking and heterogeneity analysis. IEEE Trans. Knowl. Data Eng. 2023, 37, 291–305. [Google Scholar] [CrossRef] [Scilit]
- Lim, B.; Zohren, S. Time-series forecasting with deep learning: A survey. Philos. Trans. R. Soc. A 2021, 379, 20200209. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Alizadegan, H.; Rashidi Malki, B.; Radmehr, A.; Karimi, H.; Asghari Ilani, M. Comparative study of LSTM, bidirectional LSTM, and traditional machine learning approaches for energy consumption prediction. Energy Explor. Exploit. 2024, 43, 281–301. [Google Scholar] [CrossRef] [Scilit]
- Ibrahim, I.A.; Hossain, M.J. Short-term multivariate time series load data forecasting at low-voltage level using optimized deep-ensemble learning-based models. Energy Convers. Manag. 2023, 293, 117663. [Google Scholar] [CrossRef] [Scilit]
- Chou, J.S.; Truong, D.N. Multistep energy consumption forecasting by metaheuristic optimization of time-series analysis and machine learning. Int. J. Energy Res. 2021, 45, 4581–4612. [Google Scholar] [CrossRef] [Scilit]
- González Grandón, T.; Schwenzer, J.; Steens, T.; Breuing, J. Electricity demand forecasting with hybrid classical statistical and machine-learning algorithms: A case study of Ukraine. Appl. Energy 2024, 355, 122249. [Google Scholar] [CrossRef] [Scilit]
- Shahsavari-Pour, N.; Heydari, A.; Keynia, F.; Fekih, A.; Shahsavari-Pour, A. Building electrical consumption patterns forecasting based on a novel hybrid deep learning model. Results Eng. 2025, 25, 104522. [Google Scholar] [CrossRef] [Scilit]
- Alsalem, K. A hybrid time series forecasting approach integrating fuzzy clustering and machine learning for enhanced power consumption prediction. Sci. Rep. 2025, 15, 6447. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Moustati, I.; Gherabi, N. Unveiling the potential of transformer-based models for efficient time-series energy forecasting. J. Adv. Inf. Technol. 2025, 16, 623–631. [Google Scholar] [CrossRef] [Scilit]
- Mohammadi, A.; Nápoles, G.; Salgueiro, Y. Deep learning for time-series forecasting with exogenous variables in energy consumption: A performance and interpretability analysis. IEEE Access 2025, 13, 86746–86767. [Google Scholar] [CrossRef] [Scilit]
- Yaprakdal, F.; Varol Arısoy, M. A multivariate time series analysis of electrical load forecasting based on a hybrid feature selection approach and explainable deep learning. Appl. Sci. 2023, 13, 12946. [Google Scholar] [CrossRef] [Scilit]
- Kim, H.; Park, S.; Kim, S. Time-series clustering and forecasting household electricity demand using smart meter data. Energy Rep. 2023, 9, 4848–4859. [Google Scholar] [CrossRef] [Scilit]
- EPİAŞ Transparency Platform. Available online: https://seffaflik.epias.com.tr (accessed on 4 April 2026).
- Basit, H.; Mushtaq, N.; Bashir, S.; Morales, A.M. Multivariate time series forecasting for electricity consumption using machine learning methods. Nat. Appl. Sci. Int. J. 2023, 4, 164–176. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Bacanin, N.; Stoean, C.; Zivkovic, M.; Rakic, M.; Strulak-Wójcikiewicz, R.; Stoean, R. On the benefits of using metaheuristics in the hyperparameter tuning of deep learning models for energy load forecasting. Energies 2023, 16, 1434. [Google Scholar] [CrossRef] [Scilit]
- Sapnken, F.E.; Khalili Tazehkandgheshlagh, A.; Hamaidi, M.; Noumo, P.G.; Tamba, J.G. Performance evaluation of multivariate deep-time convolution neural architectures for short-term electricity forecasting. Energy 360 2024, 1, 100005. [Google Scholar] [CrossRef] [Scilit]
- Konuralp, E. Between neoliberal appetence and environmentalist reservations: The political economy of sustainable aviation. Int. J. Sustain. Aviat. 2020, 6, 134–147. [Google Scholar] [CrossRef] [Scilit]
- Dryzek, J.S. The Politics of the Earth: Environmental Discourses, 4th ed.; Oxford University Press: Oxford, UK, 2021. [Google Scholar]
- Gürçam, S. Analyzing the global fight against climate change and the Turkish context. Lectio Soc. 2022, 6, 39–54. [Google Scholar] [CrossRef] [Scilit]
- Gürçam, S.; Pilgir, E.; Konuralp, E. Çevre Siyaseti: Siyasette Çevre. In Türkiye’de Genç Seçmenler Üzerine Bir Araştırma; Nobel: Ankara, Türkiye, 2026. [Google Scholar]
- International Energy Agency (IEA). World Energy Outlook 2021; IEA: Paris, France, 2021; Available online: https://www.iea.org/reports/world-energy-outlook-2021 (accessed on 4 April 2026).
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. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.



