A data missing processing method and device for industrial loads

Processing industrial load data through splitting and matrix decomposition algorithms solves the problem of filling missing values ​​in industrial load data, achieves high-accuracy filling of fine-grained smart meter data, and is suitable for processing missing data of industrial loads.

CN114168574BActive Publication Date: 2024-09-24TSINGHUA UNIVERSITY +1
View PDF 0 Cites 0 Cited by

Patent Information

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

Smart Images

  • Figure CN114168574B
    Figure CN114168574B
Patent Text Reader

Abstract

The present application relates to the technical field of power system loads, and in particular to a data missing processing method and device for industrial loads. Among them, a data missing processing method for industrial loads includes: obtaining the load data and user characteristic data of each user, splitting the load data into multiple data sets according to the user characteristic data; preliminarily filling the missing data in the data set that can be directly obtained based on the existing load data; and using a matrix decomposition algorithm to deeply fill the data set that still has missing data after the preliminary filling. The present application adopting the above scheme mines the complex correlation patterns in the data by utilizing the correlation between various types of measurement data in smart meters, and effectively mines the correlation between different times and different load components, thereby improving the accuracy of missing value filling, effectively filling the missing values ​​of industrial load data, and thus realizing the missing data filling of fine-grained smart meters.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of power system loads, and in particular to a method and device for processing missing data for industrial loads. Background Art

[0002] Industrial load is an important part of my country's power load. With the continuous development of the power system and the continuous progress of smart meter technology, the industrial load data in the power system can now obtain fine-grained multi-dimensional data. Compared with conventional load measurement, industrial load data is usually more comprehensive and detailed. Smart meters are configured for each industrial area and industrial equipment to monitor the health status of industrial load in real time. Therefore, the scale of industrial load data is relatively large, and the data dimension is high. In terms of time granularity, the measurement period of industrial load data is usually 15 minutes to 1 hour.

[0003] However, due to communication problems, equipment failures and other reasons, there are often many missing values ​​in the industrial load data in a random form, which will bring significant difficulties to subsequent load forecasting, load decomposition and other tasks. If the samples with missing values ​​are directly deleted, a large amount of data will be lost. Therefore, it is necessary to fill the missing values ​​of the load data. Summary of the invention

[0004] The present application aims to solve one of the technical problems in the related art at least to some extent.

[0005] To this end, the first purpose of the present application is to propose a data missing processing method for industrial loads to solve the technical problem of needing to fill in missing values ​​of load data.

[0006] The second objective of the present application is to provide a data missing processing device for industrial loads.

[0007] To achieve the above-mentioned purpose, a data missing processing method for industrial loads proposed in a first aspect of the present application includes:

[0008] Obtaining load data and user characteristic data of each user, and splitting the load data into multiple data sets according to the user characteristic data;

[0009] Preliminary filling of missing data in the data set that can be directly obtained based on existing load data;

[0010] The matrix decomposition algorithm is used to deeply fill in the data set that still has missing data after the initial filling.

[0011] Optionally, in an embodiment of the present application, splitting the load data into multiple data sets according to the user characteristic data includes:

[0012] The user characteristic data includes an industry identifier;

[0013] Splitting the load data layer by layer into multiple data sets according to the industry identifier, and determining whether all the split data sets have low rank after each layer split;

[0014] If any of the split data sets does not have low rank, the next layer of splitting will be performed on the data set that does not have low rank. If all the split data sets have low rank, the splitting will be stopped.

[0015] Optionally, in an embodiment of the present application, whether all the split data sets have low rank includes:

[0016] The data set is decomposed according to the following formula:

[0017] X=U∑V T

[0018] Where X is an m×n dimensional data set, U is an m×m dimensional unitary matrix, V is an n×n dimensional unitary matrix, and ∑ is an m×n dimensional diagonal matrix;

[0019] The norm ratio of the data set is determined according to the following formula:

[0020]

[0021] Among them, β r is the norm ratio, σ1, σ2, ..., σ l are the elements on the main diagonal of the matrix ∑;

[0022] The r value when the norm ratio is approximately equal to 1 is determined. When the r value is not greater than a preset low rank value, the data set has low rank.

[0023] Optionally, in an embodiment of the present application, the step of splitting the load data into multiple data sets according to the user characteristic data further includes: normalizing the load data of each user, and splitting the normalized load data into multiple data sets according to the user characteristic data, wherein the load data of each user is normalized according to the following formula:

[0024]

