Load identification method and system based on deep learning theory

By combining the characteristic coupling unit of the convolutional neural network and the Transformer network in load monitoring, the problem of taking into account both local features and global representation is solved, the accuracy of load identification is improved, and the load behavior status is intuitively displayed through color trajectory images.

WO2024221545A1PCT designated stage expired Publication Date: 2024-10-31GUANGDONG POWER GRID CO LTD +1

Patent Information

Application Number
PCT/CN2023/098176
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-24
Filing Date
2023-06-03
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

Existing load monitoring methods cannot take into account both local feature extraction and global representation extraction, resulting in low accuracy in identifying load behavior states.

Method used

Convolutional neural networks and Transformer networks based on deep learning theory are used to build CNN branches and Transformer branches, and feature coupling units are set up between the two to combine local features and global representation to improve load identification accuracy.

Benefits of technology

By combining local features and global representation, the accuracy of load identification is significantly improved, and the intuitive display of color trajectory images helps users understand changes in load behavior states.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023098176_31102024_PF_FP_ABST
    Figure CN2023098176_31102024_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present invention are a load identification method and system based on the deep learning theory. The method comprises: carrying out load detection on user electricity consumption data to obtain a plurality of loads, and a plurality of load voltages and a plurality of load currents of each load; traversing each load, establishing a power factor matrix, a hue matrix and a voltage cycle matrix of the current traversed load according to all load voltages and all load currents of the current traversed load, and connecting the matrixes to obtain a color trajectory image; and inputting the color trajectory image corresponding to each load into a load identification network model to obtain an operation state corresponding to each load, wherein the load identification network model is composed of a CNN branch, a Transformer branch, and a feature coupling unit which serves as a bridge between the two branches. According to the present invention, the feature coupling unit is provided as the bridge between the two branches, so that the load identification network model has both a local feature extraction capability and a global representation extraction capability, thereby improving the load identification precision.
Need to check novelty before this filing date? Find Prior Art

Description

A load identification method and system based on deep learning theory Technical Field

[0001] The present invention relates to the field of load monitoring technology, and in particular to a load identification method and system based on deep learning theory. Background Art

[0002] Energy is the pillar of human civilization and has always played a vital and fundamental role in social progress and development. Energy conservation and emission reduction have become a hot topic of concern to the entire society. Energy conservation is an important part of demand-side management. The key issues of energy-saving solutions are cost and user participation. Solutions can be sought from five aspects: system operation, power generation, transmission and distribution, energy retail, and load. Of all these solutions, load-side solutions are arguably the most cost-effective and efficient. Real-time load monitoring is considered a good way to obtain valuable feedback information, which helps to implement energy-saving measures and implement more effective energy management strategies such as energy efficiency programs, demand-side management, and peak load reduction.

[0003] Existing load monitoring methods based on VI trajectory features primarily include supervised learning, semi-supervised learning, unsupervised learning, and transfer learning. These methods primarily use convolutional neural networks (CNNs) to learn representations of VI trajectory images from different perspectives and classify them. Despite their advantages in extracting local features, CNNs lack the ability to capture global representations, which is crucial for many high-level computer vision tasks. A straightforward solution is to expand the receptive field, but this compromises the operation of the pooling layer. Recently, the Transformer architecture has been applied to vision tasks. For example, the Vision Transformer (ViT) model constructs a series of tokens by segmenting each image into patches with positional embeddings. Transformer blocks are then used to extract parameterized vectors as visual representations. However, the ViT model ignores local feature details, which reduces the discriminability between background and foreground. The quality of feature extraction directly impacts the subsequent load behavior state identification results. Existing load monitoring and identification methods fail to balance local feature extraction with global representation extraction, resulting in low load behavior state identification accuracy.

[0004] Summary of the Invention

[0005] The present invention provides a load identification method and system based on deep learning theory, which optimizes the feature extraction capability of the load identification network model for color trajectory images to improve the load identification accuracy.

[0006] To solve the above technical problems, an embodiment of the present invention provides a load identification method based on deep learning theory, including:

[0007] Performing load detection on the user's electricity consumption data to obtain corresponding multiple loads and multiple load voltages and multiple load currents of each load;

[0008] Traversing each of the loads, establishing a power factor matrix, a hue matrix, and a voltage cycle matrix corresponding to the currently traversed load based on all the load voltages and all the load currents of the currently traversed load, and connecting the power factor matrix, the hue matrix, and the voltage cycle matrix to obtain a color trajectory image corresponding to the currently traversed load;

[0009] The color trajectory image corresponding to each of the loads is input into a load identification network model so that the load identification network model outputs the operating status corresponding to each of the loads; wherein, the load identification network model is composed of a CNN branch built based on a convolutional neural network in deep learning theory, a Transformer branch built based on a Transformer network, and a characteristic coupling unit used as a bridge between the CNN branch and the Transformer branch.

[0010] In implementing the embodiments of the present invention, based on convolutional neural networks and Transformer networks in deep learning theory, a CNN branch and a Transformer branch are constructed, respectively. A feature coupling unit is provided between the CNN branch and the Transformer branch to serve as a bridge between the two branches. This combines the CNN-based local features with the Transformer-based global representation, enhancing the load feature extraction capability and thus improving load identification accuracy. Furthermore, by connecting the power factor matrix, hue matrix, and voltage cycle matrix corresponding to each traversed load, a color image perceived by humans can be obtained, allowing users to intuitively and visually view changes in the load's behavioral state.

