Electricity utilization topology construction method based on user electricity utilization load structure
Through database checksum electricity consumption data clustering, an accurate electricity consumption topology structure is generated, which solves the problems of high electricity consumption topology identification cost and information errors in the existing technology, and achieves efficient and accurate electricity consumption management.
Patent Information
- Application Number
- CN202411016146.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-27
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-07-27
AI Technical Summary
When the prior art identify and manage the power consumption topology of the medium and low voltage table areas of the power supply grid, manual measurement costs are high and inaccurate. The automation method depends on database information. If the information is incorrect, it cannot be updated in time, resulting in inaccurate topology.
The database obtains the node user matching relationship information between the power distribution node and the power user, uses the verification algorithm to update the matching relationship, combines the power consumption data clustering and feature extraction to generate an accurate power consumption topology structure, and avoids the impact of incorrect matching on subsequent changes. analyze.
It realizes efficient and accurate generation of electricity consumption topology, reduces labor costs, avoids topology errors caused by error information, and improves the accuracy of electricity consumption management.
Smart Images

Figure CN118970902A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of power supply, and in particular to a method for constructing a power consumption topology based on a user's power load structure. Background Art
[0002] In the power supply grid, the power topology between the distribution nodes in the low-voltage area and the power users connected to them is usually unknown, and specific work is required to identify the topology between the distribution nodes and their power users for the convenience of power management.
[0003] A common method for identifying and determining the topology of distribution nodes and their power users is to manually carry detection equipment into the power consumption site for measurement and analysis, which consumes a lot of labor and time costs and has a low accuracy rate.
[0004] Another common method is to analyze the relevant electricity consumption data from the power department information system and then identify the topology based on the electricity consumption data. This method is efficient and low-cost, but if there are errors in the distribution relationship of the current department information system, it may lead to the difficulty of accurately determining the topology. For example, in the continuous power consumption process, the actual distribution relationship between distribution nodes and users may change due to line modification, building demolition or user private behavior, and the distribution relationship information in the database is usually unable to make timely corrections, resulting in inaccurate data and the inability to accurately generate the true topology. Summary of the invention
[0005] The present application provides a method for constructing a power consumption topology based on a user's power load structure, which obtains node-user matching relationship information between distribution nodes and power users through a database, and verifies the node-user matching relationship information based on corresponding power consumption data to avoid erroneous node-user matching relationship information affecting subsequent power consumption topology generation.
[0006] The method for constructing a power consumption topology based on a user's power consumption load structure comprises the following steps:
[0007] A1, obtaining corresponding node user matching relationship information from a preset power grid database according to preset power distribution node information;
[0008] A2, obtaining the corresponding user information of each node from the power grid database according to the node user matching relationship information of the distribution node information;
[0009] A3, obtaining the corresponding node user power consumption data from the power grid database according to the node user information and the preset data collection cycle;
[0010] A4, verifying and updating the node user matching relationship information according to the power distribution node information and the power consumption data of each node user using a preset power distribution relationship verification algorithm;
[0011] A5, reacquire the corresponding user information of each node from the power grid database according to the updated node user matching relationship information;
[0012] A6, generating corresponding user clustering data sets respectively according to the user voltage data in the power consumption data of all node users and the number of clusters in the preset cluster number value range using a preset power consumption data clustering algorithm;
[0013] A7, calculating the corresponding user clustering silhouette coefficients respectively according to the user voltage data in each user clustering data set using a preset silhouette coefficient algorithm;
[0014] A8, determining the maximum value among all user clustering silhouette coefficients and defining the user clustering data set corresponding to the maximum value as the optimal clustering data set;
[0015] A9, generating a power consumption topology structure according to each user power consumption data cluster in the best clustering data set using a preset circuit topology generation algorithm.
[0016] By adopting the above technical solution, the method for constructing power consumption topology based on user power load structure can obtain node user matching relationship information between distribution nodes and power users through the database, and verify the node user matching relationship information according to the corresponding power consumption data, so as to avoid erroneous node user matching relationship information affecting the subsequent power consumption topology structure generation.
[0017] Optionally, the power distribution relationship verification algorithm includes the following steps:
[0018] B1, according to the distribution node information and data collection cycle, obtain the corresponding distribution node power consumption data from the power grid database;
[0019] B2, generating node power consumption standardized data and user power consumption standardized data by using a preset data preprocessing algorithm according to the power consumption data of the distribution nodes and the power consumption data of the users at each node;
[0020] B3, generating node power consumption characteristic data and user power consumption characteristic data respectively by using a preset power consumption data feature extraction algorithm according to the node power consumption standardization data and each user power consumption standardization data;
[0021] B4, calculating the node user matching degree corresponding to each node user information according to the node power consumption characteristic data and the user power consumption characteristic data of the corresponding node user information using a preset power distribution relationship matching degree algorithm;
[0022] B5. If the node user matching degree is less than the preset matching degree threshold, then the preset distribution relationship verification method is used to verify whether the distribution matching relationship between the corresponding node user information and the distribution node information is established. If the distribution matching relationship between the corresponding node user information and the distribution node information is not established, then the corresponding node user information is removed from the node user matching relationship information to update the user matching relationship information.
[0023] By adopting the above technical scheme, the method for constructing the power consumption topology based on the user's power load structure standardizes the power consumption data of the distribution nodes and the power consumption data of the users at each node, and extracts the characteristic data based on the standardized data. The matching degree between the power consumption data of the distribution nodes and the power consumption data of the users at each node is quantitatively calculated through the characteristic data, and then whether the distribution relationship is real and valid can be judged according to the matching degree, thereby avoiding the generation of an erroneous topological structure due to an erroneous distribution relationship.
[0024] Optionally, the data preprocessing algorithm includes the following steps:
[0025] C1, generating distribution node power consumption completion data and each node user power consumption completion data by using a preset missing value filling algorithm according to the distribution node power consumption data and each node user power consumption data;
[0026] C2, generating the power distribution node power available data and the power consumption available data of each node user respectively by using a preset abnormal value processing algorithm according to the power distribution node power consumption supplement data and the power consumption supplement data of each node user;
[0027] C3, generating node power consumption normalized data and each user power consumption normalized data according to the power consumption available data of the distribution nodes and the power consumption available data of each node user by using a preset normalization algorithm.
[0028] By adopting the above technical solution, the power consumption topology construction method based on the user's power load structure can generate node power consumption standardized data and each user's power consumption standardized data through missing value completion, outlier correction and normalization algorithm, which is convenient for subsequent processing and analysis.
[0029] Optionally, the normalization algorithm is:
[0030]
[0031] Among them, x′ is the standardized data generated by the normalization algorithm, x is the preset original data, and P i (x) is the i% percentile value of the original data x, P j (x) is the j% percentile value of the original data x, i is the preset minimum percentile, j is the preset maximum percentile, and j>i;
[0032] Among them, P is determined by the following steps: i (x) and P j (x):
[0033] Sort the original data from small to large to generate sorted data;
[0034] According to the maximum percentile or minimum percentile, the data location index values corresponding to the maximum percentile and minimum percentile are calculated by the following calculation formula:
[0035]
[0036] Among them, k i and k j is the data location index value corresponding to the maximum percentile i or the minimum percentile j, and n is the number of samples in the original data;
[0037] If k i is an integer, then P i (x) is the kth i numerical values;
[0038] If k i If is not an integer,
[0039]
[0040] in, k i The integer part of To sort the data numerical values, To sort the data numerical values;
[0041] If k j is an integer, then P j (x) is the kth j numerical values;
[0042] If k j If is not an integer,
[0043]
[0044]
[0045] Sorting data A numerical value.
[0046] By adopting the above technical solution, the method for constructing power consumption topology based on the user's power load structure reduces the impact of outliers in power consumption data on the overall data through a specific normalization algorithm, making the normalized data more stable and reliable.
[0047] Optionally, the electricity consumption data feature extraction algorithm includes the following steps:
[0048] D1, generates moving average data, moving standard deviation data, moving minimum data and moving maximum data according to preset standardized data and preset moving window value with preset moving window feature algorithm,
[0049] The moving average data is calculated using the following formula:
[0050]
[0051] Among them, MA t is the moving average corresponding to the acquisition time t, m is the moving window value, w is the index of the sample data, x′ w is the w-th sample value in the standardized data;
[0052] The moving standard deviation data is calculated using the following formula:
[0053]
[0054] Among them, SD t is the moving standard deviation corresponding to the acquisition time t;
[0055] The moving minimum data is calculated using the following formula:
[0056] Max t =max(x′ t-m+1 , ..., x′ t ), and t≥m,
[0057] Among them, Max t is the minimum moving value corresponding to the acquisition time t;
[0058] The moving maximum value data is calculated by the following formula:
[0059] Min t =min(x′ t-m+1 , ..., x′ t ), and t ≥ m,
[0060] Among them, Min t is the maximum moving value corresponding to the acquisition time t;
[0061] D2, combining all moving average values according to the collection time to generate moving average value data;
[0062] D3, combining all moving standard deviations according to the acquisition time to generate moving standard deviation data;
[0063] D4, combining all the moving maximum values according to the collection time to generate moving maximum value data;
[0064] D5, combining all the moving minimum values at the collection time to generate moving minimum value data;
[0065] D6, generating characteristic data based on the combination of moving average data, moving standard deviation data, moving maximum data and moving minimum data.
[0066] By adopting the above technical solution, the method for constructing the power consumption topology based on the user's power load structure can better extract features from the power consumption data collected based on time series, so as to reflect the power consumption characteristics of the power users and facilitate subsequent analysis and processing.
[0067] Optionally, the power distribution relationship matching algorithm includes the following steps:
[0068] E1, calculate the Pearson correlation coefficient according to each similar data subset in the node power consumption characteristic data and each user power consumption characteristic data using a preset correlation coefficient algorithm, the correlation coefficient algorithm is:
[0069]
[0070] Among them, R is the Pearson correlation coefficient of the similar data subsets in the node power consumption characteristic data and the user power consumption characteristic data, MA t,X is the tth value in the moving average data of the same data subset in the node power consumption characteristic data, is the average value of the moving average data of the same data subset in the node power consumption characteristic data, MA t,Y is the tth value in the moving average data of the same data subset in the user's electricity consumption characteristic data, is the average value of the moving average data of the same data subset in the user's electricity consumption characteristic data, SD t,X is the moving standard deviation of the same data subset in the node power consumption characteristic data, SD t,Y is the moving standard deviation of the same data subset in the user's electricity consumption characteristic data;
[0071] E2, generates node user feature correlation coefficient data based on the Pearson correlation coefficient combination of all similar data subsets;
[0072] E3, remove the maximum value from the node user feature correlation coefficient data and then calculate the average to calculate the node user matching degree.
[0073] By adopting the above technical solution, the power consumption topology construction method based on the user power load structure calculates the Pearson correlation coefficient for each similar data subset in the node power consumption characteristic data and each user power consumption characteristic data, and calculates the corresponding node user matching degree according to the Pearson correlation coefficient of each similar data subset.
[0074] Optionally, the following steps are further included to determine the matching threshold:
[0075] F1, calculate the user matching confidence interval based on the user matching degree of all nodes and the preset confidence level coefficient at the preset confidence level;
[0076] F2, obtain the lower limit value of the interval according to the user matching confidence interval;
[0077] F3, calculates the product of the lower limit of the interval and the preset adjustment coefficient and defines it as the matching threshold.
[0078] By adopting the above technical solution, the power consumption topology construction method based on the user power load structure can calculate the corresponding confidence interval according to the matching degree of all node users, and determine the matching degree threshold according to the lower limit value of the confidence interval.
[0079] Optionally, the objective function of the electricity consumption data clustering algorithm is:
[0080]
[0081] Among them, J is the objective function value, C is the total number of users corresponding to the node user information, c is the user index value, A is the number of clusters, a is the cluster index value, and U is the total number of users corresponding to the node user information. c is the user voltage data corresponding to the user information of the cth node, μ a is the center point data of the a-th cluster, ||U c -μ a || 2 For U c to μ a The square of the Euclidean distance, r ca is an indicator variable, if U c is assigned to cluster a, then r ca =1, otherwise r ca =0.
[0082] In summary, the present application includes at least one of the following beneficial technical effects:
[0083] 1. The node-user matching relationship information between the distribution nodes and the electricity users can be obtained through the database, and the node-user matching relationship information can be verified according to the corresponding electricity consumption data to avoid the influence of incorrect node-user matching relationship information on the subsequent electricity consumption topology generation.
[0084] 2. By standardizing the power consumption data of distribution nodes and the power consumption data of users at each node, and extracting feature data based on the standardized data, the degree of matching between the power consumption data of distribution nodes and the power consumption data of users at each node is quantitatively calculated through the feature data. Then, whether the distribution relationship is real and valid can be judged based on the degree of matching, avoiding the generation of incorrect topological structures due to incorrect distribution relationships.
[0085] 3. Through missing value completion, outlier correction and normalization algorithms, standardized data on node electricity consumption and standardized data on electricity consumption of each user can be generated to facilitate subsequent processing and analysis. BRIEF DESCRIPTION OF THE DRAWINGS
[0086] Figure 1 It is a flow chart of a method for constructing a power consumption topology based on a user's power load structure according to the present invention. DETAILED DESCRIPTION
[0087] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application 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 application and are not used to limit the present application.
[0088] The embodiments of the present application are further described in detail below in conjunction with the drawings in the specification.
[0089] refer to Figure 1 The present invention provides a method for constructing a power consumption topology based on the user's power load structure, which obtains the node user matching relationship information between the distribution node and the power user through the database, and verifies the node user matching relationship information according to the corresponding power consumption data to avoid the erroneous node user matching relationship information affecting the subsequent power consumption topology structure generation.
[0090] The method for constructing a power consumption topology based on a user's power consumption load structure comprises the following steps:
[0091] A1, obtaining corresponding node user matching relationship information from a preset power grid database according to preset power distribution node information;
[0092] The distribution node information is the identification information of the distribution node, which is used to distinguish it from other distribution nodes;
[0093] The power grid database is a pre-set database used to store various power data and information;
[0094] The node-user matching relationship information is the relationship information of the power connection between the distribution node and the power users connected to the distribution node, which can be collected in advance when the distribution line is installed.
[0095] A2, obtaining the corresponding user information of each node from the power grid database according to the node user matching relationship information of the distribution node information;
[0096] The node user information is identification information of the power user connected to the power distribution node determined according to the node user matching relationship information, and is used to distinguish the power user from other power users.
[0097] A3, obtaining the corresponding node user power consumption data from the power grid database according to the node user information and the preset data collection cycle;
[0098] The data collection period is a pre-set time period used to determine the time interval for data acquisition and, in turn, the amount of data used for analysis;
[0099] The node user power consumption data is the power consumption data corresponding to the node user information, which may include a variety of electronic power consumption data, for example, voltage data, current data, active power data, reactive power data, power factor, phase angle, etc., which can be used for analysis.
[0100] A4, verifying and updating the node user matching relationship information according to the power distribution node information and the power consumption data of each node user using a preset power distribution relationship verification algorithm;
[0101] The power distribution relationship verification algorithm is a pre-set algorithm used to verify the node user matching relationship information to avoid collecting irrelevant power consumption data due to incorrect power distribution relationships and affecting subsequent analysis;
[0102] During the continuous electricity consumption process, the actual distribution relationship between distribution nodes and users may change due to line modification, building demolition or user personal behavior, and the distribution relationship information in the database usually cannot be corrected in time, so it is necessary to verify and confirm the node-user matching relationship information.
[0103] A5, reacquire the corresponding user information of each node from the power grid database according to the updated node user matching relationship information;
[0104] The new corresponding node user information is obtained through the updated node user matching relationship information.
[0105] A6, generating corresponding user clustering data sets respectively according to the user voltage data in the power consumption data of all node users and the number of clusters in the preset cluster number value range using a preset power consumption data clustering algorithm;
[0106] The user voltage data is a data set of voltage values in the node user power consumption data;
[0107] The value range of the number of clusters is the value range of the number of clusters in the pre-set clustering algorithm analysis. For example, if the value range of the number of clusters is 4 to 10, it means that the clustering algorithm attempts to perform clustering analysis with different number of clusters between 4 and 10.
[0108] The cluster number value is the number of data clusters in the cluster analysis;
[0109] The electricity consumption data clustering algorithm is a pre-set algorithm used to perform cluster analysis based on the data;
[0110] The user clustering dataset is a collection of data clusters generated by the electricity consumption data clustering algorithm.
[0111] A7, calculating the corresponding user clustering silhouette coefficients respectively according to the user voltage data in each user clustering data set using a preset silhouette coefficient algorithm;
[0112] The silhouette coefficient algorithm is a pre-set algorithm used to quantitatively evaluate the effect of the cluster analysis algorithm and can be used to find the most appropriate value for the number of clusters.
[0113] A8, determining the maximum value among all user clustering silhouette coefficients and defining the user clustering data set corresponding to the maximum value as the optimal clustering data set;
[0114] The best clustering dataset is the clustering dataset with the best clustering effect.
[0115] A9, generating a power consumption topology structure using a preset circuit topology generation algorithm according to each user power consumption data cluster in the optimal clustering data set;
[0116] The circuit topology generation algorithm is a pre-set algorithm used to generate the corresponding topological structure of the power circuit based on the power consumption data after cluster analysis. For example, the corresponding head and terminal currents can be calculated based on the current data analysis in the power consumption data of each user node, and then the connection relationship of each node can be determined according to Kirchhoff's current law to generate a topological structure.
[0117] Through the above steps, the power consumption topology construction method based on the user's power load structure can obtain the node user matching relationship information between the distribution node and the power user through the database, and verify the node user matching relationship information according to the corresponding power consumption data to avoid the erroneous node user matching relationship information affecting the subsequent power consumption topology structure generation.
[0118] Furthermore, the power distribution relationship verification algorithm includes the following steps:
[0119] B1, according to the distribution node information and data collection cycle, obtain the corresponding distribution node power consumption data from the power grid database;
[0120] The power consumption data of the distribution node is the power consumption data of the distribution node, which can be approximately regarded as the sum of the power consumption data of all power users connected to the distribution node, and can be collected in advance and stored in the power grid database.
[0121] B2, generating node power consumption standardized data and user power consumption standardized data by using a preset data preprocessing algorithm according to the power consumption data of the distribution nodes and the power consumption data of the users at each node;
[0122] The data preprocessing algorithm is a pre-set algorithm used to preprocess the data, such as data cleaning, outlier processing, missing value filling, and data normalization;
[0123] The node power consumption standardized data is the standardized data corresponding to the power consumption data of the distribution node after data processing;
[0124] The user electricity consumption standardized data is the standardized data corresponding to the node user electricity consumption data after data processing.
[0125] B3, generating node power consumption characteristic data and user power consumption characteristic data respectively by using a preset power consumption data feature extraction algorithm according to the node power consumption standardization data and each user power consumption standardization data;
[0126] The electricity consumption data feature extraction algorithm is a pre-set algorithm used to extract features from the standardized data after data processing;
[0127] The node power consumption characteristic data is characteristic data generated by extracting the characteristic of the node power consumption standardization data;
[0128] The user electricity consumption characteristic data is characteristic data generated by extracting the characteristics of the user electricity consumption standardized data.
[0129] B4, calculating the node user matching degree corresponding to each node user information according to the node power consumption characteristic data and the user power consumption characteristic data of the corresponding node user information using a preset power distribution relationship matching degree algorithm;
[0130] The power distribution relationship matching algorithm is a pre-set algorithm used to calculate the matching degree between the node power consumption characteristic data and the user power consumption characteristic data of the corresponding node user information;
[0131] The node user matching degree is used to quantitatively reflect the degree of association between the node power consumption characteristic data and the corresponding user power consumption characteristic data of each node user information, and is used to determine whether there is a real distribution connection relationship, so as to verify the distribution connection relationship.
[0132] B5, if the node user matching degree is less than the preset matching degree threshold, then the preset distribution relationship verification method is used to verify whether the distribution matching relationship between the corresponding node user information and the distribution node information is established; if the distribution matching relationship between the corresponding node user information and the distribution node information is not established, then the corresponding node user information is removed from the node user matching relationship information to update the user matching relationship information;
[0133] The matching degree threshold is a pre-set reference value, which is used to determine whether further distribution relationship verification is required between the distribution node and the power user according to the node user matching degree;
[0134] The distribution relationship verification method is a pre-set method used to verify whether the distribution key between the distribution node and the electricity user actually exists. For example, the authenticity of the distribution relationship can be determined through manual investigation, or by injecting a signal of a specific frequency into the line and then detecting whether the signal exists at the electricity user end to determine the authenticity of the distribution relationship.
[0135] Through the above steps, the method for constructing the power consumption topology based on the user's power load structure standardizes the power consumption data of the distribution nodes and the power consumption data of the users at each node, and extracts the characteristic data based on the standardized data. The matching degree between the power consumption data of the distribution nodes and the power consumption data of the users at each node is quantitatively calculated through the characteristic data, and then whether the distribution relationship is real and valid can be judged according to the matching degree, so as to avoid the generation of an erroneous topological structure due to an erroneous distribution relationship.
[0136] Furthermore, the data preprocessing algorithm comprises the following steps:
[0137] C1, generating distribution node power consumption completion data and each node user power consumption completion data by using a preset missing value filling algorithm according to the distribution node power consumption data and each node user power consumption data;
[0138] The missing value filling algorithm is a pre-selected data processing algorithm used to supplement the missing data in the original data. There are many missing value filling algorithms, such as mean filling, median filling, mode filling, regression filling and interpolation filling.
[0139] The distribution node power consumption completion data is the distribution node power consumption data completed by the missing value filling algorithm;
[0140] The node user electricity consumption completion data is the node user electricity consumption data completed by the missing value filling algorithm.
[0141] C2, generating the power distribution node power available data and the power consumption available data of each node user respectively by using a preset abnormal value processing algorithm according to the power distribution node power consumption supplement data and the power consumption supplement data of each node user;
[0142] The outlier processing algorithm is a pre-set algorithm used to process outliers in the data, find outliers through the algorithm, and correct them;
[0143] The available data of power consumption of distribution nodes is the power consumption supplement data of distribution nodes after outlier processing;
[0144] The available data of node user electricity consumption is the node user electricity consumption supplementary data after outlier processing.
[0145] C3, generating node power consumption normalized data and each user power consumption normalized data according to the power consumption available data of the distribution node and the power consumption available data of each node user by using a preset normalization algorithm;
[0146] The normalization algorithm is a pre-set algorithm used to normalize the power consumption data of the distribution nodes and the power consumption data of each node user for subsequent data processing. Common normalization algorithms include minimum and maximum normalization, z-score normalization, MaxAbs scaling, etc.
[0147] The node power consumption standardized data is the normalized data generated by the power consumption available data of the distribution node through the normalization algorithm;
[0148] The user electricity consumption standardized data is the normalized data generated by the node user electricity consumption available data through the normalization algorithm.
[0149] Through the above steps, the power consumption topology construction method based on the user power load structure can generate node power consumption standardized data and each user's power consumption standardized data through missing value completion, outlier correction and normalization algorithm, which is convenient for subsequent processing and analysis.
[0150] Furthermore, the normalization algorithm is:
[0151]
[0152] Among them, x′ is the standardized data generated by the normalization algorithm, x is the preset original data, and P i (x) is the i% percentile value of the original data x, P j (x) is the j% percentile value of the original data x, i is the preset minimum percentile, j is the preset maximum percentile, and j>i;
[0153] The standardized data is the normalized data of each sub-category of the node power consumption standardized data or the user power consumption standardized data;
[0154] The original data is the sub-category data of the power distribution node power availability data or the node user power availability data after certain data processing;
[0155] By choosing appropriate maximum and minimum percentiles, the impact of extreme values or outliers on the data can be reduced;
[0156] Especially when a user turns on a high-power appliance, the change in electrical data generated far exceeds the state of its stable operation. If electricity consumption data is collected at this time, inaccurate electricity consumption data will be generated, which will affect the subsequent data analysis. Therefore, the above calculation formula can be used to reduce the impact of such abnormal values;
[0157] For example, if j is set to 99 and i is set to 1, the normalized scaling scale will be determined based on the data in the range of 1% to 99% of the original data, reducing the impact of individual extreme values and outliers, making the normalized data warmer and more reliable;
[0158] In this normalization algorithm, all the original data that are less than or equal to P i The value of (x) will be mapped to 0, and all values greater than or equal to P j The value of (x) will be mapped to 0.
[0159] Among them, P is determined by the following steps: i (x) and P j (x):
[0160] Sort the original data from small to large to generate sorted data;
[0161] The sorted data is the data generated by sorting the original data in ascending order.
[0162] According to the maximum percentile or minimum percentile, the data location index values corresponding to the maximum percentile and minimum percentile are calculated by the following calculation formula:
[0163]
[0164] Among them, k i and k j is the data location index value corresponding to the maximum percentile i or the minimum percentile j, and n is the number of samples in the original data;
[0165] If k i is an integer, then P i (x) is the kth i numerical values;
[0166] If k i If is not an integer,
[0167]
[0168] in, k i The integer part of To sort the data numerical values, To sort the data numerical values;
[0169] If k j is an integer, then P j (x) is the kth j numerical values;
[0170] If k j If is not an integer,
[0171]
[0172] in, k j The integer part of To sort the data numerical values, To sort the data numerical values;
[0173] If k i or k j When it is not an integer, the corresponding P is determined by interpolation. i (x) or P j (x).
[0174] Through the above steps, the power consumption topology construction method based on the user's power load structure reduces the impact of abnormal values in the power consumption data on the overall data through a specific normalization algorithm, making the normalized data more stable and reliable.
[0175] Furthermore, the electricity consumption data feature extraction algorithm includes the following steps:
[0176] D1, generates moving average data, moving standard deviation data, moving minimum data and moving maximum data according to preset standardized data and preset moving window value with preset moving window feature algorithm,
[0177] The moving average data is calculated using the following formula:
[0178]
[0179] Among them, MA t is the moving average corresponding to the acquisition time t, m is the moving window value, w is the index of the sample data, x′ w is the w-th sample value in the standardized data;
[0180] The moving standard deviation data is calculated using the following formula:
[0181]
[0182] Among them, SD t is the moving standard deviation corresponding to the acquisition time t;
[0183] The moving minimum data is calculated using the following formula:
[0184] Max t =max(x′ t-m+1 , ..., x′ t ), and t≥m,
[0185] Among them, Max t is the minimum moving value corresponding to the acquisition time t;
[0186] The moving maximum value data is calculated by the following formula:
[0187] Min t =min(x′ t-m+1 , ..., x′ t ), and t ≥ m,
[0188] Among them, Min t is the maximum moving value corresponding to the acquisition time t;
[0189] D2, combining all moving average values according to the collection time to generate moving average value data;
[0190] The moving average data is the collection of moving averages corresponding to each collection moment;
[0191] D3, combining all moving standard deviations according to the acquisition time to generate moving standard deviation data;
[0192] The moving standard deviation data is the collection of moving standard deviations corresponding to each acquisition moment;
[0193] D4, combining all the moving maximum values according to the collection time to generate moving maximum value data;
[0194] The moving maximum value data is the collection of the moving maximum values corresponding to each collection moment;
[0195] D5, combining all the moving minimum values at the collection time to generate moving minimum value data;
[0196] The moving minimum value data is the collection of moving minimum values corresponding to each collection time;
[0197] D6, generating characteristic data according to the combination of moving average data, moving standard deviation data, moving maximum data and moving minimum data;
[0198] The characteristic data is a collection of moving average data, moving standard deviation data, moving maximum data, and moving minimum data.
[0199] Through the above steps, the power consumption topology construction method based on the user's power load structure can better extract features from the power consumption data collected based on time series to reflect the power consumption characteristics of the power users, which is convenient for subsequent analysis and processing.
[0200] Furthermore, the power distribution relationship matching algorithm includes the following steps:
[0201] E1, calculate the Pearson correlation coefficient according to each similar data subset in the node power consumption characteristic data and each user power consumption characteristic data using a preset correlation coefficient algorithm, the correlation coefficient algorithm is:
[0202]
[0203] Among them, R is the Pearson correlation coefficient of the similar data subsets in the node power consumption characteristic data and the user power consumption characteristic data, MA t,X is the tth value in the moving average data of the same data subset in the node power consumption characteristic data, is the average value of the moving average data of the same data subset in the node power consumption characteristic data, MA t,Y is the tth value in the moving average data of the same data subset in the user's electricity consumption characteristic data, is the average value of the moving average data of the same data subset in the user's electricity consumption characteristic data, SD t,X is the moving standard deviation of the same data subset in the node power consumption characteristic data, SD t,Y is the moving standard deviation of the same data subset in the user's electricity consumption characteristic data;
[0204] E2, generates node user feature correlation coefficient data based on the Pearson correlation coefficient combination of all similar data subsets;
[0205] The same type of data subsets are the sub-type feature data of the same type in the node power consumption feature data and each user power consumption feature data, for example, the voltage feature data in the node power consumption feature data and the voltage feature data in the user power consumption feature data are paired to calculate the Pearson correlation coefficient;
[0206] And the Pearson correlation coefficients of all similar data subsets are combined into node user feature correlation coefficient data.
[0207] E3, remove the maximum value from the node user feature correlation coefficient data and then calculate the average to calculate the node user matching degree;
[0208] By removing the maximum value and then calculating the average, the influence of the correlation coefficient with lower values can be amplified to better discover the abnormality of the distribution relationship based on the correlation coefficient.
[0209] Through the above steps, the power consumption topology construction method based on the user power load structure calculates the Pearson correlation coefficient for each similar data subset in the node power consumption characteristic data and each user power consumption characteristic data, and calculates the corresponding node user matching degree according to the Pearson correlation coefficient of each similar data subset.
[0210] Furthermore, the method for constructing a power consumption topology based on a user's power consumption load structure further includes the following steps for determining a matching degree threshold:
[0211] F1, calculate the user matching confidence interval based on the user matching degree of all nodes and the preset confidence level coefficient at the preset confidence level;
[0212] The confidence level coefficient is a pre-set value used for the coefficient determined according to the confidence level, for example, the coefficient corresponding to the 95% confidence level is 1.96;
[0213] The user matching confidence interval is the confidence interval of all node user matching degrees.
[0214] F2, obtain the lower limit value of the interval according to the user matching confidence interval;
[0215] The lower limit of the interval is the lower limit of the user matching confidence interval.
[0216] F3, calculates the product of the lower limit of the interval and the preset adjustment coefficient and defines it as the matching threshold;
[0217] The adjustment coefficient is a preset coefficient used to adjust the lower limit value of the interval to determine the matching threshold.
[0218] Through the above steps, the power consumption topology construction method based on the user power load structure can calculate the corresponding confidence interval according to the matching degree of all node users, and determine the matching degree threshold according to the lower limit value of the confidence interval.
[0219] Furthermore, the objective function of the electricity consumption data clustering algorithm is:
[0220]
[0221] Among them, J is the objective function value, C is the total number of users corresponding to the node user information, c is the user index value, A is the number of clusters, a is the cluster index value, and U is the total number of users corresponding to the node user information. c is the user voltage data corresponding to the user information of the cth node, μ a is the center point data of the a-th cluster, ||U c -μa || 2 For U c to μ a The square of the Euclidean distance, r ca is an indicator variable, if U c is assigned to cluster a, then r ca =1, otherwise r ca =0;
[0222] Among them, user voltage data U c It exists in the calculation formula in the form of vector;
[0223] By minimizing J, we try to find a clustering method that minimizes the difference between the voltage data vector of each electricity user and the center vector of the cluster to which it belongs, so as to identify user groups with similar voltage patterns.
[0224] The above are all preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. Any feature disclosed in this specification (including the abstract and drawings), unless otherwise stated, can be replaced by other equivalent or alternative features with similar purposes. That is, unless otherwise stated, each feature is only an example of a series of equivalent or similar features.
Claims
1. A method for constructing a power consumption topology based on a user's power load structure, characterized in that: The following steps are involved: A1, obtaining corresponding node user matching relationship information from a preset power grid database according to preset power distribution node information; A2, obtaining the corresponding user information of each node from the power grid database according to the node user matching relationship information of the distribution node information; A3, obtaining the corresponding node user power consumption data from the power grid database according to the node user information and the preset data collection cycle; A4, verifying and updating the node user matching relationship information according to the power distribution node information and the power consumption data of each node user using a preset power distribution relationship verification algorithm; A5, reacquire the corresponding user information of each node from the power grid database according to the updated node user matching relationship information; A6, generating corresponding user clustering data sets respectively according to the user voltage data in the power consumption data of all node users and the number of clusters in the preset cluster number value range using a preset power consumption data clustering algorithm; A7, calculating the corresponding user clustering silhouette coefficients respectively according to the user voltage data in each user clustering data set using a preset silhouette coefficient algorithm; A8, determining the maximum value among all user clustering silhouette coefficients and defining the user clustering data set corresponding to the maximum value as the optimal clustering data set; A9, generating a power consumption topology structure according to each user power consumption data cluster in the best clustering data set using a preset circuit topology generation algorithm.
2. The method for constructing a power consumption topology based on a user's power consumption load structure according to claim 1, characterized in that: The power distribution relationship verification algorithm comprises the following steps: B1, according to the distribution node information and data collection cycle, obtain the corresponding distribution node power consumption data from the power grid database; B2, generating node power consumption standardized data and user power consumption standardized data by using a preset data preprocessing algorithm according to the power consumption data of the distribution nodes and the power consumption data of the users at each node; B3, generating node power consumption characteristic data and user power consumption characteristic data respectively by using a preset power consumption data feature extraction algorithm according to the node power consumption standardization data and each user power consumption standardization data; B4, calculating the node user matching degree corresponding to each node user information according to the node power consumption characteristic data and the user power consumption characteristic data of the corresponding node user information using a preset power distribution relationship matching degree algorithm; B5. If the node user matching degree is less than the preset matching degree threshold, then the preset distribution relationship verification method is used to verify whether the distribution matching relationship between the corresponding node user information and the distribution node information is established. If the distribution matching relationship between the corresponding node user information and the distribution node information is not established, then the corresponding node user information is removed from the node user matching relationship information to update the user matching relationship information.
3. The method for constructing a power consumption topology based on a user's power load structure according to claim 2, characterized in that: The data preprocessing algorithm comprises the following steps: C1, generating distribution node power consumption completion data and each node user power consumption completion data by using a preset missing value filling algorithm according to the distribution node power consumption data and each node user power consumption data; C2, generating the power distribution node power available data and the power consumption available data of each node user respectively by using a preset abnormal value processing algorithm according to the power distribution node power consumption supplement data and the power consumption supplement data of each node user; C3, generating node power consumption normalized data and each user power consumption normalized data according to the power consumption available data of the distribution nodes and the power consumption available data of each node user by using a preset normalization algorithm.
4. The method for constructing a power consumption topology based on a user's power load structure according to claim 3, characterized in that: The normalization algorithm is: Among them, x′ is the standardized data generated by the normalization algorithm, x is the preset original data, and P i (x) is the i% percentile value of the original data x, P j (x) is the j% percentile value of the original data x, i is the preset minimum percentile, j is the preset maximum percentile, and j>i; Among them, P is determined by the following steps i (x) and P j (x): Sort the original data from small to large to generate sorted data; According to the maximum percentile or minimum percentile, the data location index values corresponding to the maximum percentile and minimum percentile are calculated by the following calculation formula: Among them, k i and k j is the data location index value corresponding to the maximum percentile i or the minimum percentile j, and n is the number of samples in the original data; If k i is an integer, then P i (x) is the kth i numerical values; If k i If is not an integer, in, k i The integer part of To sort the data numerical values, To sort the data numerical values; If k j is an integer, then P j (x) is the kth j numerical values; If k j If is not an integer, in, k j The integer part of To sort the data numerical values, To sort the data A numerical value.
5. The method for constructing power consumption topology based on user power load structure according to claim 4, characterized in that: The electricity consumption data feature extraction algorithm comprises the following steps: D1, generates moving average data, moving standard deviation data, moving minimum data and moving maximum data according to preset standardized data and preset moving window value with preset moving window feature algorithm, The moving average data is calculated using the following formula: And t ≥ m, Among them, MA t is the moving average corresponding to the acquisition time t, m is the moving window value, w is the index of the sample data, x′ w is the w-th sample value in the standardized data; The moving standard deviation data is calculated using the following formula: And t ≥ m, Among them, SD t is the moving standard deviation corresponding to the acquisition time t; The moving minimum data is calculated using the following formula: Max t =max(x′ t-m+1 , ..., x′ t ), and t ≥ m, Among them, Max t is the minimum moving value corresponding to the acquisition time t; The moving maximum value data is calculated by the following formula: Min t =min(x′ t-m+1 , ..., x′ t ), and t ≥ m, Among them, Min t is the maximum moving value corresponding to the acquisition time t; D2, combining all moving average values according to the collection time to generate moving average value data; D3, combining all moving standard deviations according to the acquisition time to generate moving standard deviation data; D4, combining all the moving maximum values according to the collection time to generate moving maximum value data; D5, combining all the moving minimum values at the collection time to generate moving minimum value data; D6, generating characteristic data based on the combination of moving average data, moving standard deviation data, moving maximum data and moving minimum data.
6. The method for constructing power consumption topology based on user power load structure according to claim 5, characterized in that: The power distribution relationship matching algorithm includes the following steps: E1, calculate the Pearson correlation coefficient according to each similar data subset in the node power consumption characteristic data and each user power consumption characteristic data using a preset correlation coefficient algorithm, the correlation coefficient algorithm is: Among them, R is the Pearson correlation coefficient of the similar data subsets in the node power consumption characteristic data and the user power consumption characteristic data, MA t,X is the tth value in the moving average data of the same data subset in the node power consumption characteristic data, is the average value of the moving average data of the same data subset in the node power consumption characteristic data, MA t,Y is the tth value in the moving average data of the same data subset in the user's electricity consumption characteristic data, is the average value of the moving average data of the same data subset in the user's electricity consumption characteristic data, SD t,X is the moving standard deviation of the same data subset in the node power consumption characteristic data, SD t,Y is the moving standard deviation of the same data subset in the user's electricity consumption characteristic data; E2, generates node user feature correlation coefficient data based on the Pearson correlation coefficient combination of all similar data subsets; E3, remove the maximum value from the node user feature correlation coefficient data and then calculate the average to calculate the node user matching degree.
7. The method for constructing power consumption topology based on user power load structure according to claim 6, characterized in that: The method further includes the following steps for determining a matching threshold: F1, calculate the user matching confidence interval based on the user matching degree of all nodes and the preset confidence level coefficient at the preset confidence level; F2, obtain the lower limit value of the interval according to the user matching confidence interval; F3, calculates the product of the lower limit of the interval and the preset adjustment coefficient and defines it as the matching threshold.
8. The method for constructing power consumption topology based on user power load structure according to claim 7, characterized in that: The objective function of the electricity consumption data clustering algorithm is: Among them, J is the objective function value, C is the total number of users corresponding to the node user information, c is the user index value, A is the number of clusters, a is the cluster index value, and U is the total number of users corresponding to the node user information. c is the user voltage data corresponding to the user information of the cth node, μ a is the center point data of the a-th cluster, ||U c -μ a || 2 For U c to μ a The square of the Euclidean distance, r ca is an indicator variable, if U c is assigned to cluster a, then r ca =1, otherwise r ca =0.
Citation Information
Patent Citations
Low-voltage power distribution network topology verification method and system based on improved k-value clustering algorithm
CN111061821A
Low-voltage distribution network equipment load and topology linkage method based on data association analysis
CN113191656A
Power distribution area topology network generation method and device
CN113471971A
Active power distribution network-oriented refined load prediction method and system
CN116227637A
Power grid topology automatic identification and construction method and system
CN118133068A
