Power load prediction method based on interpretable hierarchical transfer and order-preserving interval
By constructing an interpretable seasonal baseline model and a source community transfer teacher model, and combining target residual learning and non-negative fusion, the accuracy and interpretability issues of power load forecasting for small sample communities are solved, and the stability and reliability are improved, making it suitable for power system scheduling and optimization.
Patent Information
- Application Number
- CN202611411021.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-11
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies struggle to simultaneously meet the requirements of accuracy, interval reliability, model interpretability, and operational application value for short-term load forecasting in small-sample community scenarios, especially under negative migration and nonlinear disturbances after the integration of electrified equipment, resulting in poor forecasting performance.
A power load forecasting method based on interpretable hierarchical migration and order-preserving intervals is adopted. By constructing an interpretable seasonal baseline model, a source community migration teacher model, and a target residual learning model, and combining non-negative fusion and hourly conditionalized conformal quantiles, a stable periodic structure and reliable forecast intervals are output.
It improves the prediction stability and interpretability of small sample communities, reduces errors during peak or abrupt changes, provides reliable prediction intervals and feature contribution explanations, and supports distribution network scheduling, energy storage optimization, and electric vehicle charging strategies.
Smart Images

Figure CN123179288A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power load forecasting technology, specifically a power load forecasting method based on interpretable hierarchical migration and order-preserving intervals. Background Technology
[0002] With the advancement of new power systems and the construction of distribution-side energy communities, heat pumps, electric vehicles, distributed photovoltaics, energy storage, and flexible user-side resources are continuously being integrated, resulting in stronger intraday load volatility, peak-valley differences, and localized non-stationary characteristics in community loads. Short-term load forecasting has become a crucial input for distribution network dispatching, energy storage charging and discharging planning, orderly charging of electric vehicles, and demand response.
[0003] Existing short-term load forecasting techniques mainly include statistical models, machine learning models, deep learning models, and large-scale time series models. Statistical methods such as bi-seasonal exponential smoothing and ARIMA have clear structures but struggle to represent complex nonlinear perturbations. Machine learning methods such as support vector regression, random forests, gradient boosting trees, and XGBoost can handle exogenous feature interactions but typically rely on sufficient target training samples. Deep models like LSTM, TCN, and Transformer can learn complex temporal dependencies, but in small-sample community scenarios, they are easily limited by parameter size, training stability, and insufficient interpretability.
[0004] Explainable load forecasting techniques typically utilize variables such as hour, week, month, temperature, holidays, and lagging loads to establish additive or semi-parametric models. For example, Fan et al. used a semi-parametric additive model for short-term load forecasting in IEEE Transactions on Power Systems, 2012, 27(1):134-141; Goude et al. used a semi-parametric additive model for local short-term and medium-term load forecasting in IEEE Transactions on Smart Grid, 2014, 5(1):440-446. These models can explain the effects of stable seasonality and exogenous variables, but their ability to express local peak loads, abrupt residuals, and nonlinear disturbances caused by the connection of electrified equipment is limited.
[0005] Transfer learning and hierarchical forecasting techniques utilize load data from source regions or lower levels to improve target region forecasts. Antoniadis et al., in the International Journal of Forecasting, 2024, 40(2):641-660, investigated the application of hierarchical transfer learning in power load forecasting, demonstrating that cross-hierarchical load data possesses transferable information. However, electrification loads such as heat pumps and electric vehicles alter the autocorrelation structure and peak distribution of the target community, and directly applying source domain models may result in negative transfer. Therefore, target residual correction and adaptive fusion mechanisms are needed.
[0006] Probabilistic load forecasting and conformal forecasting are used to express forecast uncertainty. Hong et al. reviewed probabilistic power load forecasting in the International Journal of Forecasting, 2016, 32(3):914-938, pointing out that coverage and interval width are of great significance to operation decisions. Vovk et al. proposed the basic theory of conformal forecasting in Algorithmic Learning in a Random World (Springer, 2005), and Lei et al. studied distribution-independent forecasting inference for regression tasks in the Journal of the American Statistical Association, 2018, 113(523):1094-1111. For electrified community loads, the error exhibits heteroscedasticity at different hours. If only the global residual quantile is used to construct a uniform interval, it is easy to have problems such as excessively wide intervals during low-fluctuation periods and insufficient coverage during high-fluctuation periods.
[0007] Therefore, existing technologies still lack a unified technical solution that integrates interpretable seasonal structure, cross-community migration, target residual correction, adaptive fusion, hourly conditional conformal interval calibration, and order-preserving interval output, making it difficult to simultaneously meet the requirements of small sample prediction accuracy, interval reliability, model interpretability, and operational application value. Summary of the Invention
[0008] The purpose of this invention is to provide a power load forecasting method based on interpretable hierarchical migration and order-preserving intervals, so as to solve the problems mentioned in the background art.
[0009] To achieve the above objectives, the first aspect of the present invention provides the following technical solution:
[0010] The power load forecasting method based on interpretable hierarchical migration and order-preserving intervals includes the following steps:
[0011] S1, collect smart meter load data, weather data, calendar data, and load data from at least one source community in the target community;
[0012] S2, performs time alignment, missing data processing and feature construction on the collected data to obtain a predicted feature vector including historical lagged load, calendar feature variables, temperature response variables and source community feature variables;
[0013] S3. Use the training samples of the target community to establish an interpretable seasonal baseline model, extract the stable intraday, intraweek, monthly and temperature response structure in the target load, and obtain the interpretable seasonal baseline prediction value at the target prediction time.
[0014] S4, scale the source community load data and train the source community transfer teacher model to obtain the source domain prior prediction value at the target prediction time;
[0015] S5. Train the target residual learning model on a limited sample of the target community. Calculate the local residual prediction value by the residual between the actual load of the target community and the interpretable seasonal baseline prediction value. Calculate the migration residual prediction value by the difference between the source domain prior prediction value and the interpretable seasonal baseline prediction value.
[0016] S6, learn non-negative stacked fusion weights on the validation set, and fuse the interpretable seasonal baseline prediction, source domain prior prediction, local residual prediction, and migration residual prediction into the target community point prediction.
[0017] S7 constructs hourly conditionalized shape-preserving quantiles based on the prediction residuals of the validation set, and performs order-preserving corrections on the upper and lower bounds and nesting relationships of the intervals under different confidence levels, outputting the prediction of the future short-term load point and the prediction interval.
[0018] Preferably, the feature construction in step S2 includes:
[0019] Construct historical lag load characteristics around 24 hours, 48 hours, and 72 hours, as well as one or more of the following within a preset window: cold day, hot day, weekend marker, and holiday marker;
[0020] The predicted feature vector is represented as follows:
[0021] (1);
[0022] In formula (1): This represents the predicted feature input vector at time t. This represents the target community load at time t. This indicates historical load lag, and the superscript (0) indicates the target community. As a historical lag order, To predict the step size, Calendar feature variables for future predicted times, including hour, day of the week, month, holiday or weekend variables. Represents the temperature response variable. This represents the characteristic variables of the source community.
[0023] Preferably, the interpretable seasonal baseline model in step S3 adopts an additive model, a generalized additive model, a tree model, or a combination thereof, wherein the intraday cycle, intraweek cycle, monthly cycle, temperature response, and rolling load statistics are respectively used as decomposable explanatory terms, so that the interpretable seasonal baseline forecast can reflect the load stability cycle structure.
[0024] The interpretable seasonal baseline model is represented as follows:
[0025] (2);
[0026] In formula (1): This indicates the interpretable seasonal baseline forecast value. The baseline model intercept term (bias constant) represents the load baseline level when each explanatory variable is taken at the baseline level. This represents an interpretable smoothing function. Indicates the predicted time The characteristics of the hour, Indicates the predicted time The characteristics of the week, Indicates the predicted time Monthly characteristics, Indicates the predicted time Temperature response variable, Indicates the first The weights corresponding to each exogenous explanatory term Indicates historical lag load, The index representing the sequence number of historical lag loads. This indicates the total number of historical lag loads.
[0027] Preferably, step S4 specifically includes:
[0028] Standardize the load of the source community:
[0029] (3);
[0030] In formula (3): Indicates the first The standardized load value of the source community at time t. and They represent the first Mean and standard deviation of training load during the training period in each source community. S represents the total number of source communities. Indicates the first The load value of the source community at time t;
[0031] The source domain training set is obtained by merging all standardized source community loads. :
[0032] (4);
[0033] In formula (4): Indicates the first Geyuan Community at all times The standardized input feature vector, Indicates the first Geyuan Community The load value after standardization at any given time;
[0034] Source Community Transfer Teacher Model In the source domain training set The training is used to learn load patterns shared across communities;
[0035] For the target community, its input features are first standardized according to the training statistics of the target community, and then input into the source community transfer teacher model to obtain the source domain prior predictions at the target community scale:
[0036] (5);
[0037] In formula (5): This indicates a teacher migration model from the source community. and The mean and standard deviation of the training load during the target community training period.
[0038] Preferably, step S5 specifically includes:
[0039] For training samples Define the local residual prediction value as:
[0040] (6);
[0041] In formula (6): Indicates the first Local residual predictions for training samples from a target community. Indicates the first The true load value of the training samples in the target community. Indicates the first Interpretable seasonal baseline predictions for training samples from a target community;
[0042] The predicted migration residuals, incorporating source domain information, are calculated as follows:
[0043] , (7);
[0044] In formula (8): This represents the predicted migration residual value. This represents a transfer residual learning model. Indicates in The source domain prior prediction at time t. Indicates in Interpretable seasonal baseline forecasts at any given time. Indicates in The predicted value of the migration correction at time step.
[0045] Preferably, step S6 specifically includes:
[0046] Learn nonnegative fusion weights on the validation set:
[0047] (8);
[0048] In formula (9): This represents the optimal non-negative fusion weights learned on the validation set. Represents the validation set. , , , These represent the non-negative fusion weights learned from the validation set;
[0049] Target community point prediction value The calculation is as follows:
[0050] (9).
[0051] Preferably, step S7 specifically includes:
[0052] For calibration samples Define the absolute residual fraction :
[0053] (10);
[0054] In formula (11): This represents the predicted fusion point value;
[0055] The standard split conformal interval uses the empirical quantiles of the calibrated residuals. :
[0056] (11);
[0057] In formula (12): Represents the empirical quantile function. This represents the number of samples in the calibration set, and α represents the significance level. Indicates the nominal confidence level;
[0058] Global conformal interval corresponding to the test sample for:
[0059] (12);
[0060] Considering the significant intra-day heteroscedasticity of load forecasting errors, we further construct hourly conditional conformal intervals:
[0061] set up This represents the predicted hour for sample i, for each hour. Calculate local residual quantiles :
[0062] (13);
[0063] To avoid instability in certain time intervals due to insufficient calibration samples, the local quantiles and global quantiles are shrunk and merged:
[0064] (14);
[0065] In formula (15): Indicates the first The corresponding forecast hours Hourly conditionalized residual quantiles at confidence levels For local calibration weights;
[0066] Final hourly conditional conformal interval for:
[0067] (15);
[0068] In formula (16): Conservative calibration coefficient;
[0069] When the lower bound of the final hourly conditional shape-preserving interval is greater than the upper bound or when different confidence level intervals intersect, the upper and lower bounds are adjusted to preserve order.
[0070] A second aspect of the present invention provides a power load forecasting system based on interpretable hierarchical migration and order-preserving intervals, for implementing the power load forecasting method based on interpretable hierarchical migration and order-preserving intervals as described above, comprising:
[0071] Data access and feature construction module: Collects target community load, meteorological and calendar data, and after time alignment and missing data processing, constructs a predictive feature vector including historical lagging load, calendar feature variables, temperature response variables and source community feature variables;
[0072] Explainable seasonal baseline module: Establishes an explainable seasonal baseline model, extracts the stable intraday, intraweek, monthly and temperature response structure of the target load, and outputs the explained seasonal baseline prediction value;
[0073] Source Community Transfer Teacher Module: Standardizes and trains the source community teacher model, and outputs the source domain prior prediction value at the target scale;
[0074] Target community residual learning module: Trains a target residual learning model on a limited number of samples in the target community, and outputs local residual predictions and transfer residual predictions;
[0075] Hierarchical stacked fusion module: The validation set learns non-negative weights, fuses the four components, and outputs the predicted value of the target community point;
[0076] Order-preserving interval construction module: Constructs hourly conditional shape-preserving quantiles and performs order-preserving corrections, outputting future short-term load point predictions and prediction intervals.
[0077] A third aspect of the present invention provides a computer device including a processor and a memory, wherein the memory stores a computer program that, when executed by the processor, implements the power load forecasting method based on interpretable hierarchical migration and order-preserving intervals as described above.
[0078] A fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, characterized in that, when the computer program is executed by a processor, it implements the power load forecasting method based on interpretable hierarchical migration and order-preserving intervals as described above.
[0079] Compared with the prior art, the beneficial effects of the present invention are:
[0080] From the perspective of small sample stability, this invention first extracts the stable periodic structure in the target load using an interpretable seasonal baseline, and then provides cross-community priors from source community teachers, so that the target residual learner does not need to repeatedly learn all load patterns from a small number of samples, thereby reducing the risk of overfitting and numerical instability.
[0081] From the perspective of transfer reliability, this invention does not directly replace the target model with the source domain teacher, but uses it as a transferable prior and corrects it through target residual learning and non-negative fusion, which can alleviate the negative transfer caused by differences in community size, electrification equipment structure and peak distribution.
[0082] From the perspective of prediction accuracy, this invention adaptively fuses the seasonal baseline, source domain teacher, local residual and migration residual components on the validation set, which can achieve a trade-off between stable period, average error and peak deviation control, and is particularly beneficial for reducing large errors during peak or abrupt periods.
[0083] From the perspective of uncertainty quantification, this invention uses hourly conditionalized shape-preserving residual quantiles to construct prediction intervals, which can reflect the differences in error scales at different times of the day; through order-preserving correction, it ensures that the upper and lower bounds do not overlap and that multiple confidence level intervals are nested, making it easy for dispatchers to understand and use.
[0084] From an interpretability perspective, the seasonal baseline of this invention naturally corresponds to physical meanings such as intraday cycles, intraweek cycles, temperature response, and historical load memory; furthermore, by explaining which feature groups drive the final prediction through grouped feature attribution, it helps to identify the causes of peak formation and whether the migration information is reasonable.
[0085] From the perspective of robust operation, this invention utilizes calendar, meteorological, historical lag, rolling statistics and source community information simultaneously. The feature sources are redundant and complementary, so it can still maintain a certain degree of prediction stability when some meteorological, equipment status or source community features are missing.
[0086] From an engineering application perspective, the output point prediction, prediction interval, and characteristic contribution of this invention can be directly used as inputs for setting distribution network dispatch margin, optimizing energy storage charging and discharging, controlling electric vehicle valley filling, and triggering demand response strategies, thereby improving the usability of converting prediction results into operational decisions. Attached Figure Description
[0087] Figure 1 This is an overall flowchart of the power load forecasting method based on interpretable hierarchical migration and order-preserving intervals in an embodiment of the present invention;
[0088] Figure 2 This is a block diagram of the power load forecasting system based on interpretable hierarchical migration and order-preserving intervals in an embodiment of the present invention. Detailed Implementation
[0089] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0090] Figure 1 This is an overall flowchart of the power load forecasting method based on interpretable hierarchical migration and order-preserving intervals provided by the present invention. Figure 1 As shown, embodiments of the present invention provide a power load forecasting method based on interpretable hierarchical migration and order-preserving intervals, comprising the following steps:
[0091] S1, collect smart meter load data, weather data, calendar data, and load data from at least one source community in the target community;
[0092] S2, performs time alignment, missing data processing and feature construction on the collected data to obtain a predicted feature vector including historical lagged load, calendar feature variables, temperature response variables and source community feature variables;
[0093] S3. Use the training samples of the target community to establish an interpretable seasonal baseline model, extract the stable intraday, intraweek, monthly and temperature response structure in the target load, and obtain the interpretable seasonal baseline prediction value at the target prediction time.
[0094] S4, scale the source community load data and train the source community transfer teacher model to obtain the source domain prior prediction value at the target prediction time;
[0095] S5. Train the target residual learning model on a limited sample of the target community. Calculate the local residual prediction value by the residual between the actual load of the target community and the interpretable seasonal baseline prediction value. Calculate the migration residual prediction value by the difference between the source domain prior prediction value and the interpretable seasonal baseline prediction value.
[0096] S6, learn non-negative stacked fusion weights on the validation set, and fuse the interpretable seasonal baseline prediction, source domain prior prediction, local residual prediction, and migration residual prediction into the target community point prediction.
[0097] S7 constructs hourly conditionalized shape-preserving quantiles based on the prediction residuals of the validation set, and performs order-preserving corrections on the upper and lower bounds and nesting relationships of the intervals under different confidence levels, outputting the prediction of the future short-term load point and the prediction interval.
[0098] This invention discloses a power load forecasting method based on interpretable hierarchical transfer and order-preserving intervals. The method collects load data from smart meters in the target community, meteorological data, calendar data, and load data from the source community. First, an interpretable seasonal baseline is constructed to characterize stable structures such as intraday, weekly, monthly, and temperature responses. Then, the source community load is standardized and a transfer teacher model is trained to obtain transferable load pattern priors. Subsequently, baseline residuals and source domain bias signals are learned on a limited historical sample from the target community. Point predictions are obtained through non-negative stacking fusion of the validation set, and hourly conditionalized conformal residual quantiles are used to construct prediction intervals with ordered upper and lower bounds and nested at different confidence levels. This invention can improve the stability, interpretability, and uncertainty characterization of short-term load forecasting, even when the target historical sample is limited and the load structure changes due to heat pumps, electric vehicles, distributed photovoltaics, energy storage, and flexible user-side resource access. It can serve distribution network scheduling, energy storage optimization, orderly charging of electric vehicles, and demand response.
[0099] In one embodiment of the present invention, the feature construction in step S2 includes:
[0100] Construct historical lag load characteristics around 24 hours, 48 hours, and 72 hours, as well as one or more of the following within a preset window: cold day, hot day, weekend marker, and holiday marker;
[0101] The predicted feature vector is represented as follows:
[0102] (1);
[0103] In formula (1): This represents the predicted feature input vector at time t. This represents the target community load at time t. This indicates historical load lag, and the superscript (0) indicates the target community. As a historical lag order, To predict the step size, Calendar feature variables for future predicted times, including hour, day of the week, month, holiday or weekend variables. Represents the temperature response variable. This represents the characteristic variables of the source community.
[0104] This invention utilizes calendar, meteorological, historical lag, rolling statistics, and source community information simultaneously. The feature sources are redundant and complementary, thus maintaining a certain predictive stability even when some meteorological, equipment status, or source community features are missing, demonstrating strong robustness.
[0105] In one embodiment of the present invention, the interpretable seasonal baseline model in step S3 adopts an additive model, a generalized additive model, a tree model, or a combination thereof, wherein the intraday cycle, intraweek cycle, monthly cycle, temperature response, and rolling load statistics are respectively used as decomposable explanatory terms, so that the interpretable seasonal baseline forecast can reflect the load stability cycle structure.
[0106] The interpretable seasonal baseline model is represented as follows:
[0107] (2);
[0108] In formula (1): This indicates the interpretable seasonal baseline forecast value. The baseline model intercept term (bias constant) represents the load baseline level when each explanatory variable is taken at the baseline level. This represents an interpretable smoothing function. Indicates the predicted time The characteristics of the hour, Indicates the predicted time The characteristics of the week, Indicates the predicted time Monthly characteristics, Indicates the predicted time Temperature response variable, Indicates the first The weights corresponding to each exogenous explanatory term Indicates historical lag load, The index representing the sequence number of historical lag loads. This indicates the total number of historical lag loads.
[0109] The seasonal baseline of this invention naturally corresponds to the physical meanings of intraday cycle, intraweek cycle, temperature response and historical load memory, and the interpretable seasonal baseline model characterizes the stable and interpretable structure of the load in the target community.
[0110] In one embodiment of the present invention, step S4 specifically includes:
[0111] Standardize the load of the source community:
[0112] (3);
[0113] In formula (3): Indicates the first The standardized load value of the source community at time t. and They represent the first Mean and standard deviation of training load during the training period in each source community. S represents the total number of source communities. Indicates the first The load value of the source community at time t;
[0114] The source domain training set is obtained by merging all standardized source community loads. :
[0115] (4);
[0116] In formula (4): Indicates the first Geyuan Community at all times The standardized input feature vector, Indicates the first Geyuan Community The load value after standardization at any given time;
[0117] Source Community Transfer Teacher Model In the source domain training set The training is used to learn load patterns shared across communities;
[0118] For the target community, its input features are first standardized according to the training statistics of the target community, and then input into the source community transfer teacher model to obtain the source domain prior predictions at the target community scale:
[0119] (5);
[0120] In formula (5): This indicates a teacher migration model from the source community. and The mean and standard deviation of the training load during the target community training period.
[0121] This invention first extracts the stable periodic structure in the target load using an interpretable seasonal baseline, and then provides cross-community priors from source community teachers, so that the target residual learner does not need to repeatedly learn all load patterns from a small number of samples, thereby reducing the risk of overfitting and numerical instability.
[0122] In one embodiment of the present invention, step S5 specifically includes:
[0123] For training samples Define the local residual prediction value as:
[0124] (6);
[0125] In formula (6): Indicates the first Local residual predictions for training samples from a target community. Indicates the first The true load value of the training samples in the target community. Indicates the first Interpretable seasonal baseline predictions for training samples from a target community;
[0126] The predicted migration residuals, incorporating source domain information, are calculated as follows:
[0127] , (7);
[0128] In formula (7): This represents the predicted migration residual value. This represents a transfer residual learning model. Indicates in The source domain prior prediction at time t. Indicates in Interpretable seasonal baseline forecasts at any given time. Indicates in The predicted value of the migration correction at time step.
[0129] This invention does not directly replace the target model with the source domain teacher, but instead uses it as a transferable prior and corrects it through target residual learning and non-negative fusion. This can alleviate the negative transfer caused by differences in community size, electrification equipment structure and peak distribution, and can achieve higher transfer reliability.
[0130] In one embodiment of the present invention, step S6 specifically includes:
[0131] The samples are divided into training set, validation set and test set in chronological order. The model parameters are estimated only on the training set, and the fusion weights and residual calibration are performed on the validation set.
[0132] Learn nonnegative fusion weights on the validation set:
[0133] (8);
[0134] In formula (8): This represents the optimal non-negative fusion weights learned on the validation set. Represents the validation set. , , , These represent the non-negative fusion weights learned from the validation set;
[0135] Target community point prediction value The calculation is as follows:
[0136] (9).
[0137] This invention adaptively fuses the interpretable seasonal baseline forecast, source domain prior forecast, local residual forecast, and migration residual forecast using a validation set. This achieves a trade-off between stable period, average error, and peak deviation control, and is particularly beneficial for reducing large errors during peak or abrupt periods, resulting in higher prediction accuracy.
[0138] In one embodiment of the present invention, step S7 specifically includes:
[0139] For calibration samples Define the absolute residual fraction :
[0140] (10);
[0141] In formula (10): This represents the predicted fusion point value;
[0142] The standard split conformal interval uses the empirical quantiles of the calibrated residuals. :
[0143] (11);
[0144] In formula (11): Represents the empirical quantile function. This represents the number of samples in the calibration set, and α represents the significance level. Indicates the nominal confidence level;
[0145] Global conformal interval corresponding to the test sample for:
[0146] (12);
[0147] Considering the significant intra-day heteroscedasticity of load forecasting errors, we further construct hourly conditional conformal intervals:
[0148] set up This represents the predicted hour for sample i, for each hour. Calculate local residual quantiles :
[0149] (13);
[0150] To avoid instability in certain time intervals due to insufficient calibration samples, the local quantiles and global quantiles are shrunk and merged:
[0151] (14);
[0152] In formula (14): Indicates the first The corresponding forecast hours Hourly conditionalized residual quantiles at confidence levels For local calibration weights;
[0153] Final hourly conditional conformal interval for:
[0154] (15);
[0155] In formula (15): Conservative calibration coefficient;
[0156] When the lower bound of the final hourly conditional shape-preserving interval is greater than the upper bound or when different confidence level intervals intersect, the upper and lower bounds are adjusted to preserve order.
[0157] This invention utilizes hourly conditionalized shape-preserving residual quantiles to construct prediction intervals, which can reflect the differences in error scales at different times of the day; through order-preserving correction, it ensures that the upper and lower bounds do not overlap and that multiple confidence level intervals are nested, making it easy for dispatchers to understand and use.
[0158] This invention also provides a power load forecasting system based on interpretable hierarchical migration and order-preserving intervals, used to implement the power load forecasting method based on interpretable hierarchical migration and order-preserving intervals as described above, including:
[0159] Data access and feature construction module: Collects target community load, meteorological and calendar data, and after time alignment and missing data processing, constructs a predictive feature vector including historical lagging load, calendar feature variables, temperature response variables and source community feature variables;
[0160] Explainable seasonal baseline module: Establishes an explainable seasonal baseline model, extracts the stable intraday, intraweek, monthly and temperature response structure from the target load, and outputs the explained seasonal baseline prediction value;
[0161] Source Community Transfer Teacher Module: Standardizes and trains the source community teacher model, and outputs the source domain prior prediction value at the target scale;
[0162] Target community residual learning module: Trains a target residual learning model on a limited number of samples in the target community, and outputs local residual predictions and transfer residual predictions;
[0163] Hierarchical stacked fusion module: The validation set learns non-negative weights, fuses the four components, and outputs the predicted value of the target community point;
[0164] Order-preserving interval construction module: Constructs hourly conditional shape-preserving quantiles and performs order-preserving corrections, outputting future short-term load point predictions and prediction intervals.
[0165] This power load forecasting system based on interpretable hierarchical transfer and order-preserving intervals employs an interpretable seasonal baseline module to characterize the stable cyclical structure of the target load. Subsequently, a source community transfer teacher module learns transferable intraday and seasonal patterns. Next, a target community residual learning module uses limited historical samples from the target community to learn nonlinear residuals that the baseline model cannot explain. Finally, a hierarchical stacking fusion module adaptively fuses multiple forecast components through a validation set, and an order-preserving interval construction module constructs forecast intervals with empirical coverage guarantees based on conformal prediction. This system preserves the interpretability of seasonality and exogenous variables, alleviates the problem of insufficient small samples in the target domain by utilizing source domain knowledge, and improves forecast accuracy and reliability through residual learning and interval calibration.
[0166] Embodiments of the present invention also provide a computer device, including a processor and a memory, wherein the memory stores a computer program, and the computer program, when executed by the processor, implements the power load forecasting method based on interpretable hierarchical migration and order-preserving intervals as described above.
[0167] Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, characterized in that, when the computer program is executed by a processor, it implements the power load forecasting method based on interpretable hierarchical migration and order-preserving intervals as described above.
[0168] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.
Claims
1. A power load forecasting method based on interpretable hierarchical migration and order-preserving intervals, characterized in that, Includes the following steps: S1, collect smart meter load data, weather data, calendar data, and load data from at least one source community in the target community; S2, performs time alignment, missing data processing and feature construction on the collected data to obtain a predicted feature vector including historical lagged load, calendar feature variables, temperature response variables and source community feature variables; S3. Use the training samples of the target community to establish an interpretable seasonal baseline model, extract the stable intraday, intraweek, monthly and temperature response structure in the target load, and obtain the interpretable seasonal baseline prediction value at the target prediction time. S4, scale the source community load data and train the source community transfer teacher model to obtain the source domain prior prediction value at the target prediction time; S5. Train the target residual learning model on a limited sample of the target community. Calculate the local residual prediction value by the residual between the actual load of the target community and the interpretable seasonal baseline prediction value. Calculate the migration residual prediction value by the difference between the source domain prior prediction value and the interpretable seasonal baseline prediction value. S6, learn non-negative stacked fusion weights on the validation set, and fuse the interpretable seasonal baseline prediction, source domain prior prediction, local residual prediction, and migration residual prediction into the target community point prediction. S7 constructs hourly conditionalized shape-preserving quantiles based on the prediction residuals of the validation set, and performs order-preserving corrections on the upper and lower bounds and nesting relationships of the intervals under different confidence levels, outputting the prediction of the future short-term load point and the prediction interval.
2. The power load forecasting method based on interpretable hierarchical migration and order-preserving intervals as described in claim 1, characterized in that, The feature construction described in step S2 includes: Construct historical lag load characteristics around 24 hours, 48 hours, and 72 hours, as well as one or more of the following within a preset window: cold day, hot day, weekend marker, and holiday marker; The predicted feature vector is represented as follows: (1); In formula (1): This represents the predicted feature input vector at time t. This represents the target community load at time t. This indicates historical load lag, and the superscript (0) indicates the target community. As a historical lag order, To predict the step size, Calendar feature variables for future prediction times, including hour, day of the week, month, holiday or weekend variables. Represents the temperature response variable. This represents the characteristic variables of the source community.
3. The power load forecasting method based on interpretable hierarchical migration and order-preserving intervals as described in claim 2, characterized in that, The interpretable seasonal baseline model described in step S3 adopts an additive model, a generalized additive model, a tree model, or a combination thereof, wherein the intraday cycle, intraweek cycle, monthly cycle, temperature response, and rolling load statistics are respectively used as decomposable explanatory terms so that the interpretable seasonal baseline forecast can reflect the load stability cycle structure. The interpretable seasonal baseline model is represented as follows: (2); In formula (1): This indicates the interpretable seasonal baseline forecast value. The baseline model intercept term (bias constant) represents the load baseline level when each explanatory variable is at the baseline level. This represents an interpretable smoothing function. Indicates the predicted time The characteristics of the hour, Indicates the predicted time The characteristics of the week, Indicates the predicted time Monthly characteristics, Indicates the predicted time Temperature response variable, Indicates the first The weights corresponding to each exogenous explanatory term Indicates historical lag load, The index representing the sequence number of historical lag loads. This indicates the total number of historical lagging loads.
4. The power load forecasting method based on interpretable hierarchical migration and order-preserving intervals as described in claim 3, characterized in that, Step S4 specifically includes: Standardize the load of the source community: (3); In formula (3): Indicates the first The standardized load value of the source community at time t. and They represent the first Mean and standard deviation of training load during the training period in each source community. S represents the total number of source communities. Indicates the first The load value of the source community at time t; The source domain training set is obtained by merging all standardized source community loads. : (4); In formula (4): Indicates the first Geyuan Community at all times The standardized input feature vector, Indicates the first Geyuan Community The load value after standardization at any given time; Source Community Transfer Teacher Model In the source domain training set The training is used to learn load patterns shared across communities; For the target community, its input features are first standardized according to the training statistics of the target community, and then input into the source community transfer teacher model to obtain the source domain prior predictions at the target community scale: (5); In formula (5): This indicates a teacher migration model from the source community. and The mean and standard deviation of the training load during the target community training period.
5. The power load forecasting method based on interpretable hierarchical migration and order-preserving intervals as described in claim 4, characterized in that, Step S5 specifically includes: For training samples Define the local residual prediction value as: (6); In formula (6): Indicates the first Local residual predictions for training samples from a target community. Indicates the first The true load value of the training samples in the target community. Indicates the first Interpretable seasonal baseline predictions for training samples from a target community; The predicted migration residuals, incorporating source domain information, are calculated as follows: , (7); In formula (8): This represents the predicted migration residual value. This represents a transfer residual learning model. Indicates in The source domain prior prediction at time t. Indicates in Interpretable seasonal baseline forecasts at any given time. Indicates in The predicted value of the migration correction at time step.
6. The power load forecasting method based on interpretable hierarchical migration and order-preserving intervals as described in claim 5, characterized in that, Step S6 specifically includes: Learn nonnegative fusion weights on the validation set: (8); In formula (8): This represents the optimal non-negative fusion weights learned on the validation set. Represents the validation set. , , , These represent the non-negative fusion weights learned from the validation set; Target community point prediction value The calculation is as follows: (9)。 7. The power load forecasting method based on interpretable hierarchical migration and order-preserving intervals as described in claim 6, characterized in that, Step S7 specifically includes: For calibration samples Define the absolute residual fraction : (10); In formula (10): This represents the predicted value of the fusion point; The standard split conformal interval uses the empirical quantiles of the calibrated residuals. : (11); In formula (11): Represents the empirical quantile function. This represents the number of samples in the calibration set, and α represents the significance level. Indicates the nominal confidence level; Global conformal interval corresponding to the test sample for: (12); Considering the significant intra-day heteroscedasticity of load forecasting errors, we further construct hourly conditional conformal intervals: set up This represents the predicted hour for sample i, for each hour. Calculate local residual quantiles : (13); To avoid instability in certain time intervals due to insufficient calibration samples, the local quantiles and global quantiles are shrunk and merged: (14); In formula (14): Indicates the first The corresponding forecast hours Hourly conditionalized residual quantiles at confidence levels For local calibration weights; Final hourly conditional conformal interval for: (15); In formula (16): Conservative calibration coefficient; When the lower bound of the final hourly conditional shape-preserving interval is greater than the upper bound or when different confidence level intervals intersect, the upper and lower bounds are adjusted to preserve order.
8. A power load forecasting system based on interpretable hierarchical migration and order-preserving intervals, characterized in that, The method for power load forecasting based on interpretable hierarchical migration and order-preserving intervals as described in any one of claims 1-7 includes: Data access and feature construction module: Collects target community load, meteorological and calendar data, and after time alignment and missing data processing, constructs a predictive feature vector including historical lagging load, calendar feature variables, temperature response variables and source community feature variables; Explainable seasonal baseline module: Establishes an explainable seasonal baseline model, extracts the stable intraday, intraweek, monthly and temperature response structure from the target load, and outputs the explained seasonal baseline prediction value; Source Community Transfer Teacher Module: Standardizes and trains the source community teacher model, and outputs the source domain prior prediction value at the target scale; Target community residual learning module: Trains a target residual learning model on a limited number of samples in the target community, and outputs local residual predictions and transfer residual predictions; Hierarchical stacked fusion module: The validation set learns non-negative weights, fuses the four components, and outputs the predicted value of the target community point; Order-preserving interval construction module: Constructs hourly conditional shape-preserving quantiles and performs order-preserving corrections, outputting future short-term load point predictions and prediction intervals.
9. A computer device comprising a processor and a memory, wherein the memory stores a computer program, characterized in that, When the computer program is executed by the processor, it implements the power load forecasting method based on interpretable hierarchical migration and order-preserving intervals as described in any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the power load forecasting method based on interpretable hierarchical migration and order-preserving intervals as described in any one of claims 1-7.
