Editor’s introduction
The study evaluates EnergyMamba, a spatiotemporal model designed to predict energy consumption by integrating spatial relationships between regions and uncertainty estimates. It compares its performance against 15 state-of-the-art baselines using real-world datasets from Florida, New York, and California, showing approximately 5% better accuracy and 6% improved uncertainty quantification. The model uses a Graph-Enhanced Selective State Space Model to capture spatial dependencies through grid topology and an adaptive quantile regression module to adjust prediction confidence during abnormal conditions. A key boundary of the evidence is that the current implementation operates at the regional level without explicitly modeling the physical power grid structure, limiting its ability to represent actual grid-level dependencies. This design allows for broad regional applicability but may miss operational relationships inherent in the physical network, which could be addressed in future extensions through adaptive graph learning.
Introduction
Energy consumption prediction has attracted substantial attention from both industry and academia due to its critical role in supporting a wide range of practical applications with significant societal impacts. Accurate and reliable energy consumption prediction is essential for efficient grid management, demand-side optimization, and sustainable energy planning. It also contributes to emergency preparedness by helping stakeholders anticipate potential surges in energy consumption during extreme weather events, ensuring the stability and resilience of the power grid.
Driven by its practical significance, energy consumption prediction has been studied using a variety of approaches, including traditional statistical models, classical machine learning methods, general deep learning methods, Transformers, and Diffusion. More recently, Foundation Models and large language models (LLMs) have been explored to model complex energy systems. However, there are two key limitations of existing work. First, most existing work formulates energy consumption prediction as a purely time-series forecasting problem, neglecting the intrinsic spatial dependencies among different regions or grid zones that could provide critical contextual information for accurate prediction. Second, state-of-the-art approaches fail to continuously provide reliable predictions with uncertainty estimates, especially under abnormal situations such as extreme weather events, leading to overconfident and potentially misleading predictions.
In this work, we aim to develop an uncertainty-aware spatiotemporal framework for energy consumption prediction that explicitly models spatial dependencies while providing reliable uncertainty estimates. Nevertheless, there are two key challenges to achieving this. First, energy consumption patterns exhibit strong correlations with geographical factors, temporal factors, and building characteristics (e.g., commercial vs. residential). These characteristics lead to highly heterogeneous consumption patterns across regions and time periods, making it difficult for existing models to effectively capture fine-grained spatiotemporal dependencies. Second, energy consumption behaviors and demand distributions may shift dramatically during extreme events, which makes it challenging to continuously provide reliable predictions and uncertainty estimates.
To address the above challenges and advance existing research, we propose EnergyMamba, an uncertainty-aware spatiotemporal learning framework for accurate and reliable energy consumption prediction. First, to address the spatiotemporal heterogeneity challenge, in EnergyMamba, we design Graph-Enhanced Selective State Space Model (GE-Mamba), a novel architecture that injects spatial context learned from grid topology into a bidirectional Mamba, organized within a U-Net structure. GE-Mamba leverages Graph Convolutional Networks to extract spatial context from the grid topology and injects this context directly into an efficient Selective State Space Model for temporal dynamics modeling. This design is motivated by Kirchhoff’s circuit laws: consumption changes at one node propagate to connected nodes through power flow equations, so conditioning temporal dynamics on spatial context enables more accurate modeling. Second, to address the uncertainty quantification challenge, we propose Adaptive Sequential Conformalized Quantile Regression (AS-CQR). Unlike standard conformal prediction that assumes data exchangeability, AS-CQR is designed for non-stationary time series. It includes (i) a locally adaptive nonconformity measure that normalizes residuals by the predicted interval width, ensuring scale-invariant calibration across different regions, and (ii) an online feedback mechanism that dynamically adjusts the target quantile level based on recent coverage performance, enabling rapid adaptation to distribution shifts.
Data Description
In this project, we are collaborating with a municipal utility provider in Florida. We have access to the utility data collected from over 60,000 smart meters in Leon County, FL. It provides us with household-level energy consumption time series at a 30-minute interval. The raw data are aggregated at the Census Block Group (CBG) level to prevent the disclosure of personally identifiable information and safeguard user privacy.
Heteroscedastic uncertainty scales with load magnitude
These insights highlight two essential requirements for energy consumption modeling and prediction. First, strong spatial dependencies imply that prediction should account for interactions across neighboring regions. Second, the observed heteroscedasticity and non-stationarity indicate that uncertainty estimation must adapt to changing load levels and distribution shifts.
Graph-Enhanced Selective State Space Model
In energy systems, consumption changes at one substation propagate to connected nodes through power flow equations; ignoring this coupling leads to suboptimal temporal modeling. We address this through a novel Graph-Enhanced Mamba architecture that injects spatial context into the selective state space model (SSM), organized within a U-Net encoder-decoder structure that enables multi-scale temporal feature extraction with skip connections for preserving fine-grained patterns.
Datasets
We evaluate the performance of EnergyMamba on four real-world energy consumption datasets. The first two datasets originate from Florida, covering 201 census block groups (CBGs) with fine-grained data collected at 30-minute intervals. We denote the dataset spanning the year 2018 as Florida 1 and the dataset spanning 2019 as Florida 2. To further verify the generalizability, we incorporate two additional datasets from New York and California in 2024, both recorded at 1-hour intervals in a coarser spatial granularity (11 regions and 9 zones, respectively). More details will be in Appendix A.
Baselines
We compare EnergyMamba with 5 categories of 15 state-of-the-art baselines: (1) GNN-based: DCRNN, STGCN, AGCRN, STZINB, UQGNN, TrustEnergy; (2) Attention-based: DSTAGNN, ASTGCN; (3) Transformer-based: GluonTS, PatchTST, PowerPM; (4) LLM-based: ST-LLM, UrbanGPT; (5) Mamba-based: G-Mamba, U-Mamba. Details are shown in Appendix B.1.
Metrics
We utilize Mean Absolute Error (MAE) and Root Mean Squared Error (RMSE) to evaluate the performance of deterministic prediction, and three other commonly used metrics (i.e., Mean Prediction Interval Width (MPIW), Interval Score (IS), and Coverage (COV)), to evaluate the performance of uncertainty quantification. Details in Appendix B.2.
Computational Complexity Analysis (RQ 5)
Parameter Efficiency. With 312.8K trainable parameters, EnergyMamba remains lightweight while still achieving superior predictive performance (RQ 1), indicating that gains come from architectural design rather than brute-force model scaling. Overall, EnergyMamba achieves a favorable balance between accuracy and efficiency.
Energy Consumption Prediction
Energy consumption prediction has attracted considerable attention from both academia and industry. Early energy consumption prediction approaches largely relied on statistical methods, such as linear regression, support vector regression, and random forest regression, which model linear relationships between energy consumption. However, these methods often struggle to capture the complex, nonlinear dynamics inherent in energy consumption data. To address this limitation, deep learning approaches have been widely adopted, including general neural forecasting methods, Transformers, and Diffusion, which excel at mining temporal patterns from historical time series. More recently, the emergence of Foundation Models and Large Language Models has introduced a new paradigm, leveraging extensive pre-training to achieve superior generalization. Despite these advancements, most existing works formulate energy consumption prediction as a purely time-series prediction problem, neglecting the intrinsic spatial dependencies among different regions or grid zones that could provide critical information. Furthermore, the reliability of predictions, which is crucial for real-world decision-making under extreme weather or grid anomalies, remains underexplored.
Uncertainty-aware Spatiotemporal Prediction
Quantifying uncertainty is significant for robust and reliable decision-making. Most existing uncertainty-aware spatiotemporal prediction works focus on distribution-based methods or conformal prediction. Distribution-based methods assume that the target variable follows a specific probability distribution and optimize the model to predict the distribution parameters. For example, UQGNN assumes a Gaussian distribution, while STZINB leverages a zero-inflated negative binomial distribution. Conformal Prediction is a distribution-free framework that constructs valid prediction intervals. CF-GNN integrates conformal prediction with GNN, while TrustEnergy further enhances this by incorporating meta-learning to achieve context-aware prediction. Despite these advances, a critical gap remains: most existing methods assume data exchangeability or stationarity, which do not hold in real-world energy systems subject to distribution shifts. They typically lack mechanisms to dynamically adjust uncertainty bounds in response to online feedback, leading to potential miscoverage during abnormal or extreme events. Our work addresses this by incorporating adaptive conformal inference into a spatiotemporal framework, ensuring robust calibration even under non-stationary conditions.
Conclusion
In this paper, we propose EnergyMamba, an uncertainty-aware spatiotemporal framework for accurate and reliable energy consumption prediction. The design of EnergyMamba is directly motivated by empirical insights, addressing key challenges including physical spatial dependencies and load-dependent heteroscedasticity. EnergyMamba consists of two core components: (i) GE-Mamba, which integrates GCN with a Selective State Space Model within a U-Net architecture. By leveraging a Bidirectional Processing mechanism and multi-scale feature extraction, GE-Mamba effectively captures complex spatiotemporal patterns while maintaining linear computational complexity; and (ii) AS-CQR, which includes locally adaptive normalization and online feedback mechanisms to handle non-stationarity, providing reliable uncertainty estimates even under distribution shifts during extreme weather events. Extensive experiments on four real-world datasets from Florida, New York, and California demonstrate that EnergyMamba outperforms 15 state-of-the-art baselines, improving prediction accuracy by around 5% and uncertainty quantification by 6%.
Limitations and Ethical Considerations
The current implementation of EnergyMamba operates at the regional level (e.g., CBGs) and does not explicitly model the physical topology of the power grid. While this design is easily generalizable across different regions and avoids the need to track grid topology changes, it may overlook structural and operational dependencies. As future work, this framework can be extended to incorporate grid topology and leverage adaptive graph learning to dynamically update network representations.
We adhere to the KDD Code of Ethics. De-identified data was obtained from a municipal utility provider in Florida under an NDA, which is stored and processed exclusively on FSU’s secured computing facilities. We declare no conflicts of interest or foreseeable risks.
A.1. Florida Datasets (Florida 1 & Florida 2)
At the utility scale, our 5% system-wide accuracy improvement can translate to massive cost savings by reducing reliance on spinning reserves and mitigating millions in over-procurement penalties. Furthermore, EnergyMamba achieves an ~6% improvement in uncertainty quantification (Interval Score). Because modern grid operations are deeply risk-sensitive, this enhanced probabilistic reliability is critical for determining safe reserve margins and preventing blackouts during extreme events. By jointly optimizing deterministic accuracy and probabilistic forecasting, EnergyMamba delivers a dual contribution with profound economic and operational value.
A.2. New York ISO Dataset (NYISO)
The New York dataset is sourced from the New York Independent System Operator (NYISO). NYISO is collected from supervisory control and data acquisition (SCADA) systems that monitor real-time power flows across the transmission network. Load readings are aggregated at the zonal level, where each zone represents a distinct load pocket with similar electrical characteristics. We collected data for the year 2024, recorded at 1-hour intervals, resulting in 8,760 time steps per zone. The hourly resolution aligns with standard electricity market operations and enables evaluation on coarser-grained temporal patterns.
A.3. California ISO Dataset (CAISO)
The California dataset is obtained from the California Independent System Operator (CAISO), which oversees the operation of California’s bulk electric power system. The dataset covers 9 Transmission Access Charge (TAC) areas: Pacific Gas & Electric (PG&E), Southern California Edison (SCE), San Diego Gas & Electric (SDG&E), Valley Electric Association (VEA), and several smaller municipal utilities. These regions represent California’s three major investor-owned utilities and associated service territories. Similar to the NYISO dataset, we collected hourly load data for the year 2024, yielding 8,760 time steps per region.
A.4. Data Preprocessing and Management
Outlier Detection. We identified outliers using the interquartile range (IQR) method. Values exceeding 1.5 times the IQR beyond the first or third quartile were flagged and manually inspected. Genuine extreme values (e.g., during heat waves) were retained, while obvious measurement errors were corrected using temporal interpolation.
Graph Construction. Following Section 3.1, we constructed adjacency matrices based on geographical distances between region centroids as a proximity-based coupling proxy. For Florida datasets, we used CBG centroids; for NYISO and CAISO, we used the geographical centers of each zone/region.
GNN-based methods
DCRNN is a diffusion-convolution seq2seq model; STGCN combines graph and temporal convolutions; AGCRN learns adaptive node-wise dependencies; STZINB is a probabilistic graph model with a zero-inflated negative binomial formulation; UQGNN focuses on multivariate uncertainty quantification; and TrustEnergy combines meta-learning with conformal prediction.
Mamba-based methods
G-Mamba combines graph modeling with Mamba blocks, while U-Mamba adopts a U-shaped Mamba architecture for hierarchical sequence modeling. This category is the closest architectural family to EnergyMamba and is therefore especially relevant for isolating the contribution of our graph-enhanced design.
B.2. Metrics
Lower MAE, RMSE, MPIW, and IS are better, while Coverage should be close to the target confidence level. In practice, a good uncertainty estimator should achieve reliable Coverage without excessively increasing MPIW. If Coverage is substantially below the target level, the intervals are under-dispersed and the model is overconfident; if it is much higher than the target, the intervals are often overly conservative.
GenAI Disclosure
In the preparation of this work, the authors utilized Generative AI tools solely for the purpose of language refinement and improving readability. No AI tools were used to generate scientific concepts, experimental results, or the intellectual content of this paper. The authors have reviewed all AI-assisted edits and take full responsibility for the final content of the manuscript.