[0011] As a preferred solution, the load identification network model specifically includes: a stem module, the CNN branch, the Transformer branch, the characteristic coupling unit and the classification merging unit;

[0012] The stem module includes a first convolutional layer and a maximum pooling layer, which is used to extract the first local features of the color trajectory image and input the first local features into the CNN branch and the Transformer branch;

[0013] The CNN branch includes a plurality of local convolution blocks; wherein the local convolution blocks are used to extract the second local features corresponding to the color trajectory image from the first local features;

[0014] The Transformer branch includes a plurality of Transformer blocks; wherein the Transformer block includes a self-attention module or a multi-layer perceptron unit, the Transformer block is used to extract a first global representation corresponding to the color trajectory image from the first local feature, and the local convolution block and the Transformer block have a one-to-one correspondence;

[0015] The feature coupling unit is configured to fuse the second local features extracted by each of the local convolution blocks with the first global representation extracted by the Transformer block corresponding to each of the local convolution blocks, so as to obtain a third local feature corresponding to each of the second local features and a second global representation corresponding to each of the first global representations;

[0016] The classification and merging unit includes a first classifier corresponding to the CNN branch, a second classifier corresponding to the Transformer branch, and a merger, which is used to classify the fourth local feature through the first classifier to output the corresponding first classification result, and classify the third global representation through the second classifier to output the corresponding second classification result, and then add the first classification result and the second classification result through the merger to obtain the load identification result corresponding to the color trajectory image; wherein the fourth local feature is obtained by merging the third local features extracted by each of the local convolution blocks, and the third global representation is obtained by merging the second global representations extracted by each of the Transformer blocks.

[0017] A preferred solution for implementing the embodiment of the present invention is to form a concurrent network structure based on the stem module, CNN branch, Transformer branch, feature coupling unit and classification merging unit, and utilize the feature coupling unit to interactively input the local features of the CNN branch into the Transformer block in the Transformer branch step by step along the two branch structures, and input the global representation of the Transformer branch into the local convolution block in the CNN branch, so as to enhance the global perception ability of the CNN branch and the local perception ability of the Transformer branch, respectively, thereby improving the load behavior state identification ability of the load identification network model.

[0018] As a preferred solution, the construction of the load identification network model specifically includes:

[0019] Based on the convolutional neural network and Transformer network in deep learning theory, an initial load identification model is constructed, and the parameters of the initial load identification model are trained and optimized according to a sample data set to obtain the load identification network model; wherein, the sample data set includes user load data of the target load equipment and the corresponding operating status of the target load equipment.

[0020] The preferred solution of implementing the embodiment of the present invention utilizes a sample data set including user load data of the target load equipment and the corresponding operating status of the target load equipment to train and optimize the parameters of the pre-built initial load identification model, which can further verify and improve the load identification accuracy of the load identification network model.

[0021] As a preferred solution, the traversal of each load, based on all the load voltages and all the load currents of the currently traversed load, establishes a power factor matrix, a hue matrix, and a voltage cycle matrix corresponding to the currently traversed load, and connects the power factor matrix, the hue matrix, and the voltage cycle matrix to obtain a color trajectory image corresponding to the currently traversed load, specifically including:

[0022] Traversing each load, obtaining a first VI trajectory corresponding to the currently traversed load based on all the load voltages and all the load currents of the currently traversed load, then decomposing each load current into active current and reactive current according to Fryze power theory, and using each reactive current to replace the corresponding load current to form a second VI trajectory corresponding to the currently traversed load; wherein the first VI trajectory is a trajectory of the load voltages and load currents of the currently traversed load changing over time;

[0023] Establishing the power factor matrix and the voltage period matrix corresponding to the current ergodic load according to the active current and the reactive current corresponding to the current ergodic load;

[0024] Capturing motion information of the second VI trajectory using the hue attribute of the HSV color space to obtain a motion direction of each capture point on the second VI trajectory, and storing the hue of each capture point in a preset matrix based on the motion direction of each capture point to obtain the corresponding hue matrix;

[0025] The power factor matrix, the hue matrix, and the voltage period matrix corresponding to the current traversal load are connected along the third dimension to obtain the color trajectory image corresponding to the current traversal load.

[0026] In a preferred embodiment of the present invention, according to Fryze power theory, the load current is decomposed into active current representing resistance information and reactive current representing non-resistance information. The reactive current is used to replace the original load current to form a second VI trajectory corresponding to the currently ergodic load, thereby enhancing the uniqueness of the second VI trajectory. Furthermore, based on the active and reactive currents corresponding to the currently ergodic load, a power factor matrix corresponding to the currently ergodic load is established. The power factor matrix, hue matrix, and voltage period matrix corresponding to the currently ergodic load are then concatenated along the third dimension to produce a corresponding color trajectory image. This avoids information loss between the active and reactive components of the load current.

[0027] As a preferred solution, the load detection of the user's electricity consumption data to obtain corresponding multiple loads and multiple load voltages and multiple load currents of each load specifically includes:

[0028] Obtaining the user's electricity consumption data, and then calculating the total apparent power change at different times according to a preset algorithm and combining the user's electricity consumption data;

[0029] According to the preset load detection algorithm, the total apparent power change at each moment is traversed to determine the start and end times of several load switching events, and based on the start and end times of all the load switching events, multiple loads and several load voltages and several load currents of each load are obtained.

[0030] A preferred solution for implementing an embodiment of the present invention is to detect time periods when load states change based on user electricity consumption data to determine the start and end times of each load switching event, thereby obtaining multiple loads and several load voltages and load currents corresponding to each load, so as to facilitate subsequent load state identification.

