User baseline load estimation method and system based on time sequence truncation

By generating multiple typical days based on the time series truncation method, combined with the clustering model and weighted average, the user baseline load estimation method in the existing technology solves the problem of information loss and noise when new users or environment changes, and significantly improves the accuracy of estimation. Spend.

CN118761547APending Publication Date: 2024-10-11CENT CHINA BRANCH OF STATE GRID CORP OF CHINA +1
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410859774.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

When the existing user baseline load estimation method has little historical load data for new users and the power consumption is suddenly affected by the environment, it is easy to lose the amount of information or mix in abnormal power consumption noise when estimating through the control group method, resulting in distortion of the baseline load assessment results, affecting Users’ enthusiasm for participating in demand response.

Method used

Using a method based on time series truncation, by calculating the difference value and maximum tolerance of the user's electricity load sequence, the sequence is truncated to generate multiple typical days to form a typical day vector set, and cluster model training and weighted average are used to improve the baseline load. The accuracy of the estimate.

Benefits of technology

Through time series truncation processing, the user's power consumption habit information is retained, which improves the clustering effect and the accuracy of the baseline load assessment results, especially in small sample scenarios, and takes into account more data information to improve the estimation accuracy. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118761547A_ABST
    Figure CN118761547A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of user baseline load estimation, and discloses a user baseline load estimation method and system based on time sequence truncation, and the method comprises the steps: collecting a multi-day electrical load sequence of a to-be-estimated baseline load user and other users in the same region, and carrying out the smoothing and normalization of the multi-day electrical load sequence to form a data set; performing time sequence truncation on each sample in the data set by adopting a time sequence truncation method to generate a typical day vector set; taking the typical day vector set as a sample set to train a clustering model, and obtaining the centroid of each cluster under the optimal clustering and a typical day sample contained in each cluster; based on the mass center of each cluster, determining a cluster C * which has the highest similarity with the power utilization habit of the to-be-estimated baseline load user in the non-response time period of the response day; and carrying out weighted averaging on typical daily samples in the cluster C * and then carrying out de-normalization to obtain a load baseline estimation value of the user. Wherein the weight of the weighted average is obtained by a combinatorial optimization method. The method can improve the accuracy of user baseline load estimation, and is also suitable for the condition of a small number of users.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of user baseline load estimation, and more specifically, relates to a user baseline load estimation method and system based on time series truncation. Background Art

[0002] The peak of system power load continues to grow, which brings great challenges to the real-time supply and demand balance control of the power system. As an important measure of demand-side management in the power sector, demand response guides power users to change their original power consumption patterns and use electricity in peak hours through economic incentives, thereby reducing the scale of peak loads and reducing the operating pressure of the power system. Among them, the incentive-based demand response scheme has shown great potential due to its faster and more economical adjustment capabilities. The implementation of this scheme requires power load data when users do not participate in the response, that is, user baseline load data, which is used to calculate the user's demand response amount, and then determine the benefits of power users, power grid companies, power generation companies and society in participating in the demand response project. However, once users participate in the response, the real user baseline load cannot be measured by the metering device, so it is necessary to estimate and predict the user baseline load.

[0003] In the existing research on user baseline load estimation, the baseline load of users is mainly estimated by the control group method to address the common practical problems of little historical load data for new users and sudden changes in user electricity consumption due to environmental influences. The control group method uses responding users as the demand response DR (Demand Response) group and non-responding users as the control group; the historical data of each user is aggregated to generate a "typical day" for each user, representing their electricity usage habits; then the control group users with the electricity usage habits closest to those of the DR group users are found, and the electricity usage data of these control group users are aggregated as the baseline load estimation value for the DR group users during the response period. The two aggregation steps in the above method are often simple processing such as taking the average value. Among them, the aggregation method of directly averaging all daily load data of users to generate a single "typical day" will lose information or mix in abnormal electricity noise, thereby having a negative impact on the clustering effect. In addition, the simple control group user data aggregation method (during the second aggregation) samples the same weight for the "typical days" in the best cluster obtained, which will also lose the characteristics of each control group user, resulting in insufficient use of information on user electricity usage habits, distorting the baseline load assessment results, and thus affecting the enthusiasm of users to participate in demand response. Summary of the invention

[0004] In view of the above defects or improvement needs of the prior art, the present invention provides a user baseline load estimation method and system based on time series truncation, which aims to improve the accuracy of user baseline load estimation.

[0005] To achieve the above object, according to a first aspect of the present invention, a method for estimating a user baseline load based on time series truncation is provided, comprising:

[0006] Step S1: Collect the power load sequences of the user to be estimated baseline load and N-1 other users in the same area at different times of day D, and form a data set after smoothing and normalization;

