Energy state identification method of multi-correlated power generation equipment based on non-intrusive monitoring

Through a multi-gated hybrid expert learner and a selective state space model, combined with a cross-attention mechanism, it solves the problem of difficulty in simultaneous state monitoring and energy decomposition with existing technologies, and achieves diversified operating states of distributed energy power generation equipment. Identification improves the accuracy of energy management and system stability.

CN118277893BActive Publication Date: 2024-09-27STATE GRID LIAONING ELECTRIC POWER CO LTD

Patent Information

Application Number
CN202410703167.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-09-27
Estimated Expiration
2044-06-03

AI Technical Summary

Technical Problem

Existing non-intrusive monitoring technology is difficult to simultaneously realize status monitoring and energy decomposition of distributed energy power generation equipment, resulting in unsatisfactory monitoring results and inability to comprehensively evaluate the complex operating status and performance of the equipment, especially when multiple types of equipment are running at the same time. Model recognition capabilities decline.

Method used

A multi-gating hybrid expert learner is used to extract shared features through multiple expert sub-networks and gating units, and is combined with a cross-attention mechanism for weighted fusion to build a state monitoring and energy decomposition network for a selective state space model to realize the equipment operating status. and accurate predictions of power generation.

Benefits of technology

It achieves precise identification of the diverse operating status of distributed energy power generation equipment, can identify more complex operating modes and potential faults, improves the accuracy of energy management and system stability, reduces energy waste, and enhances the reliability of equipment. performance and operational efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118277893B
    Figure CN118277893B
Patent Text Reader

Abstract

The present invention relates to the technical field of measuring electrical variables, and in particular to a method for identifying the energy state of multivariate-related power generation equipment based on non-invasive monitoring; first, the collected power generation data is preprocessed; a multi-gated hybrid expert learner is established, including multiple expert sub-networks and two gating units, the expert sub-network is used to extract the shared features of the state monitoring and energy decomposition tasks in the training samples, and the gating unit is responsible for flexibly combining the shared features learned by each expert sub-network to obtain gating information, avoiding the mutual influence between tasks with weak correlation, and then weighted fusion of the shared features and the gating information based on the cross-attention mechanism to obtain weighted features. Afterwards, a state monitoring and energy decomposition network is built, the state monitoring network identifies the on / off state of the target electrical appliance through weighted features, and the output of the energy decomposition network is corrected according to the output of the state monitoring network, and finally the operating state and power generation of the distributed power generation equipment are obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of measuring electric variables, and in particular to a method for identifying energy states of multi-correlated power generation equipment based on non-invasive monitoring. Background Art

[0002] Distributed energy systems are small-scale energy production and storage units that include solar photovoltaic panels, wind turbines, micro gas turbines, and other renewable energy power generation equipment. These units are usually installed and operated near the point of consumption or directly on the user's site. The advantages of distributed energy systems include reduced energy losses, reduced grid pressure, and cleaner energy options. However, as the scale of distributed energy systems continues to expand, the complexity of their management and maintenance is also increasing, especially in terms of equipment operating status monitoring and fault diagnosis.

[0003] Non-intrusive monitoring technology allows monitoring the performance and health of equipment without physical contact or modification of the equipment, overcoming the limitations of these traditional monitoring. The intelligent identification method of the operating status of distributed energy generation equipment based on non-intrusive monitoring technology involves two main tasks: state monitoring and energy decomposition. State monitoring is to determine whether the power generation equipment is in normal operation by analyzing the sensory data of the equipment. The energy decomposition task is to estimate the actual power generation or energy output of the power generation equipment based on its operating status and performance parameters. Most of the current non-intrusive monitoring technologies only focus on one of the tasks, resulting in unsatisfactory state monitoring results. Through the combination of these two tasks, the intelligent identification method based on non-intrusive monitoring technology can realize real-time monitoring of the operating status of distributed energy generation equipment, which helps to improve the stability, efficiency and reliability of the system. At the same time, these methods can also provide important support for the intelligent management and optimization of future energy systems. In addition, the current non-intrusive monitoring technology is often only able to identify the on / off state, and cannot fully capture the complex characteristics related to the diverse operating status of distributed energy equipment. This results in the monitoring system being unable to fully evaluate the performance, efficiency and health of the equipment under different operating conditions. Distributed energy generation equipment usually includes solar photovoltaic, wind power, biomass energy, etc. The total power of the power generation equipment includes the operating characteristics of all equipment, while the traditional single-task mode only considers the mapping relationship between the current equipment power generation and the total power, and the use of overall data information is not comprehensive enough. When multiple devices are running at the same time and features overlap, the recognition ability of the model will decrease. Therefore, starting from the two aspects of state monitoring and energy decomposition, developing a diversified operating state intelligent recognition method based on non-invasive monitoring technology has important practical application value. Summary of the invention

[0004] In order to solve the above technical problems, a multivariate correlation power generation equipment energy state identification method based on non-invasive monitoring is proposed to accurately predict and maintain the health status of the equipment from the two aspects of state monitoring and energy decomposition, including the following steps:

[0005] Step 1: Obtain the total power data of all distributed power generation equipment and pre-process the total power data;

[0006] Step 2: Establish a multi-gated hybrid expert learner, including multiple expert sub-networks and two gating units; the expert sub-network is used to obtain shared features of the state monitoring and energy decomposition tasks in the total power data; the gating unit combines the shared features of each expert sub-network to obtain gating information, and then weights the shared features and the gating information based on the cross-attention mechanism to obtain weighted features of the state monitoring and energy decomposition tasks;

[0007] Step 3: Build a state monitoring network and energy decomposition network based on the selective state space model, transfer the weighted features to the network, and output the operating status and power generation of the current equipment;

