Submitted:
01 December 2026
Posted:
02 December 2026
You are already at the latest version
Abstract
When explicit physical or network topology is unavailable, consumers can still be linked through functional neighborhoods defined by correlation. We study when such sparse neighborhoods improve consumer-level electricity forecasting, using the previously introduced Hierarchical SpatioTemporal Mamba (HiSTM) architecture on a Chilean smart-meter dataset of 6,617 consumers without geographic coordinates. Each target is surrounded by the consumers whose training-period demand correlates most strongly with its own. Across three seeds, correlated neighborhoods reduce mean MAE by 4.0% relative to target-only HiSTM and outperform randomly selected and randomly arranged neighbors. The benefit is modest and uneven: 64.8% of consumers improve, with a median relative improvement of 1.8%. It grows with neighbor correlation strength, from a median of −1.2% in the weakest to 7.6% in the strongest correlation quartile, and is unfavorable on median for the lowest-demand consumers. Compact neighborhoods perform best, and cluster conditioning of a shared model adds little. Errors grow gradually under autoregressive rollout and synthetic missingness, but neighbors provide little backup when the target’s own recent observations are missing. PredRNN++ is more accurate but uses about 130 times more parameters and 16.9 times longer inference latency. All results come from one dataset covering one year, which limits generalization.