[0031] To solve the same technical problem, an embodiment of the present invention further provides a load identification system based on deep learning theory, comprising:

[0032] A load data acquisition module is used to perform load detection on the user's power consumption data to obtain a corresponding plurality of loads, as well as a plurality of load voltages and a plurality of load currents of each of the loads;

[0033] a trajectory image drawing module, configured to traverse each of the loads, establish a power factor matrix, a hue matrix, and a voltage period matrix corresponding to the currently traversed load based on all the load voltages and all the load currents of the currently traversed load, and connect the power factor matrix, the hue matrix, and the voltage period matrix to obtain a color trajectory image corresponding to the currently traversed load;

[0034] An operating status identification module is used to input the color trajectory image corresponding to each of the loads into a load identification network model, so that the load identification network model outputs the operating status corresponding to each of the loads; wherein, the load identification network model is composed of a CNN branch built based on a convolutional neural network in deep learning theory, a Transformer branch built based on a Transformer network, and a characteristic coupling unit used as a bridge between the CNN branch and the Transformer branch.

[0035] As a preferred solution, the load identification network model specifically includes: a stem module, the CNN branch, the Transformer branch, the characteristic coupling unit and the classification merging unit;

[0036] The stem module includes a first convolutional layer and a maximum pooling layer, which is used to extract the first local features of the color trajectory image and input the first local features into the CNN branch and the Transformer branch;

[0037] The CNN branch includes a plurality of local convolution blocks; wherein the local convolution blocks are used to extract the second local features corresponding to the color trajectory image from the first local features;

[0038] The Transformer branch includes a plurality of Transformer blocks; wherein the Transformer block includes a self-attention module or a multi-layer perceptron unit, the Transformer block is used to extract a first global representation corresponding to the color trajectory image from the first local feature, and the local convolution block and the Transformer block have a one-to-one correspondence;

[0039] The feature coupling unit is configured to fuse the second local features extracted by each of the local convolution blocks with the first global representation extracted by the Transformer block corresponding to each of the local convolution blocks, so as to obtain a third local feature corresponding to each of the second local features and a second global representation corresponding to each of the first global representations;

[0040] The classification and merging unit includes a first classifier corresponding to the CNN branch, a second classifier corresponding to the Transformer branch, and a merger, which is used to classify the fourth local feature through the first classifier to output the corresponding first classification result, and classify the third global representation through the second classifier to output the corresponding second classification result, and then add the first classification result and the second classification result through the merger to obtain the load identification result corresponding to the color trajectory image; wherein the fourth local feature is obtained by merging the third local features extracted by each of the local convolution blocks, and the third global representation is obtained by merging the second global representations extracted by each of the Transformer blocks.

[0041] As a preferred solution, the load identification system based on deep learning theory further includes:

[0042] The model building module is used to build an initial load identification model based on the convolutional neural network and Transformer network in deep learning theory, and train and optimize the parameters of the initial load identification model according to a sample data set to obtain the load identification network model; wherein the sample data set includes the user load data of the target load equipment and the corresponding operating status of the target load equipment.

[0043] As a preferred solution, the trajectory image drawing module specifically includes:

[0044] a load trajectory acquisition unit, configured to traverse each load, and based on all the load voltages and all the load currents of the currently traversed load, obtain a first VI trajectory corresponding to the currently traversed load; then, according to Fryze power theory, decompose each load current into active current and reactive current, and use each reactive current to replace the corresponding load current to form a second VI trajectory corresponding to the currently traversed load; wherein the first VI trajectory is a trajectory of the load voltages and load currents of the currently traversed load changing over time;

[0045] a matrix establishment unit, configured to establish the power factor matrix and the voltage period matrix corresponding to the currently traversed load based on the active current and the reactive current corresponding to the currently traversed load; capture motion information of the second VI trajectory using the hue attribute of the HSV color space to obtain a motion direction of each capture point on the second VI trajectory; and based on the motion direction of each capture point, store the hue of each capture point in a preset matrix to obtain the corresponding hue matrix;

[0046] The trajectory image drawing unit is used to connect the power factor matrix, the hue matrix and the voltage period matrix corresponding to the current traversal load along the third dimension to obtain the color trajectory image corresponding to the current traversal load.

[0047] As a preferred solution, the load data acquisition module specifically includes:

[0048] a data calculation unit, configured to obtain the user's power consumption data, and then calculate the total apparent power change at different times in combination with the user's power consumption data according to a preset algorithm;

[0049] A data acquisition unit is used to traverse the total apparent power change at each moment according to a preset load detection algorithm to determine the start and end times of several load switching events, and obtain multiple loads and several load voltages and several load currents of each load based on the start and end times of all the load switching events. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] FIG1 is a flow chart of a load identification method based on deep learning theory provided in Example 1 of the present invention;

[0051] FIG2 is a schematic diagram showing the detailed structure of the CNN branch, Transformer branch, and characteristic coupling unit of the initial load identification model provided in the first embodiment of the present invention;

[0052] Figure 3: A structural diagram of a load identification system based on deep learning theory provided in Example 1 of the present invention. DETAILED DESCRIPTION

[0053] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.

[0054] Embodiment one:

[0055] Referring to FIG. 1 , a load identification method based on deep learning theory is provided in an embodiment of the present invention. The method includes steps S1 to S3, each of which is specifically as follows:

[0056] Step S1 : performing load detection on the user's electricity consumption data to obtain a corresponding plurality of loads, and a plurality of load voltages and a plurality of load currents of each load.

