Manuscript Offprint

arXiv:2608.26234

A causal graph-informed temporal convolution architecture for interpretable retail electricity price forecasting

Yufan Ji, Abdollah Shafieezadeh, Noah Dormady

Abstract

Retail electricity markets in deregulated systems face significant price volatility and complex interactions with forward and futures products, posing challenges for effective operational decision-making. This study introduces a Causal Graph-Informed Temporal Convolutional Network (CG-TCN), a forecasting architecture that integrates a learned causal graph into a temporal convolutional network via a graph-neural embedding to enhance both forecasting accuracy and interpretability of retail electricity price dynamics. The framework first applies a multi-resolution decomposition to isolate semiannual, quarterly, and monthly trends from high-frequency fluctuations. A causal graph is then discovered over these components and key covariates—including wholesale forward prices and retail contract attributes such as early termination fees—using NOTEARS, with domain constraints that preserve causal directionality and exogeneity. The learned causal structure is encoded as an adjacency embedding that conditions the TCN’s convolutions and attention, aligning representation learning with causal pathways. To better capture rare but impactful retail price surges, we use a spike-aware training algorithm that oversamples spike windows and up-weights their errors. Using ten years of daily 12-month fixed-price residential contracts from Ohio’s deregulated market, we find that wholesale forward prices primarily determine long-term retail price trends, whereas contract attributes influence short-term fluctuations. CG-TCN consistently outperforms benchmark models, achieving mean absolute percentage errors of 3.08%, 3.82%, and 5.43% for one-, ten-, and fifteen-step-ahead forecasts of daily retail electricity median prices, respectively. By combining predictive performance with interpretability, CG-TCN provides transparent, policy-relevant insight to support market analytics, consumer protection, regulatory oversight, risk assessment and procurement planning in competitive electricity markets.

Keywords: Electricity price forecasting, explainable artificial intelligence, causal inference, temporal convolutional network, time series decomposition

Preprint submitted to Elsevier

August 28, 2026

1. Introduction

Retail electricity prices play a critical role in shaping both consumer expenditures and supplier strategy in deregulated markets. For households and small businesses, these prices directly determine energy expenditures and influence adoption of efficiency measures, distributed generation, and demand-response programs [1, 2]. For suppliers and policymakers, retail prices serve as signals for market competitiveness, hedging strategies, and the integration of renewable resources [3]. Yet retail prices arise from shifting structural drivers—including wholesale forward prices, regulatory interventions, and evolving contract attributes—that generate pronounced volatility and occasional price spikes. Reliable retail price forecasts are therefore essential for regulators tasked with consumer protection and market participants requiring effective procurement planning and risk management. Equally important, models that uncover causal mechanisms behind price formation can inform robust market design, guide investment, and support a transparent energy transition.

Retail electricity prices in deregulated markets are jointly shaped by wholesale cost conditions and retail market design, yet existing studies largely examine these drivers in isolation rather than within a unified analytical framework. In deregulated retail electricity markets, consumers can choose among contracts offered by multiple competitive suppliers, each featuring different terms and conditions. In Ohio, for example, more than twenty suppliers collectively post nearly one hundred residential electricity contracts per day within each utility service territory, across six territories statewide [3]. Recent studies show that contract attributes such as early termination fees and monthly fixed charges are systematically related to offered prices—higher fees are often associated with lower per-kWh rates [4]. These contract-level features influence retail prices alongside other more structural wholesale market attributes in the broader market (e.g., NYMEX futures, implied volatility) [2]. Wholesale forward prices shape the costs of suppliers (or marketers) that supply competitive retail service and/or procurements through default service known as the “standard service offer” (SSO). The SSO is the default supply rate charged by suppliers and collected on distribution utility bills for non-shopping customers. The SSO often serves as a baseline reference for households evaluating contract options, and in most jurisdictions it is even referred to as a comparison price printed on customer bills. 1^{1} Incorporating both contract-level and market-level drivers is therefore essential for understanding how retail electricity prices are formed. This is of

1^{1}This comparison price is commonly referred to as the “Price to Compare” (PTC) in Ohio, New York, Pennsylvania, and several other deregulated retail electricity markets.

critical importance in energy markets because there are very few studies of price formation in retail markets, and no present studies evaluating the combined (wholesale and retail) market attributes influencing retail price formation.

Although limited to wholesale markets, a growing body of research has advanced electricity price forecasting and explored linkages between market fundamentals and prices [5, 6, 7]. For example, Wang et al. developed a convolutional neural network–long short-term memory ensembles to forecast day-ahead prices in Japan [8]. Cerasa et al. proposed a filtering strategy to enhance forecasting accuracy in U.S. and European markets by systematically identifying and replacing extreme spikes [9]. Kohút et al. employed recurrent neural networks to forecast wholesale prices across European grids [10]. While these approaches achieve acceptable predictive accuracy, they remain largely “black-box” models, offering limited insight into the mechanisms driving price dynamics. This limits robustness under policy or regime changes and weakens their decision value for procurement and regulation.