[0008] Step 4: According to the output of the state monitoring network, the output of the energy decomposition network is corrected, and the corresponding objective functions are designed for different tasks to train the state monitoring network and energy decomposition network established in step 3, and finally the operating status and power generation of the current power generation equipment are obtained.

[0009] Furthermore, in step 1, the time period is obtained by the sensor T Total power generation of distributed generation equipment Y(t) ,

[0010] ;

[0011] in, N is the number of distributed energy generation devices, X i (t) is the i Devices t The power generation at the time, ε ( t ) is the noise term.

[0012] Furthermore, in step 1, the preprocessing of the total power data is specifically as follows:

[0013] Fill missing data using linear interpolation:

[0014] ;

[0015] in, For the moment when data is missing, t0 and t 1 Respectively represent the time before and after the missing data, is the power generation at the missing time, Y(t 0 ) and Y(t 1 ) are the power generation before and after the data missing moment;

[0016] De-noising the interpolated power generation data based on wavelet packet function:

[0017] The interpolated data is transformed into the wavelet packet domain using wavelet packet transform. The wavelet packet transform formula is as follows:

[0018] ;

[0019] in, is the wavelet packet coefficient, is the wavelet packet basis function, u is the scale parameter, v is the time parameter;

[0020] The wavelet packet coefficients are subjected to VisuShrink threshold processing, and the wavelet packet coefficients below the threshold are set to zero to suppress noise; the threshold processing formula is as follows:

[0021] ;

[0022] in, is the threshold value, sign is a sign function, is the wavelet packet coefficient after threshold processing; reconstruct the wavelet packet coefficient after threshold processing to obtain the total power data of the device after noise reduction Y ' ;

[0023] The total power data of the device after denoising Y ' Perform channel-level normalization.

[0024] ;

[0025] in, Y 'n max , Y 'n min Representing samples n The maximum and minimum values ​​of the current channel linearly map the data to the interval [0, 1].

[0026] Furthermore, in step 2, each expert sub-network performs a convolution operation on the power generation data obtained in step 1 based on the temporal convolutional network TCN and the residual network, so as to obtain the transformation relationship between different time steps and learn the shared features; wherein, TCN is based on a one-dimensional convolutional neural network, and by introducing causal convolution, dilated convolution and residual modules, the expert sub-network can adapt to time series data of any length.

[0027] Furthermore, the extraction of shared features in step 2 is specifically as follows:

[0028] The normalized total power generation is obtained Y n norm Padding is performed so that the output is aligned with the input in the time dimension, where the definition of causal convolution is as follows:

[0029] ;

[0030] ;

[0031] in, F represents the filter, K represents the length of the filter, f k It is a filter F The k weights, F*Y n norm (t) express Y n norm exist t Causal convolution of moments;

[0032] Adding expansion factors to causal convolution d , there will be between each element of the convolution kernel d -1 time step interval to increase the receptive field so that each convolution output contains a larger range of information. The dilated convolution is t Output D(t) for:

[0033] ;

[0034] A cross connection layer consisting of 1*1 convolution is designed to transfer the residual information between the input and output of the expert sub-network, so that the network can learn the mapping between input and output more easily. D(t) Perform batch normalization, ReLU activation function, and Dropout operation to obtain residual features R(Y n norm) , then Y n norm Perform 1*1 convolution to obtain residual information E(Y n norm ) , then E(Y n norm ) and R(Y n norm ) Add together to get the final output of the residual block P(Y n norm ) as a shared feature.

[0035] Furthermore, in step 2, two gating units are established G 1 , G 2 The state monitoring and energy decomposition of the power generation of distributed power generation equipment are performed respectively, and the shared features learned by each expert sub-network are flexibly combined to obtain the gating information of the state monitoring and energy decomposition tasks; specifically, the gating unit obtains the gating information from the shared features. P(Y n norm ) The features related to condition monitoring and energy decomposition tasks are selected by the fully connected layer and Softmax Activation layer composition:

[0036] ;

[0037] in, g j It's a task j The gating unit output, is the parameter of the gating unit, j ∈{1,2}, when j =1 represents the status monitoring task, j =2 when energy decomposition task.

[0038] Furthermore, the cross-attention mechanism is applied to realize the gated information g j To Shared Features P(Y n norm )The weighted fusion of enables the gate control unit to observe the entire distributed generation sequence and determine the weight given to each expert sub-network, and finally obtain the weighted features of the state monitoring and energy decomposition tasks. The formula is as follows:

[0039] ;

[0040] in, z j It is a task obtained based on the cross attention mechanism j The weighted features of the gated unit output g j is considered as the query vector, sharing features P(Y n norm ) are used as key and value vectors for the criss-cross attention mechanism, W Q and W K is the parameter matrix, is the scaling factor, Softmax is an activation layer; each query, key, and value vector contains information about the entire input sequence.

[0041] Further, in step 3, a state monitoring network and an energy decomposition network based on a selective state space model are constructed, wherein the network is composed of a selective state space model and a linear projection layer, and the network is used to realize the power generation prediction of a single distributed power generation device and the operation state prediction of the power generation device, specifically,

[0042] Step 3.1: Convert the z j Perform nonlinear transformation; first, transform the weighted features in step 2 z j Project to the hidden state dimension, and then perform nonlinear convolution on the projection dimension. The specific formula is:

[0043] ;

[0044] in, q j express z j After projection and nonlinear convolution, the nonlinear features are Linear represents a linear projection, σ Represents nonlinear convolution;

[0045] Step 3.2: Design a selective state space model based on the nonlinear characteristics of step 3.1, and establish a mapping relationship between the total power generation of the equipment and the power generation and operating status of a single device; the expression of the selective state space model is:

[0046] ;

[0047] ;