[0057] As a preferred solution, step S1 includes steps S11 to S12, and the details of each step are as follows:

[0058] Step S11 : obtaining the power consumption data of the user to be detected, and then calculating the total apparent power variation at different times according to a preset algorithm and in combination with the power consumption data of the user.

[0059] In step S12, according to a preset load detection algorithm, the total apparent power change at each moment is traversed to determine the start and end times of several load switching events, and based on the start and end times of all load switching events, multiple loads and several load voltages and several load currents of each load are obtained.

[0060] In this embodiment, the load state switching process is accompanied by a change in real power. Motor loads often experience an inrush current when starting. Therefore, based on the user's historical power consumption data (the total apparent power data in the load dataset), load switching events can be detected. The specific detection process includes steps 1) to 3), each of which is as follows:

[0061] Step 1), let R be the step size, S t Represents the total apparent power at t seconds, ΔS t =S t+1 -S t Represents the total apparent power change.

[0062] Step 2), when ΔS t >S on1 When , the event detection window starts to move and calculate ΔS t+1 , ΔS t+2 , ..., until ΔS t+TR <S on1 .

[0063] Step 3), if ΔS t+TR -S t <S on2 , it means that the load has changed state within t~t+TR seconds, that is, an unknown event is detected. Among them, the event start time t on is t seconds, and the event ends at time t off It is t+TR, where TR represents the duration of the event.

[0064] It should be noted that the detection process of the above load switching event can be found in formula (1). t |≥S on1 &&|ΔS t+1 |≥S on1 &&...&&|ΔS t+TR-1 |≥S on1 &&|ΔSt+TR |<S on1 &&|ΔS t+TR+1 |<S on1 &&|S t+TR -S t |≥S on2 (1)

[0065] Among them, && represents the AND operator.

[0066] Step S2, traverse each load, and establish the power factor matrix, hue matrix and voltage cycle matrix corresponding to the currently traversed load based on all load voltages and all load currents of the currently traversed load, and connect the power factor matrix, hue matrix and voltage cycle matrix to obtain the color trajectory image corresponding to the currently traversed load.

[0067] As a preferred solution, step S2 includes steps S21 to S24, and each step is specifically as follows:

[0068] Step S21, traverse each load, and obtain the first VI trajectory corresponding to the currently traversed load based on all load voltages and all load currents of the currently traversed load. Then, according to the Fryze power theory, decompose each load current into active current and reactive current, and use each reactive current to replace the corresponding load current to form a second VI trajectory corresponding to the currently traversed load; wherein the first VI trajectory is the trajectory of each load voltage and each load current of the currently traversed load changing over time.

[0069] In this embodiment, the process of obtaining the second VI trajectory specifically includes steps 4) to 6), and each step is specifically as follows:

[0070] Step 4) According to the detected load switching event, the steady-state voltage and current waveforms v before and after the load switching event are extracted. on 、v off 、i on and i off .

[0071] Step 5), in order to ensure that the current waveform i on and i off To be able to directly subtract in the time domain, the initial phases of the two should be the same, so the following operations are performed: Calculate the base voltage phase angle using spectrum analysis methods such as fast Fourier transform, and use the sampling point with zero phase angle as the initial sampling point, so that i on and i off The initial phase of each load is the same, and then starting from the initial sampling point, refer to formula (2) and (3), calculate the voltage and current of each load at each sampling point to form the first VI trajectory of each load. i=ion -i off (3)

[0072] Step 6), since the shape of the VI trajectory depends largely on the load current that reflects the physical characteristics of the power load, and considering that the proportion of active current in the power factor is often greater than that of reactive current, the same type of load has almost no difference in the shape of the VI trajectory. Therefore, in order to enhance the uniqueness of the VI trajectory, refer to formula (4) and, according to the Fryze power theory, the load current i(t) is divided into the active current i a (t) and reactive current i f (t), and use the reactive current i corresponding to each load f (t), respectively replace the corresponding load current to form the second VI trajectory corresponding to the current ergodic load. i(t)=i a (t)+i f (t) (4)

[0073] Among them, the active current is defined as the orthogonal projection of the load current i(t) in the direction of the load voltage v(t), that is, i a (t) is proportional to v(t), which conveys the resistance information. a (t) and active power P active Please refer to formula (5) and (6) for the expressions of .

[0074] Among them, V rms = represents the effective value of voltage, and T represents the power supply period. It can be seen that the reactive current and reactive voltage are orthogonal to each other. Please refer to formula (7), and use the instantaneous voltage and current of the load to calculate the reactive current i f (t) is represented.

[0075] Step S22: establishing a power factor matrix and a voltage period matrix corresponding to the current ergodic load according to the active current and reactive current corresponding to the current ergodic load.

[0076] In this embodiment, the aforementioned content mentioned that the load current is decomposed into active and reactive components, and the reactive current is used instead of the original load current. However, if only the reactive current is used to draw the VI trajectory, the information between the active current and the reactive current will be lost. Therefore, referring to formula (8), saturation is used to represent the ratio of active power to reactive power in multiple cycles corresponding to the current ergodic load, which is the power factor matrix corresponding to the current ergodic load.

[0077] Among them, K represents the total number of sampling points, Papparent Represents apparent power, V rms , I rms Represent the effective values ​​of load voltage and load current respectively.

[0078] In this embodiment, refer to formula (9), and use the binary image W m (1,2,…,M), average the M cycles of the waveform of the load voltage and the waveform of the load current of the current ergodic load to obtain the voltage cycle matrix V corresponding to the current ergodic load.