As demand grows for interpretability and explainability in machine learning forecasts, researchers have begun to report additional details about model training and feature relevance [5, 11]. Yet much of the literature remains correlation-based, optimizing prediction error or reporting feature importance without establishing directional, invariant relationships among drivers. This limits their ability to generalize under regime shifts or policy shocks. Recent evidence shows that embedding causal structures into forecasting models can improve robustness and interpretability [12, 13]. Unlike feature importance, causal analysis can address confounding and distinguish mediators from true causes. To fill this gap, we propose a Causal-Graph-informed Temporal Convolutional Network (CG-TCN) for the more complicated and policy-relevant and consumer-relevant application of retail electricity price forecasting. Our approach first learns a directed causal graph, and then injects that graph into forecasting via a graph-neural embedding that conditions the TCN, aligning representation learning with hypothesized causal pathways.

A prominent method for causal graph discovery is NOTEARS (Non-combinatorial Optimization via Trace Exponential and Augmented lagRangian for Structure learning) [14]. Traditional approaches such as the Peter–Clark (PC) algorithm (constraint-based) [15] or the Greedy Equivalence Search (GES) algorithm (score-based) [16] often rely on combinatorial searches over graph structures, which scale poorly and can be sensitive to conditional independence tests or scoring heuristics. In contrast, NOTEARS learns a directed acyclic graph (DAG) by solving a smooth, continuous optimization with a differentiable acyclicity constraint, enabling efficient gradient-based optimization while guaranteeing a valid DAG. This property makes NOTEARS particularly attractive for high-dimensional forecasting problems, where correlated drivers and latent common shocks can obscure true directional relationships.

In this study, we employ NOTEARS to infer the causal graph among retail electricity price drivers while imposing economically motivated domain constraints. Specifically, the retail price target is restricted from acting as a parent node, preventing implausible feedback loops in which future prices influence upstream drivers. This restriction ensures that inferred relationships reflect economically meaningful drivers of price formation rather than reverse causation. In addition, exogenous variables—such as wholesale forward prices and time features—are constrained to remain exogenous, disallowing incoming edges from retail or contract-level variables. These constraints encode basic economic structure, reflecting the fact that wholesale market conditions and institutional calendars shape retail pricing decisions but are not themselves determined by individual retail contracts or observed price realizations. By incorporating such domain knowledge, the learned causal graph becomes more stable, interpretable, and economically coherent, filtering out spurious correlations that arise from shared trends or temporal persistence. The resulting structure then serves as an inductive bias for our CG-TCN, aligning temporal representation learning with hypothesized causal mechanisms underlying retail electricity price formation.

In parallel, time-series decomposition techniques have proven valuable for improving electricity price forecasts, though many applications treat decomposed components as purely statistical artifacts and do not explicitly link them to underlying economic mechanisms. In this study, we employ causal, one-sided multi-resolution decompositions based on Seasonal–Trend decomposition using Loess (STL) and a parametric filter-bank approach, which we refer to as a Temporal Smoothing Network (TSN)—a deterministic, multi-scale bank of causal smoothing filters rather than a learned neural network-to extract horizon-specific components from retail electricity prices in real time. Electricity prices are known to exhibit multi-scale seasonality and structural patterns that correspond to distinct economic drivers—for example, long-term seasonal and trend components have been shown to improve forecasting accuracy when modeled separately from stochastic fluctuations of the price series, capturing persistent economic forces beyond short-run noise [17]. These components correspond naturally to distinct economic processes operating at different temporal scales: longer-horizon trends (e.g., semiannual and quarterly) reflect supplier procurement cycles, forward contract rollovers, and regulatory adjustments, while shorter-horizon components capture contract price updates and adjustments, promotional behavior, intra-firm competition, and high-frequency variation in posted retail prices. By constructing these components using only past information and feeding them into the causal graph discovery stage, we explicitly disentangle price formation mechanisms across horizons, stabilize estimation under nonstationarity, and enable economically interpretable attribution alongside accurate forecasts.

Figure 1 presents an overview of the proposed CG-TCN framework. In the first module, the retail electricity price series is decomposed into multiple temporal components—including semiannual, quarterly, and monthly trends, as well as short-term fluctuations. Next, a causal graph is discovered over these components and related market and contract features using the NOTEARS algorithm, capturing directional dependencies as a learned adjacency embedding. Finally, the causal embedding conditions a TCN, which models temporal dynamics while respecting the causal structure. The result is a unified pipeline that couples multi-scale decomposition, causal discovery, and neural forecasting to achieve accurate and interpretable, mechanism-aware price predictions.

Specifically, the proposed framework contributes to the literature in four key ways:

(1) We introduce a flexible one-sided causal multi-resolution decomposition framework based on STL and TSN that extracts interpretable temporal components of retail electricity prices in real time, capturing the dominant temporal dynamics that drive forecasting performance.

(2) We develop a causal discovery stage that identifies directional relationships between contract attributes, market fundamentals, and decomposed price components, and leverages these causal links to enhance predictive performance.