[0025] in, is the load data of meter i at time t, capi is the electricity contract capacity of the user to whom meter i belongs, x i,t is the normalized load data.

[0026] Optionally, in one embodiment of the present application, the preliminarily filling in the missing data in the data set that can be directly obtained based on the existing load data includes:

[0027] Based on the laws of physics, the missing data are accurately filled in according to the existing load data, thus completing the preliminary filling of the data set.

[0028] Optionally, in one embodiment of the present application, the step of deeply filling a data set that still has missing data after preliminary filling using a matrix decomposition algorithm includes:

[0029] Determine an initial fitting matrix, and decompose the initial fitting matrix into a row mining matrix and a column mining matrix;

[0030] Perform matrix factorization on datasets that still have missing data;

[0031] Iteratively update the row mining matrix and the column mining matrix using the gradient descent method to obtain the iteratively updated row mining matrix and the column mining matrix;

[0032] The fitting matrix is ​​obtained according to the iteratively updated row mining matrix and column mining matrix, and the elements in the fitting matrix are used to deeply fill the data set with missing data.

[0033] Optionally, in one embodiment of the present application, determining an initial fitting matrix and decomposing the initial fitting matrix into a row mining matrix and a column mining matrix includes: decomposing the initial fitting matrix into a row mining matrix and a column mining matrix according to the following formula:

[0034]

[0035] in, is the m×n dimensional initial fitting matrix, U is the m×k dimensional row mining matrix, V T is an n×k dimensional column mining matrix, where k is the preset embedding vector dimension.

[0036] Optionally, in one embodiment of the present application, performing matrix decomposition on the data set still having missing data includes:

[0037] Perform time series regularization and feature regularization on the row mining matrix and column mining matrix:

[0038] The matrix decomposition of the data set with missing data is performed according to the following formula:

[0039]

[0040] Where J is the objective function. When the objective function is minimized, the matrix decomposition is complete. ⊙ is the Hadamard product, i.e., matrix element-by-element multiplication. X is an m×n dimensional matrix determined based on a data set with missing data. is the m×n dimensional initial fitting matrix, λ1||U|| 2 ,λ2||V|| 2 is the regularization term, λ3||BU|| 2 is the temporal regularization term, λ4||c T V|| 2 is the feature regularization term, λ1-λ4 are the preset regularization coefficients; B is the matrix c is a preset 1×k dimensional vector;

[0041] Determine matrix A based on matrix X, set the elements at missing data in matrix X to 0, and the elements at non-missing data to 1, so as to obtain matrix A.

[0042] Optionally, in one embodiment of the present application, the iterative updating of the row mining matrix and the column mining matrix by using the gradient descent method includes:

[0043] Determine the learning rate and iteratively update the row mining matrix and column mining matrix using the gradient descent method according to the following formula:

[0044]

[0045]

[0046]

[0047]

[0048] in, is the gradient of the row mining matrix and the column mining matrix, d is the learning rate, is the row mining matrix after iterative update, The column mining matrix after iterative update.

[0049] In summary, the method proposed in the first aspect of the embodiment of the present application obtains the load data and user characteristic data of each user, splits the load data into multiple data sets according to the user characteristic data; preliminarily fills the missing data in the data set that can be directly obtained based on the existing load data; and uses a matrix decomposition algorithm to deeply fill the data set that still has missing data after the preliminary filling. The present application can use the correlation between various types of measurement data in smart meters to mine complex association patterns in the data, effectively mine the association between different time and different load components, thereby improving the accuracy of missing value filling, effectively filling the missing values ​​of industrial load data, thereby realizing the missing data filling of fine-grained smart meters, and providing an effective reference for missing data filling of industrial loads.

[0050] To achieve the above-mentioned purpose, a data missing processing device for industrial loads is proposed in a second embodiment of the present application, comprising:

[0051] A splitting module, used to obtain load data and user characteristic data of each user, and split the load data into multiple data sets according to the user characteristic data;

[0052] A preliminary filling module is used to preliminarily fill in the missing data in the data set that can be directly obtained based on the existing load data;

[0053] The deep filling module is used to use the matrix decomposition algorithm to deeply fill the data set that still has missing data after the initial filling.

[0054] In summary, the technical solution provided by the embodiments of the present application brings at least the following beneficial effects:

[0055] 1) By using the matrix decomposition method to process multivariate industrial load data filling, the two decomposed matrices respectively mine the correlation of load data in time series and the correlation of different types of measurement data, thereby mining the complex association patterns in the data and realizing the missing data repair of fine-grained smart meters;

