Tensor-based incomplete data filling method

Through the tensor-based incomplete data filling method, combined with TKCP decomposition and deep neural fuzzy system, the accuracy problem of data recovery in power systems is solved, multi-channel nonlinear structure capture and feature extraction of high-dimensional data are realized, and improved Improve the accuracy and efficiency of data recovery.

CN118760849APending Publication Date: 2024-10-11HEILONGJIANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410913848.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Existing technologies are difficult to accurately restore missing data in power systems, especially in terms of high-dimensional data complexity and nonlinear relationship modeling.

Method used

Using a tensor-based incomplete data filling method, by obtaining the Euclidean distance and correlation distance of the power sensor, mapping it to a two-dimensional plane to form a correlation matrix, and using a deep neuro-fuzzy system that combines TKCP decomposition with LSTM and ANFIS, Extract feature correlations and nonlinear representations for data recovery.

Benefits of technology

It achieves multi-channel nonlinear structure capture and feature mapping in the case of incomplete data, accurately restores missing data in the power system, and improves the accuracy and efficiency of data recovery.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118760849A_ABST
    Figure CN118760849A_ABST
Patent Text Reader

Abstract

The invention discloses an incomplete data filling method based on a tensor, relates to the technical field of data recovery, and aims at solving the problem that missing power data cannot be accurately recovered by an existing method, the data is formulated into a third-order tensor by capturing space information and time information in a multi-dimensional mode. Then, through a tensor nucleation CANDECOMPP / PARAFAC (TKCP) factorization method, missing values of tensor data are marked, priori knowledge of feature correlation in each mode is extracted, nonlinear representation is extracted through an implicitly defined kernel space, a multi-path nonlinear structure of the tensor data can be fully captured under the condition that the data are incomplete, and the non-linear representation is extracted through an implicitly defined kernel space. Multi-path nonlinear feature mapping is adopted to obtain a dual structure preserving kernel of a tensor product feature space so as to obtain decomposed data. And finally, recovering missing data in the power system in combination with the LSTM and the ANFIS. According to the technical scheme, the missing power data can be accurately recovered.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data recovery, and in particular to a tensor-based incomplete data filling method. Background Art

[0002] With the increase of various electrical equipment and the rapid development of renewable energy, the scale of power systems is getting larger and larger, the operating status is getting more and more complex, and the operating environment is also changing. It is overwhelming to process massive amounts of data, and these data are constantly updated in real time. Due to some practical problems, such as communication failures or network attacks, data loss can easily occur. Factors such as insufficient data will not only affect the application's judgment of the current power system status, but also hinder the application's prediction of the stability of the power system, so restoring missing power data is of great significance to the real world. Regarding the problem of incomplete real-time monitoring data of the power system, the approximate low-rank property of the phasor measurement unit (PMU) data is used to recover the lost synchronous phasor measurements (erasure) through the low-rank matrix completion method.

[0003] Since tensors are an extension of vectors or matrices, and are also the natural storage and representation of a wide range of multidimensional data such as color images and videos, in order to better and faster utilize power system data and recover incomplete multidimensional data, the tensor completion problem has received increasing attention and application in many fields. The low rank of tensors can be well applied to tensor completion. In short, missing power data can be recovered by tensor methods. In the prior art, a method for recovering missing data of phasor measurement units (PMUs) based on tensor decomposition is proposed. CANDECOMP / PARAFAC factorization (CP) is the most popular and latest algorithm in the decomposition method. In recent years, the kernelized CP (KCP) factorization method has been highly praised by the academic community for its excellent scalability, and many successful cases of traditional machine learning applications have confirmed its effectiveness. As an emerging field, KCP factorization provides a good approximation of the original tensor data, which not only involves multilinear formulas, but also models the nonlinear relationship in the tensor object.

[0004] As an emerging hybrid method, DNFS has been applied in the field of artificial intelligence. For example, Boumhidi combined deep neural networks (DNNs) with fuzzy systems to generate a new deep neural fuzzy system (DNFS) for detecting urban traffic incidents. An improved fuzzy deep neural network method is proposed in the prior art for situation assessment of multiple drones. Zhang S proposed a new deep learning model called deep fuzzy echo state network, which has the advantage of reducing the amount of calculation while improving the feature extraction capability. The prior art also combines deep learning with unsupervised fuzzy c-means for CT-based liver tumor segmentation. However, the existing deep neural fuzzy systems simply combine deep neural networks (DNNs) with fuzzy systems, and do not take into account the complexity of high-dimensional data. As a result, the existing methods cannot accurately restore the missing power data. Summary of the invention

[0005] The purpose of the present invention is to propose a tensor-based incomplete data filling method to address the problem that existing methods cannot accurately restore missing power data.

[0006] The technical solution adopted by the present invention to solve the above technical problems is:

[0007] The incomplete data filling method based on tensor includes the following steps:

[0008] Step 1: Obtain the two power sensors with the largest Euclidean distance among the power sensors, and record the two power sensors with the largest Euclidean distance as and

[0009] Step 2: and Mapped into a two-dimensional plane, The coordinates in the plane are defined as (0,1), The coordinates in the two-dimensional plane are defined as (1,0);

[0010] Step 3: Remove and The remaining power sensors other than and Calculating the correlation distance, and obtaining the coordinates of the remaining power sensor in the two-dimensional plane according to the correlation distance;

[0011] Step 4: Map all power sensors into the correlation matrix O. The specific steps are as follows:

[0012] First, arrange the power sensors from small to large according to the size of the horizontal coordinates, and then arrange them from small to large according to the size of the vertical coordinates;