[0007] Step S2: Calculate the sum of the absolute values ​​of the difference between the power load sequence of each user in the data set at the same time on two consecutive days, and use it as the difference value of the two consecutive days to obtain the difference value set corresponding to each user; each difference value in the difference value set Maximum tolerance of the difference with the determined value θ Compare, in When the dth adjacent to the electricity load sequence of user n before and d after The sequence is truncated at two days to obtain the truncated subsequences corresponding to the power load sequence of each user, n = 1, 2, ..., N; and the typical day corresponding to each subsequence is generated to form the typical day set corresponding to each user; wherein the typical day set corresponding to each user together constitutes the required typical day vector set;

[0008] Step S3: using the typical day vector set as a sample set to train a clustering model, and obtaining the centroid of each cluster under the optimal clustering and the typical day samples contained in each cluster;

[0009] Step S4: Based on the centroid of each cluster, determine the cluster C with the highest similarity to the power consumption habits of the estimated baseline load users during the non-response period on the response day * ; for cluster C * After taking the weighted average of all typical daily samples in the data set and then normalizing them, the load baseline estimate of the user is obtained.

[0010] Furthermore, in step S2, a typical day corresponding to each subsequence is generated, including:

[0011] If the subsequence only contains a single-day electricity load data, the subsequence is directly used as a typical day vector of the corresponding user; otherwise, the subsequence containing multiple days of electricity load data is averaged and used as a typical day vector of the corresponding user.

[0012] Furthermore, in S2, the maximum tolerance of the difference value is determined. θ ,include:

[0013] Take the difference values ​​in the difference value set corresponding to all users as a whole, sort them from large to small, and take the minimum value of the first θ% elements as the maximum tolerance of the difference value θ.

[0014] Furthermore, in step S4, cluster C is sorted using the optimal weight. * All typical day samples in the data are weighted averaged; wherein the optimal weight is calculated by:

[0015] Cluster C * The load data obtained by weighting all typical daily samples in the user n to be estimated baseline load * The combined residual e of the power load data at the non-response time t t Minimum is the optimization goal, and the objective function is constructed. After solving, the optimal weight corresponding to each typical day sample is obtained; wherein, the objective function is:

[0016]

[0017] In the formula, l′ n*,d*,t Indicates the user n whose baseline load is to be estimated * In response to * The normalized power load sequence at the non-response time t; m * Cluster C * The number of all typical daily samples in w i is the weight of the i-th typical day sample to be optimized; x i,t represents the power load data of the i-th typical day sample at the non-response time t; The response period.

[0018] Further, in S4, based on the centroid of each cluster, the cluster C with the highest similarity to the power consumption habits of the estimated baseline load users during the non-response period on the response day is determined. * , including: Calculate the estimated baseline load user n * In response to * The normalized power load sequence L′ n*,d* The Euclidean distance from the centroid of each cluster obtained in S3 during the non-response period;

[0019] The cluster corresponding to the centroid with the closest Euclidean distance is selected as the cluster C with the highest similarity to the electricity consumption habits of the estimated baseline load users during the non-response period on the response day. * .

[0020] Furthermore, in S1, the electricity load sequence includes the historical load data of each user before the response period of the response day, and the load data of each user after the response period of the response day.

[0021] Further, in S1, the normalization adopts Min-Max normalization;

[0022] The smoothing is mean smoothing, including the average of adjacent moments and the average of adjacent days. If the power load data of user n∈U at time t on day d is l n,d,t When missing or abnormal, the average of adjacent moments is used as l n,d,t The calculation method of the adjacent average of the substitution value is:

[0023]

[0024] When the time-constant average cannot be calculated, the day-constant average is used as l n,d,t The alternative value is the adjacent average of the day as follows:

[0025]

[0026] Among them, the user set U={1,2,…,N}, d=1,2,…,D.

[0027] Furthermore, in S3, the clustering model uses a K-means algorithm for clustering.

[0028] According to a second aspect of the present invention, there is provided a user baseline load estimation system based on time series truncation, comprising a computer-readable storage medium and a processor;

[0029] The computer-readable storage medium is used to store executable instructions;

[0030] The processor is used to read the executable instructions stored in the computer-readable storage medium to execute the user baseline load estimation method described in any one of the first aspects.

[0031] According to a third aspect of the present invention, there is provided a computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the method for estimating a user baseline load as described in any one of the first aspects is implemented.

[0032] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects:

