Abstract
Accurate load prediction is an effective way to reduce power system operation costs. Traditionally, the mean square error (MSE) is a common-used loss function to guide the training of an accurate load forecasting model. However, the MSE loss function is unable to precisely reflect the real costs associated with forecasting errors because the cost caused by forecasting errors in the real power system is probably neither symmetric nor quadratic. To tackle this issue, this paper proposes a generalized cost-oriented load forecasting framework. Specifically, how to obtain a differentiable loss function that reflects real cost and how to integrate the loss function with regression models are studied. The economy and effectiveness of the proposed load forecasting method are verified by the case studies of an optimal dispatch problem that is built on the IEEE 30-bus system and the open load dataset from the Global Energy Forecasting Competition 2012 (GEFCom2012).
Introduction
In the power industry, traditional load forecasting models prioritize statistical precision, typically measured by Mean Square Error (MSE). However, this approach overlooks a critical reality: not all forecasting errors are created equal. In power system operations, the economic impact of an error is often highly asymmetric. Under-forecasting may lead to expensive emergency load shedding or high-priced balancing power purchases, while over-forecasting results in unnecessary generator startups or surplus power losses.
Standard machine learning models using MSE assume that costs grow quadratically and symmetrically (e.g., a +5MW error costs the same as a -5MW error). This paper addresses the lack of a generalized, differentiable method to incorporate real-world economic penalties directly into the training of forecasting models, such as Artificial Neural Networks (ANN).
Methodology: A Generalized Framework
The proposed framework transitions from "error-oriented" to "cost-oriented" forecasting through a three-stage process:
- Loss Function Generation: Thousands of simulations are conducted using Day-Ahead Economic Dispatch (DAED) and Intraday Power Balance (IPB) optimization problems. By comparing ideal costs (perfect foresight) with actual costs (based on faulty forecasts), a discrete dataset is generated that maps forecasting errors to actual dollar losses.
- Loss Function Approximation: To enable gradient-based training, the discrete data must be converted into a continuous, differentiable function. The authors employ smoothing splines followed by optimal piecewise linear approximation.
- Integration: The resulting "cost-aware" loss function is integrated into regression models like Multiple Linear Regression (MLR) and ANN, which are then trained using standard optimizers like Adam.
Differentiable Loss Function Design
A key technical challenge is ensuring the loss function is differentiable everywhere, particularly at the "elbows" of piecewise linear segments. The authors apply a modified Huber norm at these breakpoints to "round off" the corners, allowing gradients to flow smoothly during the backpropagation process in neural network training.
Results and Discussion
The framework was validated using the IEEE 30-bus system (modified with battery storage) and the GEFCom2012 dataset.
Economic Performance
The ANN model utilizing an hourly cost-oriented loss function achieved a 13.74% reduction in Mean Forecasting Error Percentage Cost (MFEPC) compared to the traditional MSE benchmark. Even simpler models like MLR saw a 10.19% improvement in cost efficiency.
Accuracy vs. Economy
A significant insight is that statistical accuracy (e.g., MAPE) does not always correlate with economic efficiency. Cost-oriented models often accept a slight decrease in traditional accuracy to ensure that errors occur during periods when they are cheaper to mitigate. This leads to "intentional bias"; for instance, if under-forecasting is more penalized during peak hours, the model learns to lean toward slight over-forecasting to minimize economic risk.
Temporal Sensitivity
The study highlights that the cost of error is time-dependent. An error during low-demand periods (e.g., 3:00 AM) is significantly less expensive than the same error during peak demand (e.g., 6:00 PM). Consequently, models using hourly-specific loss functions consistently outperform those using a single daily average.
Conclusion
This research demonstrates that integrating real-world economic costs into the training phase of load forecasting models can significantly improve power system operation efficiency. While generating the initial loss data requires substantial simulation overhead and is tied to specific grid topologies, the resulting "cost-aware" forecasts offer a superior alternative to traditional error-minimization techniques. Future work may extend this framework to renewable energy forecasting, where asymmetric costs are equally prevalent.
Summary updated