[0013] Step 5: Using the time dimension, capture the time information of each power sensor in the correlation matrix O, and then obtain a third-order tensor;

[0014] Step 6: Perform TKCP decomposition on each tensor sample in the three-dimensional tensor. The TKCP decomposition is expressed as:

[0015]

[0016] in, represents the objective function of decomposition, G represents the number of samples, and H represents a set of functions that form the Hilbert space, i.e., the hypothesis space. represents the regularization term, F * represents a neural network, ||F * || represents the sum of the absolute values ​​of all weights, λ represents the regularization parameter, and ||·|| * represents the nuclear norm, represents the i-th tensor sample, express Data obtained after TKCP decomposition;

[0017] Step 7: Input the tensor samples after TKCP decomposition into LSTM and ANFIS respectively to obtain the missing value prediction results output by LSTM And the missing value prediction result y″ output by ANFIS;

[0018] Step 8: Subtract y″ and take the absolute value to get ε, which is expressed as:

[0019]

[0020] Step 9: Compare ε with the threshold θ to obtain the filled data y total ,y total It is expressed as:

[0021]

[0022] Step 9: Repeat steps 6 to 9 until all tensor samples after TKCP decomposition are processed, that is, the incomplete data filling is completed.

[0023] Furthermore, the maximum Euclidean distance between the two power sensors is expressed as:

[0024]

[0025] Where, dist(*,*) represents the Euclidean distance between two sensors, o i represents the i-th sensor, i=1,2...,M,o j represents the jth sensor, j=1, 2, ..., M, and j≠i, and M represents the total number of sensors.

[0026] Further, the correlation distance is expressed as:

[0027]

[0028] Among them, ρ represents the correlation coefficient in mathematical theorem, cov(*,*) represents covariance, and var(*) represents variance.

[0029] Further, the coordinates of the remaining power sensor are expressed as:

[0030]

[0031] Among them, k represents the kth sensor, k = 1, 2..., M, and k≠j≠i, o′ k Represents the coordinates of the kth sensor mapped to the two-dimensional plane.

[0032] Furthermore, the It is expressed as:

[0033]

[0034] Among them, Mask represents the mask, x i(m,n,q) Represents the element of the i-th tensor sample data, m, n, q represent the tensor order of the first dimension, the tensor order of the second dimension, and the tensor order of the third dimension, respectively. 1≤m≤M, M represents the total order of the tensor of the first dimension, 1≤n≤N, N represents the total order of the tensor of the second dimension, 1≤q≤Q, Q represents the total order of the tensor of the third dimension.

[0035] Furthermore, the f * (x i(m,n,q) ) is expressed as:

[0036]

[0037] in, Represents the corresponding elements after decomposition.

[0038] Furthermore, the It is expressed as:

[0039]

[0040] Among them, Wf , W c , W i , W o represents the weight, b f , b c , b i , b o represents the bias, Ψ(·) represents the hyperbolic tangent function, Θ represents the Hadamard product, and f t′ represents the forget gate, Represents memory element, i t′ represents the input gate, c t′ represents the updated memory element at time t′, o t′ represents the output gate, σ and Ψ represent the kernel function, Indicates cascade, c t′-1 Represents the updated memory element at time t′-1.

[0041] Further, the y″ is expressed as:

[0042]

[0043] Among them, ξ represents the ξth rule, represents the number of fuzzy rules, represents the first The fuzzy set of inputs, f ξ (·) represents the output of the ξth rule, represents the fuzzy reasoning layer, represents the fuzzy normalization layer, represents the fuzzification layer, and Υ(·) represents the membership function.

[0044] The beneficial effects of the present invention are:

[0045] This application captures spatial information and temporal information in a multi-dimensional way and formulates the data into a third-order tensor. Then, this application uses a tensor kernelized CANDECOMP / PARAFAC (TKCP) factorization method to mark the missing values ​​of the tensor data, extract the prior knowledge of feature correlations in each mode, and extract nonlinear representations through an implicitly defined kernel space. It can fully capture the multi-channel nonlinear structure of the tensor data when the data is incomplete, and adopts multi-channel nonlinear feature mapping to obtain the dual structure-preserving kernel of the tensor product feature space, and then obtain the decomposed data. Finally, LSTM and ANFIS are combined to restore the missing data in the power system. The technical solution of this application can accurately restore the missing power data. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 It is a schematic diagram of a third-order tensor;

[0047] Figure 2 This is a schematic diagram of TKCP decomposition;

[0048] Figure 3 Schematic diagram of the process of obtaining filled data;

[0049] Figure 4 Schematic diagram of tensor decomposition based on correlation distance on the New England test system;

[0050] Figure 5 It is the correlation heat map between sensors;

[0051] Figure 6 It is a schematic diagram of heuristic arrangement based on correlation distance;

[0052] Figure 7 It is a schematic diagram of the correlation matrix;

[0053] Figure 8 It is the training loss graph of TKCP-DNFS;

[0054] Fig. 9 Schematic diagram of missing voltage data in power system for TKCP-DNFS prediction;

[0055] Fig.10 The diagram is a schematic diagram of the actual voltage curve of the 300 missing voltage values ​​and the voltage prediction results of each model;

[0056] Fig.11 Schematic diagram of the comparison between the intuitive error of TKCP-DNFS and the intuitive errors of ANFIS and ConvLSTM. DETAILED DESCRIPTION

[0057] It should be particularly noted that, in the absence of conflict, the various embodiments disclosed in this application can be combined with each other.

[0058] Specific implementation method 1: refer to Figure 1 Specifically describing this embodiment, the tensor-based incomplete data filling method described in this embodiment includes the following steps:

[0059] Step 1: Obtain the two power sensors with the largest Euclidean distance among the power sensors, and record the two power sensors with the largest Euclidean distance as and

[0060] Step 2: and Mapped into a two-dimensional plane, The coordinates in the plane are defined as (0,1), The coordinates in the two-dimensional plane are defined as (1,0);

[0061] Step 3: Remove and The remaining power sensors other than and Calculating the correlation distance, and obtaining the coordinates of the remaining power sensor in the two-dimensional plane according to the correlation distance;

[0062] Step 4: Map all power sensors into the correlation matrix O. The specific steps are as follows:

[0063] First, arrange the power sensors from small to large according to the size of the horizontal coordinates, and then arrange them from small to large according to the size of the vertical coordinates;

[0064] Step 5: Using the time dimension, capture the time information of each power sensor in the correlation matrix O, and then obtain a third-order tensor;

[0065] Step 6: Perform TKCP decomposition on each tensor sample in the three-dimensional tensor. The TKCP decomposition is expressed as:

[0066]

[0067] in, represents the objective function of decomposition, G represents the number of samples, and H represents a set of functions that form the Hilbert space, i.e., the hypothesis space. represents the regularization term, F * represents a neural network, ||F * || represents the sum of the absolute values ​​of all weights, λ represents the regularization parameter, and ||·|| * represents the nuclear norm, represents the i-th tensor sample, express Data obtained after TKCP decomposition;

[0068] Step 7: Input the tensor samples after TKCP decomposition into LSTM and ANFIS respectively to obtain the missing value prediction results output by LSTM And the missing value prediction result y″ output by ANFIS;

[0069] Step 8: Subtract y″ and take the absolute value to get ε, which is expressed as:

[0070]

[0071] Step 9: Compare ε with the threshold θ to obtain the filled data y total ,y totalIt is expressed as:

[0072]

[0073] Step 9: Repeat steps 6 to 9 until all tensor samples after TKCP decomposition are processed, that is, the incomplete data filling is completed.

[0074] The neuro-fuzzy system embeds fuzzy reasoning rules into a neural network. It is a combination of a neural network and a fuzzy system, so its design follows the learning process of the neural network. ANFIS was first proposed in 1993, which is one of the earliest variants of hybrid neuro-fuzzy reasoning. Neuro-fuzzy networks are applied to classification tasks and control systems to solve function approximation problems. A small number of authors have considered combining deep neural networks and fuzzy systems, applying fuzzy clustering systems to deep neural networks for feature extraction and image classification. ANFIS and long short-term memory (LSTM) structures are combined to estimate the interaction forces in robot-assisted minimally invasive scenarios. The GAN network is replaced by a deep neuro-fuzzy network as a classifier, replacing the traditional deep convolutional generative adversarial network (DCGAN), and the performance of this model is much higher than that of DCGAN.

[0075] In the past decade, tensors, also known as multi-arrays, have been widely used in various fields such as computer vision, machine learning, and data mining. Tensor data is prone to missing values ​​and sparse noise during collection, processing, and analysis. However, through the low-rank nature of tensors, the present application can reconstruct low-rank components from missing data, thereby recovering the missing data. In the prior art, a tensor-based singular value decomposition is proposed to recover missing air quality and meteorological data. A heuristic search method is used to map high-dimensional spatial information into a matrix, and time features are modeled in a multidimensional view, and tensor singular value decomposition is used to recover missing data. However, it is assumed that there is no noise and each module of the tensor is low-rank, which is not very realistic in life. In the prior art, a new high-precision low-rank tensor completion method is used to recover the missing traffic speed data, which can reduce the computational cost of large-scale data sets. However, if all singular values ​​are minimized at the same time, the relaxation of the convex neural network may not be enough to approximate the rank, and good results will not be obtained. The use of CP factor decomposition in the prior art enables better use of kernel methods in tensor learning. Although CP factorization can provide data that is very close to the original tensor, it only involves multilinear relationships and cannot model nonlinear relationships. The prior art proposes a KCP factorization method that uses a multi-way multi-level kernel model to extract tensor data with nonlinear and structure-preserving representations. The KCP factorization technique is used to convert the kernel learning method into the CP factorization framework. However, how to better combine KCP and multi-way multi-level kernel methods to improve learning performance and decompose tensor data with missing values ​​remains to be discussed.

[0076] With the rapid development of the Internet of Everything, it is no longer difficult to obtain historical data, empirical data, and real-time operation data. Tensors are a relatively complex data structure that can connect multiple data, so they can describe very complex data relationships. Traditional methods are difficult to accurately analyze and process complex tensor data. In order to accurately and quickly restore missing data in the power system, machine learning is a relatively effective method. The existing method uses a multi-modal event-driven long short-term memory (LSTM) model to predict financial news stock prices. Another existing method uses a convolutional neural network to process financial data to achieve the prediction of implied volatility and option prices. Tensorized LSTM shares parameters through tensors, where hidden states are represented by tensors and updated through cross-layer convolutions, and time calculations are used to perform deep calculations of sequential tasks. A classification model that combines LSTM and a tensor decomposition layer uses tensors to represent different types of legal cases, and then decomposes the original tensor into a core tensor to train the LSTM model.

[0077] However, the approach of combining tensor methods with DNFS to address the problem of missing data in power systems has not been considered.

[0078] Table 1 Important symbols and descriptions

[0079]

[0080]