[0033] (1) Considering that the existing method directly averages all daily load data of users to generate a single "typical day", not only does it not take into account the various electricity consumption habits that users may have, but the "typical day" generated in this way may be affected by abnormal daily load data and mixed with noise, causing information distortion, the user baseline load estimation method based on time series truncation of the present invention performs the designed time series truncation processing on the electricity load sequence of each user as a way to generate a set of "typical days" corresponding to each user. Specifically, according to the difference value of two adjacent days, Maximum tolerance of the difference with the determined value θThe difference reflects the difference in electricity usage habits of users in two consecutive days. , indicating that the user's electricity consumption habits in the two consecutive days are quite different. Therefore, in the adjacent d-th order of the electricity load sequence of user n, before and d after The sequence is truncated at two days so that the two truncated subsequences represent different electricity usage habit information. In this way, the "typical day" vector set composed of multiple "typical days" corresponding to each user retains the electricity usage habit information of each user to the greatest extent, and truncating two sequences with large differences in electricity usage habits can also avoid the influence of abnormal electricity usage noise on other information. Subsequent clustering based on the "typical day" vector set can improve the clustering effect, thereby improving the accuracy of the baseline load assessment results.

[0034] Compared with the method in the prior art that each user ultimately generates one "typical day", the method of the present invention that generates multiple "typical days" for each user increases the number of sample sets for clustering model training, improves the effect of clustering model training, and further improves the accuracy of baseline load assessment results, especially in small sample scenarios, the advantages are more obvious.

[0035] (2) Furthermore, the present invention determines the maximum tolerance of the difference value θ In the method, the choice of θ is related to the computing power limit. The larger θ is, the more computing power is consumed, and the more power usage habit information is retained. In practical applications, the amount of retained information can be manually adjusted according to the actual computing power situation. For example, when the computing power is sufficient or the samples are too few, more truncation can be performed; when the computing power is scarce or the samples are sufficient, fewer truncation can be performed.

[0036] (3) Furthermore, the present invention provides a method for cluster C * The optimal weight is calculated for each "typical day" sample in cluster C. * All “typical day” samples in cluster C are aggregated using a combination optimization method. * The optimization goal is to minimize the difference between the load obtained by weighting all the "typical day" samples in the cluster and the power load of the target user on the response day. The optimal weight of each sample in the cluster required to generate the user's baseline load by optimizing and adjusting the weighted average is compared with the existing method of using complete average. This method has different considerations for different samples in the cluster, better retains the differences between the samples, and further improves the accuracy of the baseline load assessment results.

[0037] (4) Furthermore, compared with the method in the prior art that only uses historical data before the demand response period to estimate the baseline load, the present invention takes into account that the user baseline load estimation is performed after the demand response is completed, while the data after the actual demand response is completed can still be obtained. Regardless of whether the data before or after the demand response is completed, the data can reflect the user's electricity usage habits. Therefore, the electricity load data contained in the electricity load data sequence of each user collected in the present invention not only includes the historical load data of each user before the response period of the target user response day, but also includes the load data of each user after the response period of the target user response day. In this way, more data information is used for baseline load estimation, especially when there is little historical data, more sample information is provided, which further improves the accuracy of the estimation.

[0038] (5) As a preferred method, Min-Max normalization can be used to remove the differences among users caused by their electricity consumption scale, retaining the electricity consumption habits of each user (i.e., the relationship between electricity load changes over time and environment), so that the subsequent clustering algorithm no longer classifies users according to their electricity consumption scale. When the number of clusters is constant, each cluster contains more samples, providing more user information for aggregation. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 is a schematic diagram of a user baseline load estimation method based on time series truncation in an embodiment of the present invention;

[0040] Figure 2 It is a schematic diagram of a specific process of generating a “typical day” by time series truncation in an embodiment of the present invention;

[0041] Figure 3 is a schematic diagram of the distribution of Diff data in an embodiment of the present invention;

[0042] Figure 4 Schematic diagram of evaluation effect of different k values ​​of clustering algorithm in an embodiment of the present invention;

[0043] Figure 5 It is a schematic diagram of the baseline estimation effect for a random user in an embodiment of the present invention. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0045] Example 1

[0046] like Figure 1 As shown, the user baseline load estimation method based on time series truncation in the embodiment of the present invention mainly includes:

[0047] Step S1: Data collection and preprocessing: Collect the power load data series of the baseline load users to be estimated and other users in the same area, and perform smoothing and normalization preprocessing to form a standardized experimental data set. Among them, the power load data series of each user includes the power load data of each user at different times on day D; the power load data series of each user not only includes the historical load data of each user before the response period of the target user response day, but also includes the load data of each user after the response period of the target user response day.

[0048] Step S2: Based on the experimental data set, a time series truncation method is used to generate a "typical day" vector set; specifically, it includes:

[0049] Calculate the sum of the absolute values ​​of the differences in the power load sequences of each user at the same time on two consecutive days, and use it as the difference value of the two consecutive days to obtain the difference value set corresponding to each user; Maximum tolerance of the difference with the determined value θ Compare the difference values When the dth adjacent to the electricity load sequence of user n is required before and d after The sequence is truncated at two days, and then the ordered subsequences corresponding to the power load sequence of each user are obtained; and the "typical day" corresponding to each subsequence is generated to form the "typical day" set corresponding to each user; wherein the "typical day" set corresponding to each user together constitutes the required "typical day" vector set;

[0050] Step S3: Use the “typical day” vector set as a sample set to train the clustering model, and obtain the cluster labels of each “typical day” sample and the centroid of each cluster under the optimal clustering;

[0051] Step S4: Based on the centroid of each cluster, determine the cluster C with the highest similarity to the power consumption habits of the estimated baseline load users during the non-response period on the response day * ; for this cluster C * All “typical day” samples are weighted averaged and then normalized to obtain the load baseline estimate of the user.

[0052] Specifically, in S1, assuming that the electric meter collects user load data T times in a day, the load curve of the day is divided into T moments, and the load at each moment corresponds to the load data collected by the electric meter. * sky The number of users who respond to demand during the period n* When estimating the baseline load of a user, it is first necessary to collect the load data series related to other users in the same area and preprocess all the data to form a standardized data set. The specific data collection and preprocessing steps are shown in steps S101 and S102 respectively.

[0053] Step S101: Data collection. Collect target user n * And the power load data of N-1 other users in the same area within D days. At this time, the user set is U = {1,2,…,n * ,…,N}; where target user n * That is, the baseline load user to be estimated. In the embodiment of the present invention, the D day contains not only the historical data of the target user before the response day, but also the daily load data after the response day. Let l n,d,t represents the power load value of user n∈U at time t on the dth day, d=1,2,…,D, then the load curve of user n on the dth day is represented by the following vector:

[0054] L n,d =(l n,d,1 ,l n,d,2 ,…,l n,d,T )∈R T

[0055] Step S102: data preprocessing, including smoothing and normalizing the actual values ​​and abnormal values ​​in the power load sequence of N users within D days; in the embodiment of the present invention, mean smoothing and Min-Max normalization are adopted.

[0056] Specifically, mean smoothing includes: if the power load value l of user n∈U at time t on day d is n,d,t When missing or abnormal, the average of adjacent moments is used as its replacement value, that is:

[0057]

[0058] When the adjacent average of time cannot be calculated, the adjacent average of day is used as its substitute value, that is:

[0059]

[0060] Data normalization: For all daily data L n,dMin-Max normalization is adopted to remove the differences caused by the scale of electricity consumption of each user, and retain the electricity consumption habits of each user (i.e. the relationship between electricity load changes over time and environment), so that the clustering algorithm no longer classifies users by electricity scale. When the hyperparameter k is constant, each cluster contains more samples, providing more user information for aggregation. Among them, considering that after the demand response, the load in the response period will mutate due to the response requirements, direct normalization will affect the scale of electricity consumption of users, and the data L of the demand response day and other time periods will be n,d Min-Max normalization includes:

[0061] When n=n * And d = d * That is, the data L of the target user during the non-demand response period on the demand response day n*,d* , the normalized data L′ n*,d* for:

[0062]

[0063] In addition to the above, Normalized data L′ n,d for:

[0064]

[0065] The normalized final result is expressed as:

[0066] L′ n,d =(l′ n,d,1 ,l′ n,d,2 ,…,l′ n,d,T )∈R T

[0067] Among them, a sample in the formed data set is the power load data of a user at different times on day D.

[0068] Specifically, Figure 2 As shown, S2 includes:

[0069] Step S201: Calculate the difference value to obtain a set of difference values ​​corresponding to each user. Calculate the absolute value of the difference between the loads of user n at the same time on two consecutive days as the difference between the two days, and then obtain the difference value set corresponding to each user. n,d (n∈U,d=1,2,…,D), And n≠n * When the load sequence is defined as an ordered set {L′ n,d |d=1,2,…,D};n=n *When the target user load sequence is defined as an ordered set {L′ n*,d |d=1,2,…,D and d≠d *}. For user n on two consecutive days d before and d after The difference value The calculation is as follows:

[0070]

[0071] Among them, d before <d after ;

[0072] All difference values ​​of this user are recorded as:

[0073]

[0074] Then the difference value set of all users is recorded as:

[0075]

[0076] As a further design of the present invention, in an embodiment of the present invention, a method for determining a maximum tolerance of a difference value is provided. θ For the method, refer to step S202.