[0048] in, h t express t The potential state at the moment, that is, the representation of the operating state and power generation changes learned by the state monitoring and energy decomposition network based on nonlinear characteristics, h t-1 express t -1 moment of potential state, and is the projection parameter, , q j (t) express t The nonlinear characteristics of time, p j (t) express t The prediction features of SSSM output at the moment; the selection mechanism increases The dependence on power generation data indicates that the learnable parameters Dynamic changes occur with the incoming power generation at each different moment;

[0049] Step 3.3: Weighted features of step 2.3 through multi-layer perceptron z j Mapping is performed, and then the skip connection operation is used to aggregate the mapping result with the output of step 3.2:

[0050] ;

[0051] ;

[0052] Among them, MLP stands for multi-layer perceptron, which consists of 3 fully connected hidden layers. Indicates j The selective state space model of the task, represents the cross product, Indicates j The multi-layer perceptron mapping output of each task, Indicates j The result of the skip connection operation of each task;

[0053] Step 3.4: Perform linear projection to obtain features after reducing the dimension :

[0054] ;

[0055] According to the normalized exponential function Signmoid Limit the value of the condition monitoring task network to the interval [0,1] to obtain the predicted value of the operating state of the power generation equipment;

[0056] ;

[0057] in, Represents the predicted value of the operating status of the power generation equipment, e represents the exponential function, Represents the reduced dimension features in the condition monitoring task.

[0058] Furthermore, in step 4, the output of the energy decomposition network is corrected according to the output of the state monitoring network, and corresponding objective functions are designed for different tasks to train the state monitoring network and energy decomposition network established in step 3, and finally the operating status and power generation status of the current power generation equipment are obtained.

[0059] Furthermore, the loss functions of the state monitoring network and the energy decomposition network are established in the following manner:

[0060] The state perception target of distributed generation equipment based on non-intrusive detection is expressed as:

[0061] ;

[0062] in, θ represents the optimal parameters of the condition monitoring network and the energy decomposition network, θ 1 represents the parameters of the condition monitoring task network, θ 2 represents the parameters of the energy decomposition network, θ E represents the parameters of the multi-gated hybrid expert learner, s Indicates the operating status of the device. s The closer it is to 1, the greater the probability that the device is operating normally. s The closer it is to 0, the greater the probability of the device shutting down. P ( s | Y ) indicates that at a given power generation Y When the running status is s The conditional probability of P ( X | Y ) indicates that at a given power generation Y The power generation of the equipment is X The conditional probability of the current device is determined by setting the threshold:

[0063] ;

[0064] in, S 1 Represents normal operating status. S 2 Represents low load operation state. S 3 Indicates standby or startup status. S 4 Indicates shutdown status. μ 1 =0.6, μ 2 =0.3, μ 3 =0.1, Status Indicates the current operating status of the power generation equipment predicted by the status monitoring network;

[0065] If the device is in the on state, the output of the state monitoring task network will not be zero; if the device is in the off state, the power generation of the device is zero; therefore, the output of the energy decomposition network is corrected by the output of the state monitoring network, and the correction formula can be expressed as:

[0066] ;

[0067] in, represents element-wise multiplication, It is the power generation of the equipment after correction by the output of the condition monitoring network;

[0068] Therefore, the loss functions of the proposed state monitoring network and energy decomposition network are designed as:

[0069] ;

[0070] in, λ =0.5, and They are the cross entropy loss function for the state monitoring task and the mean square error loss function for the energy decomposition task;

[0071] ;

[0072] ;

[0073] Among them, CEL represents the cross entropy loss function, MSE is the mean square error, T Indicates the time period during which the sensor collects data. t Indicates time.

[0074] Furthermore, the power generation data set obtained after preprocessing in step 1 is used as a training sample set, and the parameters of the state monitoring network and the energy decomposition network are updated by using the Adam optimizer, and the state monitoring network and the energy decomposition network are trained to obtain the final state monitoring network and the energy decomposition network; specifically,

[0075] Initialize the parameters of the state monitoring network and the energy decomposition network, and use the power generation data as the training sample set;

[0076] Select training samples from the training sample set and input them into the multi-gated hybrid expert learner. Then input the obtained results into the state monitoring network and the energy decomposition network respectively to obtain the power generation and operation status of the current power generation equipment, calculate the losses of the state monitoring network and the energy decomposition network, and use the Adam optimizer to update the network parameters.

[0077] Repeat the above steps until the training of all samples in the sample set is completed, and find the parameters that minimize the average value of the absolute error between the network output result and the target output result as the parameters of the final state monitoring network and energy decomposition network, and determine the optimal state monitoring network and energy decomposition network; use the total power of the distributed power generation equipment as the input of the trained state monitoring network and energy decomposition network, and obtain the operating status and power generation of multiple devices in the distributed microgrid.

[0078] The beneficial effects of adopting the above technical solution are:

[0079] (1) Existing non-intrusive monitoring technologies only focus on a single task, while the present invention combines the two tasks of status monitoring and energy decomposition for non-intrusive monitoring, allowing the simultaneous monitoring of the equipment's operating status and energy output, which enables a more detailed understanding of the relationship between equipment performance and energy output. This promotes efficient energy management and accurate maintenance scheduling, thereby reducing energy waste and preventing equipment failures in advance.

[0080] (2) In addition to the existing binary state model (on / off), it is possible to identify more complex equipment operation modes, such as partial load, maximum load, reduced efficiency, or potential failure indicators. This enables operators to perform fault diagnosis and performance evaluation more accurately, enhancing system reliability and operating efficiency.

[0081] (3) Compared with the prior art, this invention not only analyzes a single device, but also considers the interaction between devices, providing data support for system-level optimization. The mapping relationship between devices is fully considered and the overall data information is used. By analyzing the interaction between devices, it can reveal how the behavior of a single device affects the entire system, thereby optimizing the overall performance of the system. More accurate grid management, improved load balancing, improved overall stability and economy of the power system, and optimized resource allocation can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0082] Figure 1 It is a schematic diagram of the process of the present invention;