[0081] In this application, the task of this application is to accurately restore the missing data in the power system, and to combine the tensor method and the deep neural fuzzy system to apply to the time series data of the power system. In order to solve this problem, this application must first represent the sensor data in the form of a tensor. However, it is a challenge for this application to map these irregularly deployed sensors into an array, because in the physical world, the arrangement of sensors is disorganized and does not happen to form a square or rectangular array. Therefore, this application proposes a heuristic arrangement method based on correlation distance (CD). By calculating the correlation distance between sensors, sensors with irregular geographical locations are mapped into a matrix, and the time dimension is added to capture spatial information and time information in a multi-dimensional manner, and the data is formulated as a third-order tensor.

[0082] The sensor is defined by the transmitted value and can be regarded as a random variable. This application assumes that there are M sensors, denoted as o1, o2, ..., o M , we need to map these M sensors into the matrix O, which is an array of m1×m2. Obviously, m1×m2=M. This application defines the following maximum distance formula:

[0083]

[0084] Where dist(*,*) represents the Euclidean distance between two sensors, o i represents the i-th sensor, obviously, i=1,2...,M. o j represents the jth sensor. Obviously, j=1,2...,M, and j≠i. The two sensors with the farthest distance are denoted as and This application defines The coordinates in the matrix O are The coordinates in the matrix O are

[0085] This application further defines the correlation distance formula

[0086]

[0087] Where ρ represents the correlation coefficient in the mathematical theorem. From the mathematical theorem, we can know that cov(*,*) represents covariance, and var(*) represents variance. According to formula (2), it is obvious that the smaller the correlation, the larger the correlation distance, that is, the farther the distance between sensors, and the larger the correlation, the smaller the correlation distance, that is, the closer the distance between sensors. This basically conforms to the first law of geography, that is, everything is related to everything else, but things that are close are more related than things that are far away.

[0088] In order to rearrange the M sensors into a two-dimensional plane by using the correlation distance method, the coordinates of the sensors are defined as follows in this application:

[0089]

[0090] Among them k represents the kth sensor. Obviously, k=1,2...,M and k≠j≠i. o′ k Represents the coordinates of the kth sensor mapped to the two-dimensional plane.

[0091] Finally, the rearranged sensors are mapped one by one to the matrix O. According to the size of the horizontal coordinates of each sensor in the coordinate system, they are arranged from small to large. The sensors are grouped according to the m1×m2 array, divided into m2 groups, and each group of m1 sensors is a column. The sensors in each group are arranged from small to large according to the vertical coordinates, and mapped to the matrix O from bottom to top. The irregularly deployed sensors can be arranged into an m1×m2 array, which is recorded as the correlation matrix O. Finally, the sensor data is formulated as a third-order tensor. This application adds a time dimension to capture time information, measure the periodic patterns in the sensor data, and model the time features in a multidimensional view to obtain Figure 1 A rank-3 tensor in .

[0092] The number of tensor dimensions is also called the rank. An N-rank tensor can be represented as Among them I n is the cardinality of its nth dimension, n∈{1,2,…,N}. Now there are two tensors and The inner product between tensors can be expressed as:

[0093]

[0094] To convert a tensor into a matrix, all columns along a certain dimension are rearranged to form a matrix. The matrix of the nth dimension can be expressed as It can be done by The dimension is permuted into [I n ,I1,···,I n-1 ,I n+1 ,···,I N], and then reshape the permutation tensor to size The matrix of .

[0095] CP decomposition is a popular technique that aims to explore and extract the underlying structure of multi-channel data. Given an N-order tensor CP factorization finds N loading matrices A (1) ,···,A (N) To approximate the tensor, so that:

[0096]

[0097] in is defined as a shorthand CP decomposition operator, where each loading matrix The size of n∈{1,2,…,N} is I n ×R, R is called a tensor To obtain the CP decomposition Find the minimum value of the estimation error, the objective function is as follows:

[0098]

[0099] However About A (1) ,···,A (N) is not continuously convex. Alternating Least Squares (ALS) is an optimization technique that can solve this problem by alternately minimizing the While fixing other variables, that is,

[0100]

[0101] in

[0102] TKCP Method

[0103] Given a set of G training samples in is the i-th tensor sample, The data obtained by TKCP decomposition is recorded as In order to find the decomposed data The task of this application is to find the function and function where x i(m,n,q) represents the element of the i-th tensor sample data, is the corresponding element after decomposition, then:

[0104]

[0105] Make it more accurate to find the data after TKCP decomposition In the kernel learning scenario, this problem can be formulated as the following optimization problem:

[0106]

[0107] Where G is the number of samples, H is a set of functions that form the Hilbert space, i.e., the hypothesis space. is the regularization term, where F * is a neural network, ||F * || is defined as the sum of the absolute values ​​of all weights, and λ is the regularization parameter. The specific expression is as follows:

[0108]

[0109] Mask refers to the mask. When Mask = 1, the corresponding tensor elements in the tensor sample are masked, that is, random missing values ​​are created through the mask and missing values ​​are marked. When Mask = 0, the corresponding tensor elements in the tensor sample are not masked, that is, the data is not missing. Count (Mask = 0) represents the number of non-missing tensor elements in all samples.

[0110] By using the representation theorem, this can be classically obtained:

[0111]

[0112] where c i is the coefficient, κ(·,·) is the positive definite kernel function, defined as: in Where Φ:X→H is the feature mapping function. Then (10) can be replaced by (13), then

[0113]

[0114] where ||·|| * represents the nuclear norm.