[0077] Step S202: Determine the maximum tolerance of the difference value θ After sorting the difference values ​​in the difference value set Diff of all users from large to small, take the minimum value of the first θ% elements as the tolerance θ It can be seen that the choice of θ is related to the computing power limit. The larger θ is, the more computing power is consumed, and the more power usage habit information is retained. In practical applications, the amount of retained information can be manually adjusted according to the actual computing power situation. For example, when the computing power is sufficient or the samples are too few, more truncation can be performed; when the computing power is scarce or the samples are sufficient, fewer truncation can be performed.

[0078] Step S203: Time series truncation and generation of a “typical day” vector set. and d after ,like Then it means that the load sequence of user n is before and d after The day needs to be truncated and marked as (n,d before ,d after ). Traverse the electricity load sequences of all users and obtain the tag set corresponding to each user. For example, the tag set of user n is:

[0079] {(n,d1,d2),(n,d3,d4),…}

[0080] This tag set indicates that the electricity load sequence of user n is truncated between days d1 and d2, and between days d3 and d4.

[0081] According to the tag set, the power load sequence {L′ n,d |d=1,2,…} is truncated into multiple subsequences. For example, the subsequences corresponding to the above tag set are defined as ordered sets:

[0082] {L′ n,d |d=1,2,…,d1},{L′ n,d |d=d2,…,d3},{L′ n,d |d=d4,…},…

[0083] If the subsequence contains only a single-day load data, it is directly used as a "typical day" vector of the user; otherwise, for a subsequence containing multiple days of load data such as {L′ n,d |d=d2,…,d3}, take the average as a “typical day” vector for the user, and get all the “typical day” vectors corresponding to each user:

[0084]

[0085] Here, |d| refers to the number of values ​​that the variable d=d2,…,d3 can take.

[0086] All “typical day” vectors corresponding to all users constitute the above-mentioned “typical day” vector set.

[0087] Specifically, in S3, the “typical day” vector set is used as a sample set to train the clustering model, and the cluster labels of each “typical day” and the centroid of each cluster under the optimal clustering are obtained, including:

[0088] S301: The “typical day” vector set obtained in S2 is used as a sample set, the number of clusters k is set, and the clustering model is trained to obtain the centroid of each cluster and the samples (cluster labels) contained in each cluster; in the embodiment of the present invention, the clustering model uses the K-means algorithm for clustering, which specifically includes:

[0089] (1) Take the “typical day” vector set obtained in S2 as the sample set D′:

[0090] D′={x1,x2,…,x m},x m ∈R T

[0091] Among them, m is the number of “typical days” in the “typical day” vector set; one “typical day” is a training sample.

[0092] (2) Randomly select k samples from the sample set D′ as the initial centroids {c1, c2, …, c k},c i ∈R T , i=1,2,…,k, corresponding to the clusters {C1,C2,…,C k};

[0093] (3) Calculate each sample x in the sample set D′ j With each centroid c i The distance of ||x j -c i ||2, i = 1, 2, ..., k, j = 1, 2, ..., m, ||·||2 refers to the Euclidean distance; the current sample x j Divide into the cluster with the nearest centroid until each sample is divided into the corresponding cluster, and get the currently updated clusters C i ;

[0094] (4) Calculate the new centroid c of each updated cluster i :

[0095]

[0096] Among them, |C i | is cluster C i The number of samples in cluster C, x is i A sample of .

[0097] (5) Repeat (3)-(4) and stop when the maximum number of iterations or the minimum adjustment amplitude is reached. Then, the centroids of each cluster and the samples contained therein corresponding to the current k value are obtained.

[0098] S302: Adjust the number of clusters k as a hyperparameter, evaluate the clustering effects of different k values, obtain the optimal clustering model, and then obtain the cluster labels of each "typical day" and the centroid of each cluster under the optimal clustering. In the embodiment of the present invention, the k value is adjusted by a grid search method; the clustering effects of different k values ​​are evaluated by DBI (Davies-Bouldin Index) and Silhouette index.

[0099] Among them, the definition of DBI is as follows:

[0100]

[0101] Among them, s i Cluster C i The average Euclidean distance between each point and the centroid, d ij is the Euclidean distance between the centroids of clusters i and j.

[0102] The Silhouette index is defined as follows:

[0103]

[0104] Among them, a refers to the average Euclidean distance between a sample and other samples in the same cluster, and b refers to the average Euclidean distance between a sample and all other samples in the next closest cluster. The average value of the Silhouette index of all samples is used as the final evaluation criterion.

[0105] The smaller the DBI and Silhouette indexes, the better the clustering effect. As the value of k increases, the index tends to decrease, but too large a k not only increases the computing power, but is also not conducive to reflecting the user's electricity usage patterns. Therefore, in the embodiment of the present invention, the clustering model is trained by gradually increasing the k value through the grid search method, and the clustering model corresponding to the appropriate DBI and Silhouette indexes is selected as the final model, and the labels of each sample cluster and the centroid of each cluster under the model are saved.