[0056] 2) By dividing the data set into layers based on industry identifiers, each data set after division satisfies the low rank property and the size of each data set is moderate, thus ensuring the feasibility of matrix decomposition;

[0057] 3) By designing appropriate regularization terms for the row mining matrix and the column mining matrix based on the inherent characteristics of industrial load data during matrix decomposition, the matrix decomposition results are made reasonable and interpretable.

[0058] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0060] Figure 1 A flowchart of a multiple filling method provided in an embodiment of the present application;

[0061] Figure 2 A flowchart of a data missing processing method for industrial loads provided in an embodiment of the present application;

[0062] Figure 3 A schematic diagram of the user characteristic data structure provided in the embodiment of the present application;

[0063] Figure 4 A schematic diagram of the structure of preprocessed load data provided in an embodiment of the present application;

[0064] Figure 5 A schematic diagram of the fitting matrix decomposition provided in an embodiment of the present application;

[0065] Figure 6 A schematic diagram showing a comparison of missing value filling effect tables provided in an embodiment of the present application;

[0066] Figure 7 A schematic diagram showing a comparison of the missing value filling effects provided in the embodiments of the present application;

[0067] Figure 8 A schematic diagram of the structure of a data missing processing device for industrial loads provided in an embodiment of the present application. DETAILED DESCRIPTION

[0068] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be construed as limiting the present application. On the contrary, the embodiments of the present application include all changes, modifications and equivalents that fall within the spirit and connotation of the appended claims.

[0069] For the missing values ​​of load data in the power system, the existing processing methods are mainly based on statistical methods to fill in the missing values, mainly including the following four methods:

[0070] The first method: mean filling method, that is, using the mean of non-missing data of the same feature to fill missing values, specifically through the following formula:

[0071]

[0072] Among them, y imp Indicates the filling value of feature y, Y kno Represents the set of known data (non-missing data) of feature y, n represents Y kno The number of elements in ;

[0073] Although the mean filling method is simple and widely used, it does not effectively consider the correlation between different features, so the error is often large;

[0074] The second method is regression filling method, which is to perform linear regression between feature y and feature x, so that when y is missing, it can be inferred based on the known x. The specific filling is done through the following formula:

[0075]

[0076]

[0077] Among them, X kno , Y kno are the sets of known data in feature x and feature y respectively, are the means of the known data in feature x and feature y, respectively. imp,i is the filling value of the i-th data in feature y;

[0078] The regression filling method considers the association between different features to a certain extent, but it models the relationship between different features as a linear relationship, which still has certain errors when applied to complex data sets;

[0079] The third method: K-Nearest Neighbor (KNN), that is, the distance between samples is calculated based on known data to find the k samples closest to the sample to be filled, and the mean of these k samples in the dimension to be filled is used as the filling value of the sample to be filled. The distance is usually calculated in the Euclidean distance. Specifically, the k samples x closest to sample y are calculated by the following formula: (1) , ..., x (k) :

[0080]

[0081] Among them, x and y are feature x samples and feature y samples respectively. i ,y i are the i-th known features in feature x samples and feature y samples respectively;

[0082] The fill value is calculated by the following formula:

[0083]

[0084] Among them, ym is the mth feature to be filled in the feature y sample;

[0085] The fourth method: multiple filling method, that is, filling the missing data multiple times based on a certain randomness to obtain multiple groups of filling values, and then merging these groups of results based on a certain statistical method to obtain the final filling value. The specific process is as follows Figure 1 As shown in the figure, the mice function fills the data set multiple times to obtain multiple groups of filled data; the with function analyzes the multiple groups of filled data based on statistical methods; the pool function merges the multiple groups of filled data based on the analysis results, and represents the uncertainty brought by the multiple filling method based on the standard deviation and p-value.

[0086] The above four methods are all based on some simple statistical or computational methods to fill in missing values, and are mostly used in grid transformer node loads and new energy missing data filling without smart meters installed. The power data of these nodes usually only contain power information, the data dimension is relatively simple, the data is not complex, and the error of data repair has relatively little impact on subsequent prediction and other data processing tasks. Therefore, the above methods can achieve certain results and meet the needs of practical applications.