[0079] In step S23, refer to formula (10), the motion information of the second VI trajectory is captured by the hue attribute of the HSV color space to obtain the motion direction H of each capture point on the second VI trajectory. j , and refer to formula (11), based on the movement direction of each capture point, the hue of each capture point is stored in a preset 2N×2N matrix to obtain the corresponding hue matrix

[0080] The function arg is the inverse tangent value of the four quadrants and calculates the phase angle between two consecutive points in the second VI trace, with a value range of 0° to 360°.

[0081] in, |A| is the cardinality of the set.

[0082] Step S24: The power factor matrix corresponding to the current traversal load Hue Matrix and the voltage period matrix V along the third dimension to obtain the color trajectory image corresponding to the current traversal load.

[0083] As a preferred solution, before executing step S3, a load identification network model construction process is also included. The process includes steps S01 to S04. The specific steps are as follows:

[0084] Step S01: Build a stem module including a first convolutional layer and a maximum pooling layer. The stem module is used to extract the first local features of the color trajectory image and input the first local features into the CNN branch and the Transformer branch.

[0085] As an example, the first convolutional layer can be composed of a 7×7 convolution with a stride of 2, and the maximum pooling layer can be a 3×3 max pooling with a stride of 2.

[0086] In step S02, based on the convolutional neural network and the Transformer network in deep learning theory, a CNN branch including multiple local convolution blocks and a Transformer branch including multiple Transformer blocks are constructed.

[0087] In this embodiment, referring to FIG2 , the local convolution block in the CNN branch may be composed of a 1×1Conv-BN, a 3×3Conv-BN, and a 1×1Conv-BN, and is used to extract the second local feature corresponding to the color trajectory image from the first local feature. The Transformer block in the Transformer branch includes a LayerNorm and a multi-head self-attention module, or includes a LayerNorm and a multi-layer perceptron (MLP) unit, and is used to extract the first global representation corresponding to the color trajectory image from the first local feature. There is a one-to-one correspondence between the local convolution block and the Transformer block.

[0088] It should be noted that the CNN branch can learn the local feature representation of the VI trajectory image from different perspectives. The self-attention module and multi-layer perceptron unit in the Transformer branch adopt the self-attention mechanism and multi-layer perceptron structure to reflect complex spatial transformations and long-range feature dependencies, thereby obtaining the global feature representation of the VI trajectory image.

[0089] In step S03, referring to Figure 2, considering the feature asymmetry between the CNN and Transformer branches, a Feature Coupling Unit (FCU) is designed to bridge the gap between the CNN and Transformer branches. Along the CNN and Transformer branches, the FCU interactively and progressively fuses feature maps and patch embeddings.

[0090] It should be noted that the FCU is used to fuse the second local features extracted by each local convolution block with the first global representation extracted by the Transformer block corresponding to each local convolution block to obtain the third local features corresponding to each second local feature and the second global representation corresponding to each first global representation.

[0091] Step S04: Build a first classifier corresponding to the CNN branch, a second classifier corresponding to the Transformer branch, and a merger to obtain an initial load identification model.

[0092] It should be noted that the first classifier is used to classify the fourth local feature and output a corresponding first classification result; the second classifier is used to classify the third global representation and output a corresponding second classification result; and the merger is used to add the first classification result and the second classification result to obtain a prediction result corresponding to the color trajectory image. The fourth local feature is obtained by merging the third local features extracted by each local convolution block, and the third global representation is obtained by merging the second global representations extracted by each Transformer block.

[0093] Step S05 , training and optimizing the parameters of the initial load identification model according to the sample data set to obtain a load identification network model; wherein the sample data set includes user load data of the target load device and the corresponding operating status of the target load device.

[0094] It should be noted that during the training process, two cross entropy losses are used to supervise the first classifier and the second classifier respectively, and the importance weights of the loss function are set to be the same.

[0095] In this embodiment, step S05 specifically includes step 7) to step 8), and each step is specifically as follows:

[0096] Step 7) Obtain training, validation, and test data from the dataset and normalize the data. Using a domestic user's load data as an example, divide all data into training, validation, and test datasets in a 6:2:2 ratio. Select 10 target load devices: air conditioner, fan, refrigerator, hair dryer, heater, incandescent light bulb, laptop, microwave oven, washing machine, and vacuum cleaner. Load identification is performed using the load identification neural network structure designed by the present invention, as shown in Figure 1.

[0097] In step 8), the parameters of the initial load identification model are initialized, and the training data is input into the initial load identification model for training. The trained model is tested using the test data, and refer to formulas (12)(13)(14). Based on all the test results of each target load device, the evaluation indicators of the load identification results of the above 10 target load devices are statistically obtained. For specific evaluation indicators, please refer to Table 1 to verify the identification ability of the model.

[0098] Among them, TP represents the number of test samples whose recognition results are positive samples and whose actual conditions are also positive samples, FP represents the number of test samples whose recognition results are positive samples and whose actual conditions are negative samples, and FN represents the number of test samples whose recognition results are negative samples and whose actual conditions are positive samples.

[0099] Table 1 Performance of the model outputting nasopharyngeal carcinoma lesion probability maps in the test set

[0100] In step S3 , the color trajectory image corresponding to each load is input into the load identification network model, so that the load identification network model outputs the operating status corresponding to each load.

[0101] Please refer to FIG3 , which is a schematic diagram of the structure of a load identification system based on deep learning theory provided by an embodiment of the present invention. The system includes a load data acquisition module M1, a trajectory image drawing module M2, and an operation status identification module M3. The details of each module are as follows:

[0102] The load data acquisition module M1 is used to perform load detection on the user's power consumption data to obtain the corresponding multiple loads and several load voltages and several load currents of each load;

[0103] The trajectory image drawing module M2 is used to traverse each load and establish the power factor matrix, hue matrix and voltage cycle matrix corresponding to the currently traversed load based on all load voltages and all load currents of the currently traversed load. The power factor matrix, hue matrix and voltage cycle matrix are then connected to obtain a color trajectory image corresponding to the currently traversed load.

[0104] The operating status identification module M3 is used to input the color trajectory image corresponding to each load into the load identification network model, so that the load identification network model outputs the operating status corresponding to each load; wherein, the load identification network model is composed of a CNN branch built based on the convolutional neural network in deep learning theory / a Transformer branch built based on the Transformer network, and a characteristic coupling unit serving as a bridge between the CNN branch and the Transformer branch.

[0105] As a preferred solution, the load identification network model specifically includes: a stem module, a CNN branch, a Transformer branch, a characteristic coupling unit, and a classification merging unit;

[0106] The stem module includes a first convolutional layer and a maximum pooling layer, which is used to extract the first local features of the color trajectory image and input the first local features into the CNN branch and the Transformer branch;

[0107] The CNN branch includes a plurality of local convolution blocks, wherein the local convolution block is used to extract a second local feature corresponding to the color trajectory image from the first local feature;

[0108] A Transformer branch, comprising a plurality of Transformer blocks; wherein the Transformer block comprises a self-attention module or a multi-layer perceptron unit, the Transformer block is used to extract a first global representation corresponding to the color trajectory image from the first local feature, and the local convolution blocks and the Transformer blocks correspond one to one;

[0109] A feature coupling unit is used to fuse the second local features extracted by each local convolution block with the first global representation extracted by the Transformer block corresponding to each local convolution block to obtain a third local feature corresponding to each second local feature and a second global representation corresponding to each first global representation;

[0110] The classification and merging unit includes a first classifier corresponding to the CNN branch, a second classifier corresponding to the Transformer branch, and a merger, which is used to classify the fourth local feature through the first classifier to output the corresponding first classification result, and classify the third global representation through the second classifier to output the corresponding second classification result, and then add the first classification result and the second classification result through the merger to obtain a prediction result corresponding to the color trajectory image; wherein the fourth local feature is obtained by merging the third local features extracted by each local convolution block, and the third global representation is obtained by merging the second global representations extracted by each Transformer block.

[0111] As a preferred solution, referring to FIG. 3 , an embodiment of the present invention provides a load identification system based on deep learning theory, further comprising a model building module M4, which is specifically as follows:

[0112] The model building module M4 is used to build an initial load identification model based on the convolutional neural network and Transformer network in deep learning theory, and train and optimize the parameters of the initial load identification model according to the sample data set to obtain a load identification network model; wherein the sample data set includes the user load data of the target load equipment and the corresponding operating status of the target load equipment.

[0113] As a preferred solution, the trajectory image drawing module M2 specifically includes a load trajectory acquisition unit 21, a matrix establishment unit 22 and a trajectory image drawing unit 23. The details of each unit are as follows:

[0114] The load trajectory acquisition unit 21 is configured to traverse each load and, based on all load voltages and all load currents of the currently traversed load, obtain a first VI trajectory corresponding to the currently traversed load. Then, according to Fryze power theory, each load current is decomposed into active current and reactive current, and each reactive current is used to replace the corresponding load current to form a second VI trajectory corresponding to the currently traversed load. The first VI trajectory is a trajectory of the changes in each load voltage and each load current of the currently traversed load over time.

[0115] The matrix establishment unit 22 is configured to establish a power factor matrix and a voltage period matrix corresponding to the current traversal load based on the active current and reactive current corresponding to the current traversal load; capture motion information of the second VI trajectory using the hue attribute of the HSV color space to obtain the motion direction of each capture point on the second VI trajectory; and based on the motion direction of each capture point, store the hue of each capture point in a preset matrix to obtain a corresponding hue matrix;

[0116] The trajectory image drawing unit 23 is used to connect the power factor matrix, hue matrix and voltage period matrix corresponding to the current traversed load along the third dimension to obtain a color trajectory image corresponding to the current traversed load.

[0117] As a preferred solution, the load data acquisition module M1 specifically includes a data calculation unit 11 and a data acquisition unit 12. The details of each unit are as follows:

[0118] The data calculation unit 11 is used to obtain the power consumption data of the user to be detected, and then calculate the total apparent power change at different times according to a preset algorithm and the user power consumption data;

[0119] The data acquisition unit 12 is used to traverse the total apparent power change at each moment according to a preset load detection algorithm to determine the start time and end time of several load switching events, and obtain multiple loads and several load voltages and several load currents of each load based on the start time and end time of all load switching events.

[0120] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working process of the system described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0121] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0122] The present invention provides a load identification method and system based on deep learning theory. Based on the convolutional neural network and Transformer network in deep learning theory, a CNN branch and a Transformer branch are constructed. A feature coupling unit is provided between the CNN branch and the Transformer branch to serve as a bridge between the two branches. This combines the local features based on the CNN with the global representation based on the Transformer, enhancing the feature extraction capability of the load and thus improving the load identification accuracy. Furthermore, by connecting the power factor matrix, hue matrix, and voltage period matrix corresponding to each traversed load, a color image perceived by humans can be obtained, allowing users to intuitively and vividly view the changes in the load's behavioral state.

