A two-stage ensemble clustering algorithm for mining regional energy load power consumption patterns

By employing a two-stage integrated clustering method that combines fuzzy C-means and hierarchical clustering, the problem of low accuracy caused by differences in electricity consumption patterns in regional energy load forecasting is solved, achieving more efficient data processing and load forecasting.

CN113935399BActive Publication Date: 2024-09-24SHANGHAI UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111055545.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-09
Publication Date
2024-09-24
Estimated Expiration
2041-09-09

AI Technical Summary

Technical Problem

Existing technologies suffer from low prediction accuracy in regional energy load forecasting due to differences in power consumption patterns at substations, and traditional clustering algorithms suffer from local optima and high complexity.

Method used

A two-stage ensemble clustering approach is adopted. First, preliminary clustering is performed using the fuzzy C-means (FCM) algorithm, followed by refined clustering using agglomerative hierarchical clustering. Booststrap resampling is then combined to reduce noise and outliers and improve data quality.

Benefits of technology

It achieves higher accuracy in load forecasting, reduces the risk of clustering getting trapped in local optima, and improves data processing efficiency and forecast accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113935399B
    Figure CN113935399B
Patent Text Reader

Abstract

The present invention discloses a regional energy load power consumption pattern mining algorithm based on two-stage integrated clustering, comprising the following steps: the Booststarp method is used to resample the original load sample to reduce the risk of the result falling into the local optimal solution; in combination with the load composition characteristics of the substation, the fuzzy C-means (FCM) algorithm is selected as the first-stage clustering model to achieve preliminary clustering and data dimension reduction of the resampled samples; high-precision hierarchical clustering is used to perform the second-stage clustering on the preliminary clustering results to achieve effective division of regional energy load power consumption patterns. Compared with the prior art, the two-stage integrated clustering algorithm of the present invention has better clustering performance than the traditional single clustering algorithm, and the accurate clustering division of regional energy load power consumption patterns can provide a high-quality data basis for short-term load forecasting.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of data mining and processing, and in particular to a regional energy load power consumption pattern mining algorithm based on two-stage integrated clustering. Background Art

[0002] Cluster mining and analysis of user power consumption patterns is not only the basis for realizing power data mining in energy management systems, but also an important means of load data preprocessing. Reasonable and detailed clustering of power loads can achieve efficient management of demand-side energy, fine classification of power users, time-of-use electricity price management, abnormal power consumption detection and other practical needs. Therefore, the research on clustering algorithms of load curves and the application of related technologies are of great research significance.

[0003] Clustering of user electricity consumption behavior can usually be summarized into two research directions. One is to use the long-term load of a single user or user group as data, and to identify their different electricity consumption behaviors in different time intervals by vertical clustering, which can be used for abnormal electricity consumption detection; the other is to perform horizontal clustering of different electricity consumption data of multiple users to distinguish different electricity consumption patterns, which is usually used to achieve differentiated and refined management of user electricity consumption data. This chapter adopts the method of horizontal load clustering to lay a high-quality data foundation for the subsequent improvement of load forecasting accuracy.

[0004] For regional energy load forecasting research, a region contains a large number of substations, and these substations are used as power transmission units to divide more detailed power consumption areas. Due to the different power users covered by these areas, the daily loads recorded by these substations also show significantly different power consumption characteristics.

[0005] The daily load demand of the whole region shows a relatively obvious bimodal characteristic, but when it is subdivided into individual substations, the daily load of each substation is obviously different. If all substations in the region are predicted separately and then integrated, it will not only take a lot of effort to model, adjust parameters, and calculate, but there will also be a large cumulative error. However, if the load of all substations in the region is summarized as a whole and predicted directly, it will cause the daily trend characteristics of each curve to offset each other, affecting the overall prediction accuracy. Therefore, it is important to cluster the loads of these substations according to their power consumption patterns, and then realize the characteristic prediction for each type of power consumption pattern, which is important for improving the accuracy of load prediction. Summary of the invention

[0006] In order to solve the problems of the prior art, the purpose of the present invention is to overcome the shortcomings of the existing technology and provide a regional energy load power consumption pattern mining algorithm based on two-stage integrated clustering, which has better clustering performance and accurate clustering division of regional energy load power consumption patterns, and can provide a high-quality data basis for short-term load forecasting.

[0007] In order to achieve the above invention purpose, the present invention adopts the following technical solution:

[0008] A regional energy load power consumption pattern mining algorithm based on two-stage integrated clustering specifically includes the following steps:

[0009] S1. Preprocess the original data of regional energy load electricity consumption, fill in missing values, select characteristic daily electricity consumption patterns, perform normalization processing, and smooth the curve to obtain a set of samples to be clustered; preferably obtain a set of N samples to be clustered;

[0010] S2. Based on the a priori adaptive method, the final number of clusters and related parameters are selected;

[0011] S3. Perform bootstarp resampling on the sample set to be clustered, repeat multiple times, and obtain the final initial sample to be clustered;

[0012] S4. Perform the first-stage clustering of the samples using the base clustering model with set parameters, calculate the number of clusters and cluster centers of each type, and use the cluster centers as the data set for the second-stage clustering;

[0013] S5. Based on the data set of cluster centers obtained above, cluster them into the optimal category using agglomerative hierarchical clustering method as the final number of clusters;

[0014] S6. According to the proximity principle, the objects in the original sample data set are assigned to the cluster center closest to them to complete the integrated clustering.

[0015] Preferably, in step S1, the method for preprocessing the original data of regional energy load electricity consumption is regional energy load data preprocessing based on the granularity of substations, and the processing method is as follows:

[0016] S1-1. Based on the general pattern selection of substation power consumption characteristics, the average of all historical daily load data extracted is used as the general daily trend pattern of the power station;

[0017] S1-2. Normalization of power consumption pattern data adopts the maximum-minimum normalization method for the data; different from the global maximum-minimum normalization, this method mainly adopts the maximum-minimum normalization for each substation, so as to avoid the mutual influence between power stations of different orders of magnitude and effectively extract the daily load pattern.

[0018] Preferably, in step S3, bootstarp resampling is performed by performing random sampling with replacement on the original sample and ensuring that the probability of each object in the sample being selected is equal until the sampled sample is as large as the original sample.

[0019] Preferably, in step S4, the first stage clustering is based on the first stage clustering algorithm of fuzzy C means, and each group of data is given a membership to each cluster, in the interval [0,1], and finally the final division of each data is determined according to the proximity principle or the maximum membership principle.

[0020] Preferably, in step S4, the second stage clustering is a second stage clustering algorithm of hierarchical clustering, and is a bottom-up agglomerative type. All power usage patterns in the sample are first regarded as a single category, and according to certain judgment criteria, in each round of iteration, the two power usage patterns with the highest similarity are classified into the same category; until the specified number of categories is reached.

[0021] Preferably, the regional energy load power consumption pattern mining algorithm based on two-stage integrated clustering specifically includes the following steps:

[0022] S1. Preprocess the original data, fill in missing values, select characteristic daily electricity consumption patterns, normalize, and smooth the curve to obtain a set of N samples to be clustered;

[0023] S2. Based on the prior adaptive method, the final cluster number k and m parameters are selected;

[0024] S3. Perform bootstarp resampling on the sample set N to be clustered, repeat M times, M = 10, and finally obtain M initial samples to be clustered;

[0025] S4. Perform the first-stage clustering on 10 samples respectively using the base clustering model with set parameters, with the number of clusters for each class being s, (s ≥ k), and obtain a total of s×M cluster centers, and use these s×M cluster centers as the data set for the second-stage clustering;

[0026] S5. Based on the data set of s×M cluster centers obtained above, cluster them into the optimal k clusters using agglomerative hierarchical clustering method as the final number of clusters;

[0027] S6. According to the proximity principle, the objects in the original sample data set are assigned to the cluster center closest to them to complete the integrated clustering.

[0028] Preferably, the regional energy load data preprocessing based on substation granularity is processed as follows:

[0029] A1. General mode selection based on substation power consumption characteristics:

[0030] Considering that the power consumption level and behavior of the area delivered by a single substation will be different in different categories of weekdays and rest days, and in different seasons of spring, summer, autumn and winter; in addition, as time goes by, the structure of each component user in the station will also change. Selecting a single day's load for clustering will make the clustering results have obvious volatility;

[0031] Therefore, the present invention adopts the mean of all the extracted historical daily load data as the general daily trend pattern of the power station;

[0032] For a single power station, the daily 24-hour electricity consumption pattern of all historical data can be regarded as the matrix L:

[0033]

[0034] Then it represents the characteristic daily curve L d :

[0035]

[0036] Where m is the number of historical days;

[0037] The general daily trend is extracted for all n power stations to obtain the final data set D to be clustered:

[0038]

[0039] A2. Normalization of power consumption pattern data:

[0040] Considering that different substations have certain differences in power demand, but substations with different power demand may be in similar daily load modes, and substations with similar power demand may be in completely different daily load modes; therefore, the present invention adopts a maximum-minimum (max-min) normalization method for the data; different from the global maximum-minimum normalization, the present invention mainly adopts the maximum-minimum normalization for each substation, thereby avoiding the mutual influence between substations of different orders of magnitude, and effectively extracting the daily load mode;

[0041] That is, for the dataset D after the above model extraction, we have:

[0042]

[0043] Normalization of each substation is:

[0044]

[0045] In the formula is the normalized value of substation r at time l, is the peak value of the daily load of substation r, It is the valley value of the daily load of substation r.

[0046] Preferably, the Booststrap resampling used in step S3 is also called the self-service sampling method, which performs random sampling with replacement on the original sample and ensures that the probability of each object in the sample being selected is equal until the sampled sample is as large as the original sample; that is, the sample contains n objects, and the sample is sampled n times with replacement; the new sample still contains n objects; because Bootstrap sampling uses sampling with replacement and each sampling is independent of each other, the new sample generated by a single sampling of the substation load data will contain repeated users to a certain extent, and there will also be a situation where the power consumption mode of some users is not selected; for a single sampling, the probability of the substation not being selected is:

[0047]

[0048] Since the samples are independent of each other, the M samples do not include substation x. i The probability P is:

[0049]

[0050] When n→∞, we have

[0051] To ensure that the resampled sample set covers all the information in the original sample, when M=10, the coverage rate can reach 99.99%, so M is preferably 10 times, that is, the original sample is resampled 10 times, which can ensure that the power consumption pattern samples of all substations in the original load data are collected and covered.

[0052] Preferably, the first stage clustering algorithm based on fuzzy C-means (FCM) in step S4, when applied to the load background, the FCM clustering algorithm based on power consumption mode has the following concepts:

[0053] (1) Sample Dataset D

[0054] In FCM clustering, for the load data set of n samples to be clustered According to its various characteristic parameters, the data matrix to be clustered is as follows:

[0055]

[0056] Where L dl Represents the data of substation No. 1. The 24 data of each substation are the 24-point daily load data of the representative power consumption mode of the substation;

[0057] (2) Cluster center matrix V

[0058] FCM clustering divides n samples into c clusters, where 2≤c≤n, and the center matrix V of c clusters is:

[0059]

[0060] Where c is the number of clusters, and t = 1, 2, ..., 24;

[0061] (3) Membership matrix U

[0062] As a soft clustering algorithm, fuzzy clustering is different from hard clustering in that it strictly divides the ownership of each sample. Instead, it adopts the concept of membership in fuzzy data sets. The electricity consumption mode represented by each sample belongs to a certain category with a certain membership degree. There is a membership matrix U:

[0063]

[0064] For the kth load sample L k Belongs to the i-th category and has membership degree u ik , satisfying the following constraints:

[0065]

[0066] (4) Objective function J

[0067] Given the above cluster center matrix V and membership matrix U, the overall optimization objective function J is:

[0068]

[0069] Where c i represents the cluster center of the i-th class, ||L j -c i || 2 is the Euclidean distance between sample j and the cluster center of the i-th class, u ij is the membership of sample j to cluster i, and u ij ∈[0,1], m is the fuzzy weighted index, and its value directly affects the final clustering effect. It is generally believed that m∈[1.5,2.5] is optimal, and the value in this invention is 2;

[0070] According to the objective function of the FCM clustering algorithm, its purpose is to find the optimal (U, V) combination so that the objective function J m Reach the minimum under the constraints; since (U, V) are unknown at the beginning, repeated iterations and corrections are required during the solution process. The specific steps of the FCM algorithm are as follows:

[0071] A1. For the sample data set, use the prior method to determine the appropriate number of clusters c, the fuzzy weighted index m, and the iteration termination condition; the maximum number of iterations stop threshold k or stop threshold ε; randomly initialize the membership matrix In the value range [0,1];

[0072] A2.l is the number of iterations, and the cluster center V i (l) is the iterative result of step l, and the specific iterative formula is as follows:

[0073]

[0074] A3. Modified membership matrix U (l) ,

[0075]

[0076] In the formula

[0077] Then the objective function value of the current iteration is:

[0078]

[0079] A4. When the number of iterations reaches the specified maximum number of iterations M, or |J (l) -J (l-1) |<ε J , ε J is the specified stop threshold. The iteration stops, otherwise the second and third steps will be repeated until the stop condition is met; at this time, the final cluster center V of the current data set and the membership matrix U of each data to each cluster center can be obtained;