[0087] Industrial load data is relatively complex. One industrial user corresponds to the data of multiple meters, and each meter monitors multi-phase active and reactive power in real time, and the data dimension is relatively high. Therefore, for multi-dimensional industrial load data equipped with smart meters, fine-grained user electricity consumption measurement data can usually be obtained, which usually includes the total active and reactive power of three phases and the active and reactive data of items A, B, and C. It can be found that there may be complex correlations between the various dimensions of the measurement data provided by smart meters, and even clear physical laws. If the repair is not appropriate, the impact on the analysis of subsequent data will be greater. Therefore, traditional data filling methods may not be applicable. However, there are relatively few studies on missing measurement data for fine-grained industrial loads.

[0088] Example 1

[0089] Figure 2 A flowchart of a data missing processing method for industrial loads provided in an embodiment of the present application.

[0090] like Figure 2 As shown, a data missing processing method for industrial loads provided in an embodiment of the present application includes the following steps:

[0091] Step 110, obtaining load data and user characteristic data of each user, and splitting the load data into multiple data sets according to the user characteristic data;

[0092] Step 120, preliminarily filling in missing data in the data set that can be directly obtained based on existing load data;

[0093] Step 130 , using a matrix decomposition algorithm to perform deep filling on the data set that still has missing data after the initial filling.

[0094] Specifically, in the original data, each user has multiple meters, and the measurement data of each meter includes total active power, A-phase active power, B-phase active power, C-phase active power, total reactive power, A-phase reactive power, B-phase reactive power, and C-phase reactive power. The data of each user is divided into load data and user characteristic data;

[0095] Furthermore, the user feature data structure is as follows: Figure 3 As shown, the original load data measured by each meter is split and preprocessed into a suitable format based on the user identification, meter identification, industry identification, and operating capacity. The structure of the preprocessed load data is as follows: Figure 4 As shown, There are missing values ​​in .

[0096] Furthermore, since the load patterns of different voltage levels and industries vary greatly, the original load data measured by each meter is split into multiple data sets based on the industry identifier, so that users in the same data set have more similar electricity usage behaviors, and then the multiple split data sets are trained and missing values ​​are filled separately.

[0097] In the embodiment of the present application, the load data is split into multiple data sets according to the user characteristic data, including:

[0098] User characteristic data includes industry identification;

[0099] The load data is split into multiple data sets layer by layer according to the industry identification. After each layer is split, it is determined whether all the split data sets have low rank.

[0100] If any of the split data sets does not have low rank, the next layer of splitting will be performed on the data set that does not have low rank. If all the split data sets have low rank, the splitting will be stopped.

[0101] It should be noted that each data set after splitting needs to have an appropriate size. If the data set is too large, the electricity consumption behaviors of many users in it will vary greatly, and the matrix formed by the data set will be difficult to meet the low-rank property, which will bring difficulties to matrix decomposition; if the data set is too small, there will be less valid data, which will affect the accuracy of data filling.

[0102] Specifically, the industry identifier is a four-digit code based on the National Economic Industry Classification Standard (GB / T4754-2002). The first two digits represent the industry category, the first three digits represent the middle category, and the first four digits represent the subcategory. For example, if the industry identifier is 0111, 01 represents agriculture, 011 represents the planting of grains and other crops, and 0111 represents the planting of grains. Based on the industry identifier, the data set is split layer by layer from the industry category to the subcategory.

[0103] In the embodiment of the present application, whether all split data sets have low rank includes:

[0104] The data set is decomposed according to the following formula:

[0105] X=U∑V T

[0106] Where X is an m×n dimensional data set, U is an m×m dimensional unitary matrix, V is an n×n dimensional unitary matrix, and ∑ is an m×n dimensional diagonal matrix;

[0107] The norm ratio of the data set is determined according to the following formula:

[0108]

[0109] Among them, β r is the norm ratio, σ1, σ2, ..., σ l are the elements on the main diagonal of the matrix ∑;

[0110] The r value when the norm ratio is approximately equal to 1 is determined. When the r value is not greater than a preset low rank value, the data set has low rank.

[0111] Specifically, σ1, σ2,...,σ l are the elements on the main diagonal of the matrix ∑, i.e., the singular values, where σ1≥σ2≥…≥σ l ≥0, r∈{1, 2,…,l};

[0112] Furthermore, based on the industry identification, the low-rank threshold is set to 5 and β is determined. r >0.99, if r≤5, it means that X satisfies the low rank condition.

[0113] In an embodiment of the present application, the load data is split into multiple data sets according to the user characteristic data, and further includes: normalizing the load data of each user, and splitting the normalized load data into multiple data sets according to the user characteristic data, wherein the load data of each user is normalized according to the following formula:

[0114]

[0115] in, is the load data of meter i at time t, cap i is the electricity contract capacity of the user to whom meter i belongs, x i,t is the normalized load data.

[0116] Specifically, the load data of each user is normalized based on the operating capacity, so that the scale of the load data of each user is consistent. After normalization, the scale of the load data of each user is consistent and is in the interval [0, 1].

[0117] In the embodiment of the present application, the missing data in the data set that can be directly obtained based on the existing load data is preliminarily filled, including:

[0118] Based on the laws of physics, the missing data are accurately filled in according to the existing load data, thus completing the preliminary filling of the data set.

[0119] Furthermore, for the four active powers, namely the total active power, A-phase active power, B-phase active power, and C-phase active power, if there is only one active power missing, it can be accurately filled based on the other three active powers; similarly, for the four reactive powers, namely the total reactive power, A-phase reactive power, B-phase reactive power, and C-phase reactive power, if there is only one reactive power missing, it can be accurately filled based on the other three reactive powers.

[0120] Furthermore, if the total active power or the total reactive power is missing, the data is filled in according to the following formula:

[0121] x total =x A +x B +x C

[0122] Among them, x total is the filling value of total active power or total reactive power, x A is the active power of phase A or the reactive power of phase A, x B is the active power of phase B or the reactive power of phase B, x C is the C phase active power or C phase reactive power;

[0123] If the total active power or the total reactive power is known, and any one of the other three active powers is missing or any one of the other three reactive powers is missing, fill in the data according to the following formula:

[0124]

[0125] Among them, x i is the missing active power among the other three active powers or the missing reactive power among the other three reactive powers; x -iis the two existing active powers among the other three active powers or the two existing reactive powers among the other three reactive powers; x total is the total active power or the total reactive power.

[0126] In the embodiment of the present application, a matrix decomposition algorithm is used to deeply fill in the data set that still has missing data after preliminary filling, including:

[0127] Determine an initial fitting matrix, and decompose the initial fitting matrix into a row mining matrix and a column mining matrix;

[0128] Perform matrix factorization on datasets that still have missing data;

[0129] Iteratively update the row mining matrix and the column mining matrix using the gradient descent method to obtain the iteratively updated row mining matrix and the column mining matrix;

[0130] The fitting matrix is ​​obtained according to the iteratively updated row mining matrix and column mining matrix, and the elements in the fitting matrix are used to deeply fill the data set with missing data.

[0131] In an embodiment of the present application, determining an initial fitting matrix and decomposing the initial fitting matrix into a row mining matrix and a column mining matrix includes: decomposing the initial fitting matrix into a row mining matrix and a column mining matrix according to the following formula:

[0132]

[0133] in, is the m×n dimensional initial fitting matrix, U is the m×k dimensional row mining matrix, V T is an n×k dimensional column mining matrix, where k is the preset embedding vector dimension.

[0134] Specifically, the core idea of ​​matrix decomposition is to use the matrix Fit the data set X. If The error between the missing part and X is small enough, indicating that Such matrix decomposition can effectively mine the associations between samples and features in the dataset X, that is, It can effectively fit X, so it can be used The elements in fill the missing parts of the dataset X, such as Figure 5 As shown;

[0135] Specifically, is an m×n dimensional initial fitting matrix. When deeply filling a data set with missing data, m is the number of time points and n is the number of variables measured by the smart meter. The matrix U assigns a k-dimensional embedding vector to each row of data to mine the association between samples or rows. The matrix V assigns a k-dimensional embedding vector to each column of data to mine the association between features or columns.

[0136] Furthermore, different rows represent different electricity meters and measurement times, and different columns represent different types of measurement data. Matrix U mines the association between time series data, and matrix V mines the association between different types of measurement data.

[0137] In an embodiment of the present application, matrix decomposition is performed on a data set that still has missing data, including:

[0138] Perform time series regularization and feature regularization on the row mining matrix and column mining matrix:

[0139] The matrix decomposition of the data set with missing data is performed according to the following formula:

[0140]

[0141] Where J is the objective function. When the objective function is minimized, the matrix decomposition is complete. ⊙ is the Hadamard product, i.e., matrix element-by-element multiplication. X is an m×n dimensional matrix determined based on a data set with missing data. is the m×n dimensional initial fitting matrix, λ1||U|| 2 ,λ2||V|| 2 is the regularization term, λ3||BU|| 2 is the temporal regularization term, λ4||c T V|| 2 is the feature regularization term, λ1-λ4 are the preset regularization coefficients; B is the matrix c is a preset 1×k dimensional vector;