[0115] The kernel function is a very important module. Only by designing a good kernel can we fully encompass all the information required for decomposition. According to the principle of CP decomposition, it only provides an approximate value, not the most relevant and representative feature. Moreover, the standard CP decomposition only has multilinear formulas, so it is impossible to obtain nonlinear relationships in tensor objects. In order to successfully apply kernel learning, a tensor kernelized CP factor decomposition is designed, and a mask is added to create random missing tensor data. Since the basic information of the tensor is embedded in the multi-way structure, the characteristic laws of data hiding can be used to identify the kernel function and design the kernel based on these features. Therefore, using tensor-based kernel learning can more easily extract key structural features to represent tensors, such as Figure 2 As shown, the black cubes represent randomly missing data, and the figure shows the decomposition process of TKCP.

[0116] For simplicity and without loss of generality, this application considers a third-order tensor Inspired by existing technology, The three dimensions of are considered as functions of three variables x, y, and z, which exist in the measurable spaces X, Y, and Z respectively. The goal is to obtain the CP decomposition of where the tensor elements are.

[0117] This application defines the following low-rank function d:

[0118]

[0119] sta r (x)∈H X ,b r (y)∈H Y ,c r (z)∈H Z}

[0120] Among them, H X , H Y and H Z is the specified kernel κ in X, Y and Z respectively X (·,·),κ Y (·,·) and κ Z (·,·) constructed Hilbert space. Here x, y, z can be considered as the index of the dimension, and using the representation theorem, we have

[0121]

[0122] Defining vectors as well as

[0123] Along the matrix and From this we can get:

[0124]

[0125] Then the following criteria can be fitted:

[0126]

[0127] The kernel matrix, and

[0128] If equation (17) chooses κ X (·,·),κY (·,·) and κ Z (·,·) is the Kronecker delta function, that is, the corresponding kernel matrix is ​​the identity matrix. In fact, equation (18) replaces equation (4) to find the nonlinear low-rank approximation method. This application calls equation (17) TKCP decomposition, and the matrix {A, B, C} is called the latent factor matrix, which is different from the loading matrix of CP decomposition. In short, it is not the kernelized tensor data, but the kernelized latent factor matrix.

[0129] set up The TKCP factorization is Define χ and The potential tensor of and They are related to χ and The size of is the same. Inspired by the success of dual structure preserving kernel methods, this application assumes that the latent tensor is mapped into the Hilbert space H by:

[0130]

[0131] in It is a third-order tensor Hilbert space. Since the Hilbert space is actually a high-dimensional space of the original feature space, it has the same operations as the original feature space. Therefore, this application can directly decompose the tensor data in the Hilbert space. Then this application directly considers the following multi-path nonlinear mapping:

[0132]

[0133] That is, the potential tensor is mapped to a high-dimensional tensor that retains the multi-way structure. In other words, the tensor data is mapped to the tensor Hilbert space, and then TKCP factorization is performed in the Hilbert space. The Hilbert space is essentially a tensor product space. After the mapping is completed, the kernel is the standard inner product of the tensor in the space. Therefore, the application can derive the dual structure preserving kernel function as follows:

[0134]

[0135] Through the above derivation, the kernel function takes into account the multi-way structure in the tensor flexibility. In general, the kernel is an extension of the regular kernel in vector space to tensor space. And it is easy to generalize the result to higher-order cases.

[0136] Deep Neural Fuzzy System Based on Tensor Method

[0137] The fuzzy set of adaptive fuzzy inference system (ANFIS) is defined as the domain of discourse. The membership function maps the elements of to the unit interval [0, 1].

[0138]

[0139] Membership can describe the similarity and uncertainty between one event and another. Based on the similarity, membership can represent the elements in the domain. The degree of compatibility with the corresponding elements in Λ. The expression of fuzzy if-then rules is IF Λ this application THEN this application Λ′. Where Λ is a fuzzy set and Λ′ is a function of the corresponding input. The principle of fuzzy rules is to capture the unpredictability of the environment by adding human decision-making to a system. The fuzzy reasoning system is constructed by multiple fuzzy rules, and each if-then fuzzy rule is a description of a small part of the environment in this application, so the neuro-fuzzy system is a rule-based fuzzy system model. Adaptive neuro fuzzyinference system (ANFIS) has become popular since 1993, which is one of the earliest proposed neuro-fuzzy structures. It is a hierarchical feedforward network based on the Takagi-Sugeno-Kang (TSK) fuzzy model reasoning system, which mixes gradient descent and least squares estimation to learn network parameters.

[0140] The TSK ruleset is defined as:

[0141]

[0142] in is the number of fuzzy rules. is the ith tensor data obtained by TKCP decomposition. Decomposed data, is the first The fuzzy set of the input, And is the fuzzy connection operator, f ξ (·) is the output of the ξth rule. Each layer in the TKCP-based ANFIS network is described as follows:

[0143] (1) First level: (Fuzzification) The membership value of the input variable is calculated through the membership function, that is, the degree of compatibility

[0144]

[0145] Where Υ is the membership function, which describes the variable The degree of similarity between and fuzzy set Λ, and The maximum value is 1 and the minimum value is 0.

[0146] (2) Second layer: Obtain the firing strength (weight) of the ξth rule through a specific T-norm operation

[0147]

[0148] (3) The third layer: normalize the shooting intensity of each rule

[0149]

[0150] (4) Fourth layer: Calculate the output of each rule

[0151]

[0152] (5) Fifth layer: (defuzzification) The sum of the outputs of each rule is the final output of the network

[0153]

[0154] Indicates the total number of decomposed data.

[0155] Long Short-Term Memory Network (LSTM)

