Small sample electricity consumption prediction method based on mutual information feature screening
By constructing time-lag feature sequences and using mutual information analysis to filter feature subsets, the problems of unstable feature recognition and redundant noise in small-sample electricity consumption prediction are solved, achieving higher prediction accuracy and stability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- CHANGCHUN UNIV OF TECH
- Filing Date
- 2026-03-16
- Publication Date
- 2026-04-14
AI Technical Summary
Existing electricity consumption prediction methods struggle to reliably identify key influencing features in small sample scenarios, and redundancy and noise in multivariate features lead to decreased prediction accuracy and insufficient generalization ability.
By constructing time-lag feature sequences, mutual information analysis is used to filter out feature subsets that are strongly correlated with electricity consumption, and then combined with an LSTM model for prediction, thereby reducing model complexity and noise interference.
It improves the accuracy and stability of electricity consumption prediction under small sample conditions, reduces model complexity, and enhances prediction accuracy and generalization ability.
Smart Images

Figure CN121858968A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power data analysis and intelligent forecasting technology, and in particular to a small-sample power consumption forecasting method based on mutual information feature screening, which can be used for small-sample power consumption forecasting. Background Technology
[0002] Electricity consumption forecasting is a crucial foundation for power system dispatching and operation, demand response, energy management, and energy conservation optimization. Existing forecasting methods typically rely on historical electricity consumption time series data and incorporate external influencing factors such as environmental factors, equipment operating status, time factors, and user behavior to construct forecasting models.
[0003] In recent years, deep learning models such as Long Short-Term Memory (LSTM) networks have achieved good results in electricity consumption prediction tasks due to their ability to model nonlinear time series. However, in practical applications, electricity consumption prediction often suffers from the problem of insufficient historical data and small sample sizes. Furthermore, electricity consumption prediction typically involves multiple features with high dimensionality and often contains redundant or noisy features. Directly inputting these features into the model would further increase model complexity and reduce prediction accuracy and generalization ability.
[0004] To address the aforementioned issues, this invention proposes a small-sample electricity consumption prediction method based on mutual information feature screening. This method can effectively achieve stable feature screening under small sample conditions, reduce sample fluctuation interference, and accurately characterize the nonlinear relationship between external features and electricity consumption. Summary of the Invention
[0005] This invention aims to solve the technical problems of existing electricity consumption prediction methods in small sample scenarios, where key influencing features are difficult to identify stably, and the redundancy and noise in multi-dimensional features lead to a decrease in prediction accuracy and insufficient generalization ability after direct modeling.
[0006] To address the aforementioned technical problems, this invention provides a small-sample electricity consumption prediction method based on mutual information feature screening, the method comprising the following steps:
[0007] First, using a small sample of electricity consumption data and multivariate feature data related to the electricity user, including environmental features, equipment operating status features, time features, and user behavior features, a time-lag feature sequence is constructed from the multivariate feature data to form a candidate feature set. The candidate feature set and the electricity consumption data are then preprocessed.
[0008] Then, multiple subsequence samplings are performed on the small sample of electricity consumption data. The mutual information value is calculated between each time lag feature in the candidate feature set and the sampled electricity consumption subsequence. The mutual information stability statistical analysis is then performed on the calculation results.
[0009] Finally, by analyzing the results, a subset of features strongly correlated with electricity consumption is selected. This strongly correlated subset of features and the electricity consumption data are then input into an LSTM for prediction, and the predicted electricity consumption results are output.
[0010] Compared with the prior art, the present invention has the following beneficial effects: (1) By combining multiple subsequence sampling with mutual information analysis, key features affecting changes in electricity consumption can be identified more effectively under small sample conditions; (2) By introducing mutual information stability analysis, the impact of single sampling fluctuations on feature evaluation results can be reduced, and the stability of feature selection can be improved; (3) By selecting strongly correlated feature subsets, redundant and noisy feature interference can be reduced, and the model complexity can be reduced; (4) Inputting the selected features into the LSTM model for prediction can improve the accuracy of electricity consumption prediction in small sample scenarios. Attached Figure Description
[0011] Figure 1 This is a flowchart illustrating a small-sample electricity consumption prediction method based on mutual information feature screening according to the present invention.
[0012] Figure 2 This is a graph showing the prediction results of an example of the present invention. Detailed Implementation
[0013] A small-sample electricity consumption prediction method based on mutual information feature screening, the method comprising the following operations:
[0014] First, use a small sample of electricity consumption data. and multi-dimensional characteristic data related to the electricity user. ,in , For small sample data length, This refers to the number of multi-dimensional features. Multi-dimensional features include: environmental features, equipment operating status features, time features, and user behavior features.
[0015] A time-lag feature sequence is constructed from the multivariate feature data to form a candidate feature set. Let the maximum lag order be... , for the Constructing lagged features from individual features: in Indicates the first Each feature is lagging The hysteresis characteristics after the order, At this point, the candidate feature set is formed. for: At this point, the total number of candidate features is .
[0016] Preprocessing of candidate feature set and electricity consumption data: Standardization of electricity consumption sequences: in, This represents the standardized electricity consumption data. This represents the average electricity consumption. This represents the standard deviation of electricity consumption; Standardize the candidate features: in, This represents the standardized candidate feature data. Representing candidate features The mean, Representing candidate features The standard deviation of , at this point, the candidate feature set is represented as: in, This represents the standardized set of candidate features.
[0017] Secondly, to improve the robustness of mutual information under small sample conditions, the electricity consumption is sampled multiple times from a subsequence. Let the number of samplings be... Each sampling yields a length of subsequence of: in, This represents the subsequence obtained after sampling. , Indicates the first The starting position of the next sampling The sampling method is: random block sampling; Correspondingly, for each candidate feature Extract the feature subsequence aligned with the electricity consumption subsequence. : For each sample, calculate the electricity consumption of the subsequence. With the corresponding candidate feature subsequence Mutual information values between : Mutual information is defined as: in, and They are two random variables. express Values and Values The joint probability, express marginal distribution, express The marginal distribution.
[0018] Finally, the mutual information results are analyzed to select a subset of features strongly correlated with electricity consumption. Based on the mutual information values, this invention introduces a mutual information stability index, using the coefficient of variation. The relative dispersion of the mutual information calculation results is characterized. Mutual information mean. for: coefficient of variation for: in To prevent extremely small constants with a denominator of zero, It is the standard deviation of mutual information; A smaller coefficient of variation indicates less change in mutual information value with sampling, and higher stability. To simultaneously consider the magnitude and stability of mutual information, this invention constructs a comprehensive evaluation index. : This comprehensive evaluation index is formally equivalent to imposing a stability penalty on the mean of mutual information; when the mean of mutual information... The larger the coefficient of variation, the higher the coefficient of variation. The smaller the value, the higher the stability of mutual information; at this point, the comprehensive evaluation index... The higher; Select the top K candidate features with the highest scores as the strongly correlated feature subset. :
[0019] Using historical electricity consumption sequences as the main sequence input branch, and strongly correlated feature subsets... As a multi-feature input branch, a multi-input prediction model is constructed. A dual-branch LSTM structure is used to extract main sequence features and multi-features separately, which are then fused through a fusion layer, and finally output as predicted values through a fully connected layer. Then, the predicted values are de-standardized to obtain the predicted values at the true scale. :
[0020] To verify the effectiveness of the method of the present invention, the root mean square error (RMSE) and mean absolute percentage error (MAPE) are selected for verification in the examples of the present invention. The formulas for the two are as follows: in, It is a test set Predicted electricity consumption at any given time. It is a test set The actual power consumption at any given moment. The predicted future time step for the test set.
[0021] This invention uses data from a certain province, including electricity consumption, highest temperature, maximum load, daily average humidity, population migration index, and holiday data. The prediction result curve is shown below. Figure 2 As shown, in the optimal case ( The method of this invention achieves significant improvements compared to direct prediction by LSTM: RMSE is reduced from 181.1722 to 172.0617, an improvement of approximately 5.03%; MAPE is reduced from 2.22% to 2.07%, an improvement of approximately 6.81%.
[0022] Table 1. Model Evaluation Index Results Model RMSE MAPE LSTM direct prediction 181.1722 2.22% This invention predicts 172.0617 2.07%
[0023] As can be seen from the results in Table 1, the predicted effect of the present invention is better than the direct prediction effect, which proves the advantages of the present invention.
Claims
1. A small-sample electricity consumption prediction method based on mutual information feature screening, characterized in that, The method includes the following steps: First, using a small sample of electricity consumption data and multivariate feature data related to the electricity consumer, a time-lag feature sequence is constructed from the multivariate feature data to form a candidate feature set. The candidate feature set and the electricity consumption data are then preprocessed. Second, the electricity consumption of the small sample is sampled multiple times, and the mutual information value between each time-lag feature in the candidate feature set and the sampled electricity consumption subsequence is calculated. Finally, the mutual information results are analyzed, and based on the analysis results, a feature subset strongly correlated with the electricity consumption is selected. The feature subset and the electricity consumption data are then input into an LSTM for prediction, and the predicted electricity consumption result is output.
2. The method for predicting small-sample electricity consumption based on mutual information feature screening according to claim 1, characterized in that, The multivariate feature data and electricity consumption data are preprocessed. First, a time lag feature sequence is constructed from the multivariate feature data to form a candidate feature set. Let the maximum lag order be . , for the Constructing lagged features from individual features: in Indicates the first Each feature is lagging The hysteresis characteristics after the order, At this point, the candidate feature set is formed. for: At this point, the total number of candidate features is Standardize the electricity consumption and candidate feature set separately, and standardize the electricity consumption sequence as follows: in, This represents the standardized electricity consumption data. This represents the average electricity consumption. The standard deviation of electricity consumption is used to standardize candidate features: in, This represents the standardized candidate feature data. Representing candidate features The mean, Representing candidate features The standard deviation of , at this point, the candidate feature set is represented as: in, This represents the standardized set of candidate features.
3. The method for predicting small-sample electricity consumption based on mutual information feature screening according to claim 1, characterized in that, Multiple subsequence samplings are performed on a small sample of electricity consumption. The mutual information value between each time-lag feature in the candidate feature set and the sampled electricity consumption subsequence is calculated for each subsequence. Let the number of samplings be... Each sampling yields a length of subsequence of: in, This represents the subsequence obtained after sampling. , Indicates the first The starting position of the next sampling The sampling method is random block sampling, corresponding to each candidate feature. Extract the feature subsequence aligned with the electricity consumption subsequence. : For each sample, calculate the electricity consumption of the subsequence. With the corresponding candidate feature subsequence Mutual information values between : 。 4. The method for predicting small-sample electricity consumption based on mutual information feature screening according to claim 1, characterized in that, The mutual information results were analyzed, and a subset of features strongly correlated with electricity consumption was selected based on the analysis results. The coefficient of variation was then used. To characterize the relative dispersion of the mutual information calculation results, the mutual information mean is used. for: coefficient of variation for: in To prevent extremely small constants with a denominator of zero, The standard deviation of mutual information is the coefficient of variation. The smaller the coefficient of variation, the less the mutual information value changes with sampling, and the higher the stability. To simultaneously consider the magnitude and stability of mutual information, this invention constructs a comprehensive evaluation index. : This comprehensive evaluation index is formally equivalent to applying a stability penalty to the mean mutual information of candidate features; when the mean mutual information... The larger the coefficient of variation, the higher the coefficient of variation. The smaller the value, the higher the stability of mutual information; at this point, the comprehensive evaluation index... The higher the score, the higher the K candidate features are selected as the strongly correlated feature subset. : 。
Citation Information
Patent Citations
User electricity consumption relevant factor identification and electricity consumption quantity prediction method under environment of big data
CN105512768A
Water quality soft measurement method based on hybrid dimension reduction and kernel function extreme learning machine
CN112183676A
Non-signalized intersection multi-agent scheduling optimization method based on deep reinforcement learning
CN120108204A
Bidirectional LSTM photovoltaic power generation prediction method based on wavelet decomposition and double attention
CN121663469A
Model generation device, prediction device, model generation method and prediction method
JP2024140883A