[0142] Determine matrix A based on matrix X, set the elements at missing data in matrix X to 0, and the elements at non-missing data to 1, so as to obtain matrix A.

[0143] Specifically, To fit the error, since the load of industrial load is relatively stable and the load change between adjacent moments is usually small, the time series regularization term λ3||BU|| 2 In order to regularize the first-order difference of the matrix U, the matrix U is constrained so that the fitted data has time series stability and avoids significant load fluctuations.

[0144] Specifically, according to Kirchhoff's law, there is an obvious correlation between the measurement data variables provided by the industrial load equipped with smart meters: total active power, A-phase active power, B-phase active power, C-phase active power, total reactive power, A-phase reactive power, B-phase reactive power, and C-phase reactive power. During the repair process, considering the correlation can help improve the accuracy of the repair.

[0145] Furthermore, according to the measurement data of the eight electric meters, namely, total active power, A phase active power, B phase active power, C phase active power, total reactive power, A phase reactive power, B phase reactive power, and C phase reactive power, the matrix V is determined as The vector c is Among them, v1 represents the embedded vector of total active power, v2, v3, v4 represent the embedded vectors of phase A active power, phase B active power, and phase C active power respectively; v5 represents the embedded vector of total reactive power, v6, v7, v8 represent the embedded vectors of phase A reactive power, phase B reactive power, and phase C reactive power respectively;

[0146] Furthermore, based on the matrix V and the vector c, we can get

[0147] c T V=(v1-v2-v3-v4)+(v5-v6-v7-v8)

[0148] From this we can get the feature regularization term λ4||c T V|| 2 The total active power embedding vector is made as close as possible to the sum of the embedded vectors of the active power of phase A, the active power of phase B, and the active power of phase C, and the total reactive power embedding vector is made as close as possible to the sum of the embedded vectors of the reactive power of phase A, the reactive power of phase B, and the reactive power of phase C. That is, the constraints that the total active power is equal to the sum of the active power of phase A, the active power of phase B, and the active power of phase C, and the total reactive power is equal to the sum of the reactive power of phase A, the reactive power of phase B, and the reactive power of phase C are given, so that the results of the matrix decomposition are reasonable and explainable.

[0149] In an embodiment of the present application, the row mining matrix and the column mining matrix are iteratively updated using the gradient descent method, including:

[0150] Determine the learning rate and iteratively update the row mining matrix and column mining matrix using the gradient descent method according to the following formula:

[0151]

[0152]

[0153]

[0154]

[0155] in, is the gradient of the row mining matrix and the column mining matrix, d is the learning rate, is the row mining matrix after iterative update, The column mining matrix after iterative update.

[0156] Specifically, randomly initialize the matrix U and the matrix V, and iteratively update the matrix U and the matrix V using the gradient descent method until the gradient When the values ​​of all elements in are less than the set threshold, the iteration is stopped. And the matrix Get the fitting matrix use Fill missing values ​​in X with the elements in .

[0157] For example, we selected industrial load data of a certain region for three months as a calculation example, including measurement data of 345 electric meters of 200 industrial users. The load data has eight features, namely total active power, A-phase active power, B-phase active power, C-phase active power, total reactive power, A-phase reactive power, B-phase reactive power, and C-phase reactive power. The load is measured every 15 minutes, and each load contains 96 load data per day.

[0158] 20% of the data are randomly removed from the industrial load data of these three months as missing values, and the missing values ​​are filled using the method proposed in the embodiment of the present application, so as to compare the filling result with the true value. The evaluation index adopts the root mean square error (RMSE), and the root mean square error is determined by the following formula:

[0159]

[0160] Among them, x true,i is the ith true value, x imp,i is the i-th filling value.

[0161] Specifically, based on the evaluation index, the filling effect of the method proposed in the embodiment of the present application is compared with the mean filling method, the K nearest neighbor method, and the multiple filling method. The comparison results are as follows: Figure 6 As shown, the root mean square error of the method proposed in the embodiment of the present application is 1.41, the root mean square error of the mean filling method is 2.07, the root mean square error of the K nearest neighbor method is 1.55, and the root mean square error of the multiple filling method is 1.63. It can be obtained that the root mean square error of the method proposed in the embodiment of the present application is the smallest, which verifies the effectiveness of the method proposed in the embodiment of the present application in applying to industrial load data.