[0123] Furthermore, according to the Fryze power theory, the load current is decomposed into active current representing resistance information and reactive current representing non-resistance information. The reactive current is used to replace the original load current to form a second VI trajectory corresponding to each load, thereby enhancing the uniqueness of the second VI trajectory. Based on the active current and reactive current corresponding to each load, a power factor matrix corresponding to each load is established, and the power factor matrix, hue matrix, and voltage period matrix corresponding to each load are connected along the third dimension to obtain a corresponding color trajectory image, which can avoid information loss between the active component and reactive component of the load current.

[0124] The specific embodiments described above further illustrate the objectives, technical solutions, and beneficial effects of the present invention. It should be understood that the above descriptions are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. In particular, it should be noted that any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included within the scope of protection of the present invention for those skilled in the art.

Claims

1. A load identification method based on deep learning theory, characterized in that: include: Performing load detection on the user's power consumption data to obtain a corresponding plurality of loads, and a plurality of load voltages and a plurality of load currents of each of the loads; Traversing each of the loads, establishing a power factor matrix, a hue matrix and a voltage cycle matrix corresponding to the currently traversed load according to all the load voltages and all the load currents of the currently traversed load, and connecting the power factor matrix, the hue matrix and the voltage cycle matrix to obtain a color trajectory image corresponding to the currently traversed load; The color trajectory image corresponding to each of the loads is input into the load identification network model so that the load identification network model outputs the operating status corresponding to each of the loads; wherein the load identification network model is composed of a CNN branch built based on a convolutional neural network in deep learning theory, a Transformer branch built based on a Transformer network, and a characteristic coupling unit used as a bridge between the CNN branch and the Transformer branch.

2. A load identification method based on deep learning theory as claimed in claim 1, characterized in that: The load identification network model specifically includes: a stem module, the CNN branch, the Transformer branch, the characteristic coupling unit and the classification merging unit; The stem module includes a first convolutional layer and a maximum pooling layer, which are used to extract the first local features of the color trajectory image, and input the first local features into the CNN branch and the Transformer branch; The CNN branch includes a plurality of local convolution blocks; wherein the local convolution block is used to extract a second local feature corresponding to the color trajectory image from the first local feature; The Transformer branch includes a plurality of Transformer blocks; wherein the Transformer block includes a self-attention module or a multi-layer perceptron unit, the Transformer block is used to extract a first global representation corresponding to the color trajectory image from the first local feature, and the local convolution block corresponds to the Transformer block one by one; The feature coupling unit is used to fuse the second local features extracted by each of the local convolution blocks with the first global representation extracted by the Transformer block corresponding to each of the local convolution blocks to obtain a third local feature corresponding to each of the second local features and a second global representation corresponding to each of the first global representations; The classification and merging unit includes a first classifier corresponding to the CNN branch, a second classifier corresponding to the Transformer branch, and a merger, which is used to classify the fourth local feature through the first classifier to output the corresponding first classification result, and classify the third global representation through the second classifier to output the corresponding second classification result, and then add the first classification result and the second classification result through the merger to obtain the load identification result corresponding to the color trajectory image; wherein the fourth local feature is obtained by merging the third local features extracted by each of the local convolution blocks, and the third global representation is obtained by merging the third local features extracted by each of the Transformer The second global representation extracted from the block is merged.

3. A load identification method based on deep learning theory as claimed in claim 1, characterized in that: The construction of the load identification network model specifically includes: Based on the convolutional neural network and Transformer network in deep learning theory, an initial load identification model is constructed, and the parameters of the initial load identification model are trained and optimized according to a sample data set to obtain the load identification network model; wherein the sample data set includes user load data of the target load equipment and the corresponding operating status of the target load equipment.

4. A load identification method based on deep learning theory as claimed in claim 1, characterized in that: The traversing of each load, establishing a power factor matrix, a hue matrix and a voltage cycle matrix corresponding to the currently traversed load according to all the load voltages and all the load currents of the currently traversed load, and connecting the power factor matrix, the hue matrix and the voltage cycle matrix to obtain a color trajectory image corresponding to the currently traversed load, specifically includes: Traverse each of the loads, and obtain a first VI trajectory corresponding to the currently traversed load according to all the load voltages and all the load currents of the currently traversed load, and then decompose each of the load currents into active current and reactive current according to Fryze power theory, and use each of the reactive currents to replace the corresponding load currents, so as to form a second VI trajectory corresponding to the currently traversed load; wherein the first VI trajectory is a trajectory of changes of each of the load voltages and each of the load currents of the currently traversed load over time; According to the active current and the reactive current corresponding to the current ergodic load, establishing the power factor matrix and the voltage period matrix corresponding to the current ergodic load; Capturing motion information of the second VI trajectory through the hue attribute of the HSV color space to obtain the motion direction of each capture point on the second VI trajectory, and based on the motion direction of each capture point, storing the hue of each capture point in a preset matrix to obtain the corresponding hue matrix; The power factor matrix, the hue matrix and the voltage period matrix corresponding to the current traversal load are connected along the third dimension to obtain the color trajectory image corresponding to the current traversal load.

5. A load identification method based on deep learning theory as claimed in claim 1, characterized in that: The load detection of the user's power consumption data to obtain a corresponding plurality of loads, and a plurality of load voltages and a plurality of load currents of each of the loads specifically includes: Obtain the user's power consumption data, and then calculate the total apparent power change at different times in combination with the user's power consumption data according to a preset algorithm; According to the preset load detection algorithm, the total apparent power change at each moment is traversed to determine the start and end times of several load switching events, and based on the start and end times of all the load switching events, multiple loads and several load voltages and several load currents of each load are obtained.