[0156] In the early days of LSTM, a "memory unit" structure was added instead of a "hyperbolic tangent hidden unit" structure. The memory unit has its own input gate and output gate, which can control when the input is added to the stored analog value, and when the value affects the output. In the later evolution of LSTM, a forget gate was added, which can better learn long-range dependencies. The main reason for the popularity of LSTM is that it is easier to optimize than vanilla-RNN. LSTM uses stochastic gradient descent to make the back-propagation gradient perform better by changing the hidden units. Memory units are conducive to the training of LSTM, which can store previously predicted time information and propagate it to the network when needed. Figure 3 The subsection shows the structure of LSTM. In this application, we consider the time series prediction task At each time step t′∈{1,…,T′}, given an observed input sequence in It refers to the decomposed data obtained by TKCP factorization of the i-th tensor sample at time t′. is about the entire input history The output of the model with time step t′. For current input and the previous hidden state Cascade

[0157]

[0158] The functions of the forget gate, input gate, and output gate are mathematically expressed as follows:

[0159] Forget gate: remember important information and forget irrelevant information:

[0160]

[0161] Input gate: Update cell state and re-input:

[0162]

[0163] Output gate: Output information:

[0164]

[0165] Where W f , W c , W i , is the weight, b f , b c , b i , is the bias, the kernel function is represented by σ and Ψ and Ψ(·) is the hyperbolic tangent function. Θ is the Hadamard product.

[0166] A deep neuro-fuzzy system based on tensor kernelized CANDECOMP / PARAFAC factorization method (TKCP-DNFS)

[0167] This application combines the network-based adaptive fuzzy inference system (ANFIS) and the long short-term memory network (LSTM) to form a deep neuro-fuzzy system (DNFS), which is a new hybrid model. Then the tensor kernelized CANDECOMP / PARAFAC factorization method (TKCP) is applied to DNFS, and a new deep learning method for missing value prediction in power systems, TKCP-DNFS, is designed. The framework of TKCP-DNFS proposed in this application is as follows Figure 3 As shown. The framework includes an input layer, an intermediate layer, and an output layer. The input layer is based on TKCP factor decomposition. The intermediate layer is composed of a mixture of LSTM and ANFIS. LSTM is a special deep neural network. Its biggest advantage is that it avoids gradient vanishing, and the error signal exhibits exponential decay when backpropagating in time. It is a strong estimation model that can handle high-dimensional input data. There are three gates in the LSTM model: input gate, output gate, and forget gate. The input and output gates protect the data from interference, while the forget gate only retains relevant information and removes a large amount of redundant information. Fuzzy systems represented by ANFIS extract rules from data, simulate the human reasoning process, and have strong interpretability. For the output layer, let Set a threshold θ, then:

[0168]

[0169] (When ε>θ, then y total =y″, when ε≤θ, )

[0170] where y total The final output of TKCP-DNFS is recorded as . TKCP-DNFS has both the powerful prediction ability of deep neural network and the correction advantage of fuzzy theory. Figure 3 (The model diagram ofTKCP-DNFS is shown in Figure 3.)

[0171] Example:

[0172] Data is formulated as a 3rd order tensor

[0173] In the power system, due to the large scale of the system and the high complexity of operation, a large amount of real-time data is updated and changed quickly. Data incompleteness problems such as data missing and data errors may occur in the power system. Therefore, the waste of power resources can be avoided and the safe operation of the equipment can be ensured by recovering incomplete data. The deep neural fuzzy system based on tensor kernelized CANDECOMP / PARAFAC factorization was tested on the New England test system, which has 39 buses and 10 generators, such as Figure 4 (The data set is provided by 49 sensors, which consist of voltage data of 39 buses and 10 generators, with a total of 718 samples. Each sample is generated within 5 seconds, with a time interval of 0.01 seconds.)

[0174] In order to better verify the effectiveness of the correlation distance method proposed in this application, this application considers using the correlation coefficient of the sample median to determine the correlation between each sensor. Figure 5 As shown in the figure, a heat map is used to represent the correlation between 49 sensors. After obtaining the correlation between the 49 sensors in the power system, the sensors are arranged on a two-dimensional plane according to the correlation. The smaller the correlation between sensors, the farther the distance between them. Conversely, the greater the correlation, the closer the distance. By using formula (1), the two sensors with the largest distance, that is, the two sensors with the smallest correlation, are found. 28 and 40 According to the correlation distance method, o 28 Fixed at the coordinate (0, 1), o 40 Fixed at the coordinate (1, 0), this ensures that o 28 and 40 The distance in the coordinate system is the farthest, that is, the correlation is the smallest. The coordinates of the remaining 47 sensors are expressed by formula (3). Figure 6 As shown in the figure, the sensors are rearranged on a two-dimensional plane by using the correlation distance method. Secondly, the 49 sensors in the coordinate system are mapped one by one to a 7×7 matrix. Arrange them from small to large according to the horizontal coordinate, and form a group of 7. Arrange them from small to large according to the vertical coordinate within a group, and fill a column from bottom to top. From left to right, a total of 7 groups can be divided, corresponding to the 7 columns of the matrix, and the correlation matrix O can be arranged, which is Figure 7 Finally, a time dimension is added to capture the temporal information and the sensor data is formulated as a 3rd-order tensor.

[0175] This application uses the LSTM model for verification. In this application, this application uses some common indicators to evaluate the correlation distance method. The optional indicators are mean absolute error (MAE), mean squared error (MSE), root mean squared error (RMSE), mean percentage error (MPE) and coefficient of determination (R 2 )

[0176]