[0162] Furthermore, the missing value filling effect of the total active power curve of a certain meter on a certain day is as follows Figure 7 As shown, MF is the method proposed in the embodiment of the present application, KNN is the K nearest neighbor method, and MICE is the multiple filling method. It can be obtained that the method proposed in the embodiment of the present application is closer to the true value and has a better missing value filling effect.

[0163] In summary, the method proposed in the embodiment of the present application obtains the load data and user characteristic data of each user, splits the load data into multiple data sets according to the user characteristic data; preliminarily fills the missing data in the data set that can be directly obtained based on the existing load data; and uses the matrix decomposition algorithm to deeply fill the data set that still has missing data after the preliminary filling. The present application can use the correlation between various types of measurement data in smart meters to mine the complex association patterns in the data, effectively mine the association between different time and different load components, thereby improving the accuracy of missing value filling, effectively filling the missing values ​​of industrial load data, thereby realizing the missing data filling of fine-grained smart meters, and providing an effective reference for the missing data filling of industrial loads.

[0164] In order to implement the above-mentioned embodiment, the present application also proposes a data missing processing device for industrial loads.

[0165] Figure 8 A schematic diagram of the structure of a data missing processing device for industrial loads provided in an embodiment of the present application.

[0166] like Figure 8 As shown, a data missing processing device for industrial loads includes:

[0167] A splitting module 810 is used to obtain the load data and user characteristic data of each user, and split the load data into multiple data sets according to the user characteristic data;

[0168] A preliminary filling module 820 is used to perform preliminary filling of missing data in the data set that can be directly obtained based on the existing load data;

[0169] The deep filling module 830 is used to perform deep filling on the data set that still has missing data after the initial filling using a matrix decomposition algorithm.

[0170] In summary, the device proposed in the embodiment of the present application obtains the load data and user characteristic data of each user through the splitting module, and splits the load data into multiple data sets according to the user characteristic data; the preliminary filling module performs preliminary filling on the missing data in the data set that can be directly obtained based on the existing load data; the deep filling module uses the matrix decomposition algorithm to deeply fill the data set that still has missing data after the preliminary filling. The present application can utilize the correlation between various types of measurement data in smart meters to mine the complex association patterns in the data, effectively mine the association between different time and different load components, thereby improving the accuracy of missing value filling, effectively filling the missing values ​​of industrial load data, thereby realizing the missing data filling of fine-grained smart meters, and providing an effective reference for the missing data filling of industrial loads.

[0171] It should be noted that, in the description of this application, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of this application, unless otherwise specified, the meaning of "plurality" is two or more.

[0172] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0173] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0174] A person skilled in the art may understand that all or part of the steps in the above-mentioned embodiment method may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0175] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0176] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.

[0177] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0178] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A data missing processing method for industrial loads, characterized in that: The method comprises: Obtain the load data and user characteristic data of each user, split the load data into multiple data sets according to the user characteristic data, wherein the user characteristic data includes an industry identifier, and split the load data layer by layer into multiple data sets according to the industry identifier, and judge whether all the split data sets have low rank after each layer of splitting; if any of the split data sets does not have low rank, perform the next layer of splitting on the data set that does not have low rank, and if all the split data sets have low rank, stop splitting; Preliminary filling of missing data in the data set that can be directly obtained based on the existing load data, wherein the missing data is accurately filled according to the existing load data based on the laws of physics, thereby completing the preliminary filling of the data set; A matrix decomposition algorithm is used to deeply fill in a data set that still has missing data after preliminary filling, wherein an initial fitting matrix is ​​determined, and the initial fitting matrix is ​​decomposed into a row mining matrix and a column mining matrix; matrix decomposition is performed on the data set that still has missing data; the row mining matrix and the column mining matrix are iteratively updated using a gradient descent method to obtain an iteratively updated row mining matrix and a column mining matrix; a fitting matrix is ​​obtained based on the iteratively updated row mining matrix and column mining matrix, and the elements in the fitting matrix are used to deeply fill in the data set that has missing data; The matrix decomposition of the data set still having missing data includes: Perform time series regularization and feature regularization on the row mining matrix and column mining matrix: The matrix decomposition of the data set with missing data is performed according to the following formula: Where J is the objective function. When the objective function is minimized, the matrix decomposition is complete. ⊙ is the Hadamard product, i.e., matrix element-by-element multiplication. X is an m×n dimensional matrix determined based on a data set with missing data. is the m×n dimensional initial fitting matrix, , is the regularization term, is the time series regularization term, is the feature regularization term, - is the preset regularization coefficient; B is the matrix ; c is a preset 1×k dimensional vector; U is an m×k dimensional row mining matrix; is an n×k-dimensional column mining matrix; k is the preset embedding vector dimension; Determine matrix A based on matrix X, set the elements at missing data in matrix X to 0, and the elements at non-missing data to 1, so as to obtain matrix A.

