ConceptioArchivearXiv CS
arXiv CSopen access

A Generalized Synthetic Control Method for Baseline Estimation in Demand Response Services

Unknown · 2026 · arxiv_cs
arXiv CS · Papers · License: Open Access · 2026
Open Source ↗Direct PDF ↓
artificialintelligenceknowledgerepresentationreasoning
artificial intelligence, reasoning, knowledge representation

A Generalized Synthetic Control Method for Baseline Estimation in Demand Response Services Jonas Sievers1 and Mardavij Roozbehani2

arXiv:2604.18469v1 [cs.AI] 20 Apr 2026

Abstract Baseline estimation is critical to Demand Response (DR) settlement in electricity markets, yet existing machine learning methods remain limited in predictive performance, while methodologies from causal inference and counterfactual prediction are still underutilized in this domain. We introduce a Generalized Synthetic Control Method that builds on the classical Synthetic Control Method (SCM) from econometrics. While SCM provides a powerful framework for counterfactual estimation, classical SCM remains a static estimator: it fits the treated unit as a combination of contemporaneous donor units and therefore ignores predictable temporal structure in the residual error. We develop a generalized SCM framework that transforms baseline estimation into a dynamic counterfactual prediction problem by augmenting the donor representation with exogenous features, lagged treated load, and selected lagged donor signals. This enriched representation allows the estimator to capture autoregressive dependence, delayed donorresponse patterns, and error-correction effects beyond the scope of standard SCM. The framework further accommodates nonlinear predictors when linear weighting is inadequate, with the greatest benefit arising in limited-data settings. Experiments on the Ausgrid smart-meter dataset show consistent improvements over classical SCM and strong benchmark methods, with the dominant performance gains driven by dynamic augmentation.

I. INTRODUCTION Flexibility services such as Demand Response (DR) and Local Flexibility Marketss (LFMs) are becoming increasingly important for maintaining grid stability in power systems with growing shares of volatile Renewable Energy Sources (RES). While DR programs incentivize consumers to adjust electricity consumption in response to grid conditions, LFMs provide market-based mechanisms for procuring local flexibility to relieve congestion. A central challenge in both DR and LFM is baseline estimation, i.e., the counterfactual consumption that would have occurred absent a flexibility incentive [1], [2]. Because delivered flexibility is measured as the deviation from this baseline, accurate and transparent estimation is essential for fair settlement and efficient market design. Inaccurate baselines can distort remuneration, weaken participation incentives, and create opportunities for strategic manipulation through deliberate load shifting [3]. A. Related Work Recent approaches to customer baseline estimation can be broadly grouped into averaging, regression, clustering-based, and deep learning methods (Table I). Averaging-based methods, including Exponential Moving Average and X-of-Y techniques, are widely used in practice because of their simplicity [4]. However, their reliance on historical averages limits accuracy when consumption patterns shift rapidly. 1

Jonas Sievers is with Institute for Data Processing and Electronics, Karlsruhe Institute of Technology, 76344 EggensteinLeopoldshafen, Germany [email protected] 2 Mardavij Roozbehani with the Laboratory for Information and Decision Systems, Massachusetts Institute of Technology, Boston, MA 02139, USA [email protected]

1