[0080] There are two specific ways to divide the data. One is the proximity principle, which divides the sample into the class with the closest cluster center. That is, for sample L k , if there is:

[0081] L k -v j ||=min 1≤i≤c ||L i -v i ||

[0082] Then L k The other is the maximum membership principle, which classifies the sample into the class with the largest membership, that is, in the membership matrix, if u jk =max I≤i≤c (u ik ), then the sample is classified into the jth class. The present invention adopts the second maximum membership degree division method.

[0083] Preferably, the second-stage clustering algorithm based on hierarchical clustering in step S5 takes into account the load characteristics of the substation, and thus adopts agglomerative hierarchical clustering, which first regards all power consumption patterns in the sample as a single category, and classifies the two power consumption patterns with the highest similarity into the same category in each round of iteration according to certain judgment criteria, until the specified number of categories is reached.

[0084] The specific algorithm steps are:

[0085] A1. Consider all the electricity consumption patterns in the load sample as a single category and calculate the proximity matrix between the daily curves of each electricity consumption pattern, that is, for sample D:

[0086]

[0087] Where n represents the number of samples, and the proximity between each sample is calculated;

[0088] The present invention calculates the proximity matrix using class average, which defines cluster proximity as the average value of the proximity of all points between two clusters. The specific calculation formula is:

[0089]

[0090] Where x and y are clusters C i , C j The sample points in m i , m j For cluster class C i , C j The number of samples in ;

[0091] Based on the class average proximity calculation, the proximity matrix of the original sample can be obtained:

[0092]

[0093] where p ij is the average proximity between power consumption mode i and power consumption mode j;

[0094] A2. According to the proximity matrix, the two most similar groups of power consumption patterns in this round of iteration are classified into one category, and a new cluster is obtained;

[0095] A3. Recalculate the proximity matrix between each cluster after iteration;

[0096] A4. Repeat steps 2 and 3 until the stopping threshold and the specified number of clusters are met.

[0097] Compared with the prior art, the present invention has the following obvious outstanding substantive features and significant advantages:

[0098] 1. The method of the present invention effectively processes large-volume, high-value, and low-density power big data, removes noise and outliers, fills in missing values, and mines data relevance and value, thereby laying a data foundation for subsequent load forecasting, which is one of the keys to improving the upper limit of load forecasting accuracy; the present invention can achieve high-precision load forecasting based on high-quality and valuable load data;

[0099] 2. The present invention combines the advantages of partition clustering and hierarchical clustering, proposes a two-stage integrated clustering algorithm, and uses hierarchical clustering as the base model for the second-stage clustering; considering that partition clustering is convenient and fast, it often has certain shortcomings in accuracy, while hierarchical clustering improves accuracy, but has a large time complexity due to its own iterative method;

[0100] 3. The present invention makes up for the shortcomings of partition clustering that it is easy to fall into local optimal solutions and is sensitive to noise outliers, and hierarchical clustering for large data sets, due to its own high algorithm complexity and unsatisfactory operating efficiency. Therefore, it is proposed to use partition clustering as the first-stage base clustering model to obtain preliminary clustering results, and then use hierarchical clustering to perform the second-stage clustering on the results to obtain the final clustering results;

[0101] 4. The method of the present invention is simple, easy to implement, low in cost, and suitable for popularization and use. BRIEF DESCRIPTION OF THE DRAWINGS

[0102] Figure 1 It is a schematic diagram of the overall process of a preferred embodiment of the present invention.

[0103] Figure 2 Schematic diagram of the optimal K value selection process of the preferred embodiment of the present invention.

[0104] Figure 3 Graph 1 shows the CHI and K values ​​of the FCM algorithm of the preferred embodiment of the present invention.

[0105] Figure 4 Schematic diagram of load curve clustering according to a preferred embodiment of the present invention.

[0106] Figure 5 Schematic diagram of five types of load curve cluster centers according to a preferred embodiment of the present invention.

[0107] Figure 6 It is a schematic diagram of the clustering result category I curve of the preferred embodiment of the present invention.

[0108] Figure 7 Schematic diagram of clustering result category II curve of the preferred embodiment of the present invention.

[0109] Figure 8 Schematic diagram of clustering result category III curve of the preferred embodiment of the present invention.

[0110] Fig. 9 Schematic diagram of clustering result category IV curve of the preferred embodiment of the present invention.

