Regional family load interval prediction method and system based on user behaviors, and medium
Through the regional household load interval prediction method based on user behavior, using singular spectrum analysis and neural network to process household load data, the data problems and user behavior impacts in the existing technology are solved, and more accurate and generalized load prediction is achieved, reducing the Predict risks.
Patent Information
- Application Number
- CN202411419478.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-12
- Publication Date
- 2024-11-15
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing household load prediction scheme has problems such as data loss, delayed upload, outliers, etc., making it difficult to accurately distinguish short-term random fluctuations caused by user behavior. In addition, traditional methods lack the measurement tools to quantify the randomness and determinism of user energy use and cannot provide A sufficiently accurate solution.
Using the regional household load interval prediction method based on user behavior, the household load data is collected and preprocessed, and the short-term load prediction model is constructed using singular spectrum analysis and neural networks. Combining the distribution characteristics of load fluctuations, the power consumption consistency indicators and load fluctuations are established. Linkage relationship, identify user behavior patterns, create user portraits, and realize load interval prediction.
It improves the accuracy and generalization ability of load prediction, meets the accuracy of long-term scales and the prediction needs of different users, reduces the risk of overfitting the prediction model, and optimizes the performance and parameter adjustment speed of neural network prediction algorithms.
Smart Images

Figure CN118965203A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the technical field of household load prediction, and in particular to a method, system and medium for regional household load interval prediction based on user behavior. Background Art
[0002] With the transformation of the global energy structure, the popularization of renewable energy, the enhancement of the concept of energy conservation and carbon reduction, and the development of smart grid technology, the importance of household load forecasting has become increasingly prominent. Accurate household load forecasting not only helps to achieve refined management of home energy management systems (HEMS), reduce spare capacity requirements, and improve energy efficiency, but also ensures the stable operation and power quality of the power grid through demand-side response and virtual power plants. With the popularization of smart meters and Internet of Things (IoT) devices, it is possible to collect household electricity consumption data in real time, which can provide a rich data foundation for the accurate training of load forecasting models. These data cover time series, environmental factors, user behavior and other factors. However, the existing household load forecasting schemes still have many shortcomings, specifically: 1. Data problems. Generally, household electricity consumption data is collected through smart meters. Although smart meters improve the convenience and accuracy of data collection, there are still problems such as data loss, delayed upload, and outliers. These problems may be caused by communication failures, equipment failures or measurement errors, affecting the accuracy of load forecasting models. Taking the cumulative electricity consumption forecast as an example, if the predicted electricity consumption is lower than the actual electricity consumption, it may lead to insufficient remaining energy storage capacity. When there is a power outage or a peak in electricity prices, additional electricity costs may be incurred; if the predicted electricity consumption is higher than the actual electricity consumption and the excess capacity is not properly planned, there may be a risk of low capacity utilization, affecting investment returns. 2. Impact of user behavior. Household electricity consumption is highly affected by user behavior in the short term, showing strong randomness and nonlinear characteristics, such as the impact of changes in daily routines and special events (such as holidays, large-scale TV live events) on electricity consumption patterns. Traditional time series analysis and linear regression prediction methods are difficult to accurately distinguish these short-term and random fluctuations. These short-term small changes in electricity consumption data may cause overfitting during the training process, which on the one hand leads to poor prediction accuracy of future long-term electricity consumption data, and on the other hand, limits the generalization ability of the model and cannot form a general model of the same type. For example, a highly watched sports event may stimulate a continuous peak in electricity consumption in the night power grid; when a family is away on vacation, the family may be in a low electricity consumption state throughout the day. These random behaviors cause the prediction model to be overly sensitive to small changes when it is trained with these data. 3. Long-term trends and small fluctuations. Although household electricity consumption can reflect changes in factors such as climate and number of people over a long period of time, if only long-term trends are analyzed, some substantial characteristics of small load fluctuations will often be overlooked. These characteristics are caused by the user's own non-fixed behavior patterns caused by specific events. Traditional processing methods lack measurement tools to quantify the randomness and certainty of user energy consumption for load forecasting problems behind such actual situations, and cannot provide sufficiently accurate solutions.
[0003] The above problems need to be solved urgently. Summary of the invention
[0004] In order to solve the related technical problems, the present invention provides a method, system and medium for predicting regional household load intervals based on user behavior to solve the problems mentioned in the above background technology part.
[0005] To achieve the above objectives, the embodiments of the present invention adopt the following technical solutions: In a first aspect, an embodiment of the present invention provides a method for predicting a regional household load interval based on user behavior, the method comprising: Collect household load data and pre-process them; Decompose the load time series and daily peak load series, and reorganize the decomposed data based on the actual data characteristics to extract effective load fluctuation information; Define the signal order for recombination, perform data integration, and construct a useful feature dataset; Construct the distribution characteristics of user load fluctuations, establish the linkage relationship between power consumption consistency indicators and load fluctuations, and realize user behavior pattern recognition; Create user profiles based on the distribution characteristics of user load fluctuations; The short-term load forecasting model constructed based on neural network is combined with the load value prediction model and load fluctuation distribution characteristics to complete the construction of load interval prediction model.
[0006] As an optional implementation manner, the collecting and preprocessing of household load data includes: Missing data processing: interpolation method is used to pre-process missing data; Interpolate average values or values calculated based on local polynomials to maintain data continuity; Normalization processing makes all data values in the original data range within [0,1].
[0007] As an optional implementation, the load time series and the daily peak load series are decomposed, and the decomposed data are reorganized based on actual data features to extract effective load fluctuation information, including: The load time series and daily peak load series are decomposed based on singular spectrum analysis, and the decomposed data are reorganized based on actual data characteristics to extract effective load fluctuation information.
[0008] As an optional implementation, the load time series and the daily peak load series are decomposed based on singular spectrum analysis, and the decomposed data are reorganized based on actual data features to extract effective load fluctuation information, including: Construct a vector matrix, and construct a vector matrix X according to the power load time series data; Calculate eigenvalues and eigenvectors, calculate The eigenvalues and eigenvectors of Singular value decomposition, according to The obtained eigenvalues and The obtained eigenvalues are combined to obtain the singular values, completing the singular value decomposition; Perform matrix reconstruction, using the selected singular values and corresponding eigenvectors, to reconstruct the original matrix X to obtain the reconstructed matrix X', which is done by retaining the first k largest singular values, where k is the number of singular values selected for dimensionality reduction; Compress the matrix, compress the reconstructed matrix, remove the part corresponding to the smaller singular value, so as to further reduce the dimension of the data and retain the main load characteristics; wherein, the ratio threshold is set to , if the singular value satisfy , then it is determined that the singular value is the smaller singular value; Restore the time series and restore the reduced-dimensional matrix to a time series. By converting the compressed matrix back to the time series format, data restoration is completed to obtain optimized and streamlined time series data.
[0009] As an optional implementation, the steps of defining the signal order for recombination, performing data integration, and constructing a practical feature data set include: Signal separation: The reconstructed sequence obtained by singular spectrum analysis is divided into low-order and high-order parts. The low-order reconstructed sequence is divided into trend signal and periodic signal, and the high-order reconstructed sequence is defined as noise signal. Signal order optimization, setting the reorganized signal order Ntextopt, calculating the error between the load forecast sequence after different order reorganization and the original load sequence, and using the root mean square error method to quantify the reorganized signal order Ntextopt.
[0010] As an optional implementation method, the construction of distribution characteristics of user load fluctuations, the establishment of a linkage relationship between power consumption consistency indicators and load fluctuations, and the realization of user behavior pattern recognition include: Noise signal calculation: calculate the remaining noise signal after the load data is reorganized, analyze its relationship with the discrete factor DF by calculating the difference between the reorganized sequence and the true load sequence, and fit the discrete factor DF and the fluctuation value to obtain the load fluctuation range based on different discrete factors DF; Indicator definition, the value of the discrete factor DF indicator is set to DF∈[0,1], where the household users’ electricity usage behavior is divided into, but not limited to, “consistent non-use”, “a small number of people use / sudden electricity usage behavior”, “more people use / preferred or habitual electricity usage behavior”, and “consistent use”; Consistent demand calculation, calculate the relationship between the non-consistent demand and the consistent demand of the daily peak power consumption; Nonlinear relationship analysis, calculate the nonlinear relationship correlation between daily average temperature and daily total load.
[0011] As an optional implementation manner, the creating a user profile based on the distribution characteristics of user load fluctuations includes: Construct a violin plot to construct DF and Violin plot of the relationship; Calculate the verification frequency and record the number of load fluctuations within the upper and lower limits, that is, The number of times is n, and the total amount of data in the data set D is N, then the verification frequency of the relevant fluctuation is f=n / N; Normal distribution verification, using the normal distribution Principles to verify relevant data; Set the upper and lower limits of the theoretical value fluctuation, and obtain the actual load value of data set D at any time through the normal distribution model. Corresponding theoretical load fluctuation upper and lower limits and .
[0012] As an optional implementation manner, the power consumption consistency of household cluster loads in the distribution characteristics of the user load fluctuations is from high to low and then to high.
[0013] In a second aspect, an embodiment of the present invention provides a regional household load interval prediction system based on user behavior, the system adopts the regional household load interval prediction method based on user behavior proposed in the first aspect, including: A preprocessing module, used to collect and preprocess household load data; The decomposition and reorganization module is used to decompose the load time series and the daily peak load series, and reorganize the decomposed data based on the actual data characteristics to extract effective load fluctuation information; An integration module, used to define the signal order for recombination, perform data integration, and construct a practical feature data set; The behavior pattern recognition module is used to construct the distribution characteristics of user load fluctuations, establish the linkage relationship between power consistency indicators and load fluctuations, and realize the identification and classification of different user behavior patterns; A user portrait creation module, used to create user portraits based on the distribution characteristics of user load fluctuations; The prediction model building module is used to build a short-term load prediction model based on a neural network, combining the load value prediction model with the load fluctuation distribution characteristics to complete the construction of the load interval prediction model.
[0014] In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed by a processor, they are used to implement the regional household load interval prediction method based on user behavior as provided in the embodiment of the first aspect above.
[0015] The technical solution proposed in the embodiment of the present invention collects household load data and performs preprocessing, uses interpolation method to process missing data, inserts average value or value calculated based on local polynomial, fills in missing data points, and ensures data integrity and continuity; decomposes load time series and daily peak load series, and reorganizes the decomposed data based on actual data characteristics to extract effective load fluctuation information, reduce the influence of noise or outliers, and improve the accuracy of feature extraction of time series data; constructs the distribution characteristics of user load fluctuations, establishes the linkage relationship between power consistency index and load fluctuation, and realizes user behavior pattern recognition, so that the uncertainty description based on user behavior can be superimposed on the accurate data prediction on a long time scale, which not only meets the accuracy of long time scale prediction, but also meets the generalization ability for different users; through normalization analysis, on the one hand, the training effect and generalization ability of the model are improved, and on the other hand, the actual range of power consumption data is hidden. It is difficult to directly infer specific information based on the processed data alone, which reduces the risk of the prediction model leaking a household's power consumption information. The technical solution proposed in the embodiment of the present invention implements data preprocessing and hybrid modeling based on singular spectrum analysis (SSA), uses the whale optimization algorithm (WOA) to adjust hyperparameters, and optimizes the load data decomposition-reconstruction modeling process to optimize the neural network prediction algorithm, thereby obtaining a model with the best performance, improving the accuracy of the prediction model and optimizing the parameter adjustment speed. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate and understand the technical solutions in the embodiments of the present invention, the following briefly introduces the background technology of the present invention and the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the contents of the embodiments of the present invention and these drawings without paying any creative work.
[0017] Figure 1 A schematic diagram of a flow chart of a method for predicting regional household load intervals based on user behavior provided in Embodiment 1 of the present invention; Figure 2 A schematic diagram of user power consumption provided in the first embodiment of the present invention; Figure 3 A schematic diagram of a load interval prediction model construction process provided in the first embodiment of the present invention; Figure 4 A schematic diagram of the load interval prediction model structure provided in the first embodiment of the present invention; Figure 5 This is a schematic diagram of the structure of a regional household load interval prediction system based on user behavior provided in the second embodiment of the present invention. DETAILED DESCRIPTION
[0018] In order to make the technical problems solved by the present invention, the technical solutions adopted and the technical effects achieved clearer, the technical solutions of the embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0019] Embodiment 1 Please refer to Figure 1 As stated, Figure 1 This is a flow chart of a method for predicting regional household load intervals based on user behavior provided in Embodiment 1 of the present invention. As shown in the figure, the method 100 for predicting regional household load intervals based on user behavior in this embodiment includes the following steps: S101. Collect household load data and pre-process it; S102. Decompose the load time series and the daily peak load series, and reorganize the decomposed data based on actual data characteristics to extract effective load fluctuation information; S103. Define the signal order for recombination, perform data integration, and construct a practical feature data set; S104. Construct the distribution characteristics of user load fluctuations, establish the linkage relationship between power consumption consistency indicators and load fluctuations, and realize user behavior pattern recognition; S105. Create a user profile based on the distribution characteristics of user load fluctuations; S106. Based on the short-term load forecasting model constructed by the neural network, the load value forecasting model is combined with the load fluctuation distribution characteristics to complete the construction of the load interval forecasting model.
[0020] In this embodiment, since there are problems such as inconsistent data granularity between the initial load data and the feature data, and large differences in different feature data intervals, it is necessary to preprocess the data to facilitate subsequent calculations. Exemplarily, in step S101, based on the distribution characteristics of the user load fluctuation, a user portrait is created, including: S1011. Missing data processing, using interpolation method to preprocess the missing data; In this embodiment, taking the linear interpolation method as an example (not limited to this), there are two known data points (x1, y1) and (x2, y2), where x1 < x < x2, and the value y at x needs to be estimated. The formula for linear interpolation is: y = y1 + \frac{{(x - x1) \cdot (y2 - y1)}}{{ x2 - x1}} where x is the independent variable and y is the dependent variable. In the time series data of the electricity load, x is a certain moment, and y is the electricity power at moment x.
[0021] S1012. Insert the average value or the value calculated based on the local polynomial to maintain the continuity of the data; In this embodiment, taking the linear interpolation method as an example, x{t-1} and x{t+1} respectively represent the data points at the moment before and after the missing value. Then the missing value xt can be inserted with the average value through the following formula: xt* = \frac{{x{t-1} + x{t+1}}}{2} Through the above method, the continuity of the data can be maintained, and the surrounding data information can be used for filling.
[0022] S013. Normalization processing, so that all data value ranges in the original data are within [0,1]; =\frac{{X - X{\text{min}}}}{{X{\text{max}} - X{\text{min}}}} where, represents the normalized data, , Xmax respectively represent the maximum and minimum values in the data set.
[0023] In practical applications, for example, all data from three regions are processed separately, and the loads of household users in the same region at the same time are summed up to represent the total load information of the household cluster; the sampling period of load data is the sampling period of the household electricity meter or sensor, and the temperature sampling period is the sampling period set by the temperature sensor; for example, the load data sampling period can be 5 minutes, 10 minutes or 15 minutes, and the temperature sampling period can be 20 minutes, 40 minutes or 1 hour.
[0024] Exemplarily, the decomposition of the load time series and the daily peak load series, and the data reorganization of the decomposed data based on actual data characteristics to extract effective load fluctuation information include: Based on singular spectrum analysis (SSA), the load time series and daily peak load series are decomposed, and the decomposed data are reorganized based on the actual data characteristics to extract effective load fluctuation information. Among them, the reorganized data selected in this embodiment needs to meet the requirements of fully reflecting the characteristics of the original data and minimizing the error.
[0025] Exemplarily, the decomposition of the load time series and the daily peak load series based on singular spectrum analysis, and the data reorganization of the decomposed data based on actual data characteristics to extract effective load fluctuation information specifically include: S1021. Construct a vector matrix, and construct a vector matrix X according to the power load time series data; In this implementation, the delay column vector is defined based on the power load time series data. , where the window length L is set to represent the length of the column vector, L is an integer and ; Further construct a matrix X consisting of K delay vectors, where N is the length of the selected power load time series data, N=L+K-1; S1022. Calculate eigenvalues and eigenvectors, calculate eigenvalues and eigenvectors; singular value decomposition, according to The obtained eigenvalues and The obtained eigenvalues are combined to obtain the singular values, completing the singular value decomposition; In this embodiment, singular value decomposition is used to calculate The eigenvalues and eigenvectors of get L non-negative eigenvalues in descending order , and the corresponding orthogonal eigenvectors ;calculate The eigenvalues and eigenvectors of get K non-negative eigenvalues in descending order , and the corresponding orthogonal eigenvectors ,according to The obtained eigenvalues, and The obtained eigenvalues are combined to obtain the singular values: S1023. Execute matrix reconstruction, using the selected singular values and corresponding eigenvectors to reconstruct the original matrix X to obtain a reconstructed matrix X', which is completed by retaining the first k largest singular values, where k is the number of selected singular values, for dimensionality reduction; compress the matrix, compress the reconstructed matrix, remove the parts corresponding to the smaller singular values, so as to further reduce the dimension of the data and retain the main load characteristics; wherein the ratio threshold is set to , if the singular value satisfy , then the singular value is determined to be the smaller singular value; for example, setting a ratio threshold is 0.1, if the singular value satisfy , then the singular value is determined to be the smaller singular value; it is worth mentioning that the determination of the smaller singular value is not limited to the above method, and can also be achieved by: setting the significance level , calculate the singular value distribution of the reference data set , calculate the singular value distribution of the data set to be analyzed If the test results show In some locations it is significantly smaller than , the singular values at these positions can be considered to be smaller singular values. In this embodiment, the matrix is compressed, and the part corresponding to the smaller singular value is removed to further reduce the dimension of the data. After that, each column is an important eigenvector, which represents a main load feature in the data, and the main load feature is retained.
[0026] In this embodiment, let D be the number of non-zero eigenvalues, then the matrix X can be expressed as: Xi = \sqrt{\lambdai} \cdot ui vi^T The singular values are rehearsed from large to small, and the corresponding U and V are also adjusted according to Reorder.
[0027] S1024. Restoring the time series, restoring the reduced-dimensional matrix to a time series, completing data restoration by converting the compressed matrix back to a time series format, and obtaining optimized and streamlined time series data; In this embodiment, the calculation When c meets a certain threshold, for example, c exceeds 80% or 90%, A is derived from c, or the number of A is set according to the empirical number, the first A in formula 2 is intercepted. , forming an approximate X , and divide the singular values into m groups, and add the matrices in each group to get a new matrix , then the trajectory matrix X It can be approximately expressed as: in, The singular values in Items in .
[0028] The grouping should be such that each The matrices are uncorrelated and each non-zero singular value can be grouped separately by default.
[0029] For example, suppose A is 5 and m is 2, where , but If m is 5, each non-zero singular value becomes a separate group.
[0030] S1025: restore the dimension-reduced matrix to a time series; In this embodiment, the anti-diagonal mean calculation method is used for restoration; The elements of , , , then i+j=k+1; Submatrix Restoration can obtain a time series consisting of D reconstructed data The different reconstructed sequences here are the load time series signals of different orders decomposed after the SSA process.
[0031] In this embodiment, in order to improve the accuracy of load value prediction, if the signal order used for recombination is too high, it will lead to cumbersome neural network construction, too long prediction model construction time, and possible overfitting. If the signal order used for recombination is too low, the recombined signal cannot reproduce the original signal well, and the calculated load fluctuation is not accurate enough. Therefore, it is necessary to define the signal order used for recombination, perform data integration, and construct a practical feature data set.
[0032] In addition, in order to better understand the technical solution proposed in this application, the following is a brief introduction to the relevant data processing principle based on singular spectrum analysis: Singular spectrum analysis is often used to extract trends, periodic components, and random noise from time series data. Specifically, ① convert the original one-dimensional time series into a two-dimensional data matrix A. ② perform singular value decomposition on the constructed matrix A=UΣV^T, where A is an m×n matrix, U is an m×m matrix, V is an n×n matrix, and Σ is an m×n diagonal matrix; U is the eigenvector of AA^T, V is the eigenvector of A^TA, and the singular value is , or use the eigenvalue of A^TA Take square roots to calculate singular values , and then form Σ. ③ Arrange the singular values from large to small. Since the singular value reflects the importance of this feature, the previous singular value is more important than the following singular value, so keep the previous singular value and remove the unimportant singular value in the back as noise, thereby achieving data dimensionality reduction. In essence, SSA is to decompose X (representing the household power consumption curve) into different singular values multiplied by column vectors multiplied by row vectors, where vi represents a certain type of power consumption behavior of the user, and ui represents whether the behavior exists in different time periods, as well as the degree of the power consumption behavior. The singular value represents the importance of this power consumption behavior in the entire power consumption data: Exemplarily, the step S103 defines the signal order for recombination, performs data integration, and constructs a practical feature data set, including: S1031. Signal separation: the reconstructed sequence obtained by singular spectrum analysis is divided into low-order and high-order parts, the low-order reconstructed sequence is divided into trend signal and periodic signal, and the high-order reconstructed sequence is defined as a noise signal; In this embodiment, the classification is made according to the above step S1025. For example, if the first three sequences exceed 80%, the 1st to 3rd order load decomposition sequences are trend signals; if the first five sequences exceed 90%, the 4th to 5th order load decomposition sequences are periodic signals, and the remaining decomposition sequences are "noise" signals.
[0033] S1032. Signal order optimization, setting the reorganized signal order Ntextopt. The characteristic of this signal order is that the error between the load forecast sequence reorganized with different orders and the original load sequence is calculated. Specifically, the root mean square error method is used to quantify the reorganized signal order Ntextopt.
[0034] In this embodiment, the load value after SSA decomposition and reorganization based on Ntextopt is , the load fluctuation can be expressed as: , and the load at any time is Calculate the verification frequency and record the number of load fluctuations within the upper and lower limits, that is, The number of times is n, and the total amount of data in the data set D is N, then the verification frequency of the relevant fluctuation is: ; As the number of reconstructed sequences increases, the RMSE value of the prediction model gradually decreases; the rate of RMSE value attenuation shows a trend of first decreasing and then stabilizing.
[0035] For example, the RMSE value of the original load time series signal after reorganization of different order signals in three regions is used, and 1% is used as the threshold of the RMSE value decay rate to obtain the optimal signal order for reconstructing the sequence. When the signal order is 36, the RMSE value decay rate of all prediction results is stably lower than 1%. Therefore, for short-term load value prediction, the signal with a signal order of 36 is reorganized to obtain a load value prediction result with relatively high accuracy.
[0036] In this embodiment, the distribution characteristics of user load fluctuations are constructed based on the idea of separating power consumption trends from fluctuation characteristics, and the power consumption consistency index is linked to the load fluctuation through frequency analysis and error analysis. Exemplarily, the distribution characteristics of user load fluctuations are constructed in step S104, and the linkage relationship between the power consumption consistency index and the load fluctuation is established to realize user behavior pattern recognition, including: S1041. Noise signal calculation: calculate the noise signal remaining after the load data is reorganized, analyze its relationship with the Diversity factor (DF) by calculating the difference between the reorganized sequence and the real load sequence, and fit the Diversity factor DF and the fluctuation value to obtain the load fluctuation range based on different Diversity factors DF; S1042. The value of the discrete factor DF index ∈ [0,1], where the household user's electricity usage behavior is divided into "consistent non-use", "a small number of people use / sudden electricity usage behavior", "more people use / favorite or habitual electricity usage behavior", and "consistent use"; S1043. Consistent demand calculation, calculating the relationship between the non-consistent demand and the consistent demand for daily electricity peak; In this embodiment, given the electricity consumption data of n households for one day, non-consistent demand and consistent demand can be constructed based on the daily peak electricity consumption of each household, where the non-consistent demand refers to the sum of the load of each household when it reaches the peak value, and the consistent demand refers to the sum of the electricity load of each household reaching the peak value within a certain period of time. The discrete factor DF is calculated as the ratio of the non-consistent demand to the consistent demand: DF = \frac{P_{\text{cd}}}{P_{\text{ncd}}} Among them, P_{\text{cd}} is the sum of the peak electricity load of each household in a period of time, that is, the consistent demand; P_{\text{ncd}} is the sum of the peak load of each household, that is, the non-uniform demand.
[0037] When the discrete factor DF=0, it is considered that there is no inconsistent electricity demand among all household electricity users; when the discrete factor DF=1, it is considered that there is a strong consistency in the electricity demand among all household electricity users.
[0038] S1044. Nonlinear relationship analysis, calculate the nonlinear relationship between daily average temperature and daily total load; In this embodiment, there is a certain nonlinear relationship between the daily average temperature and the daily total load demand in the three regions, and MIC is used for variable exploration. Among them, MIC is a tool for discovering variable relationships. By constructing a discretized grid of variables, the mutual information between two variables at different grid resolutions is calculated. Mutual information measures the amount of information one variable has about another variable.
[0039] The set of data points containing two attributes is distributed in two-dimensional space, and the space is divided into m×n grids. For each grid, the frequency P(x,y) of the data point falling into the grid is recorded, and the calculation process is as follows: Among them, X and Y represent the value ranges of two variables respectively.
[0040] Among all different grids, select the one with the maximum value; divide the selected maximum value by \log\min{|X|,|Y|}, where |X| and |Y| represent the number of values of the two variables respectively.
[0041] For example, the overall year-round characteristics of region A are reflected in the discrete factor DF characteristics of warm-hot time, while the discrete factor DF characteristics of regions B and C are different in the cold-cool-warm-hot seasons. Regions B and C present similar DF index characteristics in the cold-cool season, while regions A, B, and C present the same DF index characteristics in the warm-hot time period. The discrete factor DF index reflects the load fluctuation characteristics of the relevant regions, that is, when the discrete factor DF is high or low, the overall load fluctuation is small, and the consistency of users' electricity consumption behavior is strong. When the discrete factor DF value is in the middle, the load end directly reflects the electricity consumption habits of different households and presents a larger fluctuation value.
[0042] For example, at the seasonal level, from winter to summer, as the temperature rises, the peak time of the discrete factor DF index gradually moves from noon (10:00-13:00) to evening (18:00-21:00). As the weather turns colder from autumn to winter, the peak time of the DF index gradually changes from evening to noon. Among the three regions A, B, and C, the temperature in region A does not change much. Although the DF index fluctuates during the day and at night with different seasons, it does not show a big difference compared with regions B and C from a year-round perspective, and the overall DF value dispersion is also smaller. Regions B and C show more obvious differences in electricity consumption consistency in the cold and hot seasons.
[0043] When the average daily temperature in region A is between 5℃ and 22℃ throughout the year, the temperature is generally stable and warm, which is generally reflected in the DF characteristics of warm-hot time. Region A is generally warm in winter and is not sensitive to the demand for heating. This also leads to large differences in the choice of heating appliances and other equipment among households, resulting in a decrease in the discrete factor DF index, that is, the consistency of electricity consumption, which shows that "more people use / prefer or habitual electricity consumption behavior."
[0044] When the average daily temperature is high (summer), the DF value shows an obvious regularity, that is, it remains at a low level from midnight to 9:00 in the morning, gradually rises to a peak from 9:00 to 19:30, and then gradually decreases until midnight.
[0045] The daily average temperature in different seasons in regions B and C has greater fluctuations. As the temperature rises, the peak time of the discrete factor DF index gradually moves from noon (10:00-13:00) to evening (18:00-21:00). As the weather turns colder from autumn to winter, the peak time of the discrete factor DF index gradually changes from evening to noon. At the daytime level, during the hotter season (May-September), different regions experienced a trough in the DF index between midnight (0:00) and morning (8:00), and a peak in the evening (18:00) and night (22:00).
[0046] The discrete factor DF characteristics are different in the cold-cool-warm-hot seasons, and present similar discrete factor DF indicator characteristics in the cold-cool seasons.
[0047] For example, for the distribution characteristics of user load fluctuations, such as Figure 2 As shown, the power consumption consistency in the household cluster load changes from high to low and then to high. In this embodiment, based on the distribution characteristics of user load fluctuations, a user profile is created, including: S1051. Construct violin plots based on discrete factors DF with one decimal place. A violin plot of the relationship; wherein the violin plot includes a box plot and a kernel density plot; S1052. Calculate the verification frequency and record the number of load fluctuations within the upper and lower limits, that is, The number of times is n, and the total amount of data in the data set D is N, then the verification frequency of the relevant fluctuation is f=n / N; The fluctuation data at each moment fluctuates around 0; as DF gradually increases, the load fluctuation first increases and then decreases, and the overall pattern is similar.
[0048] S1053. Normal distribution verification, using the normal distribution Principles to verify relevant data; In this embodiment, for a random variable y that conforms to a normal distribution, its probability density within a certain interval is calculated according to its mean μ and standard deviation σ through the probability density function of the normal distribution. For a random variable y that conforms to a normal distribution, its probability density function is: Among them, \mu represents the mean of the random variable y, and \sigma represents the standard deviation of the random variable y.
[0049] S1054. Set the upper and lower limits of the theoretical value fluctuation, and obtain the actual load value of the data set D at any time through the normal distribution model. Corresponding theoretical load fluctuation upper and lower limits and ; In this embodiment, the mean μ and standard deviation σ of the data set D are calculated. and can be expressed as the actual load value in data set D , in the range of μ±σ of the normal distribution model; .
[0050] If a wider range of probability coverage is required, multiples of 2σ and 3σ are used to calculate and For example, Figure 3 and Figure 4 As shown, the short-term load forecasting model constructed based on the neural network in step S106 is combined with the load value forecasting model and the load fluctuation distribution characteristics to complete the construction of the load interval forecasting model, including: S1061. Collect household load data and preprocess it. For specific implementation, refer to step S101. S1062. Decompose the load time series and the daily peak load series based on SSA, and reorganize the decomposed data based on actual data characteristics to extract effective load fluctuation information, and extract the main change trend and periodicity information in the data; S1063. Based on RC data training, process data with noise and uncertainty, and perform data convergence; S1064. Capture time series features in load fluctuation data based on LSTM neural network model; LSTM neural network model has memory ability and is suitable for processing time series data and predicting future values; S1065. Use the trained RC model and LSTM neural network model to predict the load data in the future and obtain the prediction sequence; S1066. The forecast sequence is reorganized, and the final load forecast value is obtained by combining the average value or weighted average value of two forecast value sequences.
[0051] In this embodiment, an algorithm based on an LSTM network is adopted. The LSTM model includes a forget gate and a memory gate, an input gate, and an output gate. It is composed of a network layer and a bitwise multiplication operation. The output of the previous unit and the input of the current unit are combined and input into the network layer together, and then the signal is output.
[0052] The output of the forget gate is , with a value range of [0,1], is multiplied by the state of the previous LSTM unit to determine the retention of information.
[0053] Taking seasonal information as an example, generally speaking, there is no correlation between summer load information and winter load information, and summer load usage has little effect on winter load. The forget gate can filter this information and "forget" it, and some historical information will not affect the current load value prediction.
[0054] The main function of the memory gate is to "remember" the information passed to the current unit in the previous sequence and the characteristic information of the current input. The load values at the same time of the day should show the same trend, and the loads at a certain time in the same season should have a strong correlation. The memory gate can determine which information in the input information and historical state information is retained.
[0055] In this embodiment, the memory gate is composed of two network layers and a bitwise multiplication operation. The output of the previous unit and the input of the current unit are combined and input into the network layer. The output is recorded as , The value range is [0,1]. The output of the previous unit and the input of the current unit are combined and input into another network layer. The output is recorded as , the value range is [-1,1]. and is the new information initial state vector of the current LSTM unit. The output of the memory gate is determined by the output of the above two neural network layers, and the updated information is , and added to the state of the current LSTM unit.
[0056] In this embodiment, the output gate forms the output of the current LSTM unit by integrating the new LSTM unit state, the output of the previous LSTM unit, and the input of the current unit. The output of the output gate is , the value range is [0,1]. After a After function processing Multiply to get the output of the current LSTM unit, is the state of the LSTM unit at the current moment.
[0057] Several groups of signals used for recombination are selected for prediction respectively to obtain prediction results of different decomposition signals. In this embodiment, the model also includes the selection of hyperparameters, which refer to the parameters set for the structure of the network construction, including the relevant hyperparameters such as the learning rate, the number of nodes in each layer of the LSTM, and the dropout value, etc., and a set of optimal hyperparameters is selected; the learning rate is set to [0.001, 0.01], 20 parameters are selected, and the number of iterations is 200; 1% is used as the threshold of the RMSE exhaustion rate to obtain the optimal signal order for reconstructing the sequence. According to the calculation, when After that, the RMSE decay rate of all prediction results is stable below 1%. Therefore, for short-term load value prediction, this study The signals are reorganized to obtain load value prediction results with relatively high accuracy.
[0058] The regional household load interval prediction method 100 based on user behavior proposed in the embodiment of the present invention collects household load data and performs preprocessing, uses interpolation method to process missing data, inserts average value or value calculated based on local polynomial, fills in missing data points, and ensures data integrity and continuity; decomposes load time series and daily peak load series, and reorganizes the decomposed data based on actual data characteristics to extract effective load fluctuation information, reduce the influence of noise or abnormal values, and improve the accuracy of feature extraction of time series data; constructs the distribution characteristics of user load fluctuations, establishes the linkage relationship between power consistency index and load fluctuation, and realizes user behavior pattern recognition, so that the uncertainty description based on user behavior can be superimposed on the accurate data prediction on a long time scale, which not only meets the accuracy of long time scale prediction, but also meets the generalization ability for different users; through normalization analysis, on the one hand, the training effect and generalization ability of the model are improved, and on the other hand, the actual range of power consumption data is hidden. It is difficult to directly infer specific information based on the processed data alone, which reduces the risk of the prediction model leaking a household's power consumption information. The regional household load interval prediction method 100 based on user behavior proposed in the embodiment of the present invention implements data preprocessing and hybrid modeling based on singular spectrum analysis, uses the whale optimization algorithm to adjust the hyperparameters, and optimizes the load data decomposition-reconstruction modeling process to optimize the neural network prediction algorithm, thereby obtaining the model with the best performance, improving the accuracy of the prediction model and optimizing the parameter adjustment speed.
[0059] Embodiment 2 Please refer to Figure 5 As stated, Figure 5 This is a schematic diagram of the structure of a regional household load interval prediction system based on user behavior provided in Embodiment 2 of the present invention. As shown in the figure, the regional household load interval prediction system 500 based on user behavior in this embodiment adopts the regional household load interval prediction method 100 based on user behavior proposed in Embodiment 1 above, and the system includes: A preprocessing module 501 is used to collect household load data and perform preprocessing; The decomposition and reorganization module 502 is used to decompose the load time series and the daily peak load series, and reorganize the decomposed data based on the actual data characteristics to extract effective load fluctuation information; An integration module 503, for defining the signal order for recombination, performing data integration, and constructing a practical feature data set; The behavior pattern recognition module 504 is used to construct the distribution characteristics of user load fluctuations, establish the linkage relationship between the power consumption consistency index and the load fluctuation, and realize the user behavior pattern recognition; A user portrait creation module 505, for creating a user portrait based on the distribution characteristics of user load fluctuations; The prediction model building module 506 is used to build a short-term load prediction model based on a neural network, combining the load value prediction model with the load fluctuation distribution characteristics to complete the construction of a load interval prediction model.
[0060] The regional household load interval prediction system 500 based on user behavior proposed in the embodiment of the present invention collects household load data and performs preprocessing through the preprocessing module 501, uses the interpolation method to process the missing data, inserts the average value or the value calculated based on the local polynomial, fills the missing data points, and ensures the integrity and continuity of the data; decomposes the load time series and the daily peak load series through the decomposition and reorganization module 502, and reorganizes the decomposed data based on the actual data characteristics to extract effective load fluctuation information, reduce the influence of noise or abnormal values, and improve the accuracy of feature extraction of time series data; constructs the distribution characteristics of user load fluctuations through the behavior pattern recognition module 504, establishes the linkage relationship between the power consumption consistency index and the load fluctuation, and realizes the identification and classification of different user behavior patterns, so that the uncertainty description based on user behavior can be superimposed on the accurate data prediction of the long time scale, which not only meets the accuracy of the long time scale prediction, but also meets the generalization ability for different users; through the normalization analysis, on the one hand, the training effect and generalization ability of the model are improved, and on the other hand, the actual range of the power consumption data is hidden. It is difficult to directly infer specific information based on the processed data alone, which reduces the risk of the prediction model leaking a certain household's power consumption information. The regional household load interval prediction system 500 based on user behavior proposed in the embodiment of the present invention implements data preprocessing and hybrid modeling based on singular spectrum analysis, uses the whale optimization algorithm to adjust the hyperparameters, and optimizes the load data decomposition-reconstruction modeling process to optimize the neural network prediction algorithm, thereby obtaining the model with the best performance, improving the accuracy of the prediction model and optimizing the parameter adjustment speed.
[0061] Embodiment 3 This embodiment provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the regional household load interval prediction method 100 based on user behavior as proposed in the above-mentioned embodiment 1.
[0062] It should be noted that the above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.
[0063] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for predicting regional household load intervals based on user behavior, characterized in that: include: Collect household load data and pre-process them; Decompose the load time series and daily peak load series, and reorganize the decomposed data based on the actual data characteristics to extract effective load fluctuation information; Define the signal order for recombination, perform data integration, and construct a useful feature dataset; Construct the distribution characteristics of user load fluctuations, establish the linkage relationship between power consumption consistency indicators and load fluctuations, and realize user behavior pattern recognition; Create user profiles based on the distribution characteristics of user load fluctuations; The short-term load forecasting model constructed based on neural network is combined with the load value prediction model and load fluctuation distribution characteristics to complete the construction of the load interval prediction model.
2. The method for predicting regional household load intervals based on user behavior according to claim 1, characterized in that: The collecting and preprocessing of household load data includes: Missing data processing: interpolation method is used to pre-process missing data; Interpolate average values or values calculated based on local polynomials to maintain data continuity; Normalization processing makes all data values in the original data range within [0,1].
3. The method for predicting regional household load intervals based on user behavior according to claim 2, characterized in that: The decomposition of the load time series and the daily peak load series, and the data reorganization based on the actual data characteristics of the decomposed data to extract effective load fluctuation information include: The load time series and daily peak load series are decomposed based on singular spectrum analysis, and the decomposed data are reorganized based on actual data characteristics to extract effective load fluctuation information.
4. The method for predicting regional household load intervals based on user behavior according to claim 3 is characterized in that: The load time series and the daily peak load series are decomposed based on singular spectrum analysis, and the decomposed data are reorganized based on actual data characteristics to extract effective load fluctuation information, including: Construct the vector matrix X according to the time series data of power load; calculate The eigenvalues and eigenvectors of according to The obtained eigenvalues and The obtained eigenvalues are combined to obtain the singular values, completing the singular value decomposition; Using the selected singular values and corresponding eigenvectors, the original matrix X is reconstructed to obtain the reconstructed matrix X', which is done by retaining the first k largest singular values, where k is the number of singular values selected for dimensionality reduction; The reconstructed matrix is compressed and the parts corresponding to the smaller singular values are removed to further reduce the dimension of the data and retain the main load characteristics; the ratio threshold is set to , if the singular value satisfy , then it is determined that the singular value is the smaller singular value; The reduced-dimensional matrix is restored to a time series, and the data restoration is completed by converting the compressed matrix back to the time series format to obtain the optimized and streamlined time series data.
5. The method for predicting regional household load intervals based on user behavior according to claim 4, characterized in that: The signal order for recombination is defined, data integration is performed, and a practical feature data set is constructed, including: Signal separation: The reconstructed sequence obtained by singular spectrum analysis is divided into low-order and high-order parts. The low-order reconstructed sequence is divided into trend signal and periodic signal, and the high-order reconstructed sequence is defined as noise signal. Signal order optimization, setting the reorganized signal order Ntextopt, calculating the error between the load forecast sequence after different order reorganization and the original load sequence, and using the root mean square error method to quantify the reorganized signal order Ntextopt.
6. The method for predicting regional household load intervals based on user behavior according to claim 5, characterized in that: The construction of the distribution characteristics of user load fluctuations, the establishment of a linkage relationship between the power consumption consistency index and the load fluctuation, and the realization of user behavior pattern recognition include: Noise signal calculation: calculate the remaining noise signal after the load data is reorganized, analyze its relationship with the discrete factor DF by calculating the difference between the reorganized sequence and the true load sequence, and fit the discrete factor DF and the fluctuation value to obtain the load fluctuation range based on different discrete factors DF; Indicator definition, the value of the discrete factor DF indicator is set to DF∈[0,1], where the household users' electricity usage behavior is divided into, including but not limited to, "consistent non-use", "a small number of people use / sudden electricity usage behavior", "more people use / favorite or habitual electricity usage behavior", and "consistent use"; Consistent demand calculation, calculate the relationship between the non-consistent demand and the consistent demand of the daily peak power consumption; Nonlinear relationship analysis, calculate the nonlinear relationship correlation between daily average temperature and daily total load.
7. The method for predicting regional household load intervals based on user behavior according to claim 6, characterized in that: The creating of user profiles based on the distribution characteristics of user load fluctuations includes: Construct a violin plot to construct DF and Violin plot of the relationship; Calculate the verification frequency and record the number of load fluctuations within the upper and lower limits, that is, The number of times is n, and the total amount of data in the data set D is N, then the verification frequency of the relevant fluctuation is f=n / N; Normal distribution verification, using the normal distribution Principles to verify relevant data; Set the upper and lower limits of the theoretical value fluctuation, and obtain the actual load value of data set D at any time through the normal distribution model. Corresponding theoretical load fluctuation upper and lower limits and .
8. The method for predicting regional household load intervals based on user behavior according to claim 7, characterized in that: In the distribution characteristics of the user load fluctuations, the power consumption consistency of the household cluster load is from high to low and then to high.
9. A regional household load interval prediction system based on user behavior, characterized in that: The system adopts the regional household load interval prediction method based on user behavior as described in claim 1, comprising: A preprocessing module, used to collect and preprocess household load data; The decomposition and reorganization module is used to decompose the load time series and the daily peak load series, and reorganize the decomposed data based on the actual data characteristics to extract effective load fluctuation information; An integration module, used to define the signal order for recombination, perform data integration, and construct a practical feature data set; The behavior pattern recognition module is used to construct the distribution characteristics of user load fluctuations, establish the linkage relationship between power consistency indicators and load fluctuations, and realize the identification and classification of different user behavior patterns; A user portrait creation module, used to create user portraits based on the distribution characteristics of user load fluctuations; The prediction model building module is used to build a short-term load prediction model based on a neural network, combining the load value prediction model with the load fluctuation distribution characteristics to complete the construction of the load interval prediction model.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method for predicting regional household load intervals based on user behavior as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Household load prediction method and system based on load characteristics and power consumption behavior mode
CN112418485A
Multi-energy load prediction method, device and equipment
CN113449904A
Short-term load prediction method and system based on artificial intelligence
CN117521889A
Method and system for performing data prediction
US20230281494A1