[0177] where y i is the true value, is the predicted value, and the model LSTM-cor refers to the use of the correlation distance method in the LSTM model. The correlation distance method can be used to convert the original data into third-order tensor data, and then combined with the LSTM model to predict missing values. The results are shown in Table 2. Through the experimental results, it can be found that although the MSE of the LSTM-cor model and the LSTM model are the same, the RMSE, MAE and MPE of the LSTM-cor are smaller than those of the LSTM, which further shows that the correlation distance method proposed in this application is effective.

[0178] This application proposes a data decomposition method based on correlation distance, which can convert data into a third-order tensor. The tensor decomposition method based on correlation distance is combined with the LSTM model. The tensor decomposition method based on correlation distance is tested on the New England test system, which has 39 buses and 10 generators. Figure 4 The data set is provided by 49 sensors, which consist of voltage data of 39 buses and 10 generators, with a total of 718 samples. Each sample is generated within 5 seconds, with a time interval of 0.01 seconds.

[0179] Table 2 Comparison of the error of LSTM-cor and LSTM in predicting missing voltage values

[0180]

[0181] Performance Analysis

[0182] In order to better verify the effectiveness of TKCP-DNFSD proposed in this application. Figure 8The training loss graph of TKCP-DNFS is shown. In this training process, the learning rate is set to 0.01, 0.03 and 0.05 respectively. When the learning rate is 0.03, the model can fully reach the convergence state after 100 iterations, but the loss fluctuates greatly after the 7th iteration. When the learning rate is 0.05, the loss is significantly reduced after 40 iterations. After 100 iterations, the model can fully reach the convergence state, but after the 5th iteration, the loss fluctuates significantly. When the learning rate is 0.01, the loss is significantly reduced after 40 iterations. When the number of iterations reaches 100, the loss has reached a relatively low level, and the loss fluctuation is very small during the entire iteration process, which can indicate that the model is in a convergence state. No matter which of the three learning rates is selected in this application, the loss can achieve a fairly ideal result after 100 iterations. Obviously, under a reasonable learning rate, the training process can achieve an ideal result.

[0183] like Fig. 9 It shows the use of TKCP-DNFS to predict the missing voltage data in the power system. The ordinate is the voltage value, and the abscissa is the index of the missing value. There are 300 missing values ​​in total. The blue curve in the figure represents the actual voltage value, and the yellow curve represents the voltage value predicted by TKCP-DNFS. It can be clearly seen in this application that the trend of the yellow curve is almost the same as the trend of the blue curve. The largest deviation occurs in the range of the 120th missing value and the 140th missing value, but even so, the change trends of the two curves are consistent, and the maximum deviation is also within 0.05 volts, which is within a smaller range. It can be shown that the model fits well, the predicted data can better reflect the real voltage data, and the prediction result is relatively ideal.

[0184] Comparative analysis of several models

[0185] In order to further verify that TKCP-DNFS can effectively combine LSTM with ANFIS. The method of this application is compared with the traditional network-based adaptive fuzzy inference system (ANFIS, Adaptive Network-based Fuzzy Inference System) and Convolutional Long Short-Term Memory Network (ConvLSTM), and the prediction error index of these three methods is calculated. As shown in Table 3, Table 3 clearly shows that the MSE, RMSE and MAE of TKCP-DNFS are smaller than ANFIS and ConvLSTM, respectively, indicating that the error of TKCP-DNFS is the smallest, and the effect of predicting missing values ​​is better than ANFIS and ConvLSTM. And the R of TKCP-DNFS, ANFIS and ConvLSTM 2 All of them are greater than 0.8, indicating that the fitting effects of these three methods are very good. 2 It is larger than ANFIS and ConvLSTM and closer to 1, indicating that TKCP-DNFS has the highest fitting degree and the best prediction effect. That is, the TKCP-DNFS proposed in this application combines the powerful prediction ability of deep neural networks and the correction advantage of fuzzy theory, which can effectively improve the accuracy of missing value prediction in power systems.

[0186] This application compares the prediction results of TKCP-DNFS with those of ANFIS and ConvLSTM to evaluate the effectiveness of TKCP-DNFS in predicting missing values ​​in power systems. Fig.10 The actual voltage curves with 300 missing voltage values ​​marked and the voltage prediction results of each model are shown. Fig.10 The results show that the prediction results of TKCP-DNFS and other models are quite close to the actual values ​​and can better predict the missing voltage values ​​in the power system. The prediction curve of TKCP-DNFS is significantly closer to the actual curve than other models. Fig.10 It is fully demonstrated that the predictions of ANFIS and ConvLSTM at peaks and valleys are sometimes far from the true voltage value, resulting in an increase in prediction error. However, the predictions of TKCP-DNFS at peaks and valleys are less different from the true voltage value. The prediction curve of TKCP-DNFS is more closely aligned with the true curve, and the prediction effect is better.

[0187] Fig.11The intuitive error of TKCP-DNFS is compared with the intuitive errors of ANFIS and ConvLSTM. (Intuitive Error) Intuitive error is defined as intuitive error = predicted value - true value. In order to make a better comparison, this application expands the number of missing values ​​to 2000. Fig.11 It is clear to see the fluctuation of the intuitive errors of these models near the zero axis. It is easy to find that the intuitive error curve of ANFIS completely wraps the intuitive error curve of TKCP-DNFS, and the intuitive error curve of ConvLSTM deviates further from the zero axis than the intuitive error curve of TKCP-DNFS. This shows that the intuitive error fluctuation of TKCP-DNFS is the smallest, that is, TKCP-DNFS has better stability.

[0188] Table 3 Comparison of the error of TKCP-DNFS and ANFIS in predicting missing voltage values