[0111] Fig.10 Schematic diagram of clustering result category V curve of a preferred embodiment of the present invention.

[0112] Fig.11 It is a schematic diagram of a bar chart of the number of substations of various categories according to a preferred embodiment of the present invention. DETAILED DESCRIPTION

[0113] The above scheme is further described below in conjunction with specific implementation examples. The preferred embodiments of the present invention are described in detail as follows:

[0114] Embodiment 1:

[0115] In this embodiment, see Figure 1 , a regional energy load power consumption pattern mining algorithm based on two-stage integrated clustering, specifically includes the following steps:

[0116] S1. Preprocess the original data of regional energy load electricity consumption, fill in missing values, select characteristic daily electricity consumption patterns, perform normalization, and smooth the curve to obtain a set of samples to be clustered;

[0117] S2. Based on the a priori adaptive method, the final number of clusters and related parameters are selected;

[0118] S3. Perform bootstarp resampling on the sample set to be clustered, repeat multiple times, and obtain the final initial sample to be clustered;

[0119] S4. Perform the first-stage clustering of the samples using the base clustering model with set parameters, calculate the number of clusters and cluster centers of each type, and use the cluster centers as the data set for the second-stage clustering;

[0120] S5. Based on the data set of cluster centers obtained above, cluster them into the optimal category using agglomerative hierarchical clustering method as the final number of clusters;

[0121] S6. According to the proximity principle, the objects in the original sample data set are assigned to the cluster center closest to them to complete the integrated clustering.

[0122] The regional energy load power consumption pattern mining algorithm based on two-stage integrated clustering in this embodiment has better clustering performance, and the accurate clustering division of regional energy load power consumption patterns can provide a high-quality data basis for short-term load forecasting.

[0123] Embodiment 2:

[0124] This embodiment is basically the same as the first embodiment, except that:

[0125] In this embodiment, in step S1, the method for preprocessing the original data of regional energy load electricity consumption is regional energy load data preprocessing based on the substation granularity, and the processing method is as follows:

[0126] S1-1. Based on the general pattern selection of substation power consumption characteristics, the average of all historical daily load data extracted is used as the general daily trend pattern of the power station;

[0127] S1-2. Normalization of power consumption pattern data adopts the maximum-minimum normalization method for the data; different from the global maximum-minimum normalization, this method mainly adopts the maximum-minimum normalization for each substation, so as to avoid the mutual influence between power stations of different orders of magnitude and effectively extract the daily load pattern.

[0128] In this embodiment, in step S3, bootstarp resampling is performed by performing random sampling with replacement on the original sample and ensuring that the probability of each object in the sample being selected is equal until the sampled sample is equal in size to the original sample.

[0129] In this embodiment, in step S4, the first stage clustering is based on the first stage clustering algorithm of fuzzy C means, which gives each group of data a membership to each cluster in the interval [0,1], and finally determines the final division of each data according to the proximity principle or the maximum membership principle.

[0130] In this embodiment, in step S4, the second stage clustering is a second stage clustering algorithm of hierarchical clustering, and is a bottom-up agglomerative type. First, all power usage patterns in the sample are regarded as a single category. According to certain judgment criteria, in each round of iteration, the two power usage patterns with the highest similarity are classified into the same category; until the specified number of categories is reached.

[0131] The method of this embodiment combines the respective advantages of partition clustering and hierarchical clustering, proposes a two-stage integrated clustering algorithm, and uses hierarchical clustering as the base model for the second stage clustering. Considering that partition clustering is convenient and fast, it often has certain deficiencies in accuracy, while hierarchical clustering improves accuracy, but has a large time complexity due to its own iterative method.

[0132] Embodiment three:

[0133] This embodiment is basically the same as the above embodiment, with the following features:

[0134] In this embodiment,

[0135] The power data targeted by this embodiment is unsupervised data, so when evaluating the specific clustering effect, two widely used internal evaluation clustering indicators are adopted, namely Davies-Bouldin Index (DBI) and Calinski-Harabasz Index (CHI). CHI is used as the judgment indicator for selecting the optimal K value, and DBI is used as the evaluation indicator of the clustering result:

[0136] (1) DBI:

[0137] The DBI index is the Davidson-Bouldin Index, also known as the classification accuracy index. It was proposed by David L. Davies and Donald W. Bouldin in 1979:

[0138]

[0139] a) DBI defines a dispersion index value S i :

[0140]