(3) We introduce a novel approach, CG-TCN, that combines the predictive strength of neural networks with the interpretability of causal inference. To our knowledge, this is the first approach that injects a learned causal DAG into a TCN through a graph-neural embedding, aligning convolutional representations with causal pathways for applications in retail electricity price forecasting.

(4) We incorporate and tailor a spike-aware algorithm designed to improve the model's forecasting performance during extreme price spike periods. The algorithm increases the representation of spike windows during training and applies a higher loss penalty to errors within these intervals, ensuring the model learns to better capture abrupt price surges.

(5) We demonstrate the proposed method on a comprehensive database from Ohio containing every daily retail choice offer filed by every retail supplier in every service territory for a decade. This demonstrates state-of-the-art forecasting accuracy and interpretable attributions across multiple horizons.

The remainder of the paper is organized as follows. Section 2 introduces the proposed CG-TCN

Module 1: Causal Decomposition

Retail electricity prices

Semiannual trend

Quarterly trend

One-Sided causal decomposition

Monthly trend

Fluctuation

Related Factors

Wholesale electricity market prices

Retail contract information

Module 2: Structural Learning

Figure

t=1t=2t=3t = 1 \quad t = 2 \quad t = 3

t=Tt = T

• Casual graph discovery

• Domain constraints enforced

Module 4: Temporal Dynamics Modeling

Figure

Output

d = 4

Hidden

d = 2

Hidden

d = 1

Input

x0x_{0} x1x_{1} x2x_{2}

...

xTx_{T}

Forecasting Results

(a) Price Component

(b) Final Price

Figure

Module 3: Graph Embedding

GNN Learned Effective Adjacency Matrix

Figure

Target nodes

Causal Inference

(a) Causal DAG

(b) Temporal Causality

Figure

• Interpretability

• Mechanism-aware attributions

Fig. 1. Overview of the proposed CG-TCN framework. Module 1: One-sided decomposition framework first decomposes retail electricity prices into multi-resolution components. Module 2 & 3: NOTEARS then discovers a causal graph over these components and covariates, which is encoded as an adjacency embedding. Module 4: The learned causal structure guides the TCN to generate accurate forecasts and interpretable, mechanism-aware attributions.

architecture and training. Section 3 describes data and variables. Section 4 reports the empirical results and forecasting performance. Section 5 discusses the main findings, interpretability, and policy implications. Section 6 concludes with a summary of contributions and directions for future research.

References (25)

  • the evidence from michigan, Energy Efficiency 6 (3) (2013) 571–584
  • Analysis of ohio's retail choice markets, Journal of Critical Infrastructure Policy 6 (1) (2025) e12031
  • An explainable machine learning analysis of retail renewable energy pricing, manuscript under review at *Energy Economics*
  • A review and evaluation, International Journal of Electrical Power & Energy Systems 31 (1) (2009) 13–22
  • Arcos-Vargas, Use of deep learning architectures for day-ahead electricity price forecasting over different time periods in the spanish electricity market, Applied Sciences 11 (13) (2021) 6097
  • A novel filtering strategy for improved out-of-sample predictions, Applied Energy 383 (2025) 125357
  • Continuous optimization for structure learning, Advances in neural information processing systems 31
  • A review of the state-of-the-art with a look into the future, International journal of forecasting 30 (4) (2014) 1030–1081
  • A seasonal-trend decomposition, J. off
  • Semi-Supervised Classification with Graph Convolutional Networks
  • proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2017, pp. 156–165
  • An Empirical Evaluation of Generic Convolutional and Recurrent Networks for Sequence Modeling
  • Breakthroughs in statistics: Methodology and distribution, Springer, 1992, pp. 492–518
  • Part ii—probabilistic forecasting, Energy Economics 79 (2019) 171–182
  • A scalable tree boosting system, in: Proceedings of the 22nd acm sigkdd international conference on knowledge discovery and data mining, 2016, pp. 785–794
  • forecasting and control, John Wiley & Sons, 2015
  • 2021 International joint conference on neural networks (IJCNN), IEEE, 2021, pp. 1–8
  • Multivariate time series forecasting with graph neural networks, in: Proceedings of the 26th ACM SIGKDD international conference on knowledge discovery & data mining, 2020, pp. 753–763
  • Decomposition transformers with auto-correlation for long-term series forecasting, Advances in neural information processing systems 34 (2021) 22419–22430
  • Statistical Methodology 80 (1) (2018) 5–31
  • International conference on artificial intelligence and statistics, Pmlr, 2020, pp. 3414–3425
  • Continuous optimization algorithm based on curriculum learning framework, Mathematics 12 (17) (2024) 2640
  • Temporal interpretation for multivariate time series forecasting, arXiv preprint arXiv:2012.09324 (opens arXiv in a new tab)
  • A next-generation hyperparameter optimization framework, in: Proceedings of the 25th ACM SIGKDD international conference on knowledge discovery & data mining, 2019, pp. 2623–2631
  • Hyperparameter optimization in hundreds of dimensions for vision architectures, in: International conference on machine learning, PMLR, 2013, pp. 115–123