Interactive Generalized Additive Model and Its Applications in Electric Load Forecasting

Linxiao Yang, Rui Ren, Xinyue Gu, Liang Sun

Introduction

Electric Load Forecasting (ELF) is a critical component of power grid management, where inaccurate predictions can lead to significant economic losses or grid instability. While machine learning models have improved forecasting accuracy, they often struggle with "black swan" events—extreme weather conditions where historical data is sparse. Furthermore, the "black box" nature of many high-performing models hinders their adoption by domain experts who require physically consistent and interpretable predictions.

To address these challenges, researchers from Alibaba’s DAMO Academy proposed an Interactive Generalized Additive Model (GAM) at KDD '23. This framework combines the interpretability of additive models with a novel interactive loop, allowing human experts to guide the model using domain knowledge and physical constraints.

Methodology

The proposed model utilizes the Generalized Additive Model (GAM) framework, which represents the target variable as a sum of univariate functions: $y \approx \sum f_d(x_d)$. This structure ensures that the contribution of each feature is independently observable and adjustable.

Piecewise Linear Representation

A key innovation is the use of piecewise linear functions instead of the piecewise constant functions typically found in models like the Explainable Boosting Machine (EBM). Piecewise linear functions provide smoother transitions and superior extrapolation capabilities, which are essential for capturing peaks in load data.

Comparison of shape functions: The proposed piecewise linear approach (Ours) provides smoother extrapolation compared to the step-like functions of EBM and the oscillations of pyGAM.

The model is learned through a boosting framework using a hinge function basis. To maintain computational efficiency, the authors developed an optimization algorithm that leverages cumulative sums (cumsum) to evaluate split points in $O(N+L)$ time, significantly outperforming traditional sparse regression methods.

The Interactive Framework

The "killer feature" of this system is its interactive web-based interface. This tool allows power grid experts to intervene when data-driven predictions deviate from physical reality.

Expert Interventions

  1. Weight Adjustment: Experts can increase the importance of specific historical extreme events to better inform the model's behavior during similar future scenarios.
  2. Shape Constraints: The system allows for the mathematical imposition of constraints such as monotonicity (increasing/decreasing), convexity, or concavity. For instance, an expert can mandate that power load must increase as temperatures rise, preventing the model from erroneously predicting a plateau or drop due to lack of high-temperature training samples.
The interactive interface for shape function editing, enabling experts to apply constraints like monotonicity and convexity to ensure physical consistency.

These constraints are integrated into the model using gradient projection, ensuring that the final function is the closest approximation to the learned data that still satisfies the expert's rules.

Experimental Results

The model was rigorously tested on six public benchmark datasets and a real-world dataset from Henan Province, China (2020–2022).

  • Benchmark Performance: The Interactive GAM consistently outperformed baselines like EBM, pyGAM, and FLAM. Notably, it achieved a 77% improvement on the "Stock" dataset, demonstrating the advantage of piecewise linear functions in capturing extreme values.
  • Real-World Application: During a record-breaking heatwave in July 2022, the model's ability to incorporate human-defined monotonicity constraints allowed it to accurately predict rising load trends that baseline models missed. Manually imposing these constraints reduced the Root Normalized Mean Square Error (RNMSE) from 0.0723 to 0.0475.

Conclusion

The Interactive GAM bridges the gap between automated machine learning and human expertise. By providing a transparent, editable framework, it empowers power grid operators to inject physical laws into data-driven models, resulting in more robust and trustworthy forecasts. Currently deployed within Alibaba's eForecaster platform, the system demonstrates the practical value of "human-in-the-loop" AI for critical infrastructure.

Reference: Yang, L., Ren, R., Gu, X., & Sun, L. (2023). Interactive Generalized Additive Model and Its Applications in Electric Load Forecasting. In Proceedings of the 29th ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD ’23).

Summary updated

BibTeX
@inproceedings{yang2023interactive,
  author = {Linxiao Yang and Rui Ren and Xinyue Gu and Liang Sun},
  title = {{Interactive Generalized Additive Model and Its Applications in Electric Load Forecasting}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2023},
}
Figure