[0141] Where T i A represents the number of data in the i-th class; i represents the cluster center in the i-th class; X j represents the jth data in the i-th category, q is the measurement index, when q is 1, S i represents the cluster mean of a point within a class and the cluster center. When q is 2, S i Represents the standard deviation between the points within the class and the cluster center;

[0142] b) DBI defines a distance value M ij :

[0143]

[0144] Among them A i represents the cluster center of the i-th class, A j represents the cluster center of the jth class; p is the measurement index, M ij is the distance between the cluster centers of the i-th and j-th categories;

[0145] c) DBI defines the similarity metric R ij :

[0146]

[0147] Used to measure the similarity between the i-th and j-th clusters;

[0148] d) Get the final DBI indicator

[0149]

[0150] Where R i =maximum of R ij , i≠j means the value with the greatest similarity between the i-th class and other classes;

[0151] You can see the final DBI indicator The smaller it is, the smaller the similarity between clusters is, and the better the clustering effect is;

[0152] (2) CHI:

[0153] CHI stands for Calinski-Harabasz Index, which is an internal evaluation indicator based on the degree of separation of inter-class data and the compactness of intra-class data:

[0154]

[0155] a) CHI defines the Within-Groups Sum of Squared Error (WGSS), which is used to measure the compactness within a cluster;

[0156]

[0157] Where K represents the final number of sample clusters. represents the average distance of samples within the i-th cluster, n i represents the number of samples in the i-th category;

[0158] b) CHI defines the sum of squared errors between clusters, Between-Groups Sum of Squared Error (BGSS), which is used to measure the degree of separation between clusters;

[0159]

[0160] in represents the average distance between all samples;

[0161] CHI measures the compactness within a class by calculating WGSS and the separation of data between classes by calculating BGSS. The overall index is obtained by the ratio of separation to compactness. It can be seen that the larger the CH, the more compact the data within the class, the more dispersed the data between classes, and the better the clustering effect.

[0162] This embodiment first uses the partition clustering (FCM) algorithm to perform the first stage clustering on the resampled samples. For partition clustering, a specific cluster number K must be given first. Different K values ​​have a significant impact on the clustering results and are directly related to the final clustering effect. Therefore, it is necessary to select a more appropriate K value as the final cluster number.

[0163] Considering that the substation load data used is unsupervised data, that is, the specific relevant categories of the data cannot be known in advance. Therefore, this paper mainly uses CHI as the evaluation index to select the optimal K value for the data used in this chapter in an a priori way. The specific process is as follows Figure 2 shown.

[0164] For the power data used in the present invention, the a priori method based on the CHI index is adopted to select. That is, for the selected unknown clustering data, a certain interval of K number is given, and the optimal K is found by traversal to maximize the clustering index value. For the FCM clustering algorithm mentioned above, the K value is selected according to the above method, and it can be obtained Figure 3 , the CH index changes with the change of K value, and for the FCM clustering algorithm, it reaches the maximum value when K is equal to 5. Therefore, the final number of clusters for the load data used in this chapter is set to five.

[0165] In the implementation plan, based on the clustering principle, unsupervised clustering is performed on the original power data set. The following five methods are used for clustering:

[0166] (1) Directly use the K-means clustering algorithm;

[0167] (2) Directly use the FCM clustering algorithm;

[0168] (3) Directly use the Hierarchical clustering algorithm;

[0169] (4) Integrated clustering algorithm based on K-means and Hierarchical clustering;

[0170] (5) Integrated clustering algorithm based on FCM and Hierarchical clustering.

[0171] Based on the above five methods, unsupervised cluster analysis is performed on the power data, and the clustering results are evaluated based on the DBI index. The performance results are shown in Table 1:

[0172] Table 1. Comparison of clustering results based on DBI indicators

[0173]

[0174] The following conclusions can be drawn from Table 1:

[0175] (1) Traditional K-means, although simple and fast, the effectiveness of the clustering results and the quality of the clusters are slightly worse than those of the other clustering algorithms;

[0176] (2) Since this chapter uses substation data, considering that the power transmission area of ​​the substation itself also contains various types of power consumption patterns, the daily load trend of the main power consumption patterns in the area is specifically presented. This makes the concept of fuzzy data in FCM well adaptable to the data in this chapter, and the clustering quality is intuitively improved compared with K-means;

[0177] (3) Compared with partition clustering, hierarchical clustering has a certain degree of improvement in clustering quality; and from the integrated clustering method of K-means and FCM selected as the base model in the first stage, it can be seen that compared with a single clustering model, the use of integrated clustering can effectively improve the clustering quality. And compared with directly using K-means or FCM clustering, DBI increased by 25.04% and 10.55% respectively;

