A load curve clustering method based on improved rough C-means
Through the improved rough C-means clustering method, combined with distance and density measures, the problem of incorrect division of boundary areas in load curve clustering is solved, the clustering accuracy is improved, and more accurate load resource perception and prediction support are provided.
Patent Information
- Application Number
- CN202410622100.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-20
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-05-20
AI Technical Summary
Existing load curve clustering methods are prone to produce a 'uniformity effect' when processing complex power market data, leading to errors in clustering load curves in boundary areas and failing to accurately identify the power consumption characteristics and intrinsic relationships of different users, affecting demand response and load forecasting. accuracy.
An improved rough C-means clustering method is used, combined with distance and domain density measures, to give each load curve a different weighting coefficient, quantify the impact of spatial distribution imbalance within the cluster on cluster center iteration, and strengthen the analysis of boundary areas. Reduce the possibility of incorrect clustering.
It significantly improves the accuracy of load curve clustering, solves the problem of uneven load curve distribution, and provides more accurate load resource sensing and prediction support.
Smart Images

Figure CN118194074B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of power system load classification, and in particular relates to a load curve clustering method based on improved rough C-means. Background Art
[0002] With the massive deployment of data collection devices such as smart meters and the development of information and communication technology, the historical electricity consumption data on the user side has exploded. How to mine potential information from the massive load data with low value density and grasp the electricity consumption characteristics and internal connections of different types of users is of great significance for assisting grid dispatchers in carrying out demand response, load forecasting, and setting electricity prices. Realizing diversified and flexible load control is an inevitable trend in the development of new power systems.
[0003] Cluster analysis is an effective method to mine the potential information of massive load data. Its basic idea is to divide a large number of load curves into several clusters. The load curves within a cluster have a high degree of similarity, while the load curves between clusters have a high degree of difference. At present, most of the research on load curve clustering focuses on data dimension reduction, clustering algorithm performance optimization, optimal number of clusters, and selection of initial cluster centers. However, due to the opening of the power market, user behavior has become more free, resulting in more complex distribution of load curves, resulting in overlapping and uneven distribution of load curves between clusters. For example, industrial users and administrative users are both single-peak loads, but the number of users and adjustable capacity of the two are very different. The existing load curve clustering method will produce a "uniform effect" when processing such data, that is, samples in a large category will be incorrectly divided into small categories. Therefore, in order to achieve refined perception of flexible load resources, it is necessary to strengthen the analysis of load curves in boundary areas and reduce the possibility of incorrect clustering.
[0004] The rough C-means clustering algorithm integrates the rough set theory into the C-means clustering algorithm, and regards each cluster as a rough set. Each data object either belongs to the lower approximate set of a certain cluster, or belongs to the upper approximate set of multiple clusters at the same time. The existing rough clustering and its derivative algorithms consider different weighting coefficients of different boundary areas, which has improved the clustering accuracy of load curves in the power market to a certain extent. However, it still gives the same weight to data objects in the same boundary area, ignoring various unbalanced distribution situations within the same boundary area, which will still lead to load curve clustering errors and cannot accurately provide technical support for demand response, load forecasting, etc. Summary of the invention
[0005] To solve the above technical problems, the present invention provides a load curve clustering method based on improved rough C-means, which comprehensively considers the distance between different load curves and the cluster center in the same boundary area and the mixed imbalance measurement of the data distribution density in the neighborhood, and can effectively quantify the influence of the spatial distribution imbalance of the load curve within the cluster on the iteration of the cluster center, which can greatly improve the clustering accuracy of the load curve in the boundary area and open up a new direction for the clustering method of load curves.
[0006] The load curve clustering method based on improved rough C-means described in the present invention comprises the following steps:
[0007] Step 1: Collect historical daily load data and obtain N original daily load curves on the same day , and the maximum normalization method is used to normalize the original daily load curve to obtain N load clustering object curves that need to be clustered , ;
[0008] Step 2: Determine the number of target clusters c and c initial cluster centers , the lower approximate weight W low , upper approximate weight W up and the distance judgment threshold Δ, ;
[0009] Step 3: For the load clustering object curve X k , , calculate the Euclidean distance to each cluster center, and convert X k Return to the nearest cluster center C i The corresponding cluster U i The upper approximation set of ;
[0010] Step 4: If there is another cluster center C j , so that X k to C j The distance and X k to C i If the difference in distance is less than the threshold Δ, then X k Also included in C j The corresponding cluster U j The upper approximation set of Otherwise, X k Classified into cluster U i The lower approximation set of ;
[0011] Step 5: Update the cluster center according to the following iterative formula:
[0012] ,
[0013] Among them, h ik is the mixed imbalance measure, the difference between the upper approximation set and the lower approximation set Represents the cluster U i The boundary set of
[0014] Step 6: Repeat steps 2 to 5 until the clustering converges.
[0015] Furthermore, in step 1, the sampling interval of the original daily load curve is 1 hour, so the N original daily load curves on the same day are ,in represents the kth original daily load curve, Represents the value of the kth original daily load curve at the i-th hour.
[0016] Furthermore, in step 1, the maximum value normalization method is used to normalize the original daily load data. The specific method is as follows:
[0017] ,
[0018] Thus, we can obtain N normalized load clustering object curves. ,in represents the kth load clustering object curve, X ki Indicates the value of the kth load clustering object curve at the i-th hour.
[0019] Furthermore, in step 3, the kth load clustering object curve X k To the initial cluster center C i =(C i1 , C i2 , …, C i24 ) is calculated as follows:
[0020] ,
[0021] Among them, d ik is the kth load clustering object curve X k To the initial cluster center C i The Euclidean distance of .
[0022] Furthermore, in step 5, the mixed imbalance metric h ik The calculation formula is as follows:
[0023] ,
[0024] in, Indicates distance X k for The number of load curves within the neighborhood of ; Represents the cluster center C i The corresponding cluster U i The upper approximation set of Number of internal load curves; Represents the kth load clustering object curve X k Participating cluster center C i The distance metric during iteration, the farther the distance, the greater the X k to C i The distance d ik For C i The impact of the update iteration is lower, and the closer the distance is, the higher the impact is; Represents the kth load clustering object curve X k Participating cluster center C i The local density measure during iteration, the lower the density, the higher the X k The load curve density in the neighborhood is i The lower the update iteration, the higher the density, the higher the impact.
[0025] The beneficial effects described in the present invention are as follows: the method described in the present invention combines distance measurement and domain density measurement, fully considers the influence of cross-overlap and uneven distribution of load curves between clusters, assigns different weighting coefficients to each load curve in the cluster center iteration formula, and quantifies the influence of the imbalanced spatial distribution of load curves within the cluster on the iteration of the cluster center; the closer the load curve is to the center and the higher the data distribution density in the neighborhood, the greater the weighting coefficient, and the greater the contribution to the center iteration; similarly, the farther the load curve is from the center and the lower the data distribution density in the neighborhood, the smaller the weighting coefficient, and the smaller the contribution to the center iteration; by strengthening the analysis of the load curves in the cross-boundary area, the problem of uneven distribution of load curves is effectively dealt with, the clustering accuracy of the load curves in the cross-boundary area is improved, and better technical support is provided for demand response, load forecasting, etc. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 is a flow chart of the method of the present invention;
[0027] Figure 2 It is a schematic diagram of load clustering results under the method of the present invention;
[0028] Figure 3 It is a schematic diagram of the cluster center result under the method of the present invention;
[0029] Figure 4 This is a schematic diagram of load clustering results under the traditional improved C-means clustering method; DETAILED DESCRIPTION
[0030] In order to make the contents of the present invention more clearly understood, the present invention is further described in detail below based on specific embodiments in conjunction with the accompanying drawings.
[0031] The load curve clustering method based on improved rough C-means described in the present invention is as follows: Figure 1 As shown, the following steps are included:
[0032] Step 1: Collect historical daily load data and obtain N original daily load curves on the same day , and the maximum normalization method is used to normalize the original daily load curve to obtain N load clustering object curves that need to be clustered , ;
[0033] The sampling interval of the original daily load curve in step 1 is 1 hour, so the N original daily load curves in the same day are ,in represents the kth original daily load curve, represents the value of the kth original daily load curve at the i-th hour;
[0034] In step 1, the maximum value normalization method is used to normalize the original daily load data. The specific method is:
[0035] ,
[0036] Thus, we can obtain N normalized load clustering object curves. ,in represents the kth load clustering object curve, X ki Indicates the value of the kth load clustering object curve at the i-th hour;
[0037] Step 2: Determine the number of target clusters c and c initial cluster centers , the lower approximate weight W low , upper approximate weight W up and the distance judgment threshold Δ, ;
[0038] Step 3: For the load clustering object curve X k , , calculate the Euclidean distance to each cluster center, and convert X k Return to the nearest cluster center C i The corresponding cluster U i The upper approximation set of ;
[0039] The kth load clustering object curve X k To the initial cluster center The Euclidean distance is calculated as follows:
[0040] ,
[0041] Among them, d ik is the kth load clustering object curve X k To the initial cluster center C i The Euclidean distance of
[0042] Step 4: If there is another cluster center C j , so that X k to C j The distance and X k to C i If the difference in distance is less than the threshold Δ, then X k Also included in C j The corresponding cluster U j The upper approximation set of Otherwise, X k Classified into cluster U i The lower approximation set of ;
[0043] Step 5: Update the cluster center according to the following iterative formula:
[0044] ;
[0045] Among them, h ik is the mixed imbalance measure, the difference between the upper approximation set and the lower approximation set Represents the cluster U i The boundary set of
[0046] The mixture imbalance metric h ik The calculation formula is as follows:
[0047] ,
[0048] in, Indicates distance X k for The number of load curves within the neighborhood of ; Represents the cluster center C i The corresponding cluster U i The upper approximation set of Number of internal load curves; Represents the kth load clustering object curve X k Participating cluster center C i The distance metric during iteration, the farther the distance, the greater the X k to C i The distance d ik For C iThe impact of the update iteration is lower, and the closer the distance is, the higher the impact is; Represents the kth load clustering object curve X k Participating cluster center C i The local density measure during iteration, the lower the density, the higher the X k The load curve density in the neighborhood is i The lower the impact of the update iteration, the higher the density, the higher the impact;
[0049] Step 6: Repeat steps 2 to 5 until the clustering converges.
[0050] The daily load curve of 1910 users (including 200 industrial users, 300 administrative users, 400 commercial users, 350 residential users, 360 catering users, and 300 street lamp and high energy consumption enterprise users) measured on a certain working day in August 2015 in a certain area was selected as the research object. The daily load sampling interval was 1h, with a total of 24 sampling points per day. The number of algorithm target clusters c was set to 6, and the lower approximate weight W was low Set to 0.9, the upper approximation weight W up Set to 0.1, the distance judgment threshold Δ is set to 0.1, and the neighborhood range Set to 0.2.
[0051] The load curve clustering method based on improved rough C-means described in the present invention is as follows: Figure 2 As shown in the figure, the user load curves are divided into 6 categories, with 202 load curves in category 1, 304 load curves in category 2, 401 load curves in category 3, 350 load curves in category 4, 363 load curves in category 5, and 300 load curves in category 6. Category 1 and 2 are both single-peak loads, but the electricity consumption time of category 1 is concentrated in the period of 06:00-21:00, and the electricity consumption time of category 2 is concentrated in the period of 08:00-19:00, and the average load level of category 1 is higher than that of category 2. Category 1 is mainly industrial users, and category 2 is mainly administrative industry users such as schools, hospitals, and governments. Categories 3 and 4 are both bimodal loads. The two peaks of category 3 appear at around 12:00 and 18:00 respectively. This category is mainly commercial users such as hotels and supermarkets; the two peaks of category 4 appear at around 07:00 and 21:00 respectively. This category is mainly residential users such as apartments. Category 5 is a three-peak load, mainly catering industry users, with peak electricity consumption in the morning, afternoon and evening, and a decrease in electricity consumption during the morning working hours, lunch break and afternoon working hours. Category 6 is a peak-avoiding load, mainly public street lamps and high-energy-consuming corporate users. The cluster centers of the 6 types of loads are as follows: Figure 3 shown.
[0052] The proposed method is compared with the traditional improved C-means load clustering method. The traditional improved C-means load clustering method only improves the algorithm performance and does not consider the impact of the unbalanced distribution of the load curve. The clustering results of the traditional improved C-means load clustering method are as follows: Figure 4 As shown, the user load curves are divided into 6 categories, with 226 load curves in category 1, 276 load curves in category 2, 373 load curves in category 3, 352 load curves in category 4, 383 load curves in category 5, and 300 load curves in category 6. Under the traditional improved C-means load clustering method, a considerable part of the load in category 2 is incorrectly classified into category 1, and a considerable part of the load in category 3 is also incorrectly classified into category 5. From the above analysis, it can be seen that the load curve clustering method based on improved rough C-means proposed in the present invention has fewer incorrectly clustered load curves and has a better classification effect.
[0053] In order to further verify that the proposed mixed imbalanced metric considering distance and density can improve the performance of clustering methods, the C-means algorithm and the rough C-means algorithm are selected as comparison algorithms, and the clustering results are evaluated from the following four aspects:
[0054] 1) DBI index: This index reflects the dispersion between clusters and the compactness within clusters. The smaller the value, the higher the clustering quality. The calculation formula is as follows:
[0055] ,
[0056] Where: is the average distance from all samples in the i-th class to its cluster center; is the distance between the cluster centers of the i-th and j-th categories; The smaller it is, the better the clustering effect is;
[0057] 2) SSE index: This index reflects the intra-cluster cohesion of all clusters. The smaller the value, the higher the clustering quality. The calculation formula is as follows:
[0058] ;
[0059] 3) SC index: This index reflects the density between clusters. The closer its value is to 1, the farther the clusters are from each other.
[0060] ,
[0061] Where a(X k ) indicates X k The average distance to other samples in the same cluster; b(X k ) indicates Xk The minimum average distance to samples in other clusters;
[0062] 4) Clustering accuracy AC: This indicator refers to the percentage of correctly clustered data objects in the data set compared with the decision attribute values of the original data set. The calculation formula is:
[0063] .
[0064] Table 1 Comparison of clustering effects
[0065]
[0066] Table 1 is a comparison of clustering effects. From the perspective of clustering indicators, the DBI index of the improved clustering method proposed in the present invention has the smallest value, indicating that the clusters are closer and the clusters are more dispersed; the SSE index of the improved clustering method proposed in the present invention has the smallest value, indicating that the cohesion of each cluster is optimal; the SC index of the improved clustering method proposed in the present invention has the largest value, indicating that the clusters are more sparse; the clustering accuracy of the improved clustering method proposed in the present invention is the highest, indicating that the clustering is more accurate.
[0067] The above description is only a preferred embodiment of the present invention and is not intended to be a further limitation of the present invention. All equivalent changes made using the contents of the present specification and drawings are within the protection scope of the present invention.
Claims
1. A load curve clustering method based on improved rough C-means, characterized in that: The following steps are involved: Step 1: Collect historical daily load data and obtain N original daily load curves on the same day , and the maximum normalization method is used to normalize the original daily load curve to obtain N load clustering object curves that need to be clustered , ; Step 2: Determine the number of target clusters c and c initial cluster centers , the lower approximate weight W low , upper approximate weight W up and the distance judgment threshold Δ, ; Step 3: For the load clustering object curve X k , , calculate the Euclidean distance to each cluster center, and convert X k Return to the nearest cluster center C i The corresponding cluster U i The upper approximation set of ; Step 4: If there is another cluster center C j , so that X k to C j The distance and X k to C i If the difference in distance is less than the threshold Δ, then X k Also included in C j The corresponding cluster U j The upper approximation set of ; Otherwise, X k Classified into cluster U i The lower approximation set of ; Step 5: Update the cluster center according to the following iterative formula: , Among them, h ik is the mixed imbalance measure, the difference between the upper approximation set and the lower approximation set Represents the cluster U i The boundary set of Step 6: Repeat steps 2 to 5 until the clustering converges.
2. A load curve clustering method based on improved rough C-means according to claim 1, characterized in that: In step 1, the sampling interval of the original daily load curve is 1 hour, so the N original daily load curves on the same day are ,in represents the kth original daily load curve, Represents the value of the kth original daily load curve at the i-th hour.
3. The load curve clustering method based on improved rough C-means according to claim 1, characterized in that: In step 1, the maximum value normalization method is used to normalize the original daily load data. The specific method is as follows: , Thus, we can obtain N normalized load clustering object curves. ,in represents the kth load clustering object curve, X ki Indicates the value of the kth load clustering object curve at the i-th hour.
4. The load curve clustering method based on improved rough C-means according to claim 1, characterized in that: In step 3, the kth load clustering object curve X k To the initial cluster center C i =(C i1 , C i2 , … , C i24 ) is calculated as follows: , Among them, d ik is the kth load clustering object curve X k To the initial cluster center C i The Euclidean distance of .
5. The load curve clustering method based on improved rough C-means according to claim 1, characterized in that: In step 5, the mixture imbalance metric h ik The calculation formula is as follows: , in, Indicates distance X k for The number of load curves within the neighborhood of ; Represents the cluster center C i The corresponding cluster U i The upper approximation set of Number of internal load curves; Represents the kth load clustering object curve X k Participating cluster center C i The distance metric during iteration, the farther the distance, the greater the X k to C i The distance d ik For C i The impact of the update iteration is lower, and the closer the distance is, the higher the impact is; Represents the kth load clustering object curve X k Participating cluster center C i The local density measure during iteration, the lower the density, the higher the X k The load curve density in the neighborhood is i The lower the update iteration, the higher the density, the higher the impact.