[0083] Figure 2 Schematic diagram of a multi-gated hybrid expert learner of the present invention;

[0084] Figure 3 The present invention provides a flowchart of the network training process for predicting the operating status and power generation of power generation equipment provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0085] The principles and features of the present invention are described below in conjunction with the accompanying drawings. The examples given are only used to explain the present invention and are not used to limit the scope of the present invention.

[0086] This implementation is based on the total power of all distributed power generation equipment measured by non-invasive sensors. This paper first pre-processes the collected data. For missing data less than 2 minutes, the values ​​of the previous and next moments of the vacant period are filled by linear interpolation; for missing data longer than 2 minutes, 0 is used to fill. Then the sliding window is used to perform feature dimension upgrade on the total power generation data. Each time the sliding window slides once, a column of feature power sequences of all power generation equipment at the current moment is generated. The sliding window step size is selected as 1 and the window size is 100. 0 is used to fill both ends of the power sequence; then the data is normalized to eliminate the difference in magnitude between the data; finally, in order to speed up the model training, the training data is batched with a batch size of 256.

[0087] A multi-gated hybrid expert learner is established, including multiple expert sub-networks and two gating units. The expert sub-network is used to extract the shared features of the state monitoring and energy decomposition tasks in the training samples. The gating unit is responsible for flexibly combining the shared features learned by each expert sub-network to obtain gating information, avoiding the mutual influence between tasks with weak correlation. Then, based on the cross-attention mechanism, the shared features and the gating information are weighted and fused to obtain weighted features. After that, the state monitoring and energy decomposition network is built. The state monitoring network identifies the on / off state of the target appliance through weighted features, and the output of the energy decomposition network is corrected according to the output of the state monitoring network. Finally, the operating status and power generation of the distributed power generation equipment are obtained.

[0088] refer to Figure 1 The present invention provides a method for identifying the energy state of a multi-element associated power generation device based on non-intrusive monitoring, comprising the following steps:

[0089] Step 1: Deploy non-intrusive sensors to measure the total power of all distributed power generation equipment. The missing data collected is interpolated by linear interpolation, and a wavelet packet denoising method based on VisuShrink threshold is proposed to reduce the noise of the data, and the data is normalized. Specifically,

[0090] Step 1.1: Obtain the total power consumption of distributed generation equipment in a day through sensors Y(t) , , which includes 6 types of distributed energy generation equipment, namely: solar power generation equipment, wind power generation equipment, biomass power generation equipment, energy storage equipment, fuel cells, micro hydropower stations, X i (t) It is i Devices t The power generation at the time, ε( t ) is the noise term;

[0091] Step 1.2: During the data collection process, damage to the sampling device or failure in data transmission may lead to missing data. Fill the missing data using linear interpolation:

[0092] ;

[0093] in, For the moment when data is missing, t 0 and t 1 Respectively represent the time before and after the missing data, is the power generation at the missing time, Y(t 0 ) and Y(t 1 ) are the power generation before and after the data missing moment respectively.

[0094] Step 1.3: Use wavelet packet transform to transform the discrete time series data into wavelet packet domain for the interpolated power generation data in step 1.2. Compared with traditional wavelet transform, wavelet packet transform can provide higher frequency resolution and more flexible frequency band selection. The wavelet packet transform formula is as follows:

[0095] ;

[0096] in, represents the wavelet packet coefficients, represents the wavelet packet basis function, u is the scale parameter, v Time parameters.

[0097] The wavelet packet coefficients are subjected to VisuShrink threshold processing, and the wavelet packet coefficients below the threshold are set to zero to suppress noise. The threshold processing formula is as follows:

[0098] ;

[0099] in, is the threshold value, sign is a sign function, and the wavelet packet coefficient after threshold processing is The wavelet packet coefficients after threshold processing are reconstructed to obtain the total power of the device after noise reduction. Y ' .

[0100] Step 1.4: Denoise the data from step 1.3 Y ' Perform channel-level normalization:

[0101] ;

[0102] in Y 'n max , Y 'n min Representing samples n The maximum and minimum values ​​of the current channel linearly map the data to the interval [0, 1], eliminating the weight imbalance problem caused by different dimensions between different features, which is beneficial to the stability and convergence speed of model training.

[0103] Step 2: Establish a multi-gated hybrid expert learner, including multiple expert sub-networks and two gating units. The expert sub-network is used to obtain the shared features of the state monitoring and energy decomposition tasks in the total power data; the gating unit is responsible for controlling the weight of each expert sub-network output, flexibly combining the shared features of each expert sub-network to obtain gating information, and strengthening the mutual influence and synergy between devices; then based on the cross-attention mechanism, the shared features and the gating information are weighted to obtain the weighted features of the state monitoring and energy decomposition tasks; specifically including the following steps,

[0104] Step 2.1: Design a multi-gated hybrid expert learner neural network architecture based on the time series data characteristics of the distributed energy system. Each expert sub-network performs convolution operations on the input sequence based on the temporal convolutional network (TCN) and the residual network to obtain the transformation relationship between different time steps. TCN is based on a one-dimensional convolutional neural network. By introducing causal convolution, dilated convolution, and residual blocks, the model can learn longer time dependencies to adapt to time series data of any length. The specific steps include the following:

[0105] Step 2.1.1: Obtain the normalized total power generation in step 1 Y n norm Zero-padding is performed to ensure that the output and input are aligned in the time dimension, that is, the time window will not slide into the future due to the convolution operation. The definition of causal convolution is as follows:

[0106] ;

[0107] ;

[0108] in, F represents the filter, K represents the length of the filter, f k It is a filter F The k weights, F*Y n norm (t) express Y n norm exist t Causal convolution of moments.