[0178] (4) The selection of the first-stage clustering model will also directly affect the quality of the final clustering results. The FCM clustering effect is better than that of K-means. Therefore, the integrated clustering algorithm with FCM as the base model of the first-stage clustering achieved the best DBI value.

[0179] The integrated clustering algorithm based on FCM and hierarchical clustering finally clustered the power load data studied in this chapter into five categories. The clustering results are as follows: Figure 4 As shown in the figure, the cluster center curves of the five types of loads are shown in Figure 5 shown.

[0180] Combined with the relevant power background, the following analysis can be made:

[0181] (1) Category I, such as Figure 6 As shown. This type of load is generally at a high level, with small load fluctuations. It usually reaches the first peak power consumption between 5 and 11 a.m., with a slight decrease in the afternoon, and then reaches the second peak at 20:00. This type of power consumption is usually three-shift production-type industrial power consumption, which is at a high level throughout the day. There are situations where employees take a lunch break in the afternoon and the production intensity of the night shift is reduced, resulting in a decrease in load demand. Specific examples include knitting, plastic, and garment factories.

[0182] (2) Category II, such as Figure 7This type of load shows an obvious peak-time type, with electricity demand starting to grow rapidly at 5 a.m., reaching peak electricity demand at 9 or 10 a.m., and maintaining a high electricity demand level during the day until 16:00, when electricity demand begins to decrease until 5:00 a.m. the next day. This type of electricity consumption is usually concentrated industrial electricity consumption, such as metal products, pharmaceutical logistics and other related companies.

[0183] (3) Category III, such as Figure 8 As shown in the figure. This type of load shows obvious peak-avoidance behavior. The power consumption rate starts to increase at 16:00, reaches the peak at 19:00 and 20:00 and maintains a high power consumption level until 5:00 a.m. the next day, when the power consumption begins to decrease rapidly and maintains a low power consumption level during the day. This type of power consumption behavior is usually industrial power consumption behavior with obvious industry characteristics such as bakeries and ice factories, which realize production during low electricity price periods by staggering power consumption.

[0184] (4) Category IV, such as Fig. 9 As shown. This type of load shows a certain bimodal pattern, with 5:00 being the daily electricity consumption valley. The electricity consumption level during the day increases to a certain extent, but generally tends to be stable. The electricity demand increases from 15:00 to 16:00 in the afternoon, reaches the peak at 20:00, and then decreases at night to 5:00 the next day. This type of electricity consumption behavior is usually corporate electricity consumption, and the electricity consumption level is consistent with the electricity consumption behavior of employees going to and from get off work and taking into account lunch breaks.

[0185] (5) Category V, such as Fig.10 As shown in the figure. This type of load shows a relatively obvious double peak type, with 4 and 5 o'clock being the daily electricity consumption valley values, and the electricity demand begins to increase gradually to 7 and 8 o'clock to usher in the first electricity consumption peak, and then the electricity consumption decreases and the electricity demand during the day has always maintained a similar level to that at night. At 16 and 17 o'clock in the afternoon, the electricity demand begins to increase rapidly to 20 o'clock, and then decreases to 5 o'clock the next day. This type of electricity consumption behavior is usually residential electricity consumption, and the electricity consumption behavior matches the characteristics of the working day. In addition, there are also certain appliances such as refrigerators that are often turned on indoors, which keeps a certain level of electricity consumption during the day and at night.

[0186] In summary, the substations in this implementation scheme can be divided into the following five categories according to the numbers 1-100, as shown in Table 2:

[0187] Table 2. Substation clustering results

[0188]

[0189] As can be seen from Table 2, the clustering algorithm based on integrated clustering roughly divides the substation data of this implementation plan into five categories. Each category has a certain user base, and the number of users in category IV is the largest. Fig.11 shown.

[0190] This example takes into account the characteristics of regional energy loads. Compared with traditional direct load forecasting, it proposes a method of clustering and dividing the power consumption mode of regional energy loads to improve the prediction accuracy, and specifically explains the FCM and hierarchical clustering models in the clustering. Considering that the FCM model is prone to fall into the local optimal solution when there are multiple extreme values, so that the clustering accuracy is insufficient, and the hierarchical clustering directly clusters the data, which easily leads to the problem of excessive time complexity, an ensemble clustering (EC, Ensemble Clustering) model based on the bagging idea is proposed. First, the original sample is resampled based on the booststrap method to obtain M sampling samples. For the M samples, the first stage clustering is performed using the FCM model to obtain S cluster centers. For the obtained M×S cluster center data sets, the hierarchical clustering method is used to cluster them to the optimal number of clusters K. The example shows that the ensemble clustering algorithm proposed in the present invention has a better clustering effect than the single clustering algorithm clustering, and also has a certain improvement in DBI. The clustering mining results of the regional energy load power consumption mode of the present invention will provide a high-quality data basis for load forecasting research.