2. The method according to claim 1, characterized in that Whether all the split data sets have low rank, including: The data set is decomposed according to the following formula: Where X is an m×n dimensional data set, U is an m×m dimensional unitary matrix, V is an n×n dimensional unitary matrix, and Σ is an m×n dimensional diagonal matrix; The norm ratio of the data set is determined according to the following formula: in, is the norm ratio, are the elements on the main diagonal of the matrix Σ; Determine when the norm ratio is approximately equal to 1 Value, when When the value is not greater than the preset low-rank value, the data set has low rank.

3. The method according to claim 1, characterized in that The step of dividing the load data into a plurality of data sets according to the user characteristic data further includes: normalizing the load data of each user, and dividing the normalized load data into a plurality of data sets according to the user characteristic data, wherein the load data of each user is normalized according to the following formula: in, For electric meter At Load data at the moment, For electric meter The electricity consumption contract capacity of the user, is the normalized load data.

4. The method according to claim 1, characterized in that The determining of the initial fitting matrix and decomposing the initial fitting matrix into a row mining matrix and a column mining matrix includes: decomposing the initial fitting matrix into a row mining matrix and a column mining matrix according to the following formula: in, is the m×n dimensional initial fitting matrix, U is the m×k dimensional row mining matrix, is an n×k dimensional column mining matrix, where k is the preset embedding vector dimension.

5. The method according to claim 1, characterized in that The method of iteratively updating the row mining matrix and the column mining matrix using the gradient descent method includes: Determine the learning rate and iteratively update the row mining matrix and column mining matrix using the gradient descent method according to the following formula: in, , is the gradient of the row mining matrix and the column mining matrix, α is the learning rate, is the row mining matrix after iterative update, The column mining matrix after iterative update.

6. A data missing processing device for industrial loads, characterized in that: include: A splitting module, used to obtain the load data and user characteristic data of each user, and split the load data into multiple data sets according to the user characteristic data, wherein the user characteristic data includes an industry identifier, and the load data is split layer by layer into multiple data sets according to the industry identifier, and each time a layer of splitting is performed, it is determined whether all the split data sets have low rank; if any of the split data sets does not have low rank, the next layer of splitting is performed on the data set that does not have low rank, and if all the split data sets have low rank, the splitting is stopped; A preliminary filling module is used to preliminarily fill in missing data in the data set that can be directly obtained based on the existing load data, wherein the missing data is accurately filled in according to the existing load data based on the laws of physics, thereby completing the preliminary filling of the data set; A deep filling module is used to use a matrix decomposition algorithm to deeply fill a data set that still has missing data after preliminary filling, wherein an initial fitting matrix is ​​determined, and the initial fitting matrix is ​​decomposed into a row mining matrix and a column mining matrix; matrix decomposition is performed on the data set that still has missing data; the row mining matrix and the column mining matrix are iteratively updated using a gradient descent method to obtain an iteratively updated row mining matrix and a column mining matrix; a fitting matrix is ​​obtained based on the iteratively updated row mining matrix and column mining matrix, and the elements in the fitting matrix are used to deeply fill the data set that has missing data; The depth filling module is used to perform matrix decomposition on a data set that still has missing data, specifically for: Perform time series regularization and feature regularization on the row mining matrix and column mining matrix: The matrix decomposition of the data set with missing data is performed according to the following formula: Where J is the objective function. When the objective function is minimized, the matrix decomposition is complete. ⊙ is the Hadamard product, i.e., matrix element-by-element multiplication. X is an m×n dimensional matrix determined based on a data set with missing data. is the m×n dimensional initial fitting matrix, , is the regularization term, is the time series regularization term, is the feature regularization term, - is the preset regularization coefficient; B is the matrix ; c is a preset 1×k dimensional vector; U is an m×k dimensional row mining matrix; is an n×k-dimensional column mining matrix; k is the preset embedding vector dimension; Determine matrix A based on matrix X, set the elements at missing data in matrix X to 0, and the elements at non-missing data to 1, so as to obtain matrix A.