[0106] Specifically, in S4, for the user n to be estimated * In the d * Heaven The baseline load of the period, i.e. You need to first obtain the user's electricity load sequence for the day:

[0107] L′ n*,d* =(l′ n*,d*,1 ,l′ n*,d*,2 ,…,l′ n*,d*,T )∈R T

[0108] When developing a baseline user load estimate, include:

[0109] Step S401: Similarity matching. Calculate the user n whose baseline load is to be estimated * The load sequence L′ on the response day n*,d* and the centroids of each cluster {c1,c2,…,c k}During the non-response period on the response day The Euclidean distance is used to measure the distance between user n * The similarity of electricity usage habits; select the cluster C with the closest distance * As the cluster with the highest similarity to the estimated baseline load users’ electricity consumption habits during the non-response period on the response day; among them, cluster C * Contains the “typical day” samples {x1,x2,…,x m*}, each sample contains the power load data of T moments, and the sample It can be represented as a vector It can also be seen from this step that in the embodiment of the present invention, when performing similarity matching, not only historical data before the response period is used, but also data that does not belong to the response period can be used.

[0110] Step S402: Calculate cluster C * Different from the prior art method of sampling the same weight for all the “typical days” in the best cluster, in the embodiment of the present invention, a method for sampling the “typical days” in the best cluster C is provided. * The optimal weight is calculated for each "typical day" sample in cluster C. * All “typical day” samples in cluster C are aggregated using a combination optimization method. * The optimization goal is to minimize the difference between the load obtained by weighting all the "typical day" samples in the cluster and the power load of the target user during the non-response period of the response day. The weights of each sample in the cluster required to generate the user's baseline load by optimizing and adjusting the weighted average are compared. Compared with the existing method of using complete average, this method has different considerations for different samples in the cluster, better retains the differences between each sample, and thus improves the accuracy of the baseline load assessment results.

[0111] Specifically, we calculate cluster C * The weights of all “typical day” samples in , including:

[0112] Let e it = l′ n*,d*,t -x i,t ∈R, where e it Represents cluster C * The i-th “typical day” sample x i,t The user n with the baseline load to be estimated * Residual of the load value at time t, i=1,2,…,m * ;

[0113] Cluster C * The weight of each “typical day” is w i ,i=1,2,…,m * , then C * All “typical day” samples and the users n whose baseline load is to be estimated * The combined residual e of the load value at time t t for:

[0114]

[0115] Take the combined residual e t Minimum is the optimization goal, and the optimization problem is constructed:

[0116]

[0117] Among them, the constraints ensure that the combined residual e t Middle pair l′ n*,d*,t The correctness of the decomposition, and considering the estimated user n * There may be a negative correlation between the electricity consumption curve and the “typical day” curve, and no non-negative constraint is imposed on the weights.

[0118] make Its elements Among them, e jt Represents cluster C * The jth “typical day” sample x j,t The user n with the baseline load to be estimated * The residual of the load value at time t; The above optimization problem can be transformed into:

[0119] minF=W T EW

[0120]

[0121] The optimal weight W0 can be obtained by using the Lagrange multiplier method:

[0122]

[0123] Step S403: weighted average. Based on the optimal weight W0 obtained above, the user n to be estimated baseline load * Baseline load estimate for:

[0124]

[0125] Step S404: Denormalization. Based on the estimated baseline load user n in step S1 * No. d * Normalization parameter max of daily load data t (L n*,d*,t ), min t (L n*,d*,t ),right The final baseline load estimate was calculated by denormalization.

[0126]

[0127] The method of the present invention is further illustrated below using the REFITPowerData dataset. The dataset includes 8s granularity electrical energy usage data of 20 households from the end of 2013 to the middle of 2015. Considering the simplicity of the experiment, the research range is selected from 2014-06-01 to 2014-06-20, and the time granularity is aggregated to hours, and the electricity consumption of each appliance is aggregated to the total household electricity consumption.

[0128] Step S1: Data collection and preprocessing. Since the data set does not contain the response period, the 13th day data of the 12th household is randomly selected to simulate the user's demand response from 12 to 14 o'clock, and the baseline estimation of this period is performed. The data of the 10th and 11th households in the period from 2014-06-01 to 2014-06-20 have some continuous missing values, and the time-adjacent average method cannot be calculated, so the day-adjacent average method is used. Then all user day data are normalized.