[0189]

[0190] In this application, firstly, this application proposes a heuristic arrangement method based on correlation distance (CD), which captures spatial information and temporal information in a multi-dimensional way and formulates the data into a third-order tensor. Then, this application proposes a tensor kernelized CANDECOMP / PARAFAC (TKCP) factorization method to mark the missing values ​​of tensor data, extract the prior knowledge of feature correlation under each mode, and extract nonlinear representation through implicitly defined kernel space, which can fully capture the multi-way nonlinear structure of tensor data in the case of incomplete data. The multi-way nonlinear feature mapping is used to obtain the dual structure-preserving kernel of the tensor product feature space, and then obtain the decomposed data. Finally, Long Short-Term Memory Network (LSTM) and Adaptive Network-based Fuzzy Inference System are combined to form TKCP-DNFS to recover the missing data in the power system. Experimental results show that the TKCP-DNFS proposed in this application can be applied to the prediction of missing values ​​of power data in real physical scenarios.

[0191] It should be noted that the specific implementation is only an explanation and description of the technical solution of the present invention, and cannot be used to limit the scope of protection of the rights. Any partial changes made according to the claims and description of the present invention should still fall within the scope of protection of the present invention.

Claims

1. A tensor-based incomplete data filling method, characterized in that The following steps are involved: Step 1: Obtain the two power sensors with the largest Euclidean distance among the power sensors, and record the two power sensors with the largest Euclidean distance as and Step 2: and Mapped into a two-dimensional plane, The coordinates in the plane are defined as (0,1), The coordinates in the two-dimensional plane are defined as (1,0); Step 3: Remove and The remaining power sensors other than and Calculating the correlation distance, and obtaining the coordinates of the remaining power sensor in the two-dimensional plane according to the correlation distance; Step 4: Map all power sensors into the correlation matrix O. The specific steps are as follows: First, arrange the power sensors from small to large according to the size of the horizontal coordinates, and then arrange them from small to large according to the size of the vertical coordinates; Step 5: Using the time dimension, capture the time information of each power sensor in the correlation matrix O, and then obtain a third-order tensor; Step 6: Perform TKCP decomposition on each tensor sample in the three-dimensional tensor. The TKCP decomposition is expressed as: in, represents the objective function of decomposition, G represents the number of samples, and H represents a set of functions that form the Hilbert space, i.e., the hypothesis space. represents the regularization term, F * represents a neural network, ||F * || represents the sum of the absolute values ​​of all weights, λ represents the regularization parameter, and ||·|| * represents the nuclear norm, represents the i-th tensor sample, express Data obtained after TKCP decomposition; Step 7: Input the tensor samples after TKCP decomposition into LSTM and ANFIS respectively to obtain the missing value prediction results output by LSTM And the missing value prediction result y″ output by ANFIS; Step 8: Subtract y″ and take the absolute value to get ε, which is expressed as: Step 9: Compare ε with the threshold θ to obtain the filled data y total ,y total It is expressed as: Step 9: Repeat steps 6 to 9 until all tensor samples after TKCP decomposition are processed, that is, the incomplete data filling is completed.

2. The tensor-based incomplete data filling method according to claim 1, characterized in that The maximum Euclidean distance between the two power sensors is expressed as: Where, dist(*,*) represents the Euclidean distance between two sensors, o i represents the i-th sensor, i=1,2...,M,o j represents the jth sensor, j=1, 2, ..., M, and j≠i, and M represents the total number of sensors.

3. The tensor-based incomplete data filling method according to claim 2, characterized in that The correlation distance is expressed as: Among them, ρ represents the correlation coefficient in mathematical theorem, cov(*,*) represents covariance, and var(*) represents variance.

4. The tensor-based incomplete data filling method according to claim 3, characterized in that The coordinates of the remaining power sensor are expressed as: Among them, k represents the kth sensor, k = 1, 2..., M, and k≠j≠i, o′ k Represents the coordinates of the kth sensor mapped to the two-dimensional plane.

5. The tensor-based incomplete data filling method according to claim 1, characterized in that Said It is expressed as: Among them, Mask represents the mask, x i(m,n,q) Represents the element of the i-th tensor sample data, m, n, q represent the tensor order of the first dimension, the tensor order of the second dimension, and the tensor order of the third dimension, respectively. 1≤m≤M, M represents the total order of the tensor of the first dimension, 1≤n≤N, N represents the total order of the tensor of the second dimension, 1≤q≤Q, Q represents the total order of the tensor of the third dimension.

6. The tensor-based incomplete data filling method according to claim 5, characterized in that The f * (x i(m,n,q) ) is expressed as: in, Represents the corresponding elements after decomposition.

7. The tensor-based incomplete data filling method according to claim 6, characterized in that Said It is expressed as: Among them, W f , W c , W i , W o represents the weight, b f 、b c 、b i 、b o represents the bias, Ψ(·) represents the hyperbolic tangent function, Θ represents the Hadamard product, and f t′ represents the forget gate, Represents memory element, i t′ represents the input gate, c t′ represents the updated memory element at time t′, o t′ represents the output gate, σ and Ψ represent the kernel function, Indicates cascade, c t′-1 Represents the updated memory element at time t′-1.

8. The tensor-based incomplete data filling method according to claim 7, characterized in that The y″ is expressed as: Among them, ξ represents the ξth rule, represents the number of fuzzy rules, represents the first The fuzzy set of inputs, f ξ (·) represents the output of the ξth rule, represents the fuzzy reasoning layer, represents the fuzzy normalization layer, represents the fuzzification layer, and Υ(·) represents the membership function.