[0109] Step 2.1.2: Add expansion factor to causal convolution d =3, there will be between each element of the convolution kernel d -1 time step interval to increase the receptive field so that each convolution output contains a larger range of information. The dilated convolution is t Output D(t) for:

[0110] ;

[0111] Step 2.1.3: Design a cross connection layer consisting of 1*1 convolution to transfer the residual information between the input and output of the expert sub-network, so that the network can learn the mapping between input and output more easily. D (t) After batch normalization, ReLU activation function, and Dropout operation, dilated causal convolution, batch normalization, ReLU activation function, and Dropout operation are performed again to obtain residual features. R(Y n norm ) , then Y n norm Perform 1*1 convolution to obtain residual information E(Y n norm ) , and then E(Y n norm ) and R(Y n norm ) Add together to get the final output of the residual block P(Y n norm ) as a shared feature.

[0112] Step 2.2: Build two gating units G 1 , G 1 The state monitoring and energy decomposition are performed on the power generation of distributed power generation equipment respectively, and the shared features learned by each expert sub-network in step 2.1.3 are flexibly combined to obtain the gating information of the state monitoring and energy decomposition tasks. Figure 2 As shown in Figure 1, the connection between the gating unit and the expert sub-network and the relationship between the state monitoring task and the power generation prediction task are shown. P(Y n norm ) The relevant features for the specific state monitoring and energy decomposition tasks are selected by the fully connected layer and Softmax Activation layer composition:

[0113] ;

[0114] in, g j It's a task j The gating unit output, is the parameter of the gating unit, j ∈{1,2}, when j =1 represents the status monitoring task, j =2 when energy decomposition task.

[0115] Step 2.3: Apply the cross-attention mechanism to achieve g j To Shared Features P(Y n norm ) Weighted fusion enables the gate control unit to observe the entire distributed generation sequence and determine the weight given to each expert sub-network, and finally obtain the weighted features of the state monitoring and energy decomposition tasks. The formula is as follows:

[0116] ;

[0117] in z j It is a task obtained based on the cross attention mechanism j The weighted features of the gated unit output g j is considered as the query vector, sharing features P(Y n norm ) are used as key and value vectors for the criss-cross attention mechanism, W Q and W K is the parameter matrix, =2, Softmax is the activation layer. Each query, key, and value vector contains information about the entire input sequence.

[0118] Step 3: The shared features output by the multi-gated hybrid expert learner in step 2 are passed to the networks for the state monitoring task and the energy decomposition task respectively to focus on their respective goals. The network consists of a selective state space model and a linear projection layer. The designed network can realize the prediction of the power generation of a single distributed power generation device and the prediction of the operating status of the power generation device; specifically, it includes the following steps,

[0119] Step 3.1: z j Perform nonlinear transformation. First, transform the shared features in step 2.3 z j Project to the hidden state dimension and then perform nonlinear convolution on the projection dimension.

[0120] ;

[0121] in,q j express z j After projection and nonlinear convolution, the nonlinear features are Linear represents a linear projection, σ Represents nonlinear convolution.

[0122] Step 3.2: Design a selective state space model based on the nonlinear characteristics of step 3.1. Design a selective state space model (SSSM) to improve the traditional state space model and establish a mapping relationship between the total power generation of the equipment and the power generation and operating status of a single device. The expression of the selective state space model is:

[0123] ;

[0124] ;

[0125] in, h t express t The potential state at the moment, that is, the representation of the operating state and power generation changes learned by the state monitoring and energy decomposition network based on nonlinear characteristics, h t-1 express t -1 moment of potential state, and is the projection parameter, , q j (t) means t The nonlinear characteristics of time, p j (t) means t The prediction features of SSSM output at the moment; the selection mechanism increases The dependence on power generation data indicates that the learnable parameters Compared with models using fixed convolution kernels, this design allows the model to dynamically adjust its internal parameters according to the input content, thus providing greater flexibility in processing sequence data.

[0126] Step 3.3: Weighted features of step 2.3 through multi-layer perceptron z j Mapping is performed, and then the skip connection operation is used to aggregate the mapping result with the output of step 3.2:

[0127] ;

[0128] ;

[0129] Among them, MLP stands for multi-layer perceptron, which consists of 3 fully connected hidden layers. Indicates j The selective state space model of the task, represents the cross product, Indicates j The multi-layer perceptron mapping output of each task, Shidi j The result of the skip connection operation of each task.

[0130] Step 3.4: Perform linear projection to obtain features after reducing the dimension :

[0131] ;

[0132] According to the normalized exponential function Sigmoid The value of the condition monitoring network is restricted to the interval [0,1] to obtain the predicted value of the operating status of the power generation equipment.

[0133] ;

[0134] in, Represents the predicted value of the operating status of the power generation equipment, e represents the exponential function, Represents the reduced dimension features in the condition monitoring task.

[0135] Step 4: According to the predicted value of the current equipment's operating status output by the state monitoring network, the power generation characteristics output by the energy decomposition network are corrected, and corresponding objective functions are designed for different tasks to train the state prediction and energy decomposition networks established in step 3, and finally the operating status and power generation of the current power generation equipment are obtained. Specifically, the following steps are included:

[0136] Step 4.1: From a probabilistic perspective, the state perception goal of distributed generation equipment based on non-intrusive detection can be expressed as:

[0137] ;

[0138] in, θ represents the optimal parameters of the condition monitoring network and the energy decomposition network, θ 1 represents the parameters of the condition monitoring task network, θ 2 represents the parameters of the energy decomposition network, θ E represents the parameters of the multi-gated hybrid expert learner, sIndicates the operating status of the device. s The closer it is to 1, the greater the probability that the device is operating normally. s The closer it is to 0, the greater the probability of the device shutting down. P ( s | Y ) indicates that at a given power generation Y When the running status is s The conditional probability of P ( X | Y ) indicates that at a given power generation Y The power generation of the equipment is X The conditional probability of . The operating status of the current device is judged by setting the threshold:

[0139] ;

[0140] in, S 1 Represents normal operating status. S 2 Represents low load operation state. S 3 Indicates standby or startup status. S 4 Indicates shutdown status. μ 1 =0.6, μ 2 =0.3, μ 3 =0.1, Status Indicates the current operating status of the power generation equipment predicted by the condition monitoring network.

[0141] If the device is in the on state, the output of the state monitoring task network will not be zero; if the device is in the off state, the power generation of the device should be zero. Therefore, the output of the energy decomposition network is corrected by the output of the state monitoring network, and the correction formula can be expressed as:

[0142] ;

[0143] in, represents element-wise multiplication, It is the power generation of the equipment after correction by the output of the condition monitoring network.

[0144] Therefore, the loss functions of the proposed state monitoring network and energy decomposition network are designed as:

[0145] ;

[0146] in λ =0.5, and They are the cross entropy loss function for the state monitoring task and the mean square error loss function for the energy decomposition task.

[0147] ;

[0148] ;

[0149] Among them, CEL represents the cross entropy loss function, MSE is the mean square error, T Indicates the time period during which the sensor collects data. t Indicates time.

[0150] Step 4.2: The power generation data set obtained after preprocessing in step 1 is used as a training sample set, and the parameters of the state monitoring network and the energy decomposition network are updated using the Adam optimizer. The state monitoring network and the energy decomposition network are trained to obtain the final state monitoring network and the energy decomposition network. The training process is as follows: Figure 3 As shown, specifically,

[0151] Step 4.2.1: Initialize parameters of the condition monitoring network and energy decomposition network θ , 3000 sets of power generation data, that is, total power data, are used as training samples in the sample set; missing data are interpolated, and then the total power generation data (samples) are feature dimensioned and divided using a sliding window. Each time the sliding window slides once, a column of feature power sequences of all power generation equipment at the current moment is generated. The sliding window step size is selected as 1, the window size is 100, and 0 is used to fill both ends of the power sequence; the data is then normalized to eliminate the difference in magnitude between the data.

[0152] Step 4.2.2: Select 64 groups of training samples from the training sample set each time and input them into the multi-gated hybrid expert learner. The multi-gated hybrid expert learner includes multiple expert sub-networks and gating units. The expert sub-network is used to extract the shared features of the state monitoring and energy decomposition tasks in the training samples. The gating unit is responsible for flexibly combining the shared features learned by each expert sub-network to obtain gating information, avoiding the mutual influence between tasks with weak correlation, and then weightedly fusion the shared features and the gating information based on the cross-attention mechanism to obtain weighted features. After that, build the state monitoring and energy decomposition network. The state monitoring network identifies the on / off state of the target appliance through weighted features, and corrects the output of the energy decomposition network according to the output of the state monitoring network. Finally, the operating status and power generation of the distributed power generation equipment are obtained. During the training process, the learning rate η =0.001, attenuation rate l r =0.001, and the model outputs the power generation and operating status of the current power generation equipment. Status, calculate the loss of the state monitoring network and the energy decomposition network, and use the Adam optimizer to optimize the network parameters θ Make updates;

[0153] Step 4.2.3: Repeat steps 4.2.1 and 4.2.2 for a maximum of 200 times until all samples in the sample set are trained and the parameters that minimize the average absolute error between the network output and the target output are found. θ min , and θ min As the parameters of the final state monitoring network and energy decomposition network, the optimal state monitoring network and energy decomposition network are determined. The total power of the distributed generation equipment is used as the input of the trained state monitoring network and energy decomposition network to obtain the distributed microgrid. N The operating status and power generation of each device.

[0154] In this embodiment, the power generation of the distributed power generation equipment is obtained by calculating 400 sets of data. and operating status Status , after comparing with the historical power generation of power generation equipment X By comparison, the average absolute error of each group does not exceed 5%, and the accuracy of the operating status perception results of the power generation equipment can reach more than 95%, indicating that the model proposed in the present invention has stronger expression ability and robustness.

[0155] The present invention combines the two tasks of condition monitoring and energy decomposition to allow the system to monitor energy output in a refined manner while ensuring the normal operation of the equipment. This dual detection mechanism can more fully understand the relationship between equipment status and energy output, thereby more accurately predicting and maintaining the health of the equipment. This comprehensive approach is particularly important for preventive maintenance because it can predict and avoid potential failures.

[0156] Secondly, traditional monitoring systems may only focus on the basic state of the device, such as on or off. The present invention recognizes multiple operating states of the device. Such fine-grained recognition capability is an important improvement over the existing technology. It allows the system to understand the various stages and modes of device operation more finely, so that it can respond to performance degradation or potential problems in specific states.

[0157] Finally, traditional methods for identifying distributed generation equipment usually only consider the mapping relationship between the power generation of a single device and the total power, while ignoring the mutual influence and synergy between devices. However, in practical applications, there may be certain coupling relationships and interactive effects between different devices. For example, the operating status of some devices may affect the performance and operation of other devices. Comprehensive use of overall data information and consideration of the mapping relationship between devices reflects a global thinking framework. This global perspective is an innovation of existing methods. By analyzing the relationship between devices, the load distribution and potential contradictions of the power grid can be more accurately predicted, thereby optimizing power generation and energy distribution strategies.

[0158] In summary, the present invention is of great importance and innovation in improving system efficiency, predictive maintenance, optimizing resource allocation, and enhancing the intelligence level of energy management. By implementing such a system, the stability and efficiency of distributed energy networks can be significantly improved, which helps to promote the development of energy systems in a more sustainable and intelligent direction.