[0129] Step S2: Time series truncation generates a “typical day”. Figure 3 The figure shows the distribution histogram of all difference values. Specifically, the mean is 4.6898, the median is 4.5206, and there are 380 difference values. The first 25% of the difference values ​​are selected for truncation, at which tolerance_θ = 5.5, and 125 "typical days" are finally obtained after truncation.

[0130] Step S3: Clustering model training. In this embodiment, the k value is set to 0-80 for experimentation. The clustering evaluation results are as follows: Figure 4 As shown in Figure 2, it can be seen that when k≈10, the Silhouette index is significantly improved. Considering the steady decline of the DBI index, k=15 is finally selected for clustering.

[0131] Step S4: Generate user baseline load estimation. The similarity matching result is the 8th cluster, which has 8 "typical day" samples. The average value estimation and weighted value estimation are performed respectively, and the results are as follows: Figure 5 As shown, it can be seen that compared with the traditional averaging method, the weighted value of the present invention improves the estimation effect and makes full use of the different characteristics of the "typical day". Finally, the estimated value needs to be denormalized as the true baseline estimate; Figure 5 The weighted value estimation in is the weighted value estimation of cluster C in the embodiment of the present invention. * All the "typical day" samples in the data are aggregated by combined optimization to estimate the user baseline load; Figure 5 The weighted value estimates in are not denormalized, but this does not affect the effect display.

[0132] Considering that the existing method directly averages all daily load data of users to generate a single "typical day", not only does it not take into account the various electricity consumption habits that users may have, but the "typical day" generated in this way may be affected by abnormal daily load data, mixed with noise, and distort the information, the user baseline load estimation method based on time series truncation of the present invention performs the designed time series truncation processing on the electricity load sequence of each user as a way to generate the "typical day" set corresponding to each user. Specifically, according to the difference value of two adjacent days, Maximum tolerance of the difference with the determined value θ The difference reflects the difference in electricity usage habits of users in two consecutive days. , indicating that the user's electricity consumption habits in the two consecutive days are quite different. Therefore, in the adjacent d-th order of the electricity load sequence of user n, before and d after The sequence is truncated at two days so that the two truncated subsequences represent different electricity usage habit information. In this way, the "typical day" vector set composed of multiple "typical days" corresponding to each user retains the electricity usage habit information of each user to the greatest extent, and truncating two sequences with large differences in electricity usage habits can also avoid the influence of abnormal electricity usage noise on other information. Subsequent clustering based on the "typical day" vector set can improve the clustering effect, thereby improving the accuracy of the baseline load assessment results.

[0133] Compared with the method in the prior art that each user ultimately generates one "typical day", the method of the present invention that generates multiple "typical days" for each user increases the number of sample sets for clustering model training, further improves the effect of clustering model training, and further improves the accuracy of baseline load assessment results, especially in small sample scenarios, the advantages are more obvious.

[0134] Compared with the method in the prior art that only uses historical data before the demand response period to estimate the baseline load, the present invention takes into account that the user baseline load estimation is performed after the demand response is completed, and the data after the actual demand response is completed can still be obtained, and the data before or after the demand response can reflect the user's electricity usage habits. Therefore, the electricity load data contained in the electricity load data sequence of each user collected in the present invention not only includes the historical load data of each user before the response period of the target user response day, but also includes the load data of each user after the response period of the target user response day. In this way, more data information is used for baseline load estimation, especially when there is little historical data, more sample information is provided, which further improves the accuracy of the estimation.

[0135] In summary, the method of the present invention not only draws on the excellent load estimation ability of the control group method for abnormal changes, but also retains as much user electricity usage habit information as possible, and can manually adjust the amount of retained information according to the actual computing power situation, ultimately improving the accuracy of baseline load estimation. At the same time, a combinatorial optimization method is used to aggregate the samples in the cluster, and the weights of each sample in the cluster required to generate the user baseline load by minimizing the residual and optimizing the weighted average adjustment. This method has different considerations for different samples in the cluster, and better retains the differences between each sample. A more accurate prediction effect is also shown in the embodiment. In addition, the method of the present invention can provide more sample data, and can use more user habit information for baseline load estimation, especially in small sample scenarios, the advantage is more obvious.

[0136] Example 2

[0137] An embodiment of the present invention provides a user baseline load estimation system based on time series truncation, including a computer-readable storage medium and a processor;

[0138] Computer-readable storage media for storing executable instructions;

[0139] The processor is used to read the executable instructions stored in the computer-readable storage medium to execute the user baseline load estimation method in Example 1. The relevant technical solutions refer to the description in Example 1, which will not be repeated here.

[0140] Example 3

[0141] The embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the method for estimating user baseline load in embodiment 1 is implemented. For the related technical solutions, please refer to the description in embodiment 1, which will not be repeated here.