[0191] In summary, the above embodiment is based on a two-stage integrated clustering algorithm for mining the power consumption pattern of regional energy loads. The Booststarp method resamples the original load samples to reduce the risk of the results falling into the local optimal solution; combined with the load composition characteristics of the substation, the fuzzy C-means (FCM) algorithm is selected as the first-stage clustering model to achieve preliminary clustering and data dimension reduction of the resampled samples; high-precision hierarchical clustering is used to perform the second-stage clustering of the preliminary clustering results to achieve effective division of the power consumption pattern of regional energy loads. Compared with the prior art, the two-stage integrated clustering algorithm proposed in the above embodiment of the present invention has better clustering performance than the traditional single clustering algorithm, and the accurate clustering division of the power consumption pattern of regional energy loads can provide a high-quality data basis for short-term load forecasting.

[0192] The above describes the embodiments of the present invention in conjunction with the accompanying drawings, but the present invention is not limited to the above embodiments. Various changes can be made according to the purpose of the invention. Any changes, modifications, substitutions, combinations or simplifications made according to the spirit and principle of the technical solution of the present invention should be equivalent replacement methods. As long as they meet the purpose of the invention and do not deviate from the technical principles and inventive concepts of the present invention, they belong to the protection scope of the present invention.

Claims

1. A regional energy load power consumption pattern mining algorithm based on two-stage integrated clustering, characterized in that: The specific steps include: S1. Preprocess the original data of regional energy load electricity consumption, fill in missing values, select characteristic daily electricity consumption patterns, perform normalization, and smooth the curve to obtain a set of samples to be clustered; S2. Based on the a priori adaptive method, the final number of clusters and related parameters are selected; S3. Perform bootstarp resampling on the sample set to be clustered, repeat multiple times, and obtain the final initial sample to be clustered; S4. Perform the first-stage clustering of the samples using the base clustering model with set parameters, calculate the number of clusters and cluster centers of each type, and use the cluster centers as the data set for the second-stage clustering; S5. Based on the data set of cluster centers obtained above, cluster them into the optimal category using agglomerative hierarchical clustering method as the final number of clusters; S6. According to the proximity principle, the objects in the original sample data set are assigned to the cluster center closest to them to complete the integrated clustering.

2. The regional energy load power consumption pattern mining algorithm based on two-stage integrated clustering according to claim 1 is characterized by: In step S1, the method for preprocessing the original data of regional energy load electricity consumption is to preprocess the regional energy load data based on the substation granularity, and the processing method is as follows: S1-1. Based on the general pattern selection of substation power consumption characteristics, the average of all historical daily load data extracted is used as the general daily trend pattern of the power station; S1-2. Normalization of power consumption mode data, using the maximum-minimum normalization method for the data; Different from the global maximum-minimum normalization, this method mainly adopts the maximum-minimum normalization for each substation, thereby avoiding the mutual influence between substations of different orders of magnitude and effectively extracting the daily load pattern.

3. The regional energy load power consumption pattern mining algorithm based on two-stage integrated clustering according to claim 1 is characterized by: In step S3, bootstarp resampling is performed by performing random sampling with replacement on the original sample and ensuring that the probability of each object in the sample being selected is equal until the sampled sample is equal in size to the original sample.

4. The regional energy load power consumption pattern mining algorithm based on two-stage integrated clustering according to claim 1 is characterized by: In step S4, the first stage clustering is based on the first stage clustering algorithm of fuzzy C means, and each group of data is given a membership to each cluster, in the interval [0,1]. Finally, the final division of each data is determined according to the proximity principle or the maximum membership principle.

5. The regional energy load power consumption pattern mining algorithm based on two-stage integrated clustering according to claim 1 is characterized by: In step S4, the second stage clustering is a second stage clustering algorithm of hierarchical clustering, and is a bottom-up agglomerative type. All power usage patterns in the sample are first regarded as a single category. According to certain judgment criteria, in each round of iteration, the two power usage patterns with the highest similarity are classified into the same category; until the specified number of categories is reached.