[0159] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for identifying the energy state of multivariate-correlated power generation equipment based on non-intrusive monitoring, which predicts and maintains the equipment from two aspects: state monitoring and energy decomposition. The method is characterized by: The following steps are included: Step 1: Obtain the total power data of all distributed power generation equipment and pre-process the total power data; Step 2: Establish a multi-gated hybrid expert learner, including multiple expert sub-networks and two gating units; the expert sub-network is used to obtain shared features of the state monitoring and energy decomposition tasks in the total power data; the gating unit combines the shared features of each expert sub-network to obtain gating information, and then weights the shared features and the gating information based on the cross-attention mechanism to obtain weighted features of the state monitoring and energy decomposition tasks; Step 3: Build a state monitoring network and an energy decomposition network based on the selective state space model, and transfer the weighted features to the two networks. The state monitoring network outputs the predicted value of the current equipment's operating state, and the energy decomposition network outputs the power generation characteristics. Step 4: Modify the power generation characteristics according to the operating status prediction value, and design the corresponding objective function to train the state monitoring network and energy decomposition network established in step 3, and finally obtain the operating status and power generation of the current power generation equipment; In step 1, the total power Y(t) of the distributed power generation equipment in the time period T is obtained through the sensor, and the formula is as follows: Where N is the number of distributed energy generation equipment, X i (t) is the power generation of the ith device at time t, ε(t) is the noise term; In step 1, the preprocessing of the total power data is specifically as follows: Fill missing data using linear interpolation: in, is the time when data is missing, t0 and t1 represent the time before and after the data is missing, respectively. is the power generation at the missing moment, Y(t0) and Y(t1) are the power generation before and after the data missing moment respectively; De-noising the interpolated power generation data based on wavelet packet function: The interpolated data is transformed into the wavelet packet domain using wavelet packet transform. The wavelet packet transform formula is as follows: Among them, w u,v is the wavelet packet coefficient, ψ u,v is the wavelet packet basis function, u is the scale parameter, and v is the time parameter; The wavelet packet coefficients are subjected to VisuShrink threshold processing, and the wavelet packet coefficients below the threshold are set to zero to suppress noise. The threshold processing formula is as follows: Among them, τ is the threshold, sign is the sign function, is the wavelet packet coefficient after threshold processing; the wavelet packet coefficient after threshold processing is reconstructed to obtain the total power data of the device after noise reduction Y'; The denoised total power data Y' is normalized at the channel level. Among them, Y' n max , Y' n min They represent the maximum and minimum values ​​of the current channel of sample n, respectively, and linearly map the data to the interval [0,1].

2. The method for identifying energy status of multi-element related power generation equipment based on non-invasive monitoring according to claim 1, characterized in that: In step 2, each expert sub-network performs a convolution operation on the power generation data obtained in step 1 based on the temporal convolutional network TCN and the residual network, so as to obtain the transformation relationship between different time steps and learn the shared features; among them, TCN is based on a one-dimensional convolutional neural network, and by introducing causal convolution, dilated convolution and residual modules, the expert sub-network can adapt to time series data of any length.

3. The method for identifying energy status of multi-element related power generation equipment based on non-invasive monitoring according to claim 2, characterized in that: The extraction of shared features in step 2 is specifically as follows; The normalized total power generation Y n norm Pad the output to align with the input in the time dimension, where the definition of causal convolution is as follows: F=(f1,f2,...,f K ); Among them, F represents the filter, K represents the length of the filter, and f k is the kth weight in filter F, F*Y n norm (t) represents Y n norm Causal convolution at time t; Adding an expansion factor d to the causal convolution, there will be a gap of d-1 time steps between each element of the convolution kernel, thereby increasing the receptive field so that each convolution output contains a larger range of information. The output D(t) of the dilated convolution at time t is: A cross connection layer consisting of 1*1 convolution is designed to transfer the residual information between the input and output of the expert sub-network, so that the network can learn the mapping between input and output; first, batch normalization, ReLU activation function, and Dropout operation are performed on D(t) to obtain the residual feature R(Y n norm ), then for Y n norm Perform 1*1 convolution to obtain residual information E(Y n norm ), then E(Y n norm ) and R(Y n norm ) are added to obtain the final output P(Y n norm ) as a shared feature.

4. The method for identifying energy status of multi-correlated power generation equipment based on non-invasive monitoring according to claim 1, characterized in that: In step 2, two gating units G1 and G2 are established to perform state monitoring and energy decomposition on the power generation of distributed power generation equipment respectively, and the shared features learned by each expert sub-network are flexibly combined to obtain the gating information of the state monitoring and energy decomposition tasks; specifically, the gating unit obtains the gating information of the state monitoring and energy decomposition tasks from the shared features P(Y n norm ) selects features related to state monitoring and energy decomposition tasks, which consists of a fully connected layer and a Softmax activation layer: Among them, g j is the gating information output by the gating unit of task j, is the parameter of the gating unit, j∈{1,2}, when j=1 it represents the state monitoring task, when j=2 it represents the energy decomposition task; Apply the cross attention mechanism to realize the gated information g j to the shared feature P(Y n norm ) enables the gating unit to observe the entire distributed generation sequence and determine the weight given to each expert sub-network, and finally obtain the weighted features of the state monitoring and energy decomposition tasks, as shown in the following formula: Among them, z j is the weighted feature of task j obtained based on the cross-attention mechanism, and the gated unit outputs g j is considered as a query vector, sharing the feature P(Y n norm ) are used as the key and value vectors of the cross-attention mechanism, W Q and W K is the parameter matrix, l is the scaling factor, and Softmax is the activation layer; each query, key, and value vector contains information about the entire input sequence.