[0142] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A user baseline load estimation method based on time series truncation, characterized in that: include: Step S1: Collect the power load sequences of the user to be estimated baseline load and N-1 other users in the same area at different times of day D, and form a data set after smoothing and normalization; Step S2: Calculate the sum of the absolute values ​​of the difference between the power load sequence of each user in the data set at the same time on two consecutive days, and use it as the difference value of the two consecutive days to obtain the difference value set corresponding to each user; each difference value in the difference value set Maximum tolerance of the difference with the determined value θ Compare, in When the dth adjacent to the electricity load sequence of user n before and d after The sequence is truncated at two days to obtain the truncated subsequences corresponding to the power load sequence of each user, n = 1, 2, ..., N; and the typical day corresponding to each subsequence is generated to form the typical day set corresponding to each user; wherein the typical day set corresponding to each user together constitutes the required typical day vector set; Step S3: using the typical day vector set as a sample set to train a clustering model, and obtaining the centroid of each cluster under the optimal clustering and the typical day samples contained in each cluster; Step S4: Based on the centroid of each cluster, determine the cluster C with the highest similarity to the power consumption habits of the estimated baseline load users during the non-response period on the response day * ; for cluster C * After taking the weighted average of all typical daily samples in the data set and then normalizing them, the load baseline estimate of the user is obtained.

2. The user baseline load estimation method according to claim 1, characterized in that: In step S2, a typical day corresponding to each subsequence is generated, including: If the subsequence only contains a single-day electricity load data, the subsequence is directly used as a typical day vector of the corresponding user; otherwise, the subsequence containing multiple days of electricity load data is averaged and used as a typical day vector of the corresponding user.

3. The user baseline load estimation method according to claim 1, characterized in that: In S2, the maximum tolerance of the difference value is determined θ ,include: Take the difference values ​​in the difference value set corresponding to all users as a whole, sort them from large to small, and take the minimum value of the first θ% elements as the maximum tolerance of the difference value θ .

4. The method for estimating user baseline load according to claim 1, characterized in that: In step S4, cluster C is sorted using the optimal weight. * All typical day samples in the data are weighted averaged; wherein the optimal weight is calculated by: Cluster C * The load data obtained by weighting all typical daily samples in the user n to be estimated baseline load * The combined residual e of the power load data at the non-response time t t Minimum is the optimization goal, and the objective function is constructed. After solving, the optimal weight corresponding to each typical day sample is obtained; wherein, the objective function is: In the formula, Indicates the user n whose baseline load is to be estimated * In response to * The normalized power load sequence at the non-response time t; m * Cluster C * The number of all typical daily samples in w i is the weight of the i-th typical day sample to be optimized; x i,t represents the power load data of the i-th typical day sample at the non-response time t; The response period.

5. The user baseline load estimation method according to claim 1, characterized in that: In S4, based on the centroid of each cluster, the cluster C with the highest similarity to the estimated baseline load user’s electricity usage habits during the non-response period on the response day is determined. * , including: Calculate the estimated baseline load user n * In response to * Normalized power load series The Euclidean distance from the centroid of each cluster obtained in S3 during the non-response period; The cluster corresponding to the centroid with the closest Euclidean distance is selected as the cluster C with the highest similarity to the electricity consumption habits of the estimated baseline load users during the non-response period on the response day. * .

6. The user baseline load estimation method according to any one of claims 1 to 5, characterized in that: In S1, the electricity load sequence includes the historical load data of each user before the response period of the response day, and the load data of each user after the response period of the response day.

7. The method for estimating user baseline load according to claim 6, characterized in that: In S1, the normalization adopts Min-Max normalization; The smoothing is mean smoothing, including the average of adjacent moments and the average of adjacent days; If the power load data of user n∈U at time t on day d is l n,d,t When missing or abnormal, the average of adjacent moments is used as l n,d,t The calculation method of the adjacent average of the substitution value is: When the time-constant average cannot be calculated, the day-constant average is used as l n,d,t The alternative value is the adjacent average of the day as follows: Among them, the user set U={1,2,…,N}, d=1,2,…,D.

8. The method for estimating user baseline load according to claim 1, characterized in that: In S3, the clustering model uses K-means algorithm for clustering.

9. A user baseline load estimation system based on time series truncation, characterized in that: comprising a computer readable storage medium and a processor; The computer-readable storage medium is used to store executable instructions; The processor is used to read the executable instructions stored in the computer-readable storage medium to execute the user baseline load estimation method according to any one of claims 1-8.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the user baseline load estimation method according to any one of claims 1 to 8 is implemented.

Citation Information

Cited By

  • Virtual power plant baseline calculation method introducing user confidence

    CN120832460A

  • A virtual power plant baseline calculation method introducing user confidence

    CN120832460B