Keywords:
electricity demand forecasting
; smart-meter data
; correlation-defined neighborhoods
; spatiotemporal modeling
; global forecasting
; Mamba
1. Introduction
Accurate short-term forecasting at the consumer level is critical for demand response, load balancing, and grid stability. Traditional statistical and machine learning (ML) methods, such as ARIMA and classical regression models, have been widely applied but are limited in capturing nonlinear dynamics and complex temporal dependencies. Consequently, deep learning models, including recurrent neural networks (RNNs), long short-term memory networks (LSTMs) [1], and sequence-to-sequence architectures [2], are used to model nonlinear temporal patterns.
To improve scalability across large numbers of consumers, global forecasting models have been proposed, where a single model is trained across multiple time series. Alonso et al. [3] demonstrated that global LSTM models outperform local models by leveraging shared temporal patterns. However, such approaches treat each series independently within a shared parameter space and do not explicitly model inter-series dependencies. Transformer-based global models [4] improve long-range temporal modeling but similarly lack explicit cross-series interaction modeling, as attention is applied along the temporal dimension rather than across series.
In parallel, spatiotemporal methods based on graph neural networks and attention mechanisms have been developed to explicitly capture dependencies among multiple load series [5,6,7]. These approaches construct spatial graphs using geographic proximity, electrical topology, or predefined adjacency structures and integrate them with temporal modeling. While effective, such methods rely heavily on predefined or engineered spatial structures, which may not be available or meaningful in consumer-level smart-meter data.
Several challenges remain for large-scale consumer-level forecasting. First, explicit spatial relationships between consumers are often unavailable or weak, making graph construction non-trivial. Second, energy consumption is highly heterogeneous, with significant variations in scale, volatility, and usage patterns across consumers, leading to performance imbalance in shared models. Third, existing global models focus primarily on temporal learning, while graph-based methods depend on predefined structures that may not reflect true behavioral relationships.
Consumer-level smart-meter datasets therefore often contain many related demand series but no reliable topology linking them. One option is to infer a functional topology from the data, linking each consumer to the consumers whose demand varies most similarly. Whether such inferred relationships are useful, for whom, and at what cost is an empirical question. This study addresses the following central question:
When explicit physical topology is unavailable, under what conditions do sparse correlation-defined functional neighborhoods improve consumer-level electricity forecasting, and what are the associated accuracy, robustness, and computational trade-offs?
We do not propose a new architecture or a new neighborhood representation. Bettouche et al. [8] introduced the Hierarchical SpatioTemporal Mamba (HiSTM) architecture and showed that it can operate on correlation-defined neighborhoods when explicit spatial topology is unavailable. That study investigated this possibility only briefly. The present paper reuses the published HiSTM architecture and the correlation-defined representation, and contributes a systematic empirical investigation of both in a consumer-level electricity forecasting setting. For each target consumer, we construct a fixed neighborhood from the consumers with the largest absolute training-period Pearson correlations and supply it to HiSTM as spatial context.
We formulate five hypotheses:
- H1 (neighbor selection): Correlation-selected neighbors improve forecasting accuracy relative to the same architecture using only the target consumer’s history, randomly selected neighbors, or the same neighbors in a randomized arrangement.
- H2 (neighborhood size): A small number of the most correlated neighbors is sufficient, and adding lower-ranked neighbors does not improve accuracy further.
- H3 (cluster conditioning): Because each functional neighborhood is already specific to its target, explicit behavior-based cluster conditioning of a shared model adds limited further benefit.
- H4 (robustness): Forecasting with functional neighborhoods degrades gradually, rather than abruptly, under autoregressive rollout and synthetically missing observations.
- H5 (computational cost): Correlation-defined neighborhoods allow a compact model to reach accuracy comparable to substantially larger spatiotemporal architectures.
These hypotheses are examined through four research questions in Section 5: whether functional neighborhoods improve forecasting (RQ1; H1), when they are useful (RQ2; H2 and H3), how robust correlation-driven forecasting is (RQ3; H4), and what the accuracy and computational trade-offs are (RQ4; H5).
The study establishes the following findings:
- Correlated neighbors help, but modestly. In a three-seed ablation with a fixed architecture, correlation-selected neighbors reduce mean MAE by 4.0% relative to target-only HiSTM, by 3.4% relative to random neighbors, and by 0.9% relative to the same neighbors randomly rearranged. At the consumer level, 64.8% of consumers improve over the target-only model, but the median relative improvement is only 1.82%.
- The benefit grows with the strength of the selected relationships. Consumers whose selected neighbors are more strongly correlated with them benefit more: across correlation-strength quartiles, the median relative improvement rises from to 7.64%, and the share of consumers benefiting rises from 39.8% to 93.2%. This association persists within demand groups, but it is descriptive and does not establish a causal effect of correlation strength.
- The benefit also depends on consumption level and neighborhood size. The median effect is favorable for the three higher-demand quartiles and unfavorable for the lowest-demand quartile. Compact and neighborhoods perform best, and larger neighborhoods do not improve accuracy.
- Cluster conditioning adds little to a shared model. Explicit cluster conditioning of a single global HiSTM reduces aggregate MAE by at most 0.9% and does not consistently reduce RMSE. Separate cluster-specific models reduce aggregate MAE and RMSE by 1.4% and 1.8% in a single run, at the cost of training and maintaining one model per cluster.
- Robustness is supported only under the evaluated conditions, and neighbors provide little backup. Over an eight-step autoregressive rollout and under up to 30% synthetic missingness with last-observation-carried-forward imputation, HiSTM’s errors increase gradually. HiSTM is second to PredRNN++ at every rollout step and remains close to the strongest baselines under missingness. Controlled outages show that missing target observations increase errors far more than missing neighbor observations, and that correlated neighbors do not compensate for them: under a 12-hour shared outage of target and neighbors, correlated HiSTM is slightly less accurate than target-only HiSTM.
- The accuracy–complexity trade-off is favorable relative to PredRNN++, not overall. PredRNN++ is more accurate, but uses approximately 130 times more parameters and 16.9 times longer inference latency than HiSTM. Several simpler baselines have fewer operations or shorter latency than HiSTM.
We also report descriptive analyses of temporal importance, spatial occlusion, and the month-to-month stability of correlation-defined neighbor sets. All experiments use one dataset covering one year, so the findings characterize this setting rather than electricity forecasting in general.
This paper is organized as follows. Section 2 reviews related work and delineates this study from the original HiSTM study. Section 3 formulates the forecasting problem and describes the neighborhood construction, the evaluated neighborhood configurations, and the HiSTM architecture. Section 4 describes the dataset, baselines, and evaluation protocol. Section 5 answers RQ1–RQ4. Section 6 presents a model behavior and representation analysis. Section 7 concludes the study.
2. Related Work
2.1. Statistical and Classical Forecasting Methods
Traditional statistical models such as ARIMA and its seasonal variant SARIMA are widely used in electricity load forecasting due to their simplicity and interpretability. ARIMA models temporal dependencies under linear and stationarity assumptions. Fathin et al. [9] applied ARIMA to electricity consumption forecasting and evaluated its performance across different prediction periods.
SARIMA extends ARIMA by incorporating seasonal components. Yin et al. [10] compared SARIMA with ARIMA, Holt–Winters, and LSTM for medium- and long-term load forecasting. Their SARIMA model achieved a mean absolute percentage error (MAPE) of 6.05% and outperformed the evaluated alternatives. However, these statistical models are less suited to capturing complex nonlinear consumption patterns.
2.2. Deep Learning for Consumer Demand Forecasting
Deep learning methods have become dominant due to their ability to model nonlinear temporal dependencies. RNN-based models, particularly LSTM and GRU, are widely used for residential load forecasting. Kong et al. [11] showed that LSTM effectively captures short-term dynamics, while Ni et al. [12] evaluated LSTM and GRU alongside other deep learning architectures for multi-horizon building energy forecasting.
Seq2Seq frameworks with Bi-LSTM encoders have been introduced to handle multi-step forecasting and irregular patterns [2]. Pooling-based RNN models further improve stability by aggregating multiple series [13], but may lose individual behavioral details. Despite these improvements, RNN-based methods still struggle to effectively model long-term dependencies.
Transformer-based models use attention mechanisms to capture temporal dependencies across longer sequences. For hour-ahead solar photovoltaic forecasting, Suresh [14] reported that PatchTST outperformed the evaluated Transformer-based alternatives, including Autoformer, Informer, and FEDformer. Autoformer uses series decomposition and an autocorrelation mechanism to represent trend, seasonal, and periodic temporal dependencies [15]. These approaches primarily model temporal relationships and do not necessarily incorporate explicit interactions between different consumers.
2.3. Global and Multi-Series Forecasting Across Many Consumers
To address scalability in large-scale energy forecasting, global models have been proposed to jointly learn from multiple time series using a single shared model. Alonso et al. [3] introduced a global LSTM that outperforms local models by leveraging shared temporal patterns, but it struggles with long-term dependencies and does not explicitly account for consumer heterogeneity. Hertel et al. [4] extended this paradigm using Transformer architectures, improving long-range temporal modeling and achieving lower forecasting errors. However, the approach incurs high computational cost due to quadratic attention complexity and still lacks explicit inter-series relationship modeling. More recently, Yang et al. [16] proposed a decomposition-based multi-sight CNN that improves accuracy through multi-scale temporal modeling and demonstrates strong scalability. Although global models improve scalability by learning shared representations across many consumers, they generally learn shared temporal representations without explicitly modeling interactions between consumers. This limitation has motivated spatiotemporal forecasting approaches that incorporate structured dependencies between consumers.
2.4. Spatiotemporal and Graph-Based Forecasting Methods
Spatiotemporal approaches explicitly model inter-consumer dependencies using graph structures defined by physical topology, geographical proximity, or other predefined similarity measures. Zhao et al. [5] proposed a graph attention Transformer for multi-step residential forecasting, but relies on a static graph structure. Arastehfar et al. [6] combined graph convolution with recurrent modeling, though RNN components limit long-term dependency learning.
Feng et al. [7] introduced a multi-level graph attention temporal convolution network to capture multi-scale spatial dependencies, but at the cost of increased architectural complexity and reliance on predefined graphs. Lv et al. [17] used spatiotemporal attention with convolutional networks, improving regional modeling but remaining limited to short-term temporal dependencies.
Dynamic graph approaches such as Zhu et al. [18] and Shi et al. [19] adapt graph structures over time to better capture evolving relationships. However, these methods introduce significant computational overhead and are difficult to scale to large systems. Recent models including multi-resolution GNNs [20] and graph-based Transformers [21] further improve performance but still depend on explicit graph construction and struggle with scalability and heterogeneity.
Despite their effectiveness, graph-based approaches generally require predefined or dynamically learned graph structures, which can introduce additional computational complexity and may not be practical for datasets where physical connectivity information is unavailable. This limitation motivates alternative approaches that infer functional relationships directly from consumption behavior.
2.5. Behavior-Based Clustering for Load Forecasting
Behavior-based approaches group consumers with similar usage patterns to improve forecasting accuracy. Quilumba et al. [22] showed that clustering smart meter data using k-means enhances intraday forecasting, although it requires training separate models for each cluster, limiting scalability.
Dab et al. [23] improved clustering robustness using a consensus approach with k-medoids and dynamic time warping, achieving better forecasting performance. Wu et al. [24] further combined k-Shape clustering with graph convolutional networks to model relationships between groups, improving multi-step forecasting and generalization.
Clustering-based approaches address the lack of explicit topology by grouping consumers with similar behavioral patterns. However, they typically impose discrete group boundaries and often require independent models for each cluster, limiting their ability to represent continuous relationships among consumers while maintaining scalability.
An alternative to discrete clusters is to define neighborhoods according to statistical similarity rather than physical proximity, so that each consumer receives its own set of related series. Such correlation-defined neighborhoods do not require predefined graphs or cluster boundaries, but they encode only statistical association and do not establish physical connectivity.
2.6. Relation to the Original HiSTM Study
The architecture studied in this paper is not new. Bettouche et al. [8] introduced HiSTM, which combines per-time-step spatial convolutions with Mamba-based temporal processing and attention-based temporal aggregation, for spatiotemporal network traffic forecasting. The same study also showed that HiSTM can operate on correlation-defined kernels when explicit spatial topology is unavailable, and used last-observation-carried-forward (LOCF) imputation for missing values. Both the architecture and the correlation-defined input representation are therefore prior work, and we reuse them without methodological modification.
The original study examined correlation-defined kernels only briefly. It did not establish whether the selected neighbors themselves, rather than additional inputs or their arrangement, are responsible for any improvement, nor how the effect is distributed across individual consumers. The present study contributes this empirical knowledge for consumer-level electricity demand. Specifically, it (i) separates the effects of neighbor selection, neighbor placement, and additional inputs through target-only, random, and permuted controls; (ii) reports paired consumer-level improvements and their dependence on consumption level; (iii) examines neighborhood size, behavior-based cluster conditioning, and separate cluster-specific models; (iv) evaluates autoregressive rollout and synthetic missingness; and (v) characterizes the accuracy–complexity trade-off against strong temporal and spatiotemporal baselines and the month-to-month stability of the selected neighbors. The findings concern when an existing representation is useful and where its limitations lie, rather than a new forecasting method.
3. Methodology
We use the Hierarchical SpatioTemporal Mamba (HiSTM) architecture and the correlation-defined neighborhood representation introduced by Bettouche et al. [8], without methodological modification. The original framework supports both grid-based and correlation-defined neighborhoods. Since the Chile dataset provides neither geographic coordinates nor physical connectivity information, we use correlation-defined functional neighborhoods. This section describes the forecasting task, the neighborhood construction, the neighborhood configurations evaluated in this study, and, for completeness, the HiSTM architecture. A full description of the architecture is given in Bettouche et al. [8].
3.1. Problem Formulation
Let N denote the number of consumers, and let denote the electricity consumption of consumer at hourly time step t. Given a look-back window of length T, the objective is to predict the target consumer’s next-step consumption:
where contains the observations from time steps through t for the target consumer and its functional neighbors. The target consumer occupies the center of the neighborhood, and denotes the model parameterized by . Inputs and targets are normalized as described in the experimental setup.
The base model is trained by minimizing the Mean Absolute Error (MAE) over the training samples. The cluster-weighted objective used for CF-U is described separately in Section 5.2.3.
Here, the temporal dimension represents hourly history, while the spatial dimensions index the arranged consumer neighborhood. These positions represent functional relationships rather than physical distances or network connections.
3.2. Correlation-Defined Neighborhood Construction
We construct neighborhoods using Pearson correlation coefficients estimated exclusively from the training interval [25]. For each target consumer i, we rank the other consumers by the absolute correlation coefficient and select the highest-ranked distinct consumers. The target is excluded from neighbor selection. Both strongly positive and strongly negative correlations may therefore contribute to the neighborhood.
We use odd values of K so that the neighborhood has a unique center, occupied by the target consumer. The non-center grid positions are ordered by increasing Chebyshev distance from the center. Within each square ring, positions are traversed in row-major order, from top to bottom and left to right. The selected neighbors are assigned sequentially to these positions in descending order of . This traversal is fixed and identical for all targets. Stacking the neighborhood observations over T time steps produces . For , the input contains only the target consumer’s history.
Neighborhood membership and ordering are determined once from the training data and retained for validation and testing. This avoids using future observations to construct the model inputs. Keeping neighborhoods fixed is a modeling choice and does not imply that correlations or top-ranked neighbor identities remain unchanged over time. Their temporal variation is examined in Section 6.2.
The resulting representation is compatible with convolutional processing, but adjacency within the kernel does not establish physical connectivity or strong pairwise correlation between all adjacent consumers.
3.3. Evaluated Neighborhood Configurations
All configurations place the target consumer at the center and differ only in which consumers occupy the remaining positions and how they are arranged. Table 1 lists every configuration evaluated in this study.
- Correlated (referred to as Original in the ablation tables): the consumers with the largest absolute training-period Pearson correlations, placed in descending order of as described above. This is the default configuration, with .
- Random: distinct consumers sampled without replacement from all consumers other than the target. The sampled consumers are then ordered by their absolute training-period correlation with the target and placed using the same rule as Correlated. Random therefore preserves the input size and placement rule while removing correlation-based selection.
- Permuted: the same neighbors as Correlated, randomly rearranged over the non-center positions. Permuted preserves neighbor membership while removing the correlation-ranked placement.
- Target-only: a input containing only the target consumer’s history. This control is implemented by setting ; no padding or masking of absent neighbors is used. The input is therefore rather than . Because HiSTM’s convolutions preserve the spatial dimensions and its parameters are shared across positions, the same architecture and parameter count apply to both input sizes; only the spatial extent of the input differs.
- Neighborhood size: Correlated neighborhoods with , that is, with 0 to 120 neighbors.
- Spearman: the Correlated construction with Pearson correlation replaced by Spearman rank correlation (Section 3.4).
Random selections and permutations are generated once per target consumer and remain fixed across all windows and dataset splits. The contributions of neighbor selection and ordering are evaluated in Section 5.1.1.
3.4. Alternative Neighborhood Construction
As an alternative to Pearson correlation, we construct neighborhoods using Spearman rank correlation, computed on the same training interval and with the same selection and placement rules. Pearson correlation measures linear co-variation, whereas Spearman correlation measures monotonic association through ranks and is less sensitive to extreme observations. Both are invariant to positive rescaling of individual series, so neither directly measures similarity in absolute consumption levels.
3.5. HiSTM Architecture Overview
Following the original HiSTM architecture [8], the model combines spatial convolution, temporal Mamba processing, attention-based temporal aggregation, and an MLP prediction head.
A singleton channel dimension is added to the input tensor to obtain . The augmented input passes through L stacked encoder layers, where L denotes the encoder depth and C denotes the feature-channel dimension. Consumer and forecast-origin indices are omitted from intermediate representations for clarity, and tensor shapes are given for a single sample without the batch dimension.
3.6. Hierarchical Spatiotemporal Encoding
Each encoder layer first applies a two-dimensional convolution followed by a ReLU activation independently at each time step. The convolution combines features across positions within the functional neighborhood while preserving its dimensions. The first layer maps the single input channel to C channels, while subsequent layers retain C channels.
The convolutional output is then rearranged into temporal sequences, each of length T with C features. A Mamba selective state space model [26] processes these sequences along the temporal dimension, using the same layer parameters across neighborhood positions. The output is rearranged back into a tensor of shape before entering the next encoder layer.
After L layers, the encoded representation is denoted by . The stacked layers alternate spatial feature combination with temporal sequence processing.
3.7. Temporal Attention-Based Aggregation
We extract the center-position features from across the T time steps, yielding .
Following HiSTM [8], a learned linear layer maps each temporal feature vector to a scalar score. A softmax operation normalizes these scores across time, and the resulting weights are used to compute a weighted sum of the feature vectors. This produces a context vector summarizing the encoded history for prediction.
3.8. Prediction Head
The context vector is passed through an MLP consisting of two linear layers with a ReLU activation between them. The output is a scalar prediction of the target consumer’s next-step consumption on the normalized scale. Predictions are transformed back to the original consumption units for evaluation.
4. Datasets & Experimental Setup
4.1. Dataset Description
This study utilizes an electricity consumption dataset collected in Chile in 2014, covering the period from 01.01.2014 00:00:00 to 31.12.2014 23:00:00, with a temporal resolution of 1 hour. The dataset consists of hourly energy consumption records spanning an entire year for a total of 6,617 consumers. In addition to the time series consumption data, the dataset includes several metadata attributes, summarized in Table 2.
The consumers are grouped into seven high-level categories and 67 subcategories. However, the dataset exhibits a pronounced imbalance in consumption magnitude. A substantial proportion of consumers display relatively low electricity usage, while a smaller subset accounts for significantly higher consumption levels. Importantly, consumers with similar total consumption may still exhibit different temporal usage patterns, and the provided categorical and subcategorical labels do not fully capture behavioral differences in electricity consumption.
To further examine inter-consumer relationships beyond metadata, we compute the pairwise correlation between consumer time series, as illustrated in Figure 1.
The correlation heatmaps in Figure 1 reveal statistical relationships among consumer demand time series, with certain consumers exhibiting strong correlations. These relationships indicate shared variation in electricity consumption patterns but do not establish geographical proximity, physical connectivity, or the underlying causes of the observed correlations.
4.2. Baseline Models
To assess the performance of HiSTM on the Chile energy demand dataset, we compare it with a wide range of competitive temporal and spatiotemporal forecasting baselines. These models correspond to different architectural paradigms, such as Transformer-based models, recurrent networks, convolutional hybrids, and state-space-inspired models. All baselines (Table 3) are trained following the same preprocessing, normalization, and data splitting strategy.
In the main neural-model comparison, HiSTM and the baselines use the same chronological training, validation, and test partitions, preprocessing and normalization strategy, and look-back window. Unless otherwise stated, the history length is and the correlation-defined neighborhood size is . Spatiotemporal models, including HiSTM, STN, STTRE, VMRNN, and PredRNN++, receive the observations arranged as a grid at each time step. For temporal baselines, including LSTM, xLSTM, Informer, Autoformer, TimesNet, and PatchTST, the spatial dimension is flattened into input series. These models therefore receive the same target and neighbor histories in different input representations.
The neural baselines use the shared optimization settings described in the Implementation and Training Configuration subsection. No baseline-specific hyperparameter search was performed; architecture-specific settings, such as depth and hidden dimensions, follow the default configurations of the respective original implementations. Validation loss is used for early stopping and checkpoint selection. The results characterize performance under this shared training configuration, which may not be equally suitable for every architecture. Parameter counts and computational costs are reported separately in Section 5.4.4.
We also evaluate four simple forecasting methods. Persistence uses the most recent observation as the forecast for the next hour. Daily and weekly seasonal persistence use the observation from the same hour on the previous day and the previous week, respectively. The 24-hour moving average uses the mean of the previous 24 hourly observations. These methods require no training and use only the target consumer’s past consumption.
4.3. Data Preprocessing
4.3.1. Correlation-Based Spatial Construction
Neighborhoods are constructed from training-period Pearson correlations using the selection and placement procedure in Section 3.2. We also evaluate Spearman rank correlation as an alternative. Pearson measures linear co-variation, whereas Spearman measures monotonic association through ranks; neither directly measures similarity in absolute consumption levels. The forecasting performance of Pearson- and Spearman-based neighborhoods is compared in Section 5.1.3. Temporal variation in correlation matrices and neighbor identities is examined in Section 6.2.
4.3.2. Normalization and Data Splitting
All input features and target variables are normalized using min–max normalization to scale values into a fixed range. The normalization parameters are computed over all consumers from the training split only and then applied unchanged to the validation and test splits. This normalization stabilizes training by preventing features with larger scales from dominating the learning process.
The 8,760 hourly observations per consumer are split chronologically, without shuffling, into 6,132 training observations (70%), 1,314 validation observations (15%), and 1,314 test observations (15%). All validation observations follow all training observations, and all test observations follow all validation observations.
The naive baselines are evaluated on 1,290 hourly targets per consumer, starting after the first 24 hours of the test split. Across 6,617 consumers, this gives 8,535,930 forecasts. Each forecast uses only observations available before the target hour, including earlier observations from the test period. The weekly baseline also uses observations from the validation period where needed. All metrics are calculated across the evaluated consumer–hour pairs, with MAE and RMSE reported in the original kWh units.
4.3.3. Behavior-Based Clustering via k-Shape
The Chile dataset provides categorical and subcategorical labels for each consumer. However, these labels are not designed to reflect temporal consumption behavior. In preliminary analyses, we observed that consumers within the same metadata category may exhibit substantially different diurnal patterns (e.g., morning-peaking vs. evening-peaking profiles), while consumers from different categories may share similar usage dynamics. Therefore, for cluster-aware modeling, we derive behavioral clusters directly from the consumption time series rather than relying on metadata categories. To avoid temporal leakage, all clustering statistics and cluster assignments are derived exclusively from the chronological training split (the first 70% of observations) and then reused for the validation and test sets.
To characterize daily behavior, we first construct for each consumer a representative 24-hour load profile by averaging hourly consumption across the training interval only. Let denote the hourly consumption of consumer i. The mean daily profile is defined as
Each profile is then standardized (z-score) to remove scale effects and emphasize shape:
We cluster standardized daily profiles using the k-Shape algorithm [36], which is specifically designed for time series clustering under shape-based similarity and is invariant to phase shifts. This is desirable for electricity demand patterns where the dominant signal is often the shape of the diurnal curve rather than the absolute magnitude. We evaluated the k-Shape objective for using the training profiles only. Although the geometric knee occurs at , we use as a more parsimonious configuration to limit downstream model fragmentation while retaining three distinct diurnal regimes. The resulting cluster assignments are used for the cluster-aware HiSTM variants described in Section 5.2.3. Cluster identifiers follow the one-based convention (Clusters 1–3).
To support interpretability, we visualize the mean daily profiles with variability bands and report the cluster size distribution (Figure 2). The clusters exhibit distinct diurnal patterns in peak timing and standardized amplitude, indicating that behavior-based clustering captures consumption regimes beyond metadata-defined categories. Cluster 1 shows a broad daytime peak, Cluster 2 shows relatively higher overnight demand and an afternoon decline, and Cluster 3 exhibits a pronounced evening peak. However, the cluster distribution is highly imbalanced, with Cluster 1 dominating the dataset: it contains 4,974 consumers (75.2%), compared with 1,006 (15.2%) in Cluster 2 and 637 (9.6%) in Cluster 3.
The histogram of mean demand (Figure 3) further indicates substantial intra-cluster variability and skewness. All three clusters exhibit strongly right-skewed distributions. Cluster 2 has the highest average mean demand and the largest standard deviation, while Cluster 1 contains the largest extreme value. Cluster 3 has the lowest average and median mean demand. This indicates significant differences in consumption scale and variability across clusters, even though clustering is based on standardized temporal shape.
Lag plot analysis (Figure 4) reveals strong short-term autocorrelation, with a clear linear structure at small lags, indicating high dependence on recent observations. As the lag increases, the relationship becomes more dispersed, while residual structure at larger lags suggests the presence of longer-term dependencies and cyclical patterns.
Table 4 summarizes consumer-level mean demand by cluster. Cluster 2 has the highest mean and standard deviation, while Cluster 1 contains the largest individual mean demand.
4.4. Implementation and Training Configuration
We implement the HiSTM (Hierarchical SpatioTemporal Mamba) model in PyTorch, leveraging GPU-optimized operations for both Mamba and Conv2D modules to ensure computational efficiency. For reproducibility, we utilize the publicly released implementation provided by the authors [8].
All experiments are conducted on a workstation equipped with an NVIDIA RTX 4000 Ada GPU (20 GB), an Intel Core i5-14500 CPU, and 64 GB RAM, using CUDA 12.4 and PyTorch 2.6.0+cu124.
The neural models in the main comparison use the Adam optimizer with a learning rate of , a batch size of 512, and a learning rate scheduler. Early stopping is applied with a patience of 15 epochs, and the checkpoint with the lowest validation loss is selected for test evaluation.
Unless otherwise stated, the default HiSTM configuration uses a look-back window of , a correlation kernel size of , and a global (cluster-blind) training setup without cluster conditioning. The baseline comparison holds preprocessing, normalization, and chronological data partitions fixed across models. Subsequent experiments vary specific components of this setup (e.g., forecasting horizon, missing data ratio, or model conditioning) to isolate their effects.
Three comparisons use repeated training runs with seeds 42, 43, and 44: the neighborhood selection and ordering ablation, the consumer-level and correlation-strength analyses based on these runs, and the repeated-run comparison of the and neighborhoods. For these, we report the mean and sample standard deviation across the three runs. The reference in the kernel-size comparison reuses the ablation runs, so both experiments share the same seeds and evaluation samples. For the paired consumer-level analysis, we first average each consumer’s MAE across the three runs and then calculate the difference between configurations.
All other experiments, namely the single-run kernel-size sweep, the Pearson–Spearman comparison, the cluster variants, the missing-data experiments, the single-step baseline comparison, the local LSTM models, and the look-back window variation, are based on a single training run each and were not repeated across seeds. Differences in these experiments therefore cannot be compared with run-to-run variation. These experiments are evaluated on the full test split. The naive baselines are evaluated on 1,290 target hours per consumer (Section 4.3.2), and the eight-step autoregressive evaluation uses a sampled 20% subset of the test data. The first-step errors from the rollout and the full-test single-step errors therefore refer to different evaluation samples.
4.5. Evaluation Metrics
We report mean absolute error (MAE), root mean squared error (RMSE), and the coefficient of determination (). MAE measures average absolute error, while RMSE gives greater weight to larger errors. Higher indicates a closer fit to the evaluated observations. Unless stated otherwise, these metrics are pooled over all evaluated consumer–hour pairs and reported in the original kWh units. Pooled metrics are dominated by high-consumption consumers, whose errors are largest in absolute terms.
We therefore complement pooled metrics with consumer-level metrics. For consumer i, let and denote the test MAE under target-only HiSTM and under HiSTM with correlated neighborhoods, each averaged across training seeds. The primary paired improvement is
so that positive values indicate a benefit from neighbors. Relative improvements express as a percentage of . Comparisons with the random and permuted configurations are defined analogously. For each comparison, we report the median and mean improvement, the percentage of consumers with , and 95% percentile bootstrap confidence intervals obtained by resampling consumers (Section 5.1.2).
5. Results and Analysis
This section evaluates the predictive contribution of functional neighborhoods, the conditions under which they are useful, robustness across forecasting horizons and missing-data conditions, and the trade-offs between forecasting accuracy and computational cost.
- RQ1: To what extent do correlation-defined functional neighborhoods improve consumer-level forecasting accuracy relative to target-only inputs, randomly selected neighbors, and permuted arrangements of the same neighbors?
- RQ2: How do forecasting benefits vary with neighborhood correlation strength, neighborhood size, and consumer heterogeneity; what additional value does behavioral clustering provide; and how stable are the selected neighbor identities over time?
- RQ3: How does forecasting accuracy with functional neighborhoods vary across multi-step prediction horizons and missing-data conditions?
- RQ4: What trade-offs between forecasting accuracy, model complexity, and computational cost does HiSTM offer relative to temporal and spatiotemporal forecasting baselines?
Each subsection addresses one of these questions through controlled experiments and analysis.
5.1. RQ1: Predictive Contribution of Functional Neighborhoods
This subsection addresses RQ1 by examining forecasting performance with correlated, randomly selected, permuted, and target-only inputs. We report aggregate results across training runs, paired consumer-level improvements, and a comparison of Pearson- and Spearman-based neighborhood construction.
5.1.1. Neighborhood Selection and Ordering Ablation
We compare the Original, Random, Permuted, and Target-only configurations defined in Section 3.3 to examine the contributions of additional consumer histories, correlation-based neighbor selection, and neighbor placement.
The target remains at the center in every configuration. Random selections and permutations are generated once per target consumer and remain fixed across all windows and dataset splits.
All configurations use the base HiSTM backbone, a 24-hour history, identical preprocessing, and matched optimization settings and training budgets. Models are trained from scratch, and the checkpoint with the lowest validation MAE is selected for test evaluation. All configurations are evaluated on the same consumer–timestamp pairs.
Table 5 shows that Original achieves the lowest mean MAE and RMSE and the highest mean . Compared with Random, Original reduces mean MAE and RMSE by approximately 3.4% and 4.3%, respectively, supporting correlation-based neighbor selection under the same kernel size and placement rule. Compared with Permuted, the corresponding reductions are 0.9% and 4.8%, suggesting an additional benefit from the prescribed ordering when neighbor membership is held fixed. Permuted achieves lower mean MAE than Random but slightly higher mean RMSE, indicating that their relative performance depends on the metric. Random reduces mean MAE and RMSE relative to Target-only by approximately 0.7% and 10.7%, although this comparison also changes the kernel size. The mean results favor correlation-based selection with the prescribed ordering. The three-run evaluation and substantial RMSE variability, particularly for Target-only, limit conclusions about the consistency of these improvements.
5.1.2. Consumer-Level Effects of Functional Neighborhoods
To assess how the benefits of functional neighborhoods are distributed across consumers, we compare paired consumer-level forecasting errors. For each consumer, MAE was first averaged across training seeds 42, 43, and 44. Improvement was then calculated as the alternative configuration’s seed-averaged MAE minus that of the correlation-derived configuration. Positive values therefore indicate lower errors with correlation-derived neighborhoods. Relative improvements express this difference as a percentage of the alternative configuration’s seed-averaged MAE. The primary comparison uses target-only HiSTM as the reference.
Table 6 summarizes the paired improvements and the proportion of consumers benefiting from correlation-derived neighborhoods.
Compared with target-only HiSTM, correlation-derived neighborhoods reduced the seed-averaged MAE for 64.8% of consumers, with a median relative improvement of 1.82%. The median absolute MAE improvement was 0.005 kWh, compared with a mean improvement of 0.048 kWh. The difference between the mean and median indicates that larger gains among some consumers increased the average improvement. Consequently, the aggregate benefit does not represent an equally large improvement for the typical consumer.
Figure 5 shows the distribution of relative improvements across all 6,617 consumers and across quartiles of training-period demand, from the lowest-demand group (Q1) to the highest-demand group (Q4). The median relative improvement was negative for Q1 (), but positive for Q2 (1.98%), Q3 (3.52%), and Q4 (3.60%). These results indicate that the benefits were not uniform across consumption levels: the median effect was unfavorable in the lowest-demand quartile and favorable in the three higher-demand quartiles.
Correlation-derived neighborhoods also achieved lower seed-averaged MAE than random and permuted neighborhoods for 68.0% and 60.3% of consumers, respectively. These comparisons are consistent with benefits from both correlation-based neighbor selection and the prescribed placement of the selected neighbors under the evaluated configurations. Nevertheless, the small median improvement in the primary comparison indicates that benefits for individual consumers can be modest. These forecasting improvements alone do not establish their operational value.
The confidence intervals in Table 6 were obtained using 2,000 consumer-level resampling replicates and the percentile method. They are conditional on the evaluated training runs and test period and do not account for cross-consumer or temporal dependence. They should therefore be interpreted as exploratory estimates of uncertainty.
5.1.3. Alternative Neighborhood Construction
We compare neighborhoods constructed from Pearson and Spearman correlation (Section 3.4), keeping all other settings fixed. As shown in Table 7, Pearson-based neighborhoods yield lower MAE and RMSE and higher than Spearman-based neighborhoods, with differences of 2.3% in MAE and 6.0% in RMSE. In this single-run comparison, linear co-variation therefore provides a somewhat more informative basis for neighbor selection than rank-based association. Both measures are invariant to positive rescaling of individual series, so neither selects neighbors by similarity in absolute consumption level.
5.2. RQ2: When Are Functional Neighborhoods Useful?
This subsection addresses RQ2 by examining neighborhood correlation strength, neighborhood size, behavioral clustering, and the temporal stability of selected neighbors. The overall consumer-level improvement distribution and its variation across demand groups are reported in Section 5.1.2.
5.2.1. Neighborhood Correlation Strength and Forecasting Benefits
To examine whether forecasting benefits vary with the strength of the selected relationships, we calculated each consumer’s mean absolute Pearson correlation with its eight selected neighbors. Correlations were computed using training observations only, excluding self-correlation. We linked these values to the seed-averaged consumer-level MAE improvements defined in Section 5.1.2. Positive improvements indicate lower MAE with correlation-derived neighborhoods than with target-only HiSTM. All 6,617 consumers were included.
Figure 6 shows a positive association between neighborhood correlation strength and relative MAE improvement. Across consumers, the Spearman rank correlation was 0.600 for relative MAE improvement and 0.483 for MAE improvement in kWh. Thus, consumers with more strongly correlated selected neighbors generally experienced larger forecasting improvements, although individual outcomes varied substantially.
Consumers were divided into quartiles of neighborhood correlation strength, with boundaries at approximately 0.4495, 0.6160, and 0.7830. These groups differ from the demand quartiles used in the consumer-heterogeneity analysis. Table 8 summarizes their forecasting improvements.
The median relative improvement increased across the four correlation-strength quartiles, from in Q1 to in Q4. The proportion of consumers benefiting also increased, from 39.8% to 93.2%. The weakest-correlation group therefore exhibited a slightly unfavorable median effect, whereas benefits were larger and more widespread in the strongest-correlation group.
Neighborhood correlation strength was also positively associated with training-period mean demand (Spearman correlation 0.416). To examine this relationship further, we repeated the strength–improvement analysis within the existing demand quartiles. The association with relative MAE improvement remained positive in all four groups, with Spearman coefficients ranging from 0.266 to 0.603. This shows that the pattern persists within broad consumption groups, although demand stratification does not remove all potential confounding.
These findings describe associations within the evaluated dataset and model configurations. They do not establish an independent causal effect of correlation strength, which may also reflect shared temporal patterns or other consumer characteristics. Consumers may share neighbors and common influences, so the reported associations and group summaries are interpreted descriptively.
5.2.2. Spatial Granularity (Variation in Kernel Sizes)
We compare neighborhood sizes from to in the single-run sweep reported in Table 9(a). Neighborhoods are defined using training-period correlations between consumer histories. The configuration uses only the target consumer’s history. Increasing the size to reduces MAE from 1.2161 to 1.1606 and RMSE from 7.4073 to 5.7348.
In this single-run comparison, the configuration achieves the lowest MAE (1.1560), approximately 0.4% below . The configuration achieves the lowest RMSE and highest . All tested sizes of and larger perform worse than both compact configurations on all three metrics. Performance does not deteriorate monotonically among the larger sizes.
We additionally compare the and configurations across seeds 42, 43, and 44. Table 9(b) reports the mean and sample standard deviation of each test metric across these three runs.
In the repeated-run comparison, achieves the lowest mean MAE and RMSE and the highest mean . Relative to , mean MAE decreases from 1.1721 to 1.151, corresponding to a reduction of approximately 1.8%, while mean RMSE decreases from 7.7254 to 5.945, a reduction of approximately 23.0%. Mean increases from 0.9326 to 0.961.
Across the three evaluated training runs, achieves better mean performance and smaller sample standard deviations than for all three metrics. Thus, the slight MAE advantage of in the single-run comparison is not observed in the repeated-run averages.
5.2.3. Cluster-Aware HiSTM Variants
This subsection addresses RQ2: whether cluster information improves forecasting beyond the correlation-defined global HiSTM model. We compare explicit cluster conditioning with a cluster-blind global model and independently trained cluster-specific models. The three behavioral clusters are fitted using only the chronological 70% training split, and the resulting consumer assignments are kept fixed for validation and testing.
Let denote the cluster label of consumer i, and let be its context vector after temporal attention, with . GB, GA, CF, and CF-U use the same global correlation-defined neighborhoods, look-back windows, targets, and scaling. Their comparison therefore separates the effect of conditioning and loss weighting from changes in neighborhood selection. CS is included as a reference for local specialization, since it changes the training population and parameter sharing.
- Global-Blind (GB): A single HiSTM is trained on all consumers without a cluster identifier, using ordinary sample-level MAE.
-
Global-Aware (GA): A learned cluster embedding is added to the context vector after temporal attention and immediately before the MLP:The embedding table contains three vectors of dimension 32. The encoder, attention module, and prediction head retain the GB architecture, and training uses ordinary MAE.
- Cluster-Specific (CS): One independent HiSTM is trained for each cluster using only consumers assigned to that cluster. Each consumer is evaluated with its corresponding cluster model.
-
ClusterFiLM (CF): Feature-wise linear modulation (FiLM) [37] applies cluster-dependent scaling and shifting after each complete CNN/Mamba encoder layer:Here, and are learned vectors selected from scale and shift tables of size . This residual parameterization matches the FiLM model implementation. The same tables are shared across both encoder layers, and the selected vectors are broadcast over the temporal and spatial dimensions. CF uses ordinary sample-level MAE.
-
ClusterFiLM-Unbalanced (CF-U): CF-U uses the same architecture and inputs as CF, but balances the training loss across clusters represented in each mini-batch. Let , , and . Normalized inverse-frequency weights are defined asThe training objective isHere, and denote the next-hour target and forecast for sample i. Each represented cluster’s mean absolute error receives the same coefficient. Samples from smaller clusters receive larger individual weights, while the mean sample weight remains one. Clusters absent from a batch do not contribute. Equal weighting of cluster means does not imply equal error values or gradient magnitudes.For comparison, using the unnormalized weights with the same sample-mean reduction givesBoth formulations assign equal relative weight to the represented cluster means, but the raw formulation also scales the loss by . The normalized formulation avoids this batch-size-dependent shrinkage. The counts used for weighting are mini-batch counts, rather than the full cluster populations.
Cluster balancing applies only to the CF-U training objective. All models are evaluated using ordinary errors. The aggregate MAE is computed over all consumer-hour test samples, and the aggregate RMSE is the square root of the pooled mean squared error. It is not the arithmetic mean of the cluster RMSE values. The resulting aggregate metrics weight clusters according to their evaluated sample counts.
Table 10 shows that CS achieves the lowest aggregate MAE (1.1441) and RMSE (5.6320). It also has the lowest MAE for Clusters 2 and 3 and the lowest RMSE for all three clusters. CF achieves the lowest MAE in Cluster 1 (1.0596), although its advantage over GA (1.0599) and CS (1.0629) is small. These results favor cluster-specific training in this configuration, but the aggregate improvement over GB is modest: approximately 1.4% in MAE and 1.8% in RMSE.
Among the shared global models, CF and GA reduce aggregate MAE relative to GB by approximately 0.9% and 0.7%, respectively. These gains do not extend consistently to RMSE. GB has the lowest aggregate RMSE among the shared models (5.7348), followed closely by GA (5.7495). CF has a substantially higher aggregate RMSE (6.5500), despite its slightly lower MAE. The increase is most apparent in Cluster 1, where CF’s RMSE rises to 6.3082. This difference between MAE and RMSE indicates that reducing average absolute error does not necessarily reduce the influence of large prediction errors.
CF-U reduces aggregate RMSE relative to CF, from 6.5500 to 6.1764, but increases aggregate MAE from 1.1500 to 1.1986. Its MAE is also higher than CF’s in every cluster. The RMSE reduction occurs in Cluster 1; RMSE increases slightly in Clusters 2 and 3. The reported results therefore do not show improved accuracy for the smaller clusters from loss balancing. Equal weighting of cluster means during training does not, by itself, ensure better test performance for those groups.
The cluster sizes are unequal: Cluster 1 contains 4,974 consumers (75.2%), Cluster 2 contains 1,006 (15.2%), and Cluster 3 contains 637 (9.6%). Consequently, Cluster 1 has the greatest influence on the pooled aggregate metrics. Per-cluster results remain necessary to assess whether an aggregate improvement also benefits smaller groups. Cluster 2 has the largest absolute errors across all models, whereas Cluster 3 has the smallest.
For RQ2, conditioning a shared HiSTM on cluster membership yields small reductions in aggregate MAE. ClusterFiLM (CF) and Global-Aware (GA) reduce aggregate MAE by approximately 0.9% and 0.7%, respectively, relative to Global-Blind (GB). GB achieves the lowest aggregate RMSE among the shared global models.
In the same single-run comparison, Cluster-Specific (CS) reduces aggregate MAE by 1.42% and RMSE by 1.79% relative to GB. CS requires three independently trained models, each containing 33,794 parameters, giving a combined total of 101,382 parameters. GB uses a single model containing 33,794 parameters. Separate cluster-specific models therefore provide modest accuracy gains at the cost of a threefold increase in the combined parameter count and the maintenance of three models.
5.3. RQ3: Robustness of Correlation-Driven Forecasting
This subsection addresses RQ3 by evaluating autoregressive forecasting and robustness to missing inputs, including target, neighbor, and shared outages.
5.3.1. Multi-Step Autoregressive Forecasting
We examine forecasting performance under autoregressive rollout over eight time steps on the Chile dataset. To reduce the computational cost of multi-step evaluation, these experiments use a sampled 20% subset of the test data, whereas single-step evaluation uses the full test set. Consequently, the first-step autoregressive metrics and the single-step metrics are calculated over different evaluation samples and are not directly comparable. The first-step scores in Table 11 therefore need not reproduce the full-test single-step results.
The first prediction uses observations available at the forecast origin. From the second step onward, the input windows are updated recursively using predicted values for both the target consumer and all selected neighbors. Actual future observations of either the target or its neighbors are not supplied as inputs during the rollout.
Table 11 reports forecasting errors at each prediction horizon. PredRNN++ achieves the lowest MAE and RMSE at all eight steps, followed by HiSTM. At step eight, HiSTM achieves an MAE of 2.6594 and an RMSE of 11.7196, compared with 2.5510 and 11.2473 for PredRNN++. Relative to STN, HiSTM reduces eighth-step MAE and RMSE by 5.3% and 2.2%, respectively. The corresponding reductions relative to STTRE are 20.3% and 13.6%.
From the first to the eighth step, HiSTM’s MAE and RMSE increase by 129.4% and 100.2%, respectively, compared with 137.2% and 103.0% for PredRNN++. HiSTM thus exhibits slightly smaller proportional error growth relative to its own first-step errors. However, PredRNN++ maintains lower absolute errors throughout the rollout, so these results do not establish superior forecasting accuracy for HiSTM.
5.3.2. Missing Data
This subsection addresses RQ3 by evaluating HiSTM under synthetic missing-data conditions. We evaluate training missingness rates of 0% and 10%, combined with test missingness rates of 0%, 10%, 20%, and 30%. Following the preprocessing strategy used in the original HiSTM study, missing inputs are imputed using last-observation-carried-forward (LOCF) [8].
The objective is to assess forecasting performance under missing inputs and compare HiSTM with the baseline models. Results are reported using MAE and RMSE across the evaluated missingness configurations (Table 12).
Let , where represents the demand value at time step t for the consumer occupying position in the correlation-defined neighborhood for dataset split S. We introduce missingness at the consumer-time level. Each neighborhood position corresponds to an individual consumer time series:
Given a missing ratio , we split the missing set into two subsets: random dropouts and contiguous outages. We define:
where corresponds to randomly sampled indices and to contiguous intervals. In the case of random dropouts, sampling is done uniformly without replacement, while outages are modeled as disjoint intervals in time with fixed length , where T denotes the lookback window. Missing patterns are independently generated for each neighborhood position and dataset split.
After the masking step, LOCF imputation is performed along the temporal axis:
Using the imputed observations, we construct the input tensor for each target consumer u, following the same preprocessing procedure as in the main experiments.
As shown in Table 12, PredRNN++ achieves the lowest MAE and RMSE across all evaluated missing-data configurations. HiSTM remains competitive, although its response to increasing test missingness differs between the two training conditions.
When trained on complete data, HiSTM’s MAE increases monotonically from 1.1606 to 1.2211 as test missingness rises from 0% to 30%, while RMSE increases from 5.7348 to 6.4542. With 10% training missingness, RMSE also increases monotonically, from 6.0105 to 6.4378. However, MAE varies non-monotonically: it rises from 1.2038 to 1.2068 at 10% test missingness, then decreases to 1.2055 and 1.1970 at 20% and 30%, respectively.
Decreasing MAE alongside increasing RMSE is also observed for Informer, STTRE, and TimesNet in Table 12. MAE averages absolute errors, whereas RMSE gives greater weight to large errors. This pattern is therefore consistent with reductions in some errors accompanied by increases in larger errors; it does not imply that forecasting improves uniformly across observations.
One plausible explanation is that LOCF replaces missing inputs with repeated past values, potentially producing smoother predictions that are less responsive to abrupt demand changes. This could reduce some errors while increasing errors around rapid changes. However, this explanation remains untested. The results are based on single training runs, and the effects of imputation, missingness patterns, and training variability were not isolated. The observed MAE reductions therefore should not be interpreted as evidence that additional missing data systematically improves forecasting.
5.3.3. Target Missingness, Neighbor Missingness, and Shared Outages
We compared correlated and target-only HiSTM using 2,678 target consumers and 53 daily forecast origins. Targets were selected so that none appeared in another selected target’s neighborhood. All conditions used the same evaluation samples; these subset scores are not directly comparable with the full-test results.
We masked the final 3, 6, or 12 hours of the 24-hour input window for the target only, all eight neighbors only, or both simultaneously (shared outage). These durations represent 12.5%, 25%, and 50% missingness per affected series. LOCF used past observations only, with fixed normalization and no missingness indicator. Both models received identical target masks, and forecast labels remained unchanged. Target-only predictions are identical under target and shared outages and are therefore listed once.
Table 13 reports means and sample standard deviations across seeds. MAE increase is measured against the complete-input error of the same model and seed; positive values indicate deterioration.
Table 13 shows that losing recent target observations caused much larger MAE increases than losing neighbor observations. Correlated HiSTM retained slightly lower MAE under target missingness, but its increases from complete-input errors were slightly larger than those of target-only HiSTM. Shared outages further reduced the advantage: at 12 hours, correlated HiSTM’s MAE reached 3.6354 kWh, compared with 3.6057 kWh for target-only HiSTM. RMSE comparisons were mixed. The results therefore indicate limited backup value from neighbors rather than a general robustness advantage.
These findings concern selected consumers and outages immediately preceding forecast origins. Shared neighbors and repeated origins induce dependence; seed standard deviations describe training variability and are not population confidence intervals.
5.4. RQ4: Accuracy and Computational Trade-Offs
This subsection addresses RQ4 by comparing single-step forecasting accuracy against naive, temporal, and spatiotemporal baselines. We also report the supporting local-LSTM comparison, the effects of history length on accuracy and computational cost, and the model-complexity and inference benchmarks.
5.4.1. Single-Step Prediction Results
The single-step comparison evaluates HiSTM and forecasting baselines using the standard global training configuration without cluster conditioning.
Table 14 reports the results of the four naive forecasting methods. Persistence achieves the lowest MAE and RMSE, outperforming both seasonal baselines and the 24-hour moving average. For this one-hour-ahead task, the most recent observation is therefore a stronger reference than the value from the same hour on the previous day or week.
In this setting, models are evaluated using a one-step prediction horizon (). Table 15 shows that PredRNN++ achieves the lowest MAE and RMSE and the highest . HiSTM ranks second in MAE (1.1606), whereas STN ranks second in RMSE (5.7275) and (0.9639), slightly ahead of HiSTM (5.7348 and 0.9638, respectively). Thus, the ranking of HiSTM and STN depends on the evaluation metric. PatchTST records substantially higher errors, with MAE 7.9965 and RMSE 28.5610; this comparison alone does not establish the architectural or training factors responsible for its performance. LSTM and xLSTM achieve scores of 0.9612 and 0.9598, respectively.
Autoformer, Informer, and TimesNet have values between 0.9571 and 0.9585, below HiSTM’s 0.9638.
Figure 7 provides an additional view of the error distribution across consumers. HiSTM, PredRNN++, STN, LSTM, Autoformer, Informer, TimesNet, and xLSTM show relatively similar distributions of residual standard deviation, with most values concentrated at the lower end. In contrast, PatchTST exhibits a substantially wider distribution and a higher upper range, indicating less consistent performance across consumers. HiSTM also has a P99 prediction error of 19.02, showing that a small number of consumers contribute substantially larger errors despite the relatively compact distribution for most consumers.
5.4.2. Comparison with Local LSTM Models
HiSTM is compared with independently trained LSTM models for each of the 6,617 consumers in the Chile dataset. The local models use only the target consumer’s historical observations, while HiSTM is trained across consumers and receives additional input from correlation-defined neighborhoods.
For each consumer, we calculate the difference between the local LSTM error and the HiSTM error. Positive values indicate lower errors for HiSTM. Figure 8 shows the distribution of these differences, and Table 16 summarizes their magnitude and the proportion of consumers that improve.
HiSTM achieves lower MAE for 4,451 consumers (67.27%) and lower RMSE for 4,205 consumers (63.55%). The median improvements are 0.0164 kWh for MAE and 0.0118 kWh for RMSE. The mean improvements are larger than the medians, indicating that larger gains among some consumers raise the average benefit. However, the first quartile is negative for both metrics. Local LSTM models retain lower MAE for 32.73% of consumers and lower RMSE for 36.45%.
Wilcoxon signed-rank tests were applied separately to the paired consumer-level MAE and RMSE differences. Both tests yielded ; for MAE, the two-sided test statistic was . These results provide exploratory evidence of differences in both metrics, although the p-values should be interpreted cautiously because consumer-level differences may be dependent. The small median improvements also show that statistical evidence of a difference does not imply a large benefit for the typical consumer.
This comparison changes the architecture, parameter sharing, and access to neighboring series simultaneously. It therefore does not isolate the effect of neighborhood context, which is examined in Section 5.1.1.
5.4.3. Temporal Granularity (Variation in Look-Back Window Size)
We evaluate the impact of temporal receptive field length by varying the look-back window from 12 to 168 steps. As shown in Table 17, performance generally improves with longer windows, with diminishing returns beyond 48 steps. The 168-step window achieves the lowest MAE (1.0671), representing a reduction of approximately 1.0% relative to the 48-step window (1.0781).
To incorporate periodic context, we introduce three variants: same hour last week (SHLW), same day last week (SDLW), and their combination (SDSHLW). The SHLW variant augments a 24-step window with selected time steps from the same hour in the previous week (30 steps total), achieving an MAE of 1.0908, slightly outperforming the standard 36-step window (MAE = 1.0921). This suggests that targeted periodic cues can be more effective than simply extending the window.
In contrast, the SDLW variant adds 24 hourly observations from the corresponding day in the previous week to the recent 24-hour window, giving 48 input steps in total. It yields higher MAE and RMSE than the standard contiguous 48-step window, suggesting that recent contiguous observations are more useful in this setting. The combined SDSHLW configuration (53 input steps) also yields higher MAE and RMSE than SHLW, showing no additional accuracy benefit from combining the two periodic inputs in this experiment.
From this experiment we observe that, while periodic context can enhance performance, recent temporal information remains the dominant factor, and longer look-back windows yield limited additional benefit beyond a certain horizon.
This pattern is further supported by the temporal importance analysis (Section 6), where the estimated importance is concentrated on recent observations and lower for distant contiguous inputs; this observation is consistent with the stronger results for SHLW and the limited benefit of SDLW and SDSHLW in this setup.
To further examine the trade-off between forecasting accuracy and computational efficiency, we analytically estimate the hardware-independent computational overhead of each temporal configuration using the number of MAC operations and peak activation memory proxy. Since the HiSTM architecture, parameter count, and batch size remain fixed across experiments, the increase in computational cost is primarily driven by the temporal input length. As shown in Table 18, increasing the look-back window from 24 to 48 steps approximately doubles the MAC count and reduces both MAE and RMSE. Extending the window from 48 to 168 steps requires approximately 3.5 times as many MACs, while MAE decreases only from 1.0781 to 1.0671 and RMSE increases slightly from 5.3528 to 5.3607. Relative to the 24-step configuration, the 168-step configuration requires approximately seven times as many MACs.
The 36–48 step configurations provide a favorable balance between forecasting accuracy and computational cost. Among the periodic augmentation strategies, SHLW achieves competitive accuracy with relatively low computational overhead.
5.4.4. Computational Efficiency Analysis
Table 19 compares the computational characteristics of the evaluated models in terms of parameter count, model size, GPU memory usage, inference latency, and multiply-accumulate operations (MACs). The benchmark uses a temporal window of , with a spatial kernel for HiSTM.
HiSTM has the smallest parameter count among the evaluated models, with 33,794 parameters and a model size of 0.13 MB. In comparison, PredRNN++ contains approximately 4.4 million parameters, representing a roughly 130-fold difference in parameter count. HiSTM also requires substantially fewer MACs than PredRNN++ ( versus ). However, several baselines, including LSTM, xLSTM, and Informer, have lower MAC counts, indicating that HiSTM’s parameter efficiency does not translate into the lowest arithmetic complexity among all evaluated architectures.
The inference latency measurements reveal a similar distinction. HiSTM requires 1.85 ms per inference, compared with 31.24 ms for PredRNN++, corresponding to approximately 16.9 times shorter inference time under the reported benchmark conditions. Other models, including STN and VMRNN-B, also exhibit higher inference latency. However, LSTM and Informer achieve shorter inference times of 0.40 ms and 1.80 ms, respectively. HiSTM therefore offers relatively low inference latency, although it is not the fastest model in the comparison.
The reduction in model complexity comes with a trade-off in forecasting accuracy. PredRNN++ achieves lower prediction errors in both single-step and multi-step forecasting, while HiSTM remains among the strongest-performing models with substantially fewer parameters and shorter inference latency. The findings indicate that HiSTM provides a favorable balance between predictive accuracy and computational efficiency relative to PredRNN++, particularly when model size and inference latency are relevant considerations.
Table 20 summarizes a separate benchmark of the HiSTM pipeline. Preprocessing used 6,132 training observations for 6,617 consumers, with medians reported over three repetitions. Population inference used five measured passes after one warm-up pass, with CUDA synchronization. The forecasting pipeline includes input assembly, tensor conversion, device transfers, model execution, and CPU output retrieval; inputs and neighborhoods were cached in memory, and inverse scaling was excluded.
Population inference at batch size 256 produced approximately 45,000 forecasts per second at one shared forecast origin, with peak GPU memory of 144.1 MiB. These measurements describe the separately timed pipeline; cross-model latency comparisons remain based on Table 19.
Figure 9 shows preprocessing costs for 256–6,617 consumers at fixed history length. Combined runtime increased from 0.0070 to 1.663 s, while peak process memory increased from 690.4 to 1725.2 MiB. The dense float64 correlation matrix alone occupied 334.1 MiB at the full population size. Correlation construction requires time and matrix storage; full sorting for neighborhood selection requires time. These preprocessing costs are incurred once while the neighborhood map remains fixed.
HiSTM is not the computationally cheapest model overall, but none of the models with fewer operations or shorter latency achieves a lower single-step MAE.
6. Model Behavior and Representation Analysis
We examine HiSTM’s behavior beyond aggregate forecasting metrics through autoregressive error trajectories, temporal importance estimates, correlation-defined spatial context, input-configuration comparisons, and consumer-level examples. Because neighborhoods are constructed from statistical correlations rather than physical topology, these analyses characterize model sensitivity and observed associations without establishing the mechanisms responsible for forecasting performance.
6.1. Rollout Behavior and Error Accumulation
We analyze how prediction error evolves over the evaluated eight-step autoregressive horizon. Figure 10 compares HiSTM with selected baselines, including STN, xLSTM, and LSTM. Over this horizon, HiSTM exhibits a smaller increase in MAE from the first step than these three baselines.
Error growth must nevertheless be distinguished from absolute forecasting accuracy. As reported in the multi-step results, PredRNN++ achieves lower MAE and RMSE than HiSTM at every evaluated step. Although HiSTM shows slightly lower proportional error growth from the first to the eighth step, its absolute MAE increase is slightly larger. These findings therefore do not establish superior forecasting accuracy or uniformly slower error accumulation for HiSTM. The analysis is descriptive and does not identify the architectural mechanisms responsible for the observed differences.
The temporal attention profile in Figure 11 is non-uniform, with greater weight assigned to recent time steps and a secondary peak at an earlier lag. These weights describe how the evaluated model aggregates its encoded temporal features. They do not directly measure the contribution of individual observations to forecasting accuracy.
The temporal-window experiments provide separate evidence about the forecasting performance of different historical input configurations. The attention profile alone does not establish why these configurations perform differently or explain differences in autoregressive error growth between models.
6.2. Temporal Stability of Correlation-Defined Neighborhoods
The neighborhoods used in all forecasting experiments are estimated once from the training period and then applied to later periods. Their usefulness therefore depends on whether relationships estimated earlier remain informative later, which is a question of temporal generalization. We examine how inter-consumer relationships vary over time, considering both correlation-matrix similarity and the identities of the selected neighbors. The latter analysis examines whether the same consumers remain among the highest-ranked neighbors over time.
Figure 12 illustrates the Pearson similarity between correlation matrices computed for different monthly windows. Consecutive months exhibit consistently high similarity, generally ranging from 0.82 to 0.88, indicating that the correlation structure evolves gradually rather than changing abruptly. Similarity is often lower for more widely separated months, with some values around 0.55–0.65, although it does not decrease monotonically with temporal separation.
6.2.0.1. Stability of neighbor identities.
Correlation-matrix similarity does not directly measure whether the same consumers remain among the highest-ranked neighbors. We therefore examine the identities of the distinct non-center neighbors, corresponding to the eight neighboring positions in the main input configuration. Here, k denotes the number of neighbors, rather than the spatial kernel size.
For each calendar month of 2014, we independently select neighbors using the largest absolute Pearson correlations. The target consumer is excluded from its own neighbor set. Series with non-finite observations or zero variance within a month are ineligible for correlation ranking. A consumer is included in a comparison only when a valid set of eight neighbors can be formed in both periods. Undefined rankings are excluded rather than treated as zero similarity.
Jaccard similarity is the number of shared neighbors divided by the total number of distinct neighbors in the two sets. The overlap ratio is the number of shared neighbors divided by eight. Both measures range from zero to one and compare membership without considering the ordering of neighbors. Each measure is calculated separately for each eligible consumer before computing its mean, median, and quartiles.
Figure 13 shows the mean similarities between monthly neighbor sets. Table 21 reports the distribution of consumer-level Jaccard similarities for consecutive months.
Averaging the eleven consecutive-month means gives an overlap ratio of 0.197 and a Jaccard similarity of 0.127. This corresponds to an average of 1.58 shared neighbors out of eight. Across individual transitions, mean Jaccard similarity ranges from 0.110 to 0.145.
The median Jaccard similarity is 0.067 in every transition, corresponding to one shared neighbor out of eight. The first quartile is zero in every transition, while the third quartile is either 0.143 or 0.231. These results indicate limited persistence of the exact neighbor identities, with variation across consumers.
We also compare each monthly set with the available saved training-period map. Mean overlap ranges from 0.112 to 0.210, while mean Jaccard similarity ranges from 0.068 to 0.134. These overlap values correspond to approximately 0.90–1.68 shared neighbors out of eight. The reference map was checked against the available training-period correlations, although its exact identity with the historical checkpoint’s input map could not be verified.
Taken together, these results show that similarity in the overall correlation structure does not establish persistent membership among the top-ranked neighbors. The fixed training-derived neighborhoods should therefore be understood as a modeling choice whose predictive usefulness is assessed through forecasting experiments. Changes in neighbor membership alone do not establish whether forecasting accuracy deteriorates.
The forecasting results provide partial evidence on this point. Although the neighbor sets that would be selected in later months differ substantially from the training-period sets, the training-period neighborhoods still outperform random and target-only inputs during the test period, roughly two months after the end of training (Section 5.1.1). One explanation consistent with both observations is that many consumers have several similarly correlated candidates, so that the exact top-ranked set changes while the selected neighbors remain informative. The present analysis does not test this explanation, nor whether periodically re-estimated neighborhoods would forecast better.
All monthly calculations are retrospective diagnostics. The windows are calendar months: September spans training and validation, while November spans validation and testing. Validation and test observations were used only for this diagnostic analysis; they did not change the model’s saved neighborhoods, training, hyperparameter tuning, or checkpoint selection.
6.3. Spatial Occlusion Analysis
We perform the spatial occlusion analysis using the HiSTM configuration. The spatial importance heatmap (Figure 14) summarizes model sensitivity to occluding each input position. The target consumer at the center of the kernel has the largest importance, while only a small number of neighboring consumers show substantial contributions. This pattern suggests that sensitivity to spatial inputs is concentrated in the target series and a limited subset of neighbors.
6.4. Spatiotemporal Interaction
Figure 15 compares full, temporal-only, and spatial-only inputs. The full configuration has the lowest MAE and RMSE. Temporal-only input has lower MAE than spatial-only input but higher RMSE. The two reduced configurations therefore have different rankings across metrics.
6.5. Best- and Worst-Case Consumer Behavior
We analyze model behavior for individual consumers in Figure 16. The best-case example shows that the model closely follows the ground truth, accurately capturing both the overall trend and small fluctuations. Minor deviations occur during sharp drops, but the predictions remain well-aligned with the actual signal.
In contrast, the worst-case example exhibits very low-magnitude and highly noisy behavior. The ground truth remains nearly flat, while the model produces fluctuating predictions around zero, indicating difficulty in modeling signals with weak structure and low signal-to-noise ratio.
These examples highlight that the model performs reliably on stable and structured patterns but struggles with highly irregular or near-constant series, where meaningful temporal signals are limited.
7. Conclusions
This study examined under which conditions sparse correlation-defined functional neighborhoods improve consumer-level electricity forecasting when explicit physical topology is unavailable, and at what cost. We applied the previously introduced HiSTM architecture to a Chilean smart-meter dataset of 6,617 consumers without geographic coordinates.
Functional neighborhoods improve forecasting, but modestly. With the architecture held fixed and averaged over three seeds, correlation-selected neighbors reduce mean MAE by approximately 4.0% relative to target-only HiSTM. Both the choice of neighbors and their arrangement matter: MAE is also 3.4% lower than with random neighbors and 0.9% lower than with the same neighbors randomly rearranged. These MAE differences exceed the variation across seeds, whereas the corresponding RMSE differences do not. At the consumer level, 64.8% of consumers benefit, but the median relative improvement is only 1.82%, and the mean improvement is raised by larger gains for a subset of consumers.
The benefit depends on the consumer. It grows with the strength of the selected relationships: across quartiles of mean absolute neighbor correlation, the median relative improvement rises from to 7.64%, and the share of consumers benefiting rises from 39.8% to 93.2%. This association persists within demand groups, but it is descriptive and does not establish a causal effect of correlation strength. By consumption level, the median effect is favorable for the three higher-demand quartiles (1.98–3.60%) and unfavorable for the lowest-demand quartile ().
The benefit also depends on how the neighborhood is configured. Compact and neighborhoods perform best, and larger neighborhoods do not improve accuracy. Behavior-based clustering adds little when used to condition a shared global model, which is consistent with the target-specific information already contained in the functional neighborhoods. Separate cluster-specific models reduce aggregate MAE and RMSE by 1.4% and 1.8% in a single run, but require training and maintaining three models with three times as many parameters in total. Neighborhoods estimated from the training period also remain useful about two months later, although the exact top-ranked neighbors change substantially from month to month.
Under the evaluated conditions, forecasting errors increase gradually rather than abruptly. Over an eight-step autoregressive rollout, HiSTM’s MAE increases by 129% from the first to the last step, and HiSTM ranks second to PredRNN++ at every step. Under up to 30% random synthetic missingness with LOCF imputation, HiSTM’s MAE is at most 5.2% higher than with complete data, and HiSTM remains close to the strongest baselines. Controlled outages show that this robustness does not come from the neighbors. Losing recent target observations increases MAE far more than losing all neighbor observations, and with the target’s own observations missing, correlated neighbors keep MAE only slightly below that of target-only HiSTM. Under a 12-hour outage of both target and neighbors, correlated HiSTM is slightly less accurate than target-only HiSTM (MAE 3.6354 versus 3.6057 kWh). Functional neighborhoods therefore provide limited backup when the target’s own data are missing. The rollout and random-missingness results come from single runs, and the outage experiment covers a subset of consumers with outages immediately before the forecast origin, so these findings do not establish robustness to real-world data loss in general.
In terms of accuracy and cost, PredRNN++ is the most accurate model in our benchmark, while HiSTM achieves the second-lowest single-step MAE with approximately 130 times fewer parameters and 16.9 times shorter inference latency. This trade-off is favorable relative to PredRNN++, but HiSTM is not the cheapest model overall: several baselines require fewer operations or have shorter latency, although none of them achieves lower single-step MAE.
Several of the reported differences are small. Statistical evidence of a difference, such as the Wilcoxon test in the local-LSTM comparison, does not imply a practically important benefit for the typical consumer, and improvements smaller than the variation across training runs should not be regarded as decisive. Whether the observed improvements matter operationally, for example for demand response or load balancing, was not assessed.
The findings are limited to correlation-derived functional relationships and do not establish equivalence with models using geographical or network topology. Without physical connectivity information, the extent to which these functional relationships correspond to geographical proximity or shared infrastructure remains unknown. The evaluation uses a single electricity consumption dataset from Chile covering one year, 2014. The findings therefore do not establish whether correlation-defined neighborhoods would be similarly useful in other regions, years, or electricity systems, where consumption behavior, seasonal patterns, and consumer populations differ. Many comparisons are based on single training runs that were not repeated across seeds. Further evaluation on independent datasets spanning different regions and years, with repeated runs for all comparisons, outage scenarios covering all consumers, and periodically updated neighborhoods, is needed to assess the generality of these findings.
Author Contributions
Conceptualization, M.O., N.B., Z.B., P.A., K.A., A.K., A.T.; Methodology, M.O., N.B., Z.B., P.A., K.A.; Software, M.O., N.B., Z.B.; Validation, M.O., N.B., P.A., K.A.; Formal Analysis, M.O., N.B.; Investigation, M.O., N.B.; Data Curation, M.O., N.B.; Writing–Original Draft Preparation, M.O., N.B.; Writing–Review & Editing, M.O., N.B., Z.B., P.A., K.A., A.K., A.T.; Visualization, M.O., N.B.; Supervision, P.A., K.A., A.K., A.T.; Project Administration, A.K.; Funding Acquisition, A.K.; All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by the Swedish Energy Agency through the project Solar Electricity Research Centre, Sweden (SOLVE), grant number 52693-1. Additional support was provided by the Bavarian Government through the High-Tech Agenda (HTA).
Data Availability Statement
The data supporting the findings of this study are available from the corresponding author upon request.
References
- Marino, D.L.; Amarasinghe, K.; Manic, M. Building energy load forecasting using Deep Neural Networks. In Proceedings of the IECON 2016 - 42nd Annual Conference of the IEEE Industrial Electronics Society; IEEE, 2016; pp. 7046–7051. [Google Scholar] [CrossRef]
- Dai, Y.; Yang, X.; Leng, M. Optimized Seq2Seq Model Based on Multiple Methods for Short-Term Power Load Forecasting. Appl. Soft Comput. 2023, 142, 110335. [Google Scholar] [CrossRef]
- Alonso, A.M.; Nogales, F.J.; Ruiz, C. A Single Scalable LSTM Model for Short-Term Forecasting of Massive Electricity Time Series. Energies 2020, 13. [Google Scholar] [CrossRef]
- Hertel, M.; Beichter, M.; Heidrich, B.; Neumann, O.; Schäfer, B.; Mikut, R.; Hagenmeyer, V. Transformer Training Strategies for Forecasting Multiple Load Time Series, 2023. arXiv arXiv:cs.
- Zhao, X.; et al. Enhancing multivariate multi-step residential load forecasting with spatiotemporal graph attention-enabled Transformer. Int. J. Electr. Power Energy Syst. 2024, 156, 109652. [Google Scholar] [CrossRef]
- Arastehfar, B.; et al. Short-term residential load forecasting using graph convolutional recurrent neural networks. Eng. Appl. Artif. Intell. 2022, 112, 104809. [Google Scholar] [CrossRef]
- Feng, Y.; et al. MLFGCN: Short-term residential load forecasting based on graph attention temporal convolution network. Front. Neurorobotics 2024, 18, 1461403. [Google Scholar] [CrossRef] [PubMed]
- Bettouche, Z.; Ali, K.; Fischer, A.; Kassler, A. Beyond Attention: Hierarchical Mamba Models for Scalable Spatiotemporal Traffic Forecasting. Network 2026, 6. [Google Scholar] [CrossRef]
- Fathin, M.R.; Widhiyasana, Y.; Syakrani, N. Model for Predicting Electrical Energy Consumption Using ARIMA Method. In Proceedings of the International Seminar on Science and Applied Technology (ISSAT 2021); Atlantis Press, 2021; pp. 298–303. [Google Scholar] [CrossRef]
- Yin, C.; Liu, K.; Zhang, Q.; Hu, K.; Yang, Z.; Yang, L.; Zhao, N. SARIMA-Based Medium- and Long-Term Load Forecasting. Strateg. Plan. Energy Environ. 2023. [Google Scholar] [CrossRef]
- Kong, W.; Dong, Z.Y.; Jia, Y.; Hill, D.J.; Xu, Y.; Zhang, Y. Short-Term Residential Load Forecasting Based on LSTM Recurrent Neural Network. IEEE Trans. Smart Grid 2019, 10, 841–851. [Google Scholar] [CrossRef]
- Ni, Z.; Zhang, C.; Karlsson, M.; Gong, S. A study of deep learning-based multi-horizon building energy forecasting. Energy Build. 2024, 303, 113810. [Google Scholar] [CrossRef]
- Shi, H.; Xu, M.; Li, R. Deep Learning for Household Load Forecasting—A Novel Pooling Deep RNN. IEEE Trans. Smart Grid 2018, 9, 5271–5280. [Google Scholar] [CrossRef]
- Suresh, V. Benchmarking Transformer Variants for Hour-Ahead PV Forecasting: PatchTST with Adaptive Conformal Inference. Energies 2025, 18, 5000. [Google Scholar] [CrossRef]
- Wu, H.; Xu, J.; Wang, J.; Long, M. Autoformer: Decomposition Transformers with Auto-Correlation for Long-Term Series Forecasting, 2022. arXiv arXiv:cs.
- Yang, S.; Sima, Q.; Shen, L.; Bao, Y. Global electricity demand forecasting for multi-consumer retailers using a decomposition-based multi-sight convolutional neural network. Comput. Ind. 2026, 174, 104415. [Google Scholar] [CrossRef]
- Lv, Y.; Wang, L.; Long, D.; Hu, Q.; Hu, Z. Multi-area short-term load forecasting based on spatiotemporal graph neural network. Eng. Appl. Artif. Intell. 2024, 138, 109398. [Google Scholar] [CrossRef]
- Zhu, L.; Gao, J.; Zhu, C.; Deng, F. Short-Term Power Load Forecasting Based on Spatial-Temporal Dynamic Graph and Multi-Scale Transformer. J. Comput. Des. Eng. 2025, 12, 92–111. [Google Scholar] [CrossRef]
- Shi, W.; Wang, Y.; Wang, T. A Short-Term Residential Load Forecasting Framework Based on Dynamic Spatio-Temporal Graph Neural Networks. Energy Build. 2025, 347, 116311. [Google Scholar] [CrossRef]
- Mo, S.; Yao, Z.; Yang, C.; Wang, H.; Fan, S.; Liu, R.; Mo, Y. MRGNN: Multi-Resolution Graph Neural Network for Electricity Load Forecasting. Energy Rep. 2025, 13, 4624–4634. [Google Scholar] [CrossRef]
- Saeed, F.; Rehman, A.; Shah, H.A.; Diyan, M.; Chen, J.; Kang, J.M. SmartFormer: Graph-Based Transformer Model for Energy Load Forecasting. Sustain. Energy Technol. Assess. 2025, 73, 104133. [Google Scholar] [CrossRef]
- Quilumba, F.L.; Lee, W.J.; Huang, H.; Wang, D.Y.; Szabados, R.L. Using Smart Meter Data to Improve the Accuracy of Intraday Load Forecasting Considering Customer Behavior Similarities. IEEE Trans. Smart Grid 2015, 6, 911–918. [Google Scholar] [CrossRef]
- Dab, K.; Henao, N.; Nagarsheth, S.; Dubé, Y.; Sansregret, S.; Agbossou, K. Consensus-based time-series clustering approach to short-term load forecasting for residential electricity demand. Energy Build. 2023, 299, 113550. [Google Scholar] [CrossRef]
- Wu, Z.; Mu, Y.; Deng, S.; Li, Y. Spatial–temporal short-term load forecasting framework via K-shape time series clustering method and graph convolutional networks. Energy Rep. 2022, 8, 8752–8766. [Google Scholar] [CrossRef]
- Benesty, J.; Chen, J.; Huang, Y.; Cohen, I. Pearson correlation coefficient; Springer, 2009; pp. 1–4. [Google Scholar]
- Gu, A.; Dao, T. Mamba: Linear-Time Sequence Modeling with Selective State Spaces. Trans. Mach. Learn. Res. (TMLR) Accepted at COLM 2024. 2024, arXiv:cs. [Google Scholar] [CrossRef]
- Wu, H.; Hu, T.; Liu, Y.; Zhou, H.; Wang, J.; Long, M. TimesNet: Temporal 2D-Variation Modeling for General Time Series Analysis, 2023. arXiv arXiv:cs.
- Zhou, H.; Zhang, S.; Peng, J.; Zhang, S.; Li, J.; Xiong, H.; Zhang, W. Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecasting, 2021. arXiv arXiv:cs.
- Hochreiter, S.; Schmidhuber, J. Long Short-Term Memory. Neural Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef] [PubMed]
- Beck, M.; Pöppel, K.; Spanring, M.; Auer, A.; Prudnikova, O.; Kopp, M.; Klambauer, G.; Brandstetter, J.; Hochreiter, S. xLSTM: Extended Long Short-Term Memory. arXiv 2024, arXiv:cs. [Google Scholar]
- Zhang, C.; Patras, P. Long-Term Mobile Traffic Forecasting Using Deep Spatio-Temporal Neural Networks. arXiv 2017, arXiv:cs. [Google Scholar]
- Deihim, A.; Alonso, E.; Apostolopoulou, D. STTRE: A Spatio-Temporal Transformer with Relative Embeddings for Multivariate Time Series Forecasting. Neural Netw. 2023, 168, 549–559. [Google Scholar] [CrossRef] [PubMed]
- Nie, Y.; Nguyen, N.H.; Sinthong, P.; Kalagnanam, J. A Time Series is Worth 64 Words: Long-term Forecasting with Transformers, 2023. arXiv arXiv:cs.
- Tang, Y.; Dong, P.; Tang, Z.; Chu, X.; Liang, J. VMRNN: Integrating Vision Mamba and LSTM for Efficient and Accurate Spatiotemporal Forecasting. 2024. [Google Scholar] [CrossRef]
- Wang, Y.; Gao, Z.; Long, M.; Wang, J.; Yu, P.S. PredRNN++: Towards A Resolution of the Deep-in-Time Dilemma in Spatiotemporal Predictive Learning, 2018. arXiv arXiv:cs.
- Paparrizos, J.; Gravano, L. k-Shape: Efficient and Accurate Clustering of Time Series. In Proceedings of the 2015 ACM SIGMOD International Conference on Management of Data, 2015; pp. 1855–1870. [Google Scholar]
- Perez, E.; Strub, F.; de Vries, H.; Dumoulin, V.; Courville, A.C. FiLM: Visual Reasoning with a General Conditioning Layer. CoRR 2017, abs/1709.07871, [1709.07871. [Google Scholar]
Figure 1.
Global pairwise correlations and correlations within selected neighborhoods.

Figure 2.
Cluster-wise standardized mean daily load profiles obtained via k-Shape clustering () using the training split only. Lines show the cluster mean; shaded regions indicate one standard deviation across consumer profiles, revealing distinct diurnal consumption patterns.
Figure 2.
Cluster-wise standardized mean daily load profiles obtained via k-Shape clustering () using the training split only. Lines show the cluster mean; shaded regions indicate one standard deviation across consumer profiles, revealing distinct diurnal consumption patterns.

Figure 3.
Distribution of consumer-level mean demand within Clusters 1–3, calculated from the training split. The histograms reveal substantial intra-cluster variability and skewness. The shared horizontal axis is clipped at the global 97.5th percentile for visibility; summary statistics use all consumers. Dashed and dotted vertical lines indicate the mean and median, respectively.
Figure 3.
Distribution of consumer-level mean demand within Clusters 1–3, calculated from the training split. The histograms reveal substantial intra-cluster variability and skewness. The shared horizontal axis is clipped at the global 97.5th percentile for visibility; summary statistics use all consumers. Dashed and dotted vertical lines indicate the mean and median, respectively.

Figure 4.
Lag plots illustrating autocorrelation of the demand time series across multiple temporal lags
Figure 4.
Lag plots illustrating autocorrelation of the demand time series across multiple temporal lags

Figure 5.
Relative MAE improvements over target-only HiSTM: (A) cumulative distribution and (B) distributions by demand quartile. Positive values favor correlation-derived neighborhoods. The horizontal axis in (A) is limited to to for readability; all eligible consumers are included in the reported statistics.
Figure 5.
Relative MAE improvements over target-only HiSTM: (A) cumulative distribution and (B) distributions by demand quartile. Positive values favor correlation-derived neighborhoods. The horizontal axis in (A) is limited to to for readability; all eligible consumers are included in the reported statistics.

Figure 6.
Relative MAE improvement versus mean absolute neighbor correlation. Orange markers show quartile medians; positive values favor correlated neighborhoods. The view is limited to ; 340 observations below and 65 above this range remain included in all statistics.
Figure 6.
Relative MAE improvement versus mean absolute neighbor correlation. Orange markers show quartile medians; positive values favor correlated neighborhoods. The view is limited to ; 340 observations below and 65 above this range remain included in all statistics.

Figure 7.
Distribution of consumer-level residual standard deviations.

Figure 8.
Distribution and CDF of consumer-level error differences (Local-LSTM minus HiSTM). Positive values indicate lower errors for HiSTM.
Figure 8.
Distribution and CDF of consumer-level error differences (Local-LSTM minus HiSTM). Positive values indicate lower errors for HiSTM.

Figure 9.
Preprocessing scalability: (a) runtime and (b) total process memory versus dense correlation-matrix storage.
Figure 9.
Preprocessing scalability: (a) runtime and (b) total process memory versus dense correlation-matrix storage.

Figure 10.
Increase in MAE (kWh) relative to the first prediction step during autoregressive rollout.
Figure 10.
Increase in MAE (kWh) relative to the first prediction step during autoregressive rollout.

Figure 11.
Temporal importance derived from HiSTM, highlighting the contribution of historical input steps.
Figure 11.
Temporal importance derived from HiSTM, highlighting the contribution of historical input steps.

Figure 12.
Pearson similarity between monthly inter-consumer correlation matrices. Consecutive-month similarities range from 0.82 to 0.88; more widely separated months often show lower similarity, but the relationship is not monotonic.
Figure 12.
Pearson similarity between monthly inter-consumer correlation matrices. Consecutive-month similarities range from 0.82 to 0.88; more widely separated months often show lower similarity, but the relationship is not monotonic.

Figure 13.
Similarity of monthly top-eight neighbor sets. The panels show mean overlap and mean Jaccard similarity across consumers eligible in both months. Both measures are ratios on .
Figure 13.
Similarity of monthly top-eight neighbor sets. The panels show mean overlap and mean Jaccard similarity across consumers eligible in both months. Both measures are ratios on .

Figure 14.
Spatial occlusion sensitivity for the HiSTM configuration. Values are normalized and displayed on a logarithmic color scale.
Figure 14.
Spatial occlusion sensitivity for the HiSTM configuration. Values are normalized and displayed on a logarithmic color scale.

Figure 15.
Performance comparison under different input configurations.

Figure 16.
Example predictions for consumers with the lowest and highest forecasting errors.

Table 1.
Neighborhood configurations evaluated in this study. All configurations place the target at the center of the kernel.
Table 1.
Neighborhood configurations evaluated in this study. All configurations place the target at the center of the kernel.
| Configuration | K | Neighbor selection | Placement | Section |
|---|---|---|---|---|
| Correlated (Original) | 3 | top- (Pearson) | by rank | Section 5.1.1 |
| Random | 3 | uniform random | by rank | Section 5.1.1 |
| Permuted | 3 | top- (Pearson) | random | Section 5.1.1 |
| Target-only | 1 | none | — | Section 5.1.1 |
| Neighborhood size | 1–11 | top- (Pearson) | by rank | Section 5.2.2 |
| Spearman | 3 | top- (Spearman) | by rank | Section 5.1.3 |
Table 2.
Dataset Metadata Fields.
| Field | Description |
|---|---|
| Consumer Identifier | Unique ID for each consumer |
| sum_kWh | Total energy demand over the period in kilowatt-hour (kWh) |
| sum_MW | Total demand over the period in Megawatt-hour (MWh) |
| Maximum Load | Peak load observed for the consumer |
| Energy Usage | Energy demand at each time step in (kWh) |
| Category | High-level consumer classification |
| Subcategory | More detailed consumer classification |
Table 3.
Baseline Models.
| Model | Description |
|---|---|
| TimesNet [27] | A temporal convolutional network that captures multi-periodic patterns using 2D time-frequency maps, allowing for efficient learning of seasonal patterns in long sequences. |
| Autoformer [15] | A Transformer-based model that separates time series into trend and seasonal parts and uses an auto-correlation mechanism for long-term forecasting. |
| Informer [28] | A Transformer-based model that uses ProbSparse self-attention to enable efficient processing of long input sequences with reduced computational complexity. |
| LSTM [29] | A recurrent neural network designed to capture long-term temporal dependencies using gated memory cells, widely used as a standard baseline for time series forecasting. |
| xLSTM [30] | An extended LSTM model with altered gating and memory designs to enhance scalability and long-term dependency modeling. |
| STN [31] | (Spatio-Temporal Network) is a convolutional spatial encoding and recurrent temporal modeling network that captures structured dependencies over both dimensions. |
| STTRE [32] | A Transformer-based spatiotemporal model that uses relative positional embeddings to capture multivariate temporal dependencies. |
| PatchTST [33] | A patch-based Transformer model that divides continuous temporal segments into fixed-length patches to enable efficient processing of long sequences. |
| VMRNN [34] | A Vision Mamba component-integrated LSTM network that balances spatial feature extraction and selective state-space temporal modeling. |
| PredRNN++ [35] | An advanced recurrent spatiotemporal model that uses gradient highway units and spatiotemporal memory flow to improve long-term predictive accuracy. |
Table 4.
Cluster-wise statistical summary of consumer-level mean demand calculated from the training split.
Table 4.
Cluster-wise statistical summary of consumer-level mean demand calculated from the training split.
| Cluster | # Consumers | Mean Demand | Std Dev | Min | Max |
|---|---|---|---|---|---|
| 1 | 4,974 | 8.09 | 22.48 | 0.00 | 689.30 |
| 2 | 1,006 | 12.63 | 30.82 | 0.00 | 341.96 |
| 3 | 637 | 3.23 | 9.31 | 0.00 | 128.48 |
Table 5.
Neighborhood selection and ordering ablation. Values are mean ± sample standard deviation across three runs using seeds 42, 43, and 44. Bold values indicate the best mean for each metric.
Table 5.
Neighborhood selection and ordering ablation. Values are mean ± sample standard deviation across three runs using seeds 42, 43, and 44. Bold values indicate the best mean for each metric.
| Configuration | Kernel | MAE | RMSE | |
|---|---|---|---|---|
| Original | ||||
| Permuted | ||||
| Random | ||||
| Target-only |
Table 6.
Consumer-level paired improvements. Positive values favor correlation-derived neighborhoods; brackets show 95% bootstrap confidence intervals.
Table 6.
Consumer-level paired improvements. Positive values favor correlation-derived neighborhoods; brackets show 95% bootstrap confidence intervals.
| Alternative | Median MAE (kWh) |
Mean MAE (kWh) |
Benefiting (%) |
Median relative improvement (%) |
|---|---|---|---|---|
| Target-only | 0.005 [0.005, 0.006] | 0.048 [0.042, 0.054] | 64.8 [63.7, 65.9] | 1.82 |
| Random | 0.006 [0.005, 0.006] | 0.040 [0.036, 0.045] | 68.0 [66.8, 69.1] | 2.10 |
| Permuted | 0.001 [0.001, 0.001] | 0.010 [0.008, 0.013] | 60.3 [59.2, 61.5] | 0.38 |
Table 7.
HiSTM performance using Pearson and Spearman correlation for spatial neighborhood construction
Table 7.
HiSTM performance using Pearson and Spearman correlation for spatial neighborhood construction
| Method | MAE ↓ | RMSE ↓ | ↑ |
|---|---|---|---|
| Pearson | 1.1606 | 5.7348 | 0.9638 |
| Spearman | 1.1878 | 6.0991 | 0.9591 |
Table 8.
Consumer-level improvements by neighborhood correlation strength. Positive values favor correlated neighborhoods.
Table 8.
Consumer-level improvements by neighborhood correlation strength. Positive values favor correlated neighborhoods.
| Quartile | N | Median MAE (kWh) |
Median relative improvement (%) |
Benefiting (%) |
|---|---|---|---|---|
| Q1 (weakest) | 1655 | -0.0009 | -1.17 | 39.8 |
| Q2 | 1654 | 0.0009 | 0.55 | 56.0 |
| Q3 | 1654 | 0.0103 | 2.64 | 70.2 |
| Q4 (strongest) | 1654 | 0.0312 | 7.64 | 93.2 |
Table 9.
Effect of neighborhood size on forecasting performance. (a) Single-run results for all tested kernel sizes. (b) Mean ± sample standard deviation across seeds 42, 43, and 44. The reference reuses the trained models and evaluations reported in Table 5. Bold values indicate the best result for each metric within each panel.
Table 9.
Effect of neighborhood size on forecasting performance. (a) Single-run results for all tested kernel sizes. (b) Mean ± sample standard deviation across seeds 42, 43, and 44. The reference reuses the trained models and evaluations reported in Table 5. Bold values indicate the best result for each metric within each panel.
| (a) Single-run comparison | ||||||
|---|---|---|---|---|---|---|
| Metric | ||||||
| MAE | 1.2161 | 1.1606 | 1.1560 | 1.2523 | 1.2942 | 1.2480 |
| RMSE | 7.4073 | 5.7348 | 5.7915 | 6.5496 | 6.2398 | 5.9873 |
| 0.9397 | 0.9638 | 0.9631 | 0.9528 | 0.9571 | 0.9606 | |
| (b) Repeated-run comparison | ||||||
| Kernel | MAE | RMSE | ||||
Table 10.
Cluster-wise evaluation of the Cluster-Specific (CS), Global-Blind (GB), ClusterFiLM (CF), ClusterFiLM-Unbalanced (CF-U), and Global-Aware (GA) HiSTM models. Aggregate metrics are computed over all consumer-hour test samples. Bold values indicate the lowest error in each row.
Table 10.
Cluster-wise evaluation of the Cluster-Specific (CS), Global-Blind (GB), ClusterFiLM (CF), ClusterFiLM-Unbalanced (CF-U), and Global-Aware (GA) HiSTM models. Aggregate metrics are computed over all consumer-hour test samples. Bold values indicate the lowest error in each row.
| Cluster | Metric | CS | GB | CF | CF-U | GA |
|---|---|---|---|---|---|---|
| Cluster 1 | MAE | 1.0629 | 1.0730 | 1.0596 | 1.1124 | 1.0599 |
| RMSE | 5.0619 | 5.1088 | 6.3082 | 5.7538 | 5.0881 | |
| Cluster 2 | MAE | 1.9011 | 1.9507 | 1.9501 | 2.0032 | 1.9575 |
| RMSE | 8.6930 | 8.9421 | 8.8795 | 8.9708 | 9.0728 | |
| Cluster 3 | MAE | 0.5821 | 0.5971 | 0.5916 | 0.6011 | 0.5979 |
| RMSE | 3.1740 | 3.3982 | 3.2273 | 3.2648 | 3.3515 | |
| Aggregate | MAE | 1.1441 | 1.1606 | 1.1500 | 1.1986 | 1.1519 |
| RMSE | 5.6320 | 5.7348 | 6.5500 | 6.1764 | 5.7495 |
Table 11.
Autoregressive multi-step prediction performance over eight time steps on a sampled 20% subset of the test data. Bold and underlined values indicate the best and second-best results at each horizon, respectively.
Table 11.
Autoregressive multi-step prediction performance over eight time steps on a sampled 20% subset of the test data. Bold and underlined values indicate the best and second-best results at each horizon, respectively.
| Step | HiSTM | STN | xLSTM | VMRNN-B | VMRNN-D | LSTM | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| MAE | RMSE | MAE | RMSE | MAE | RMSE | MAE | RMSE | MAE | RMSE | MAE | RMSE | |
| 1 | 1.1592 | 5.8548 | 1.1954 | 5.8854 | 1.2041 | 6.1491 | 1.9600 | 8.7056 | 1.9374 | 8.7476 | 1.2480 | 6.0735 |
| 2 | 1.6348 | 7.8332 | 1.6964 | 7.9025 | 1.6823 | 8.1200 | 1.9591 | 8.6032 | 1.9382 | 8.6608 | 1.8218 | 8.2854 |
| 3 | 1.9393 | 9.1872 | 2.0466 | 9.2867 | 1.9916 | 9.4630 | 2.6842 | 11.3884 | 2.5912 | 11.5204 | 2.1886 | 9.8475 |
| 4 | 2.1530 | 9.9685 | 2.2570 | 10.1174 | 2.2156 | 10.2699 | 2.6328 | 11.0253 | 2.5259 | 10.9640 | 2.4376 | 10.7915 |
| 5 | 2.3306 | 10.6323 | 2.4485 | 10.7957 | 2.3973 | 10.9210 | 3.0491 | 12.7428 | 2.8617 | 12.6193 | 2.6209 | 11.4838 |
| 6 | 2.4646 | 11.0532 | 2.5934 | 11.2401 | 2.5349 | 11.3528 | 2.9837 | 12.1909 | 2.8145 | 12.1888 | 2.7457 | 11.9293 |
| 7 | 2.5716 | 11.4851 | 2.7110 | 11.7058 | 2.6443 | 11.7719 | 3.2517 | 13.5990 | 2.9853 | 13.1915 | 2.8410 | 12.3486 |
| 8 | 2.6594 | 11.7196 | 2.8082 | 11.9806 | 2.7336 | 12.0086 | 3.1953 | 13.0275 | 2.9499 | 12.7863 | 2.9061 | 12.5668 |
| Step | STTRE | Informer | Autoformer | TimesNet | PatchTST | PredRNN++ | ||||||
| MAE | RMSE | MAE | RMSE | MAE | RMSE | MAE | RMSE | MAE | RMSE | MAE | RMSE | |
| 1 | 1.4055 | 6.5146 | 1.3125 | 6.3795 | 1.2581 | 6.2345 | 1.3075 | 6.3331 | 7.9969 | 28.4822 | 1.0753 | 5.5398 |
| 2 | 2.0257 | 8.7120 | 1.9060 | 8.5610 | 1.7931 | 8.5041 | 1.8849 | 8.3231 | 8.1749 | 28.7073 | 1.5092 | 7.3909 |
| 3 | 2.4416 | 10.2068 | 2.3037 | 10.0465 | 2.1477 | 10.0930 | 2.2714 | 9.6263 | 8.2193 | 28.8422 | 1.7975 | 8.6873 |
| 4 | 2.7380 | 11.1507 | 2.5900 | 10.9374 | 2.3988 | 11.0677 | 2.5578 | 10.4238 | 8.2357 | 28.9474 | 2.0091 | 9.4328 |
| 5 | 2.9576 | 11.8818 | 2.8100 | 11.6311 | 2.6010 | 11.8457 | 2.7786 | 11.0174 | 8.2210 | 28.9409 | 2.1887 | 10.0756 |
| 6 | 3.1177 | 12.4268 | 2.9757 | 12.1379 | 2.7511 | 12.3478 | 2.9431 | 11.3980 | 8.2097 | 28.8239 | 2.3307 | 10.5416 |
| 7 | 3.2431 | 13.0430 | 3.1103 | 12.6516 | 2.8745 | 12.8508 | 3.0843 | 11.8226 | 8.2050 | 28.8251 | 2.4502 | 10.9838 |
| 8 | 3.3377 | 13.5588 | 3.2124 | 12.9573 | 2.9799 | 13.2039 | 3.1904 | 12.0609 | 8.1988 | 28.8186 | 2.5510 | 11.2473 |
Table 12.
Missing Data in Training and Testing Data by LOCF
| Train % | Model | Test 0% | Test 10% | Test 20% | Test 30% | ||||
|---|---|---|---|---|---|---|---|---|---|
| MAE | RMSE | MAE | RMSE | MAE | RMSE | MAE | RMSE | ||
| 0% | Informer | 1.3102 | 6.2473 | 1.3042 | 6.3767 | 1.2938 | 6.5240 | 1.2775 | 6.6340 |
| Autoformer | 1.2595 | 6.1425 | 1.2782 | 6.3464 | 1.2892 | 6.5542 | 1.2902 | 6.6989 | |
| STN | 1.1915 | 5.7275 | 1.2206 | 5.9919 | 1.2406 | 6.2420 | 1.2502 | 6.4463 | |
| STTRE | 1.3985 | 6.4032 | 1.3895 | 6.4507 | 1.3789 | 6.5546 | 1.3643 | 6.6195 | |
| TimesNet | 1.3068 | 6.2014 | 1.2908 | 6.2724 | 1.2723 | 6.3828 | 1.2506 | 6.4608 | |
| VMRNN | 1.9610 | 8.6449 | 1.9762 | 8.6850 | 1.9911 | 8.7676 | 2.0023 | 8.8370 | |
| xlstm | 1.2032 | 6.0451 | 1.2122 | 6.2015 | 1.2166 | 6.4027 | 1.2126 | 6.5436 | |
| PredRNN++ | 1.0733 | 5.4062 | 1.1274 | 5.7797 | 1.1675 | 6.1077 | 1.1956 | 6.3880 | |
| HiSTM | 1.1606 | 5.7348 | 1.1924 | 6.0138 | 1.2123 | 6.2500 | 1.2211 | 6.4542 | |
| 10% | Informer | 1.4501 | 6.7267 | 1.4329 | 6.7821 | 1.4131 | 6.8618 | 1.3909 | 6.9285 |
| Autoformer | 1.3784 | 6.5704 | 1.3776 | 6.6791 | 1.3719 | 6.8006 | 1.3609 | 6.8882 | |
| STN | 1.2483 | 6.0473 | 1.2456 | 6.1801 | 1.2390 | 6.3367 | 1.2278 | 6.4542 | |
| STTRE | 1.3527 | 6.4359 | 1.3332 | 6.4741 | 1.3125 | 6.5651 | 1.2888 | 6.6247 | |
| TimesNet | 1.3054 | 6.3133 | 1.2752 | 6.3643 | 1.2433 | 6.4544 | 1.2090 | 6.5169 | |
| VMRNN | 1.8931 | 8.5154 | 1.9119 | 8.5818 | 1.9299 | 8.6883 | 1.9416 | 8.7701 | |
| xlstm | 1.2104 | 6.0533 | 1.2082 | 6.1951 | 1.2020 | 6.3594 | 1.1887 | 6.4747 | |
| PredRNN++ | 1.1087 | 5.6107 | 1.1358 | 5.8746 | 1.1552 | 6.1354 | 1.1650 | 6.3457 | |
| HiSTM | 1.2038 | 6.0105 | 1.2068 | 6.1542 | 1.2055 | 6.3186 | 1.1970 | 6.4378 | |
Table 13.
Outage performance: mean ± sample standard deviation across three seeds.
| Condition | Model | Duration (h) |
MAE (kWh) |
RMSE (kWh) |
MAE increase (kWh) |
|---|---|---|---|---|---|
| Complete | Correlated | 0 | |||
| Complete | Target-only | 0 | |||
| Target missing | Correlated | 3 | |||
| Target/shared | Target-only | 3 | |||
| Neighbor missing | Correlated | 3 | |||
| Shared outage | Correlated | 3 | |||
| Target missing | Correlated | 6 | |||
| Target/shared | Target-only | 6 | |||
| Neighbor missing | Correlated | 6 | |||
| Shared outage | Correlated | 6 | |||
| Target missing | Correlated | 12 | |||
| Target/shared | Target-only | 12 | |||
| Neighbor missing | Correlated | 12 | |||
| Shared outage | Correlated | 12 |
Table 14.
Single-step forecasting results for the naive baselines. MAE and RMSE are reported in kWh. All metrics are pooled across 6,617 consumers and 1,290 target hours.
Table 14.
Single-step forecasting results for the naive baselines. MAE and RMSE are reported in kWh. All metrics are pooled across 6,617 consumers and 1,290 target hours.
| Baseline | MAE | RMSE | |
|---|---|---|---|
| Persistence | 1.3636 | 6.8391 | 0.9486 |
| Daily seasonal persistence | 2.8038 | 13.0046 | 0.8140 |
| Weekly seasonal persistence | 2.6407 | 12.1115 | 0.8387 |
| Moving average, 24 hours | 3.5794 | 12.7640 | 0.8208 |
Table 15.
Single-step Prediction Performance on Chile Dataset. Best model indicated through bold font, second best indicated through underline font.
Table 15.
Single-step Prediction Performance on Chile Dataset. Best model indicated through bold font, second best indicated through underline font.
| Model | MAE ↓ | RMSE ↓ | Score ↑ |
|---|---|---|---|
| PatchTST | 7.9965 | 28.5610 | 0.1030 |
| STN | 1.1915 | 5.7275 | 0.9639 |
| VMRNN-B | 1.9610 | 8.6449 | 0.9178 |
| PredRNN++ | 1.0733 | 5.4062 | 0.9679 |
| LSTM | 1.2468 | 5.9423 | 0.9612 |
| xLSTM | 1.2032 | 6.0451 | 0.9598 |
| VMRNN-D | 1.9400 | 8.6999 | 0.9168 |
| STTRE | 1.3985 | 6.4032 | 0.9549 |
| Autoformer | 1.2595 | 6.1425 | 0.9585 |
| Informer | 1.3102 | 6.2473 | 0.9571 |
| TimesNet | 1.3068 | 6.2014 | 0.9577 |
| HiSTM | 1.1606 | 5.7348 | 0.9638 |
Table 16.
Consumer-level error differences between local LSTM models and HiSTM for 6,617 consumers. Differences are calculated as Local-LSTM minus HiSTM, in kWh; positive values favor HiSTM.
Table 16.
Consumer-level error differences between local LSTM models and HiSTM for 6,617 consumers. Differences are calculated as Local-LSTM minus HiSTM, in kWh; positive values favor HiSTM.
| Metric | Median [Q1, Q3] | Mean | Improved | p |
|---|---|---|---|---|
| MAE | 0.1388 | 4451 (67.27%) | ||
| RMSE | 0.1381 | 4205 (63.55%) |
Table 17.
HiSTM Performance with Window Variations.
| Look-back Window | MAE | RMSE |
|---|---|---|
| 12 | 1.3029 | 6.3990 |
| 24 | 1.1606 | 5.7348 |
| 36 | 1.0921 | 5.3938 |
| 48 | 1.0781 | 5.3528 |
| 168 | 1.0671 | 5.3607 |
| 24 + SHLW | 1.0908 | 5.3692 |
| 24 + SDLW | 1.1261 | 5.5794 |
| 24 + SDSHLW | 1.1136 | 5.4922 |
Table 18.
Hardware-independent Computational Cost Analysis for Different Temporal Window Configurations.
Table 18.
Hardware-independent Computational Cost Analysis for Different Temporal Window Configurations.
| Configuration | Params | Weights | Relative | MACs / Batch | Peak Train |
|---|---|---|---|---|---|
| (MiB) | MACs | (G) | Proxy (MiB) | ||
| 12 | 33,794 | 0.129 | 0.50× | 1.901 | 178.1 |
| 24 | 33,794 | 0.129 | 1.00× | 3.800 | 355.5 |
| 36 | 33,794 | 0.129 | 1.50× | 5.699 | 532.8 |
| 48 | 33,794 | 0.129 | 2.00× | 7.598 | 710.2 |
| 168 | 33,794 | 0.129 | 7.00× | 26.589 | 2483.7 |
| 24 + SHLW | 33,794 | 0.129 | 1.25× | 4.750 | 444.1 |
| 24 + SDLW | 33,794 | 0.129 | 2.00× | 7.598 | 710.2 |
| 24 + SDSHLW | 33,794 | 0.129 | 2.21× | 8.389 | 784.1 |
Table 19.
Computational Efficiency Comparison of Models.
| Model | Params | Size (MB) | GPU (MB) | Inference (ms) | MACs |
|---|---|---|---|---|---|
| PredRNN++ | 4,400,400 | 16.79 | 54.97 | 31.24 | |
| TimesNet | 295,425 | 1.13 | 34.66 | 2.75 | |
| Autoformer | 442,241 | 1.69 | 37.32 | 2.83 | |
| Informer | 245,249 | 0.94 | 38.26 | 1.80 | |
| xLSTM | 128,266 | 0.49 | 33.58 | 1.87 | |
| STN | 576,755 | 2.20 | 35.72 | 3.95 | |
| STTransformerRE | 165,380 | 0.63 | 76.77 | 7.87 | |
| VMRNN-B | 137,282 | 0.52 | 34.72 | 12.21 | |
| PatchTST | 843,777 | 3.22 | 42.55 | 2.23 | |
| LSTM | 268,929 | 1.03 | 55.91 | 0.40 | |
| HiSTM | 33,794 | 0.13 | 34.51 | 1.85 |
Table 20.
HiSTM pipeline timings.
| Stage | Batch size | Time |
|---|---|---|
| Pearson correlation construction | – | 1.058 s |
| Neighborhood selection and mapping | – | 0.605 s |
| Historical training (200 epochs) | 512 | h |
| Single forecast: model execution | 1 | 0.499 ms |
| Single forecast: forecasting pipeline | 1 | 0.597 ms |
| All 6,617 consumers: forecasting pipeline | 256 | 0.1470 s |
Table 21.
Jaccard similarity between consecutive monthly top-eight neighbor sets in 2014. Statistics are calculated across the n consumers eligible in both months. Q1 and Q3 denote the 25th and 75th percentiles. All similarity values are ratios on .
Table 21.
Jaccard similarity between consecutive monthly top-eight neighbor sets in 2014. Statistics are calculated across the n consumers eligible in both months. Q1 and Q3 denote the 25th and 75th percentiles. All similarity values are ratios on .
| Month pair | n | Mean | Median | Q1 | Q3 |
|---|---|---|---|---|---|
| Jan–Feb | 6538 | 0.145 | 0.067 | 0.000 | 0.231 |
| Feb–Mar | 6538 | 0.129 | 0.067 | 0.000 | 0.231 |
| Mar–Apr | 6542 | 0.112 | 0.067 | 0.000 | 0.143 |
| Apr–May | 6534 | 0.126 | 0.067 | 0.000 | 0.231 |
| May–Jun | 6519 | 0.137 | 0.067 | 0.000 | 0.231 |
| Jun–Jul | 6508 | 0.129 | 0.067 | 0.000 | 0.231 |
| Jul–Aug | 6500 | 0.125 | 0.067 | 0.000 | 0.231 |
| Aug–Sep | 6508 | 0.133 | 0.067 | 0.000 | 0.231 |
| Sep–Oct | 6520 | 0.113 | 0.067 | 0.000 | 0.143 |
| Oct–Nov | 6518 | 0.133 | 0.067 | 0.000 | 0.231 |
| Nov–Dec | 6533 | 0.110 | 0.067 | 0.000 | 0.143 |
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 (http://creativecommons.org/licenses/by/4.0/).
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.