5. The method for identifying energy status of multi-correlated power generation equipment based on non-invasive monitoring according to claim 1, characterized in that: In step 3, a state monitoring network and an energy decomposition network based on a selective state space model are constructed. The network consists of a selective state space model and a linear projection layer. The network is used to realize the power generation prediction of a single distributed power generation device and the operation status prediction of the power generation device. Specifically, Step 3.1: Weighted feature z j Perform nonlinear transformation; first, transform the weighted feature z in step 2 j Project to the hidden state dimension, and then perform nonlinear convolution on the projection dimension. The specific formula is: q j =σ(Linear(z j )); Among them, q j Indicates z j The nonlinear features after projection and nonlinear convolution, Linear represents linear projection, and σ represents nonlinear convolution; Step 3.2: Design a selective state space model based on the nonlinear characteristics of step 3.1, and establish a mapping relationship between the total power generation of the equipment and the power generation and operating status of a single device; the expression of the selective state space model is: Among them, h t represents the potential state at time t, that is, the representation of the operating state and power generation change learned by the state monitoring and energy decomposition network based on the nonlinear characteristics, h t-1 represents the potential state at time t-1, and is the projection parameter, q j (t) represents the nonlinear characteristics at time t, p j (t) represents the predicted features of SSSM output at time t; the selection mechanism increases The dependence on power generation data indicates that the learnable parameters Dynamic changes occur with the incoming power generation at each different moment; Step 3.3: Weighted feature z through multi-layer perceptron j Mapping is performed, and then the skip connection operation is used to aggregate the mapping result with the output of step 3.2: Among them, MLP stands for multi-layer perceptron, which consists of 3 fully connected hidden layers. represents the selective state space model of the jth task, represents the cross product, represents the multilayer perceptron mapping output of the jth task, represents the result of the skip connection operation of the jth task; Step 3.4: Perform linear projection to obtain features after reducing the dimension According to the standardized exponential function Sigmoid, the value of the state monitoring task network is limited to the interval [0,1], so as to obtain the predicted value of the operating state of the power generation equipment; in, represents the predicted value of the operating status of the power generation equipment, e represents the exponential function, Represents the reduced dimension features in the condition monitoring task.

6. The method for identifying energy status of multi-element related power generation equipment based on non-invasive monitoring according to claim 1, characterized in that: In step 4, the output of the energy decomposition network is corrected according to the output of the state monitoring network, and the corresponding objective functions are designed for different tasks to train the state monitoring network and energy decomposition network established in step 3, and finally the operating status and power generation status of the current power generation equipment are obtained.

7. The method for identifying energy status of multi-correlated power generation equipment based on non-invasive monitoring according to claim 5, characterized in that: The loss functions of the state monitoring network and the energy decomposition network are established as follows: The state perception target of distributed generation equipment based on non-intrusive detection is expressed as: Among them, θ represents the optimal parameters of the state monitoring network and the energy decomposition network, θ 1 represents the parameters of the state monitoring task network, θ 2 represents the parameters of the energy decomposition network, θ E represents the parameters of the multi-gated hybrid expert learner, s represents the operating status of the device. If s is closer to 1, the probability of normal operation of the device is greater, and if s is closer to 0, the probability of shutdown of the device is greater. P(s|Y) represents the conditional probability that the operating status is s when the power generation is given Y, and P(X|Y) represents the conditional probability that the power generation of the device is X when the power generation is given Y. The operating status of the current device is judged by setting the threshold: Among them, S1 represents the normal operation state, S2 represents the low-load operation state, S3 represents the standby or start-up state, S4 represents the shutdown state, μ1=0.6, μ2=0.3, μ3=0.1, and Status represents the current operation state of the power generation equipment predicted by the status monitoring network; If the device is in the on state, the output of the state monitoring task network will not be zero; if the device is in the off state, the power generation of the device is zero; therefore, the output of the energy decomposition network is corrected by the output of the state monitoring network, and the correction formula can be expressed as: Among them, ⊙ represents element-by-element multiplication, It is the power generation of the equipment after correction by the output of the condition monitoring network; Therefore, the loss functions of the proposed state monitoring network and energy decomposition network are designed as: Where λ = 0.5, and They are the cross entropy loss function for the state monitoring task and the mean square error loss function for the energy decomposition task; Among them, CEL represents the cross entropy loss function, MSE is the mean square error, T represents the time period when the sensor collects data, and t represents the time.

8. The method for identifying energy status of multi-element related power generation equipment based on non-intrusive monitoring according to claim 1, characterized in that: The power generation data set obtained after preprocessing in step 1 is used as a training sample set, and the parameters of the state monitoring network and the energy decomposition network are updated using the Adam optimizer. The state monitoring network and the energy decomposition network are trained to obtain the final state monitoring network and the energy decomposition network. The specific steps include the following: Initialize the parameters of the state monitoring network and the energy decomposition network, and use the power generation data as the training sample set; Select training samples from the training sample set and input them into the multi-gated hybrid expert learner. Then input the obtained results into the state monitoring network and the energy decomposition network respectively to obtain the power generation and operation status of the current power generation equipment, calculate the losses of the state monitoring network and the energy decomposition network, and use the Adam optimizer to update the network parameters. Repeat the above steps until the training of all samples in the sample set is completed, and find the parameters that minimize the average value of the absolute error between the network output result and the target output result as the parameters of the final state monitoring network and energy decomposition network, and determine the optimal state monitoring network and energy decomposition network; By taking the total power of distributed power generation equipment as the input of the trained state monitoring network and energy decomposition network, the operating status and power generation of multiple devices in the distributed microgrid can be obtained.

Citation Information

Patent Citations

  • Non-intrusive load monitoring method and system based on multi-task learning model

    CN117272230A

  • Method and system for estimating generating capacity of photovoltaic power station based on neural network

    CN117540859A

  • High-frequency electric appliance identification model construction method and system based on multi-gate control expert network

    CN117574238A

  • Monitoring system of wind generator using radar

    KR102031121B1

Cited By

  • Daily electricity consumption prediction method and system based on modular bypass and gating fusion

    CN121615819A