෩ 0) Control Group (𝑿

Generalized Synthetic Control Method

Baseline

Power

Treated Building (x1)

Flexibility

Prosumption Time

Congestion

Fig. 1. Architectural overview of the Generalized Synthetic Control Method for baseline estimation in residential flexibility services.

Regression-based methods improve adaptability by modeling consumption as a function of explanatory variables. Early approaches used linear and polynomial regression [4], with Ridge or Lasso regularization. More flexible models include Support Vector Machines [5], Random Forests, and XGBoost [4]. Deep learning has further advanced baseline estimation by capturing nonlinear dependencies in load profiles through architectures such as Dense Neural Networks (DNN), Long Short-Term Memory Models (LSTM), and Generative Adversarial Networks (GANs) with attention mechanisms [6]–[8]. Like other forecasting-based approaches, these models estimate counterfactual consumption from pre-intervention information, extrapolating historical load and covariates under the assumption of no flexibility activation. In clustering-based approaches, the baseline is inferred from historical trends together with contemporaneous observations from a peer group selected to resemble the treated building. Methods that use reference-building information during the intervention period are closer in spirit to the Synthetic Control Method. Common techniques include K-Means, DBScan, Self-Organizing Maps, and frequency-based clustering based on the Discrete Fourier Transform [9]. The SCM, originally introduced by Abadie et al. [10], [11], extends this peer-based logic by replacing discrete group selection with continuous weight optimization. Rather than relying on a pre-clustered subset, SCM constructs a synthetic counterfactual as a weighted combination of units in a donor pool that are not exposed to the intervention. In the context of baseline estimation, this amounts to combining profiles from similar non-participating buildings with weights chosen to match the treated building’s historical consumption. Owing to its causal interpretability and flexibility, SCM has been widely applied in economics, public health, social sciences, and engineering [12]. B. Contribution We propose a Generalized Synthetic Control framework for baseline estimation (Figure 1). To the best of our knowledge, this is the first work to apply counterfactual prediction ideas from the causal-inference literature, and specifically Synthetic Control, to DR baseline estimation. Our main methodological contribution is to extend classical SCM from a static estimator based on 2

TABLE I Concept Matrix for the Literature on Baseline Estimation in Flexibility Services. Reference Year Focus Average Regression Deep L. Cluster Optimization [13] 2024 Aggregated BE with a Graph Neural Network • • • • [7] 2020 Aggregated BE with Stacked Autoencoders • • • • [8] 2024 BE with an Attention-based GAN • • • • • • • • [14] 2024 BE with a Diffusion Model [4] 2020 BE with Dense Neural Networks • • [5] 2023 BE Evaluation of various ML Models • • • [15] 2022 BE with Mixed Effect Regression [16] 2022 BE with K-means and Lasso Regression • • • [17] 2023 BE with K-means and Weighted Averaging • [6] 2024 BE with K-means and LSTM [9] 2020 BE with Frequency-based Clustering and Averaging • • • • • • This paper 2025 BE with Advanced Synthetic Control Method Where represents a proposed method in the respective category, and • indicates its inclusion as a benchmark. Abbreviations: Baseline Estimation (BE); Generative Adversarial Network (GAN); Machine Learning (ML); Long Short-Term Memory Model (LSTM); Deep Learning (Deep L).

contemporaneous donor loads to a dynamic counterfactual predictor built from an augmented representation including exogenous features, lagged treated load, and selected lagged donor signals. This reformulation enables SCM to incorporate temporal information that is excluded by its standard static formulation. We further generalize the framework to admit nonlinear predictors and show empirically that their benefit is most pronounced in data-constrained settings or when donor pools are small. Finally, using real-world smart-meter data, we demonstrate consistent improvements over classical SCM and strong benchmark methods, with the largest gains attributable to dynamic augmentation while retaining the interpretability that makes SCM attractive for market applications. II. METHODOLOGY A. Baseline Estimation Using the Synthetic Control Method We estimate the DR baseline using a synthetic control formulation, in which the untreated consumption of a participating building is approximated by a weighted combination of nonparticipating buildings. Let yjt ∈ R denote the electricity consumption of building j ∈ {1, . . . , J+1} at time t ∈ T0 ∪ T1 , where T0 and T1 denote the pre and post intervention periods, respectively. Building j = 1 is the treated unit, i.e., the building that received the flexibility payment, while the remaining J buildings serve as donor units and receive no flexibility payments. During congestion (t ∈ T1 ), the delivered flexibility, or treatment effect, is defined as the deviation of observed consumption y1t from the estimated baseline ŷ1t [12]: τ̂1t = ŷ1t − y1t , t ∈ T1 . (1) The baseline is estimated as a weighted combination of donor consumption: ŷ1t =

J+1 X

wj yjt ,

t ∈ T1 ,

(2)

j=2

where the weight vector w = (w2 , . . . , wJ+1 )⊤ is chosen to best reproduce the treated unit’s pre-congestion profile. Let x1 ∈ R|T0 | denote the treated building’s consumption over T0 , and

3

Pre-Intervention 𝒕 ∈ 𝑻𝟎 - normal consumption with no congestion

x1

Power

x1 Time

X0

R

Treated Building

Estimate

Time

Congestion

Donors x

=

Weights

H

X0

Power

Control Group + Features

Fit Synthetic Control Weights

Time t

Power

Flexibility

R F

F

Control Group + Features

Time

Power

H

Treated Building

Post-Intervention 𝒕 ∈ 𝑻𝟏 - adjusted consumption with congestion

Time t

Time

(a)

(b)

Fig. 2. Overview of the proposed baseline estimation framework for flexibility provision in demand response programs: (a) estimation of the synthetic control weights from the extended control group during the pre-intervention period, and (b) reconstruction of the baseline during congestion events.

let X0 ∈ R|T0 |×J denote the corresponding matrix of donor consumption. In the classical SCM formulation, the weights are obtained by solving w∗ = arg min ∥x1 − X0 w∥22 w

s.t. wj ≥ 0,

J+1 X

wj = 1.

(3)

j=2

The simplex constraints promote interpretability and regularization: each coefficient wj can be interpreted as the contribution of donor j to the synthetic control. In our setting, however, we relax the non-negativity constraint and allow wj ∈ R, which permits the model to capture both positive and negative correlations among building-level consumption profiles. To control variance and reduce overfitting, we instead impose explicit ℓ2 -regularization: w∗ = arg min ∥x1 − X0 w∥22 + λ∥w∥22 w

s.t.

J+1 X

wj = 1.

(4)

j=2

B. Augmented Synthetic Control Design The accuracy of counterfactual estimation in SCM depends on the donor pool’s ability to reproduce both observed predictors and latent factors of the treated unit. A key limitation of standard SCM is that this representation is static: it relies only on contemporaneous donor outcomes and therefore does not exploit temporal structure in the residual mismatch between the treated unit and its synthetic control. In practice, the treated unit need not lie exactly in the linear span of the donors, and the resulting error may exhibit serial dependence or delayed dependence on common demand drivers. To address this, we augment X0 ∈ R|T0 |×J with exogenous covariates, lagged treated outcomes, and selected lagged donor outcomes.1 Specifically, we introduce three additional feature blocks (Figure 2): (i) Exogenous features F ∈ R|T0 |×M . For each t ∈ T0 , the row ft⊤ contains M observed covariates, such as temperature, humidity, and calendar indicators, that serve as proxies for external demand drivers. (ii) Lagged treated outcomes H ∈ R|T0 |×L . For each t ∈ T0 , the row ht⊤ contains the L most recent consumption values of the treated unit, ht⊤ = (y1,t−1 , y1,t−2 , . . . , y1,t−L ), so that Ht,ℓ = y1,t−ℓ for ℓ = 1, . . . , L. 1

See Appendix III for theoretical justification and discussion.

4

(iii) Selected lagged donor outcomes R ∈ R|T0 |×J . For each donor j ∈ {2, . . . , J + 1}, we select the lag kj∗ with the largest absolute Pearson correlation with the treated series over the pre-intervention period: 

kj∗ ∈ arg max corr {y1t }t∈T0 , {yj,t−k }t∈T0



1≤k≤L

.

(5)

For each t ∈ T0 , the row r⊤ t is 



∗ r⊤ . t = y2,t−k2∗ , y3,t−k3∗ , . . . , yJ+1,t−kJ+1

Thus, each donor contributes one lagged series chosen to maximize alignment with the treated unit while keeping the feature dimension manageable. The augmented feature matrix is then X̃0 = [X0

F H R] ∈ R|T0 |×D ,

(6)

where D = J + M + L + J. The synthetic control coefficients are estimated using (4) with X0 replaced by X̃0 . An important distinction from standard SCM arises when lagged treated outcomes are included. In classical SCM, post-intervention predictions depend only on donor information and can therefore be evaluated over any post-intervention horizon. Once H is included, however, multi-step counterfactual prediction is valid only if post-intervention lagged treated inputs are generated recursively from previously estimated counterfactual outcomes rather than realized treated outcomes. Otherwise, evaluation should be restricted to the one-step-ahead prediction at T0 + 1. C. Integrating Nonlinear Predictors into the Synthetic Control Framework Classical SCM estimates the counterfactual baseline as a linear combination of donor features. This can be restrictive when the treated unit is not well approximated by a linear predictor, even after augmentation. We therefore replace the linear map by a function fθ : RD → R that maps the t-th row of the augmented feature matrix X̃0 , denoted x̃0t , to the treated outcome y1t . The model parameters are estimated on the pre-treatment window T0 by minimizing the regularized mean squared error 2 1 X (7) θ∗ ∈ arg min y1t − fθ (x̃0t ) + λR(θ), θ |T0 | t∈T0 where R(θ) denotes a regularization term. During congestion periods t ∈ T1 , the counterfactual baseline is then obtained by forward evaluation of the trained model: ŷ1t = fθ∗ (x̃0t ),

t ∈ T1 .

(8)

Equations (7)–(8) generalize SCM by allowing nonlinear dependence on the augmented donor representation. In principle, fθ may be implemented using more expressive sequence models, such as LSTMs or Transformers. In this paper, however, our goal is to introduce the general framework rather than optimize model architecture, and we therefore use a basic Multilayer Perceptron (MLP). The classical linear formulation is recovered as the special case fθ (z) = z⊤ θ, with z = x̃0t . III. RESULTS The experimental setup is described in Appendix I. The evaluation is based on the Ausgrid dataset [18], extended with simulated battery operation and aligned meteorological features. Results are reported for 50 treated buildings, each evaluated against a donor pool of 299 control buildings.

5

1 0.92 0.8

0.82 0.79 0.79

0.77

0.72 0.71

SCM+S1+R

SCM+R

K-Means+Reg.

0.13 0.12

DBScan+Reg.

0.18 0.15 0.14 0.14

K-Means+LSTM

Freq. + Avg.

XGBoost

Dense

LSTM

Random Forest

Poly. Reg.

Moving Avg.

0

Mid5of10

0.2

K-Means+Avg.

MSE

0.54

0.5

Fig. 3. Baseline Estimation over 50 Buildings, comparing Averaging (grey), Regression (blue), Clustering (yellow), and Synthetic Control (red) Methods. TABLE II Accuracy of Linear Synthetic Control Variants and the Best Benchmark over 50 Residential Buildings. Scenario K-Means+Lasso SCM+R SCM+S1+R SCM+R

MSE 0.1426 0.1351 0.1274 0.1275

Min 0.0303 0.0273 0.0243 0.0246

Max 0.3610 0.4077 0.3393 0.3366

STD 0.0751 0.0869 0.0815 0.0818

Diff 5.26% 10.66% 10.60%

Abbreviations: K-Means + Lasso denotes K-Means clustering with Lasso regression; SCM unconstrained SCM; +S1 adds sum-to-one; +R regularization.

A. Linear Synthetic Control for Baseline Estimation We begin by benchmarking the linear SCM, which serves as the foundation for later extensions. Figure 3 presents the Mean Squared Error (MSE) for averaging (grey), regression (blue), and clustering (yellow) benchmarks, compared with our linear SCM (red). Among the averaging-based baselines, Mid5of10 [4] and Moving Average [4] yield MSE values of 0.9243 and 0.8250, respectively. Regression-based methods show modest improvements: Polynomial Regression [19] achieves an MSE of 0.7992, followed by Random Forest [5] at 0.7914, LSTM [6] at 0.7756, DNN [4] at 0.7268, and XGBoost [5] at 0.7170. These reductions are consistent across models, but remain within statistical variation, with standard deviations ranging from 1.6095 (XGBoost) to 1.8329 (Random Forest). In our experiments, clustering-based methods that exploit information from similar buildings consistently outperform baselines based only on the treated building. K-means and DBSCAN perform comparably, while frequency-based clustering yields slightly higher errors. Among these variants, K-means with simple averaging attains an MSE of 0.1800, K-means with an LSTM reduces this to 0.1534, and K-means with Lasso regression achieves the lowest value, 0.1426. Table II compares the best benchmark, K-means with Lasso regression, against three regularized linear SCM variants. SCM+R, which enforces both sum-to-one and non-negativity together with regularization, achieves an MSE of 0.1351, improving on the benchmark by 5.26 %. The SCM+S1+R variant, which retains only the sum-to-one constraint, achieves the lowest MSE, 0.1274, corresponding to a 10.66 % improvement and reducing the minimum error from 0.0303 to 0.0243 and the maximum from 0.3610 to 0.3393. Finally, the unconstrained SCM+R variant attains an MSE of 0.1275, corresponding to a 10.60 % improvement. 6

60

Improvement [%]

SCM MSE

0.3 0.2

40

0.1

20 0.00

0.05

0.10

0.15 0.20 0.25 Benchmark MSE

0.30

0.35

Fig. 4. MSE Comparison over 50 Buildings between SCM+S1+R+Dpast and the Best Benchmark. Sub-Diagonal Points show SCM improvements.

These results show that regularized linear SCM outperforms the strongest benchmark while retaining interpretable weight structures suitable for demand response settlement. B. Effect of the Augmented Control Group TABLE III Accuracy of the Generalized Control Group and the Best Benchmark over 50 Residential Buildings. Scenario K-Means + Lasso SCM+S1+R SCM+S1+R+exF SCM+S1+R+Tpast SCM+S1+R+Dpast

MSE 0.1426 0.1274 0.1271 0.0920 0.0821

Min 0.0303 0.0243 0.0245 0.0155 0.0138

Max 0.3610 0.3393 0.3412 0.2912 0.2768

STD 0.0751 0.0815 0.0817 0.0572 0.0519

Diff 10.66% 10.87% 35.48% 42.43%

Abbreviations: K-Means + Lasso denotes K-Means clustering with Lasso regression; SCM unconstrained SCM; +S1 adds sum-to-one; +R regularization; +exF external features; +Tpast adds treated history; +Dpast adds top-correlated donor history.

We posit that accurate baseline estimation benefits from explicitly modeling both external drivers and temporal dependencies, which are not fully captured by the standard SCM formulation. To demonstrate this, we build on the best-performing linear variant (SCM+S1+R) by expanding the control group in three successive stages: incorporating exogenous features (+exF), adding recent values of the treated unit (+Tpast), and including donor-specific lagged values (+Dpast). Each stage builds on the previous one, resulting in progressively richer representations of the control group. Table III reports the performance of each configuration relative to the strongest benchmark, K-Means + Lasso. Here, the inclusion of external features (+exF) decreases the mean MSE from 0.1274 for SCM+S1+R to 0.1271, corresponding to a marginal gain over SCM+S1+R and a total improvement of 10.87 % relative to the benchmark. Augmenting the model with recent values of the treated unit (+Tpast) further reduces the mean MSE to 0.0920, yielding an additional improvement of 27.79 % over SCM+S1+R and 35.48 % compared to the benchmark. The final extension, incorporating donor-specific lags (+Dpast), attains the lowest mean MSE of 0.0821, corresponding to improvements of 35.56 % over SCM+S1+R and 42.43 % relative to the benchmark. This configuration also reduces the minimum error from 0.0303 to 0.0138, the maximum error from 0.3610 to 0.2768, and the standard deviation from ±0.0751 to ±0.0519, indicating both increased accuracy and reduced variability across buildings. 7

Cumulative |weight|

1

0.75 0.5

SCM+S1+R SCM+S1+R+Dpast

0.25 0 1

189

377 565 Top-k donors

753

941

Fig. 5. Cumulative absolute weight share for SCM+S1+R and SCM+S1+R+Dpast. Dashed lines indicate the number of top donors required to account for 80% of the total weight. TABLE IV Baseline estimation performance of linear and nonlinear SCM with basic and augmented control groups. Scenario K-Means+Lasso SCM+S1+R NN.SCM SCM+S1+R+Dpast NN.SCM+Dpast

MSE 0.1426 0.1274 0.1260 0.0821 0.0817

Min 0.0303 0.0243 0.0256 0.0138 0.0127

Max 0.3610 0.3393 0.3636 0.2768 0.2796

STD 0.0751 0.0815 0.0852 0.0519 0.0543

Diff 10.66% 11.64% 42.43% 42.70%

Abbreviations: K-Means + Lasso denotes K-Means clustering with Lasso regression; SCM unconstrained SCM; +S1 adds sum-to-one; +R regularization; NN.SCM neural network extension; +Dpast adds history and top-correlated donor value.

Figure 4 shows building-level MSE values for the SCM+S1+R+Dpast variant compared to the strongest benchmark. Points below the parity line indicate buildings where the SCM achieves lower errors, with color shading denoting relative improvement. The distribution reveals a consistent advantage for SCM, with lower MSE across all 50 buildings. On average, the mean MSE decreases by 42.43 %, with individual gains ranging from 15.37 % to 70.31 %. Improvements occur across the entire error spectrum, indicating stable performance independent of initial error magnitude. We further analyze the distribution of control group weights to determine whether the observed gains stem from a few dominant donors or from broader participation. Figure 5 compares cumulative weight distributions for SCM+S1+R and SCM+S1+R+Dpast, ranking donors by absolute weight. In SCM+S1+R, 80 % of the total absolute weight is concentrated among the top 96 donors, with the largest individual weight of 0.1329. In contrast, SCM+S1+R+Dpast requires 202 donors to reach the same 80 % threshold, indicating a more even distribution, though the maximum weight increases slightly to 0.1563. The improved accuracy is likely the result of effectively using the additional features, which spreads the weights across more donors. C. Effect of the Generalized Nonlinear Weighting To increase SCM flexibility, the linear weighting is replaced with a nonlinear mapping (DNN) that captures complex dependencies between the treated and donor units. The DNN-based approach is evaluated for both the standard and augmented control groups. Table IV shows that both nonlinear and linear variants achieve nearly identical accuracy. For the standard control group, the mean MSE decreases from 0.1274 (linear) to 0.1260 (nonlinear), a relative improvement of 1.10 %. For the generalized control group, it decreases from 0.0821 to 0.0817, an improvement of 0.49 %. Both variants outperform the benchmark substantially, improving accuracy by 42.43 % (linear) and 42.71 % (nonlinear). To analyze robustness, we further evaluate both weighting schemes across progressively smaller control groups, as summarized in Figure 6. 8

SCM+R NN.SCM NN.SCM+Dpast

MSE

0.4 0.2 0.0

Fig. 6.

2

50

100 150 200 Control Group Size

250

299

Comparison of MSE Between Linear and Nonlinear SCM Variants for Different Control Group Sizes.

For both linear and nonlinear SCM variants, expanding the donor pool consistently lowers the MSE. As the donor pool shrinks, performance gaps widen. These results suggest that while both methods perform comparably with large donor pools, the nonlinear SCM maintains lower errors and reduced variability when the control group is small. IV. DISCUSSION AND LIMITATIONS In Subsection III-A, the standard linear SCM outperformed the benchmarks. Unlike clusteringbased methods that preselect donors by similarity, the SCM optimizes weights over the entire donor pool, allowing the model to combine donors that may be individually dissimilar to the treated unit but jointly approximate its behavior well. Relaxing the non-negativity constraint further allows it to exploit both positive and negative demand correlations, increasing flexibility in reconstructing counterfactual load profiles. Subsection III-B extends the control group with external features, recent treated unit history, and lagged donor values. Weather and calendar features yielded only limited gains. This could be partially attributed to the low temporal resolution of the weather data. Lagged treated values provide an autoregressive signal that compensates for imperfect donor matches. Lagged donor values improving matching by aligning similar but temporally misaligned patterns. Further discussion is supplied in the Appendix. In Subsection III-C, the linear SCM matches the generalized (nonlinear) SCM when the donor pool is large, suggesting that linearity is sufficient in data-rich settings. When the donor pool is small or less representative, however, the nonlinear variant achieves lower errors and reduced variance. However, some limitations remain and suggest directions for further improvement. The evaluation uses a single dataset that may not capture the full range of regulatory settings or flexibility mechanisms. Benchmarking also remains challenging because existing methods rely on different assumptions, such as prior knowledge of activation periods, and therefore require careful adaptation for fair comparison. V. Conclusions and Future Work We proposed a Generalized Synthetic Control framework for baseline estimation in residential demand response, extending the classical SCM with an augmented control representation and a nonlinear weighting function. On the Ausgrid dataset, the linear SCM outperformed the strongest benchmarks by more than 10 %, while the generalized variant improved accuracy by up to 42 %. Linear weighting remained highly effective with large donor pools, whereas the nonlinear model increased robustness and accuracy for smaller donor pools. Future work includes uncertainty quantification for counterfactual trajectories, multi-step recursive prediction, broader validation beyond Ausgrid, and more principled donor and lag selection. Additional directions include stronger nonlinear models and robustness to distribution shift and strategic behavior. 9

Appendix I Experimental Setup We use the Ausgrid dataset [18], comprising half-hourly measurements of electrical load and Photovoltaic (PV) generation (in kW) from 300 Australian households, recorded from 2010 to 2013. To enhance the dataset, we simulate Battery Energy Storage Systems (BESS) operation using a linear programming approach (Appendix Appendix II). The optimization determines economically optimal charging and discharging schedules under dynamic electricity prices, resulting in comprehensive prosumption time series that integrate household load, PV generation, and BESS behavior. To capture exogenous influences, we add meteorological variables from Meteostat [20], aligned with the Ausgrid data in space and time. The resulting dataset is split into training (60 %), validation (10 %), and testing (30 %) partitions and is publicly available at [21]. All methods are compared across 50 buildings, each evaluated as the treated unit in turn against the remaining J = 299 donors. The augmented control group further adds L = 336 recent treatedunit values for H, one selected lagged sequence per donor for R, and M = 7 exogenous features for F: four meteorological variables (temperature, humidity, wind speed, wind direction) and three temporal indicators (weekday, and sine and cosine of hour-of-day). For the linear SCM, the best results are obtained with ℓ2 regularization, using λ = 450 for the augmented and λ = 1350 for the basic control group to promote uniform weights. For the nonlinear SCM, we test multiple MLP configurations on the validation set, varying model depth, width, learning rate, and batch size. The best-performing model uses two hidden layers of 64 units, followed by a layer of J units and a scalar output. Training employs a learning rate of 5 × 10−4 , early stopping with a patience of 10, and a maximum of 2000 epochs. MSE values are averaged over all treated buildings, and neural networks are trained three times per building to reduce variability from random initialization. Benchmark models are adapted from their original publications, with architectures and hyperparameters tuned to the dataset and baseline estimation task. Additional implementation details can be found in the cited works. Appendix II Linear Program for Energy Management System This section outlines the linear program used to optimize BESS operations under dynamic electricity prices from the Australian Energy Market Operator [22]. The Energy Management Systems (EMS) minimizes total electricity costs, accounting for both consumption and flexibility revenues. Objective Function:  X min pt · xt − ft · δt+ (9) t∈T

with dynamic electricity price pt , net grid consumption xt , flexibility rebate ft , and rewarded reduction δt+ . Constraints: Net grid consumption xt includes building load lt , PV generation gt , and BESS operation st . xt = lt − gt + st ,

10

∀t ∈ T

(10)

The baseline bt is the average consumption during the same hour of the n most recent congestionfree days: bt =

St =

1 X xt−24k , n k∈St  

∀t ∈ T,

k ∈ {1, 2, . . . , n}

∀k ∈ {1, . . . , n}

12 X

 

Ct−24k+h = 0

(11)

(12)

h=−12

Flexibility δt+ is the positive deviation from the baseline. δt+ = max(0, bt − xt ),

∀t ∈ T

(13)

The State of Charge (SOC) is updated with dis-charging actions st , considering efficiency ηs . SOCt = SOCt−1 + ηs · st , ∀t ∈ T \ {0}.

(14)

Domain constraints ensure feasible operation: st ∈ [−smax , smax ],

soct ∈ [socmin , socmax ]

(15)

Appendix III Theoretical Justification of Augmented SCM This appendix gives a stylized justification for including lagged treated outcomes in the augmented Synthetic Control design. For brevity, we isolate one mechanism: under a linear factor model with exact contemporaneous factor replication by the donor pool, a lagged treated outcome can reduce one-step counterfactual mean-squared error by correcting persistent idiosyncratic mismatch left by static SCM. Analysis can be extended to the full ridge estimator used in the paper at the expense of extra notation and modeling assumptions. A.1 Setup and assumptions We adopt the linear factor model common in SC literature [11]. For t ∈ T0 ∪ T1 , let yjt = λ⊤ j ft + εjt ,

(16)

where ft ∈ Rr is a common-factor process, λj ∈ Rr is the loading vector of unit j, and εjt is an idiosyncratic component. Let SCt :=

J+1 X

wj∗ yjt

(17)

j=2 ∗ denote the standard synthetic control constructed from donor weights w∗ = (w2∗ , . . . , wJ+1 )⊤ , estimated on the pre-intervention period. We impose the following assumptions.

11

Assumptions: P ∗ A1 [Exact factor replication] There exist donor weights wj∗ satisfying J+1 j=2 wj = 1 such that λ1 =

J+1 X

wj∗ λj .

(18)

j=2

A2 [AR(1) treated idiosyncratic component] The treated idiosyncratic component satisfies |ρ| < 1,

ε1t = ρε1,t−1 + νt ,

(19)

where {νt } is white noise with variance σν2 . Hence the stationary variance of ε1t is σε2 := Var(ε1t ) =

σν2 . 1 − ρ2

(20)

A3 [Donor idiosyncratic noise] For j = 2, . . . , J + 1, the donor idiosyncratic components εjt are mutually independent, independent of {ε1t }t , serially uncorrelated, and satisfy Var(εjt ) = σj2 . The aggregated donor noise and its variance are given by: ηt :=

J+1 X

wj∗ εjt ,

2

ω := Var(ηt ) =

j=2

J+1 X

(wj∗ )2 σj2 .

(21)

j=2

A4 [Stochastic factors] The factor process {ft } is stationary with mean zero and covariance Σf := Var(ft ), and is independent of all idiosyncratic components. Define ⊤ σµ2 := Var(λ⊤ 1 ft ) = λ1 Σf λ1 .

(22)

A.2 A stylized lag-augmented one-step estimator To isolate the role of a lagged treated outcome, consider the one-step estimator LAG yb1,T (β) := SCT0 +1 + β y1,T0 , 0 +1

(23)

where β ∈ R is a scalar coefficient. This is a simplified surrogate for the paper’s augmented estimator. Proposition 1 (MSE reduction from lag augmentation). Under Assumptions A1-A4, define σε2 A := 2 ∈ (0, 1]. σε + σµ2

(24)

Then: (i) The population-optimal coefficient is β ∗ = ρA.

(25)

MSE(β ∗ ) = (σε2 + ω 2 ) − ρ2 σε2 A.

(26)

(ii) The resulting optimal one-step MSE is

(iii) Hence the MSE reduction relative to standard SCM is ∆ := MSE(SC) − MSE(β ∗ ) = ρ2 σε2 A.

(27)

In particular, the lag-augmented estimator strictly improves on standard SCM if and only if ρ ̸= 0. Proof. Using Assumption A1, SCT0 +1 = λ⊤ 1 fT0 +1 + ηT0 +1 , 12

while y1,T0 +1 = λ⊤ 1 fT0 +1 + ε1,T0 +1 . Therefore, LAG b1,T eLAG (β) T0 +1 (β) = y1,T0 +1 − y 0 +1

= ε1,T0 +1 − ηT0 +1 − βy1,T0 = (ε1,T0 +1 − βε1,T0 ) − ηT0 +1 − βλ⊤ 1 fT0 . By Assumptions A2–A4, the three terms ε1,T0 +1 − βε1,T0 ,

λ⊤ 1 fT0

ηT0 +1 ,

are mutually uncorrelated, hence h

i

MSE(β) = E (ε1,T0 +1 − βε1,T0 )2 + ω 2 + β 2 σµ2 . Expanding the first term gives h

i

E (ε1,T0 +1 − βε1,T0 )2 = σε2 − 2β Cov(ε1,T0 +1 , ε1,T0 ) + β 2 σε2 , with Cov(ε1,T0 +1 , ε1,T0 ) = ρσε2 , under Assumption A2. Therefore, MSE(β) = (σε2 + ω 2 ) − 2βρσε2 + β 2 (σε2 + σµ2 ). This is a strictly convex quadratic function in β, so minimizing gives β∗ =

ρσε2 = ρA, σε2 + σµ2

which establishes part (i). Substituting β ∗ into the quadratic yields MSE(β ∗ ) = (σε2 + ω 2 ) −

(ρσε2 )2 = (σε2 + ω 2 ) − ρ2 σε2 A, 2 2 σε + σ µ

which gives part (ii). Part (iii) follows because under Assumption A1, the standard SCM error is eSC := y1t − SCt = ε1t − ηt , t and thus, 2 2 MSE(SC) = Var(eSC t ) = σε + ω .

Remark. The coefficient β ∗ = ρA is attenuated relative to ρ because the lagged treated outcome y1,T0 mixes the predictive idiosyncratic signal ε1,T0 with the factor component λ⊤ 1 fT0 . Thus, the lagged treated value is a proxy for the target residual signal.

13

A.3 Residual-Feedback benchmark For comparison, consider the following residual-correcting feedback mechanism: RC := SCT0 +1 + ρeSC yb1,T T0 , 0 +1

(28)

SC where eSC T0 = y1,T0 − SCT0 . This mechanism uses the latent SCM residual eT0 directly.

Proposition 2 (Residual-feedback benchmark). Under Assumptions A1-A4, the residual-feedback benchmark satisfies eRC (29) T0 +1 = (ε1,T0 +1 − ρε1,T0 ) − (ηT0 +1 − ρηT0 ), and MSE(RC) = (1 − ρ2 )σε2 + (1 + ρ2 )ω 2 .

(30)

Hence, its MSE reduction relative to standard SCM is ∆RC = ρ2 (σε2 − ω 2 ).

(31)

The residual-feedback benchmark thus improves on standard SCM if and only if ρ ̸= 0 and σε2 > ω 2 . Proof. Under Assumption A1 the error of the standard SCM is eSC T0 = ε1,T0 − ηT0 . Therefore, SC SC eRC T0 +1 = eT0 +1 − ρeT0 = (ε1,T0 +1 − ρε1,T0 ) − (ηT0 +1 − ρηT0 ).

By Assumption A2, we have Var(ε1,T0 +1 − ρε1,T0 ) = Var(νT0 +1 ) = (1 − ρ2 )σε2 . Furthermore, since the donor noise is serially uncorrelated (Assumption A3), we have Var(ηT0 +1 − ρηT0 ) = (1 + ρ2 )ω 2 . Adding the two terms gives the equation for MSE(RC). Recall that under Assumption A1, the standard SCM error is eSC := y1t − SCt = ε1t − ηt , t and thus, MSE(SC) = σε2 + ω 2 . Subtracting MSE(SC) from MSE(RC) gives ∆RC = ρ2 (σε2 − ω 2 ). Remark. The residual-feedback mechanism removes factor contamination by correcting with eSC T0 rather than y1,T0 , but it also feeds back lagged donor noise through −ρηT0 . When donor noise is sufficiently small, this can outperform the lag-treated correction of Proposition 1. When donor noise is larger, however, that feedback can outweigh the benefit. In particular, for ρ ̸= 0, we have ∆RC > ∆ ⇐⇒ ω 2 <

σε2 σµ2 , σε2 + σµ2

(32)

with equality at the threshold. Proposition 1 analyzes only the one-step surrogate obtained by adding a single lagged treated outcome while holding the contemporaneous donor weights fixed. Its purpose is to motivate the inclusion of persistent treated-unit mismatch not captured by static SCM. 14

The residual-feedback benchmark of Proposition 2 clarifies a second point. Since the predictor SCt + ρeSC t−1 = SCt + ρy1,t−1 − ρ

J+1 X

wj∗ yj,t−1 ,

(33)

j=2

is linear in the lagged treated outcome and the first lag of every donor outcome, the benchmark is representable inside an augmented linear feature class only if both the lagged treated outcome y1,t−1 , and the full first-lag donor block {yj,t−1 }J+1 j=2 are included. Joint linear or nonlinear re-optimization can then in principle, learn a predictor that improves on both the lag-treated surrogate of Proposition 1 and the residual-feedback mechanism of Proposition 2, provided the additional flexibility is supported by the data. References [1] D. Muthirayan, D. Kalathil, K. Poolla, and P. Varaiya, “Baseline estimation and scheduling for demand response,” in 2018 IEEE Conference on Decision and Control (CDC), 2018, pp. 4857–4862. [2] B. Satchidanandan, M. Roozbehani, and M. A. Dahleh, “A two-stage mechanism for demand response markets,” IEEE Control Systems Letters, vol. 7, pp. 49–54, 2023. [3] D. Ellman and Y. Xiao, “Customer incentives for gaming demand response baselines,” in 2019 IEEE 58th Conference on Decision and Control (CDC), Dec. 2019, pp. 5174–5179, iSSN: 2576-2370. [4] S. Pati, S. J. Ranade, and O. Lavrova, “Methodologies for customer baseline load estimation and their implications,” in 2020 IEEE Texas Power and Energy Conference (TPEC), Feb. 2020, pp. 1–5. [5] I. A. Campodonico Avendano, F. Dadras Javan, B. Najafi, A. Moazami, and F. Rinaldi, “Assessing the impact of employing machine learning-based baseline load prediction pipelines with sliding-window training scheme,” Energy and Buildings, vol. 294, p. 113217, Sep. 2023. [6] W. Zhang, S. Lei, M. Liu, R. Wei, and Y. Wang, “A cbl estimation method for industrial customers based on k-means and lstm,” in 2024 China International Conference on Electricity Distribution (CICED), Sep. 2024, pp. 83–87, iSSN: 2161-749X. [7] X. Wang, Y. Wang, J. Wang, and D. Shi, “Residential Customer Baseline Load Estimation Using Stacked Autoencoder With Pseudo-Load Selection,” IEEE Journal on Selected Areas in Communications, vol. 38, no. 1, pp. 61–70, Jan. 2020. [8] Z. Wang and H. Zhang, “Customer baseline load estimation for virtual power plants in demand response: An attention mechanism-based generative adversarial networks approach,” Applied Energy, vol. 357, p. 122544, Mar. 2024. [9] P. Schwarz, S. Mohajeryami, and V. Cecchi, “Building a better baseline for residential demand response programs: Mitigating the effects of customer heterogeneity and random variations,” Electronics, vol. 9, no. 4, p. 570, Apr. 2020. [10] A. Abadie and J. Gardeazabal, “The economic costs of conflict: A case study of the basque country,” American Economic Review, vol. 93, no. 1, pp. 113–132, Mar. 2003. [11] A. Abadie, A. Diamond, and J. Hainmueller, “Synthetic control methods for comparative case studies: Estimating the effect of california’s tobacco control program,” Journal of the American Statistical Association, vol. 105, no. 490, pp. 493–505, Jun. 2010. [12] A. Abadie, “Using synthetic controls: Feasibility, data requirements, and methodological aspects,” Journal of Economic Literature, vol. 59, no. 2, pp. 391–425, Jun. 2021. [13] X. Peng, F. Wang, X. Ge, and Y. Wang, “An aggregated baseline load estimation method based on graph convolutional networks introducing graph structure learning,” in 2024 IEEE/IAS 60th Industrial and Commercial Power Systems Technical Conference (I&CPS), May 2024, pp. 1–7, iSSN: 2158-4907. [14] C. Qian, D. Xu, Y. Zhang, J. Bao, X. Ma, and Z. Wu, “Residential Customer Baseline Load Estimation Based on Conditional Denoising Diffusion Probabilistic Model,” in 2024 IEEE 4th International Conference in Power Engineering Applications (ICPEA), Mar. 2024, pp. 59–63. [Online]. Available: https://ieeexplore.ieee.org/document/10498265 [15] X. Zhou, Y. Gao, W. Yao, and N. Yu, “A Robust Segmented Mixed Effect Regression Model for Baseline Electricity Consumption Forecasting,” Journal of Modern Power Systems and Clean Energy, vol. 10, no. 1, pp. 71–80, Jan. 2022, conference Name: Journal of Modern Power Systems and Clean Energy. [Online]. Available: https://ieeexplore.ieee.org/document/9248496 [16] X. Ge, F. Xu, Y. Wang, H. Li, F. Wang, J. Hu, K. Li, X. Lu, and B. Chen, “Spatio-Temporal Two-Dimensions Data Based Customer Baseline Load Estimation Approach Using LASSO Regression,” IEEE Transactions on Industry Applications, vol. 58, no. 3, pp. 3112–3122, May 2022, conference Name: IEEE Transactions on Industry Applications. [17] L. Ying, F. Ma, X. Cui, and X. Xie, “Customers baseline load estimation based on cluster analysis of control group,” in 2023 IEEE 6th International Electrical and Energy Conference (CIEEC), May 2023, pp. 1563–1568. [Online]. Available: https://ieeexplore.ieee.org/document/10166717 [18] E. L. Ratnam, S. R. Weller, C. M. Kellett, and A. T. Murray, “Residential load and rooftop pv generation: an australian distribution network dataset,” International Journal of Sustainable Energy, vol. 36, no. 8, pp. 787–806, Sep. 2017. [19] Y. Chen, P. Xu, Y. Chu, W. Li, Y. Wu, L. Ni, Y. Bao, and K. Wang, “Short-term electrical load forecasting using the support vector regression (svr) model to calculate the demand response baseline for office buildings,” Applied Energy, vol. 195, pp. 659–670, Jun. 2017.

15

[20] Meteostat, “Sydney airport weather & climate data.” [Online]. Available: https://meteostat.net/de/station/94767?t=202 5-02-26/2025-03-05 [21] J. Sievers, “A generalized scm for baseline estimation in demand response services,” Sep. 2025. [Online]. Available: https://github.com/JonasSievers/A-Generalized-Synthetic-Control-Method-for-Baseline-Estimation-in-Demand-Respo nse-Services [22] AEMO, “Aggregated price and demand data.” [Online]. Available: https://aemo.com.au/energy-systems/electricity/natio nal-electricity-market-nem/data-nem/aggregated-data

16

Record · ID 120551 · SHA-256 7f3344602aa78397
Conceptio Open Knowledge Archive — every document is proof-bundled with source, license, and retrieval metadata.