KEV0143/Comparative-analysis-of-hourly-load-forecasting-using-PatchTST-TFT-NHiTS-and-CatBoost
About
A comprehensive time-series benchmark evaluating state-of-the-art deep learning architectures (PatchTST, TFT, N-HiTS) against traditional gradient boosting (CatBoost) for accurate 24-hour load prediction.
AI & Machine LearningMeasured star growth
- in 24h
- +1
- in 7 days
- +1
- in 15 days
- +3
- in 1 month
- +3
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.EN.md
OriginalHourly Load Forecasting Using PatchTST and Temporal Fusion Transformer: A Comparative Systems Analysis with Traditional Boosting Methods (CatBoost) and N-HiTS Neural Network Models
An information system for comparative analysis of hourly electric load forecasting models: PatchTST, Temporal Fusion Transformer (TFT), N-HiTS, and CatBoost. Features data preprocessing, model training, validation, and visualization of results to support decision-making in energy markets.
Русская локализация | English Localization | 中文本地化
A. E. Dzgoev, E. V. Klimkin, V. V. Chernyauskas, A. V. Brailovsky, R. N. Rezenkov
MIREA – Russian Technological University
78 Vernadsky Avenue, Moscow, 119454, Russia
News of Kabardino-Balkarian Scientific Center of RAS. 2026. Vol. 28. No. 3. Pp. 49–70.
DOI:
10.35330/1991-6639-2026-28-3-49-70
UDC: 519.876.5.7:621.311+004.032.26+004.85
MSC: 93A30; 68T05; 62M20
Received: 01.04.2026, revised: 04.05.2026, accepted for publication: 11.06.2026
Scientific Collaboration
The authors welcome scientific collaboration with universities, data centers, energy companies, and industrial enterprises in applying the models described above, including Transformers, to load forecasting tasks.
We are open to conducting model pilot projects in industrial and energy companies followed by deployment.
For Citation
Dzgoev A. E., Klimkin E. V., Chernyauskas V. V., Brailovsky A. V., Rezenkov R. N. Hourly Load Forecasting Using PatchTST and Temporal Fusion Transformer: A Comparative Systems Analysis with Traditional Boosting Methods (CatBoost) and N-HiTS Neural Network Models // News of Kabardino-Balkarian Scientific Center of RAS. 2026. Vol. 28. No. 3. Pp. 49–70. DOI: 10.35330/1991-6639-2026-28-3-49-70
Abstract
In modern conditions of dynamic demand behavior and external factor influences, traditional statistical autoregressive modeling methods (ARIMA, SARIMAX) often give way to machine learning algorithms (Gradient Boosting) and modern deep learning architectures (Transformers).
Research Aim – solving the problem of selecting the best power consumption forecasting model for each hour of the next day under conditions of limited information using modern machine and deep learning methods: CatBoost, Temporal Fusion Transformer (TFT), PatchTST, N-HiTS.
Materials and Methods. The program code is written in Python and available open-source on GitHub at: https://github.com/KEV0143/Comparative-analysis-of-hourly-load-forecasting-using-PatchTST-TFT-NHiTS-and-CatBoost.
Results. Within each of the considered methods, new high-quality and adequate mathematical models for power consumption forecasting were developed. An important mathematical result is that solving the problem – electricity consumption forecasting for enterprise energy management – has been reduced to a scientifically grounded selection of a single best model. This is significant both for theoretical investigation of modern machine and deep learning algorithms and for their practical application, considering growing data volumes. The task is crucial for optimizing electricity consumption at both enterprise and regional levels.
Conclusion. As a result of the theoretical analysis and computational experiment conducted on real-world data from a Russian power supply company, an important practical conclusion was drawn regarding the applicability of the CatBoost model for optimizing enterprise electricity consumption. All conclusions presented in the article are confirmed by statistical test results.
Keywords: systems analysis of models, mathematical statistics, short-term forecasting, electricity consumption, comparative systems analysis, machine learning, deep learning, CatBoost, Temporal Fusion Transformer (TFT), PatchTST, N-HiTS
INTRODUCTION
Operational and short-term load forecasting (STLF) of electricity consumption is a critical task for market participants in the Wholesale Electricity and Capacity Market (WECM) [1]. High forecasting errors (up to 17% annually) lead industrial and energy companies to significant financial losses due to deviation penalties, while also reducing the efficiency of operational planning for generation regimes and regional power grids [2, 3].
Under modern conditions of dynamic demand and external influences, traditional statistical autoregressive models (ARIMA, SARIMAX) often yield to machine learning algorithms (Gradient Boosting) and modern deep learning architectures (Transformers). This study compares four modern machine learning modeling methods: CatBoost, Temporal Fusion Transformer (TFT), N-HiTS, and PatchTST, evaluated on pattern recovery and electricity consumption forecasting quality using real data from a Russian power utility company.
Modeling and forecasting hourly electricity consumption for decision-making in regional power grid management represents a scientific-applied problem at the intersection of systems analysis, machine learning, time-series analysis, and power engineering. The complexity of selecting an optimal mathematical model stems from the non-stationary, multimodal, and stochastic nature of load data, which is influenced by numerous independent variables ($X$): from meteorological conditions and calendar factors to economic activity and electricity consumption behavior patterns. However, we adhere to a scientific philosophy in which the mathematical essence and utility of a model lie in using fewer parameters than observed data points. If a mathematical model with a small number of parameters explains most observations while remaining useful, adequate, and accurate, it represents a major scientific achievement. Researchers must systematically verify on which data a model succeeds or fails, demonstrating that no single universal model exists.
This is precisely why researchers worldwide continue to investigate, develop, and compare various mathematical models and methods—from statistical and ensemble techniques (ARIMA, Gradient Boosting) to modern deep learning architectures (LSTM, Transformers, hybrid models)—in search of the most accurate and robust solutions for specific datasets. Even a slight error reduction by fractions of a percent (e.g., reducing MAPE from 2.5% to 2.0%) yields a massive economic impact, especially for major mining, metallurgical enterprises, and data centers. For large industrial enterprises, this translates into optimized electricity procurement costs and reduced non-compliance penalties; for grid and generation companies—enhanced reliability, efficient dispatch planning, and lower reserve capacity costs; for data centers (DCs)—direct reductions in operational expenses and improved energy efficiency [4].
For large industrial enterprises operating on the WECM (such as mining and metallurgical complexes, chemical and automotive plants producing energy-intensive goods, as well as agricultural holdings), electricity consumption is one of the largest cost items in product prime cost. An accurate hourly forecast for the next day enables such companies to participate effectively in the WECM, entering into optimal contracts and minimizing costs associated with procuring necessary energy. Forecasting errors result either in buying deficit power at inflated spot prices on the balancing market (BM) or selling excess energy at unfavorable rates. To encourage accurate forecasting, the System Operator of the Unified Power System of Russia (SO UPS) imposes financial penalties for deviations of forecasted values from actual consumption [5].
For energy utilities, precise hourly forecasting forms the foundation of safe and cost-effective power system operations across regions. Energy retail companies use forecasts to construct volume requirements for regional power procurement. Grid companies rely on forecasts to plan maintenance, detect power losses (technical and commercial), and manage grid loads to prevent failures (predictive analytics). For the System Operator of the Russian UPS, aggregate electricity demand forecasting is fundamental for formulating daily power plant dispatch schedules, ensuring frequency stability, and calculating required spinning reserves. Underestimating demand can trigger power shortages and consumer load shedding, whereas overestimating leads to unnecessarily expensive commitment of excess generation capacity (e.g., gas turbines), incurring national-level financial losses worth billions of rubles [6, 7].
With the rapid advancement of artificial intelligence technologies, data centers (DCs) have become some of the largest consumers of electricity, with power supply costs reaching 40–50% of total operational expenses. Accurate hourly load forecasting is crucial for data centers in both short-term operational and long-term strategic management. It allows optimizing cooling system performance (the most energy-intensive component after IT equipment) and effectively mobilizing backup power sources. In the future, driven by stringent green energy standards, data centers will aim for maximum integration with local renewable energy sources (solar panels, wind turbines), where self-consumption forecasting will become an indispensable requirement for microgrid balancing and carbon footprint reduction [8–10].
The novelty of the problem statement in this work lies in a comprehensive, comparative, and systems analysis of modern heterogeneous mathematical models for electricity consumption forecasting. These models are developed using diverse machine learning and deep learning methodologies applied to real-world operational data from an energy company in the Central Region of Russia.
PROBLEM STATEMENT AND PRELIMINARY STATISTICAL SYSTEMS ANALYSIS OF REAL ELECTRICITY CONSUMPTION DATA
This paper presents a systematic comparative analysis of modern machine and deep learning methods, encompassing fundamentally distinct approaches—from gradient boosting (CatBoost) to neural network architectures specialized for time series (N-HiTS, Temporal Fusion Transformer, PatchTST). The novelty of the research resides in a scientifically rigorous evaluation of their efficacy on the practical problem of hourly electricity consumption forecasting for energy management and energy efficiency in industrial enterprises.
Preliminary Statistical Analysis of Real-World Data
The study was conducted using real-world data from a major energy company in the Central Region of the Russian Federation for one delivery point group (GTP-1), including active power consumption (MWh) and ambient temperature (°C).
Sample Characteristics
The total dataset comprises 97,177 observations (hourly electricity consumption values spanning over 11 years—from 2012 to 2023). Electricity consumption values range from 2,293.76 to 7,755.18 MWh.
Statistical metrics were computed for the target variable (hourly electricity consumption):
- Sample mean – 4,681.33 MWh ($\pm 987.74$ MWh);
- Median – 4,649.02 MWh. The close alignment between sample mean and median indicates a relatively balanced distribution;
- Skewness – 0.0896. The distribution displays slight right-skewness (a tail toward higher consumption values);
- Kurtosis – -0.5303;
- Standard deviation – 987.74 MWh;
- Mode – 2,836.56 MWh. The distribution is platykurtic, signifying an absence of frequent extreme outliers and a broader distribution around the mean compared to a Gaussian distribution. This is explained by daily cyclicity: consumption regularly shifts between low (night) and high (day) levels;
- Interquartile range – 50% of all observations fall within the range of 3,985 MWh to 5,400 MWh.
The statistical analysis of GTP-1 hourly load data from 02.01.2012 to 31.01.2023 ($n = 97,177$ observations) revealed the following patterns:
- Distribution Nature: The electricity consumption distribution shown in Fig. 1 demonstrates characteristic features of a multimodal distribution driven by diurnal, weekly, and seasonal cycles [11]. The proximity of the sample mean (4,681.33 MWh) and median (4,649.02 MWh) indicates a relatively symmetric central core. However, the mode (2,836.56 MWh) is significantly lower, reflecting recurring low-demand periods during night hours;
- Skewness and Kurtosis: The slight positive skewness ($\text{Skewness} = 0.0896$) indicates a mild heavy right tail caused by periods of exceptionally high demand (e.g., peak load periods). Negative kurtosis ($\text{Kurtosis} = -0.5303$) classifies the distribution as platykurtic, meaning a flatter density curve relative to a normal distribution and lower incidence of extreme outliers. This aligns with findings in literature [12], noting that long-term averaged daily load profiles often exhibit smoothed distributions due to the superposition of multiple cyclic load groups;
- Volatility: Standard deviation (987.74 MWh) represents approximately 21% of the mean value, highlighting substantial intraday variability. The interquartile range ($\text{IQR} \approx 1,415$ MWh) confirms that most hourly load values are concentrated within moderate load levels, while extreme values (both low and high) occur relatively infrequently.
Fig. 1. Electricity consumption distribution and preliminary statistical analysis results
A statistical analysis was also performed on the independent variable (ambient temperature). Ambient temperature values exhibit wide variation: from -29.9 °C to +34.4 °C, confirming the necessity of accounting for climatic factors (e.g., electric heating in winter and air conditioning in summer).
The probability distribution of ambient temperature is also platykurtic ($\text{Kurtosis} = -0.5670$) with close mean (6.84 °C) and median (6.30 °C) values, along with a slight negative skewness (-0.0841). This reflects relative symmetry around the mean with a minor shift toward lower temperatures. The broad spread (standard deviation = 10.61 °C) reflects the annual climate cycle. The probability distribution plot for ambient temperature is presented in Fig. 2.
Fig. 2. Ambient temperature distribution and preliminary statistical analysis results
Time series plots of power consumption and temperature shown in Fig. 3 demonstrate:
- Pronounced diurnal periodicity with minima during night hours and peaks during daytime;
- Seasonal dependency: power demand correlates strongly with temperature. Peaks occur in both winter (space heating) and summer (air conditioning), matching the U-shaped load-temperature curve described in [13];
- Long-term trends and anthropogenic effects: underlying cyclic components, subtle long-term trends reflect changes in economic activity, energy efficiency policies, or consumer structure [14].
Fig. 3. Energy consumption and ambient temperature graphs over 11 years
Thus, the raw electricity consumption data constitutes a non-stationary, multi-seasonal time series conditioned on temperature and temporal factors (day of week, holidays). Modeling and forecasting such series requires advanced mathematical techniques capable of capturing complex non-linear relationships and feature interactions.
MACHINE AND DEEP LEARNING METHODS USED TO DEVELOP CANDIDATE MATHEMATICAL MODELS FOR HOURLY LOAD FORECASTING FOR THE NEXT DAY
Justification of Model Selection
To solve the hourly Short-Term Load Forecasting (STLF) problem, we selected state-of-the-art methods spanning distinct machine learning and deep learning paradigms:
- CatBoost – selected for its high efficiency in handling categorical and temporal features [15];
- TFT (Temporal Fusion Transformer) – selected for its capability to interpret temporal dynamics and capture complex interactions between static and dynamic variables [16];
- N-HiTS (Neural Hierarchical Interpolation for Time Series) – selected as a modern architecture that reduces computational complexity via hierarchical interpolation, making it suitable for multi-step forecasting [17];
- PatchTST – selected due to its patch-based segmentation of time series, enabling Transformers to better extract local semantic dependencies [18].
This selection is grounded in the necessity to:
- Account for non-linear relationships between load, temperature, and calendar variables;
- Capture multi-period temporal dependencies in data;
- Ensure forecast interpretability and reliability.
Decision Tree Gradient Boosting (CatBoost)
CatBoost [19] represents the gradient boosted decision trees (GBDT) family, widely applied in systems analysis and tabular data processing. For load forecasting, its primary advantages include:
- Automatic handling of categorical features—efficient processing of critical variables such as hour of day, day of week, day type (weekday/weekend/holiday), and month, capturing daily and weekly seasonal patterns;
- Robustness against overfitting—achieved via ordered boosting and built-in regularization;
- Interpretability—feature importance evaluation (Feature Importance) allows validating physical and economic model soundness (e.g., verifying the impact of temperature and historical peak loads).
Let us review the model update and gradient evaluation scheme in CatBoost [19].
Given a sample dataset ${(X_k, Y_k)}_{k=1}^n$ ordered according to a random permutation $\sigma$, and total trees $I$. Let $M_i(X)$ denote the model after the $i$-th training step for instance $X$. Initialize $M_i(X) = 0$ for all $i = 1, \dots, n$. At each iteration $\text{iter} = 1, \dots, I$, loss function gradients $L(y, a)$ with respect to previous model predictions are computed for each object $i = 1, \dots, n$. For all $j = 1, \dots, i - 1$, the gradient is given by Formula 1:
$$ g_j = \left. \frac{\partial L(y_j, a)}{\partial a} \right|_{a = M_i(X_j)} $$
Next, a decision tree $M$ is constructed on the set of pairs ${(X_j, g_j)}_{j=1}^{i-1}$ using the gradient boosting tree building algorithm. Subsequently, the model for object $i$ is updated according to:
$$ M_i \leftarrow M_i + M $$
Upon completion of all iterations, the algorithm outputs models $M_1, \dots, M_n$ and predictions $M_1(X_1), M_2(X_2), \dots, M_n(X_n)$ [19].
Temporal Fusion Transformer (TFT)
The TFT model [20] is a state-of-the-art deep learning neural architecture designed specifically for interpretable multi-horizon time series forecasting. TFT explicitly categorizes and processes known future exogenous variables $X$ (such as calendar features) and observed historical factors (lagged load values, ambient temperature). This structure naturally fits scenarios where future ambient temperatures for the forecast horizon are obtainable from meteorological forecasts. Its attention mechanism enables direct pairwise temporal dependency modeling across arbitrary historical time steps, outperforming recurrent networks on long sequences. TFT delivers feature-level and time-step interpretability, revealing which historical windows and features contributed most to a specific forecast [20].
PatchTST (GluonTS)
PatchTST represents a breakthrough approach adapting Transformer architectures to time series via patching. Unlike TFT, PatchTST is optimized for univariate time series, achieving high accuracy through two core techniques: segmenting time series into sub-series patches and employing channel independence (forecasting each channel independently). This enables deep extraction of intrinsic temporal dynamics in load series. The approach demonstrates superior performance on large target variable datasets, frequently outperforming classical deep learning methods [21].
N-HiTS
N-HiTS is a novel hierarchical architecture based on fully connected networks (FCNs) designed specifically for long-horizon time series forecasting. The model utilizes multiple stacks, each learning to forecast trends at different sampling rates (multi-rate resolution) and interpolation layers. This enables highly efficient modeling of multi-period seasonality (daily, weekly, annual) within data matrices. N-HiTS achieves high forecast accuracy at significantly reduced computational cost and parameter count compared to Transformer architectures, which is essential for operational STLF [17].
The statistical analysis of real-world data confirms the complex, cyclic, and exogenous-dependent nature of electricity consumption series. The selected ensemble of CatBoost, TFT, PatchTST, and N-HiTS provides a scientifically sound and comprehensive foundation that:
- Leverages distinct architectural strengths (gradient boosting, self-attention Transformers, hierarchical FCNs);
- Enables rigorous comparative evaluation to identify the optimal model for a specific power delivery group;
- Ensures forecast system robustness through model selection and ensembling;
- Provides both point predictions and factor interpretability.
FEATURE ANALYSIS AND RANKING
Feature analysis identified two main groups of predictor variables:
- Temporal (Calendar) – hour, day of week, month, along with cyclical transformations ($\sin/\cos$) and binary weekend indicators (weekend / workday).
- Historical (Lagged) – lagged electricity consumption values (including 1–12, 24, and 168 hours), rolling averages of load (e.g., 6/24/168 hours), and lagged ambient temperature values.
Feature importance ranking was conducted with respect to target power consumption.
The analysis revealed that autoregressive load components and intraday calendar profiles contribute most significantly to predictive performance.
Graphic results of feature ranking are illustrated in Fig. 4.
Fig. 4. Feature ranking and contribution to the model
Cyclical transformations $\sin$ and $\cos$ enable continuous representation of periodic load behavior across hours, days, and months. For instance, 23:00 and 00:00 are adjacent temporal points with near-identical operational load profiles compared to 23:00 and 12:00. Numerical hour indices obscure this continuity. Trigonometric encoding preserves periodic continuity, improving feature representations. As shown in Fig. 4, "Hour" ($\cos$) ranks 2nd in overall importance, while "Hour" ($\sin$) ranks 6th.
A grouped feature importance analysis was also performed (Fig. 5).
Fig. 5. Feature ranking by category
Because electricity consumption is fundamentally driven by human socio-economic activity, historical load lags exert a stronger predictive influence than climatic variables in this dataset.
DATASET SPLITTING AND REGRESSION MODEL TRAINING
The dataset was split chronologically to prevent look-ahead bias (data leakage):
- Training set (train) – initial ~90% of observations;
- Validation set (validation) – subsequent 9% for hyperparameter tuning and model validation;
- Test set (test) – final 168 hours (24h, 72h, 168h windows) for out-of-sample performance evaluation and forecast accuracy testing.
Hyperparameter Tuning
A forecast horizon of 168 hours was selected experimentally across all models. Training epochs ranged from 20 to 60. Accuracy evaluation used RMSE as the loss function. Table 1 lists optimal model hyperparameters and descriptions.
CatBoost (Gradient Boosting). Used as the primary baseline solution. Tree depth ($\text{Depth} = 6$) was selected to balance bias and variance; deeper trees ($\text{Depth} = 8\text{--}10$) exhibited rapid overfitting. Iterations (1,000) provided loss convergence at a learning rate ($\text{Learning Rate}$) of 0.03.
N-HiTS (Neural Hierarchical Interpolation). Relies on hierarchical forecasting via multi-rate stacks. Pooling sizes ([8, 4, 1]) form the critical hyperparameter. The first block ($\text{kernel size} = 8$) extracts overall trend; the second (4) captures mid-term variations; the third (1) processes high-frequency details. MLP width (512) enables approximating complex non-linear functions.
Table 1. Core model hyperparameters.
| Model | Hyperparameter | Value | Description |
|---|---|---|---|
| CatBoost | Iterations | 1000 | Number of ensemble trees |
| CatBoost | Depth | 6 | Tree depth |
| CatBoost | Learning Rate | 0.03 | Learning rate (eta) |
| N-HiTS | n_stacks | 3 | Number of frequency stacks |
| N-HiTS | Pooling Sizes | [8, 4, 1] | Hierarchical interpolation kernels |
| N-HiTS | MLP Width | 512 | Hidden layer width |
| PatchTST | Patch Length | 16 | Segment (token) length |
| PatchTST | Stride | 8 | Patching stride (50% overlap) |
| PatchTST | d_model | 128 | Embedding dimension |
| TFT | Hidden Size | 64 | Hidden state dimension |
| TFT | LSTM Layers | 2 | Recurrent layer count |
| TFT | Attention Heads | 4 | Multi-head attention count |
PatchTST (Patch Time Series Transformer). Transformer architecture treating time series as patch sequences. Patch length (16) and stride (8) divide series into 16-hour windows with 50% overlap, eliminating patch boundary artifacts.
TFT (Temporal Fusion Transformer). Hybrid architecture combining self-attention and LSTMs. Hidden Size (64) was intentionally bounded to 64: scaling to 128 or 256 increased training time exponentially without accuracy gains. LSTM Layers (2) extract local temporal dynamics prior to self-attention blocks.
QUALITY EVALUATION CRITERIA AND MODEL SELECTION
All models achieved training loss convergence. CatBoost demonstrated the smoothest loss decline without overfitting. Complex neural network models (notably PatchTST) exhibited loss volatility, indicating the need for larger datasets or finer tuning on univariate series. Evaluation results are summarized in Table 2.
CatBoost outperformed all competing architectures on this dataset, highlighting gradient boosting efficacy on data with strong seasonality and calendar features. TFT ranked second; notably, its error decreased at the 168-hour horizon relative to 72 hours, demonstrating effective weekly cycle modeling. Conversely, PatchTST degraded significantly at 168 hours ($R^2$ dropped to 0.88), illustrating Transformer limitations in long-horizon forecasting when training data volume is constrained.
Table 2. Model performance evaluation results.
| Forecast Horizon | Model | MAE | RMSE | MAPE (%) | $R^2$ |
|---|---|---|---|---|---|
| 24 hours | N-HiTS | 120.81 | 145.75 | 2.01 | 0.96 |
| 24 hours | PatchTST | 139.53 | 162.84 | 2.27 | 0.95 |
| 24 hours | TFT | 69.15 | 87.03 | 1.13 | 0.99 |
| 24 hours | CatBoost | 38.25 | 46.24 | 0.62 | 1.00 |
| 72 hours | N-HiTS | 127.58 | 151.11 | 2.15 | 0.95 |
| 72 hours | PatchTST | 147.78 | 175.12 | 2.42 | 0.94 |
| 72 hours | TFT | 78.99 | 107.41 | 1.32 | 0.98 |
| 72 hours | CatBoost | 39.23 | 47.19 | 0.65 | 1.00 |
| 168 hours | N-HiTS | 132.03 | 157.73 | 2.19 | 0.95 |
| 168 hours | PatchTST | 203.06 | 241.52 | 3.27 | 0.88 |
| 168 hours | TFT | 73.56 | 103.33 | 1.22 | 0.98 |
| 168 hours | CatBoost | 41.28 | 50.67 | 0.68 | 0.99 |
Figure 6 compares training loss dynamics and error distributions. CatBoost displays monotonic loss decay reaching a plateau by 40% of iterations. Transformers (PatchTST, N-HiTS) display loss instability; PatchTST failed to locate a stable global minimum. Validation residual distributions confirm CatBoost achieves the narrowest interquartile range (minimal error variance), whereas PatchTST and N-HiTS show wider spreads with heavy tails.
Fig. 6. Model comparison by loss function and forecast error distribution
Standard deviation ($\sigma$) comparison in Table 3 further supports these findings.
Table 3. Model comparison based on mean squared error and standard deviation.
| Model | Std Dev ($\sigma$) |
|---|---|
| CatBoost | 0.012 |
| TFT | 0.058 |
| N-HiTS | 0.142 |
| PatchTST | 0.2015 |
CatBoost's low $\sigma$ value confirms stable convergence, while high values for PatchTST reflect training volatility.
Consequently, CatBoost was selected as the optimal model for electricity consumption forecasting.
ELECTRICITY CONSUMPTION FORECASTING FOR EACH HOUR OF THE DAY
Forecast calculations were executed across 24-hour, 72-hour, and 168-hour horizons using all evaluated AI models (Figs. 7–9).
For the 24-hour day-ahead horizon, CatBoost delivered superior performance with a MAPE of 0.62%—an exceptional accuracy level for power system STLF. TFT achieved 1.13% MAPE, while N-HiTS and PatchTST lagged behind with MAPEs exceeding 2.0%.
Extending the forecast horizon to 72 hours tested model error accumulation resistance. CatBoost maintained robustness with minimal metric degradation, validating effective utilization of lag features and calendar signals.
Fig. 7. 24-hour electricity consumption forecasting
Fig. 8. 72-hour electricity consumption forecasting
Fig. 9. 168-hour electricity consumption forecasting
Notably, TFT achieved lower RMSE at 168 hours (103.33) than at 72 hours (107.41), attributed to its inherent weekly cycle attention mechanism. Conversely, PatchTST degraded severely ($R^2 = 0.88$, $\text{MAPE} = 3.27%$), confirming architecture sensitivity on limited datasets.
STATISTICAL SYSTEM ANALYSIS OF RESIDUALS AND DIAGNOSTICS
CatBoost residual analysis was performed using Formula (2):
$$ \text{Residuals} = Y_{\text{forecast}} - Y_{\text{actual}} $$
Statistical diagnostic properties over the 168-hour test week yielded:
- Systematic Bias – Mean residual equals 8.14 MWh. Relative to mean consumption (>4,600 MWh), forecast bias is under 0.2%, indicating no systematic over- or under-estimation.
- Error Variance – Residual standard deviation ($\sigma$) equals 50.16 MWh, defining confidence interval bounds.
- Distribution Shape:
- Skewness – -0.0283 (near-zero, proving symmetric error distribution).
- Kurtosis – 0.0751 (near-zero, confirming Gaussian tail behavior without extreme error spikes).
The residual histogram (Fig. 10) visualizes a Gaussian bell curve centered near zero.
Fig. 10. Histogram of residual distribution
Statistical test suites were performed to verify model statistical validity.
Normality Test. The Shapiro-Wilk test yielded $W = 0.9871$, $p\text{-value} = 0.1249$. Since $p > 0.05$, the null hypothesis of residual normality cannot be rejected. The Q-Q Plot (Fig. 11) shows residual points closely adhering to the theoretical line, confirming Gaussian distribution assumptions.
Fig. 11. Graphical results of the residual normality test
Autocorrelation Check. Ljung-Box Q-testing and Autocorrelation Function (ACF) evaluation (Fig. 12) produced $p < 0.05$ at 24h and 48h lags, indicating uncaptured periodic intra-day micro-structures. However, given low overall error ($\text{MAPE } 0.68%$) and confirmed residual normality, residual autocorrelation does not impede real-world operational deployment.
Fig. 12. Autocorrelation function (ACF) plot for residuals
Homoscedasticity Assessment. Temporal residual variance evaluation (Fig. 13) confirms stable error variance across the entire forecast window without error corridor widening, demonstrating model stability across load regimes.
Fig. 13. Graphical assessment of residual homoscedasticity
Model diagnostics confirm CatBoost is statistically adequate, enabling valid probabilistic confidence bound estimation for enterprise energy load forecasts.
CONCLUSION
This paper performed a systematic statistical analysis of modern machine learning and AI methods for developing and tuning hourly load forecasting models. Hyperparameter setups were empirically established for real utility data. Rigorous mathematical evidence justifies CatBoost selection among candidate models.
The solution addresses essential market bidding requirements for industrial energy consumers on wholesale markets (WECM) and regional grid dispatching, delivering substantial cost savings by reducing forecast errors to under 1%.
CatBoost proves to be a highly effective AI tool for hourly load forecasting applications.
Multi-criteria evaluation demonstrates that complex forecasting tasks can be streamlined to CatBoost utilization. All theoretical conclusions are validated empirically.
Future work will expand model candidate pools and refine data preprocessing pipelines for dynamic adaptation.
REFERENCES
Karpenko S. M., Karpenko N. V., Yematin E. A., Marat Sh. Planning electricity consumption of an industrial enterprise in the wholesale electricity market conditions // Energy Safety and Energy Saving. 2024. No. 6. Pp. 35–40. EDN: CKFPVC
Karpenko S. M., Karpenko N. V., Yematin E. A., Dzhundzhu D. Multifactor statistical analysis of indicators of the wholesale electricity market (on the example of a price zone) // Energy Safety and Energy Saving. 2024. No. 4. Pp. 37–42. EDN: QBTQHW
Byk F. L., Myshkina L. S. Economic efficiency of modern electric power industry // Energetik. 2022. No. 1. Pp. 17–21. EDN: OGTFOW
Hong T., Fan S. Probabilistic electric load forecasting: A Tutorial Review. International Journal of Forecasting. 2016. Vol. 32. No. 3. Pp. 914–938. DOI: 10.1016/j.ijforecast.2015.11.011
Dudek G. Pattern-based local linear regression models for short-term load forecasting. Electric Power System Research. 2016. No. 130. Pp. 139–147. DOI: 10.1016/j.epsr.2015.09.001
Gochhait S., Sharma D.K. Regression model-based short-term load forecasting for load despatch centre. Journal of Applied Engineering and Technological Science. 2023. Vol. 4(2). Pp. 693–710. DOI: 10.37385/jaets.v4i2.1682
Lee M.H.L., Ser Y.C., Selvachandran G., Pham T.H. A comparative study of forecasting electricity consumption using machine learning models. Mathematics. 2022. Vol. 10. Article 1329. DOI: 10.3390/math10081329
Dayarathna M., Wen Yo., Fan Rui. Data center energy consumption modeling: a survey. IEEE Communications Surveys & Tutorials. 2016. Vol. 18. No. 1. DOI: 10.1109/COMST.2015.2481183
Mughees M., Li Y., Chen Y., Li Y.R. Short-term load forecasting for ai-data center. IEEE PES General Meeting 2025. Electrical Engineering and Systems Science. 2025. DOI: 10.48550/arXiv.2503.07756
Ye Z., Gao W., Hu Q. et al. Deep learning workload scheduling in GPU datacenters: A survey. ACM Computing Surveys. 2024. Vol. 56. No. 6. Pp. 1–38. DOI: 10.1145/3638757
Munkhammar J., Meer D., Widén J. Very short term load forecasting of residential electricity consumption using the Markov-chain mixture distribution (MCM) model. Applied Energy. 2021. 282(A):116180. DOI: 10.1016/j.apenergy.2020.116180
Hippert H.S., Pedreira C.E., Souza R.C. Neural networks for short-term load forecasting: a review and evaluation. IEEE Transactions on Power Systems. Vol. 16. No. 1. Pp. 44–55. 2001. DOI: 10.1109/59.910780
Sailor D.J., Munoz J.R. Sensitivity of electricity and natural gas consumption to climate in the U.S.A. Methodology and results for eight states. Energy. 1997. Vol. 22. No. 10. Pp. 987–998. DOI: 10.1016/S0360-5442(97)00034-0
Hong T., Pinson P., Fan S. et al. Probabilistic energy forecasting: global energy forecasting competition 2014 and beyond. International Journal of Forecasting. 2016. Vol. 32. No. 3. Pp. 896–913. DOI: 10.1016/j.ijforecast.2016.02.001
Wang A., Yu Q., Wang J. et al. Electric load forecasting based on deep ensemble learning. Applied Sciences. 2023. Vol. 13. No. 17. P. 9706. DOI: 10.3390/app13179706
Lim B., Arık Ö.S., Loeff N., Pfister T. Temporal Fusion Transformer for interpretable multi-horizon time series forecasting. International Journal of Forecasting. 2021. Vol. 37. No. 1. DOI: 10.1016/j.ijforecast.2021.03.012
Challu C., Olivares K.G., Oreshkin B.N. et al. N-HiTS: Neural hierarchical interpolation for time series forecasting. Proceedings of the AAAI Conference on Artificial Intelligence. 2023. Vol. 37. No. 6. Pp. 6989–6997. DOI: 10.48550/arXiv.2201.12886
Ahmad H., Mortazavi S.K., Bahnasawi M.E. et al. Enhanced time series forecasting: integrating PatchTST with BERT Layers. Conference: 5th International Conference on Applied Mathematics & Computer Science (ICAMCS 2025). At: Venice, Italy, September 27–29, 2025. DOI: 10.1109/ICAMCS62774.2024.00014
Dorogush A.V., Ershov V., Gulin A. CatBoost: gradient boosting with categorical features support. DOI: 10.48550/arXiv.1810.11363.2018
Lim B., Arık S.Ö., Loeff N., Pfister T. Temporal Fusion Transformer for interpretable multi-horizon time series forecasting. International Journal of Forecasting. Vol. 37. No. 4. 2021. Pp. 1748–1764. DOI: 10.1016/j.ijforecast.2021.03.012
Nie Y., Nguyen N.H., Sinthong P., Kalagnanam J. A time series is worth 64 words: long-term forecasting with transformers (PatchTST). Proceedings of the International Conference on Learning Representations (ICLR 2023). https://arxiv.org/pdf/2211.14730.pdf
ADDITIONAL INFORMATION
Conflict of Interest
The authors declare no conflict of interest.
Authors' Contributions
Dzgoev A. E. – scientific supervision of the study, task formulation, retrieval and preparation of real-world data, electricity consumption forecasting, interpretation of results, evaluation of model quality and adequacy, development of regression models, description of results, testing models on real-world energy utility data;
Klimkin E. V. – development of regression models, hyperparameter tuning, model training, computation, writing Python code, plotting result figures, residual diagnostics;
Chernyauskas V. V. – data analysis, dataset preparation, autocorrelation assessment;
Brailovsky A. V. – computation of model quality criteria, model validation, heteroscedasticity evaluation;
Rezenkov R. N. – verification of mathematical model adequacy, computation of MAPE (%) forecasting error.
Funding
This research received no external funding.
Author Information
- Alan Eduardovich Dzgoev, Ph.D. in Technical Sciences, Associate Professor, Department of Digital Transformation, Institute of Information Technologies, MIREA – Russian Technological University; 78 Vernadsky Avenue, Moscow, 119454, Russia;
[email protected], ORCID: 0000-0002-1314-6151, SPIN-code: 8092-8784 - Egor Vladimirovich Klimkin, Student, Department of Applied Mathematics, Institute of Information Technologies, MIREA – Russian Technological University; 78 Vernadsky Avenue, Moscow, 119454, Russia;
[email protected], ORCID: 0009-0001-3876-3041, SPIN-code: 7018-6703 - Vladislav Vitautovich Chernyauskas, Senior Lecturer, Department of Digital Transformation, Institute of Information Technologies, MIREA – Russian Technological University; 78 Vernadsky Avenue, Moscow, 119454, Russia;
[email protected], ORCID: 0009-0002-8438-3418, SPIN-code: 5867-6366 - Andrey Valerievich Brailovsky, Assistant, Department of Digital Transformation, Institute of Information Technologies, MIREA – Russian Technological University; 78 Vernadsky Avenue, Moscow, 119454, Russia;
[email protected], ORCID: 0009-0006-1794-7825, SPIN-code: 5900-1835 - Roman Nikolaevich Rezenkov, Ph.D. in Technical Sciences, Associate Professor, Department of Digital Transformation, Institute of Information Technologies, MIREA – Russian Technological University; 78 Vernadsky Avenue, Moscow, 119454, Russia;
[email protected], ORCID: 0009-0005-5542-2125
Explore related projects
Loading…