6. A load identification system based on deep learning theory, characterized in that: include: A load data acquisition module is used to perform load detection on the user's power consumption data to obtain a corresponding plurality of loads, and a plurality of load voltages and a plurality of load currents of each of the loads; A trajectory image drawing module is used to traverse each of the loads, establish a power factor matrix, a hue matrix and a voltage cycle matrix corresponding to the currently traversed load according to all the load voltages and all the load currents of the currently traversed load, and connect the power factor matrix, the hue matrix and the voltage cycle matrix to obtain a color trajectory image corresponding to the currently traversed load; An operating status identification module is used to input the color trajectory image corresponding to each of the loads into a load identification network model so that the load identification network model outputs the operating status corresponding to each of the loads; wherein the load identification network model is composed of a CNN branch built based on a convolutional neural network in deep learning theory, a Transformer branch built based on a Transformer network, and a characteristic coupling unit used as a bridge between the CNN branch and the Transformer branch.

7. A load identification system based on deep learning theory as claimed in claim 6, characterized in that: The load identification network model specifically includes: a stem module, the CNN branch, the Transformer branch, the characteristic coupling unit and the classification merging unit; The stem module includes a first convolutional layer and a maximum pooling layer, which are used to extract the first local features of the color trajectory image, and input the first local features into the CNN branch and the Transformer branch; The CNN branch includes a plurality of local convolution blocks; wherein the local convolution block is used to extract a second local feature corresponding to the color trajectory image from the first local feature; The Transformer branch includes a plurality of Transformer blocks; wherein the Transformer block includes a self-attention module or a multi-layer perceptron unit, the Transformer block is used to extract a first global representation corresponding to the color trajectory image from the first local feature, and the local convolution block corresponds to the Transformer block one by one; The feature coupling unit is used to fuse the second local features extracted by each of the local convolution blocks with the first global representation extracted by the Transformer block corresponding to each of the local convolution blocks to obtain a third local feature corresponding to each of the second local features and a second global representation corresponding to each of the first global representations; The classification merging unit includes a first classifier corresponding to the CNN branch and a first classifier corresponding to the Transformer branch. A second classifier and a merger are provided, which are used to classify the fourth local feature through the first classifier to output the corresponding first classification result, and classify the third global representation through the second classifier to output the corresponding second classification result, and then add the first classification result and the second classification result through the merger to obtain the load identification result corresponding to the color trajectory image; wherein the fourth local feature is obtained by merging the third local features extracted by each of the local convolution blocks, and the third global representation is obtained by merging the second global representations extracted by each of the Transformer blocks.

8. A load identification system based on deep learning theory as claimed in claim 6, characterized in that: Also includes: A model building module is used to build an initial load identification model based on convolutional neural networks and Transformer networks in deep learning theory, and to train and optimize the parameters of the initial load identification model according to a sample data set to obtain the load identification network model; wherein the sample data set includes user load data of the target load equipment and the corresponding operating status of the target load equipment.

9. A load identification system based on deep learning theory as claimed in claim 6, characterized in that: The trajectory image drawing module specifically includes: A load trajectory acquisition unit is used to traverse each of the loads, and acquire a first VI trajectory corresponding to the currently traversed load according to all the load voltages and all the load currents of the currently traversed load, and then decompose each of the load currents into active current and reactive current according to Fryze power theory, and use each of the reactive currents to replace the corresponding load currents, so as to form a second VI trajectory corresponding to the currently traversed load; wherein the first VI trajectory is a trajectory of changes of each of the load voltages and each of the load currents of the currently traversed load over time; A matrix establishing unit, used for establishing the power factor matrix and the voltage cycle matrix corresponding to the current traversal load according to the active current and the reactive current corresponding to the current traversal load; capturing the motion information of the second VI trajectory through the hue attribute of the HSV color space to obtain the motion direction of each capture point on the second VI trajectory, and based on the motion direction of each capture point, storing the hue of each capture point in a preset matrix to obtain the corresponding hue matrix; The trajectory image drawing unit is used to connect the power factor matrix, the hue matrix and the voltage period matrix corresponding to the current traversal load along the third dimension to obtain the color trajectory image corresponding to the current traversal load.

10. A load identification system based on deep learning theory as claimed in claim 6, characterized in that: The load data acquisition module specifically includes: The data operation unit is used to obtain the user's electricity consumption data, and then combine the user's electricity consumption data with the user's electricity consumption data according to a preset algorithm. Data, calculate the total apparent power change at different times; A data acquisition unit is used to traverse the total apparent power change at each moment according to a preset load detection algorithm to determine the start time and end time of several load switching events, and obtain multiple loads and several load voltages and several load currents of each load based on the start time and end time of all the load switching events.

Citation Information

Patent Citations

  • Load identification method based on feature fusion and deep learning and application thereof

    CN110443302A

  • Power consumer load fine grit identification method and identification system

    CN113036759A

  • Non-intrusive load identification method based on improved CNN

    CN113989065A

Cited By

  • Load identification method and system based on voltage and current track image

    CN119251593A

  • Building air conditioner load monitoring system and method based on deep learning

    CN119760566A

  • High-speed rail hub passenger microscopic trajectory prediction and crowd macroscopic risk identification method

    CN121190869A

  • Identification method considering non-intrusive multi-element load stable transient feature fusion

    CN121278660A