Non-intrusive load identification method, device, equipment and storage medium

By processing the current and voltage data into Markov transfer fields and generating RGB color images, combining neural network and SimAM attention module, the problems of low recognition accuracy and large parameters in non-invasive load recognition are solved, and the load is increased Accuracy and efficiency of identification.

CN119048821AActive Publication Date: 2024-11-29ANHUI CANBANG ELECTRIC

Patent Information

Application Number
CN202411143420.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-20
Publication Date
2024-11-29
Estimated Expiration
2044-08-20

AI Technical Summary

Technical Problem

The existing non-invasive load recognition technology has problems with low recognition accuracy and large network parameters, which leads to confusion and misjudgment of load recognition.

Method used

By processing the collected current and voltage data, the Markov transfer field is generated, the RGB color image is generated, and the RGB color image is inputted into the constructed neural network model for non-invasive load recognition. Add SimAM without parameters to note Force module to improve feature extraction ability and receptive field.

Benefits of technology

It improves the accuracy and efficiency of load identification, reduces the amount of network parameters, and achieves more efficient energy use management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119048821A_ABST
    Figure CN119048821A_ABST
Patent Text Reader

Abstract

The invention relates to a non-intrusive load identification method and device, equipment and a storage medium. The method belongs to the technical field of electrical load identification. The method comprises the following steps: processing collected current and voltage data to generate a Markov transfer field; each element in the Markov transfer field is a state transfer probability for correspondingly filling collected current and voltage data arranged on a time domain; the state transition probability is a state transition probability of mapping obtained current and voltage normalized data to a corresponding quantile unit after normalization and quantile processing of collected current and voltage data; carrying out downsampling and pseudo-color coding on the Markov transfer field to obtain an RGB color image; and inputting the RGB color image into the constructed neural network model to carry out non-intrusive load identification. The method is used for load monitoring and management of the intelligent power grid, and the efficiency and reliability of energy use are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power load identification, and in particular to a non-intrusive load identification method, device, equipment and storage medium. Background Art

[0002] Smart grid provides strong technical support for the efficient management and effective use of electric energy. As a key link in the research of smart grid technology, load identification provides a complete data foundation and technical means for smart grid. Non-Intrusive Load Monitoring (NILM), as an emerging identification technology, only needs to install a monitoring device at the bus to analyze the type, operation status and energy consumption information of residents' loads, reduce the cost of installation and maintenance, and minimize interference with user privacy.

[0003] Non-intrusive load identification has the problems of low recognition accuracy and large number of network parameters, which leads to confusion in the identification of multi-state electrical appliances and misjudgment in the identification of resistive loads. Summary of the invention

[0004] In view of the above analysis, the present invention aims to provide a non-intrusive load identification method, device, equipment and storage medium to solve the problems of low identification accuracy and large number of network parameters.

[0005] The purpose of the present invention is mainly achieved through the following technical solutions:

[0006] In one aspect, the present invention discloses a non-intrusive load identification method, comprising:

[0007] Data preprocessing step: processing the collected current and voltage data to generate a Markov transition field;

[0008] Each element in the Markov transition field is a state transition probability corresponding to the collected current and voltage data arranged in the time domain; the state transition probability is the state transition probability of mapping the obtained current and voltage normalized data to the corresponding quantile unit after normalizing and quantile processing the collected current and voltage data;

[0009] Feature image generation step: downsampling and pseudo-color encoding the Markov transition field to obtain an RGB color image;

[0010] Load identification step: Input the RGB color image into the constructed neural network model for non-intrusive load identification.

[0011] On the other hand, the present invention also discloses a non-intrusive load identification device based on Markov transition field, comprising: a data preprocessing module, a feature image generation module and a load identification module; wherein,

[0012] A data preprocessing module, used for processing the collected current and voltage data into a Markov transfer field;

[0013] Each element in the Markov transition field is a state transition probability filled with the collected current and voltage data arranged in the time domain; the state transition probability is the state transition probability of mapping the current and voltage normalized data obtained after normalization and quantile processing of the collected current and voltage data to the corresponding quantile unit;

[0014] A feature image generation module is used to downsample and pseudo-color encode the Markov transition field to obtain an RGB color image;

[0015] The load identification module is used to input the RGB color image into the constructed neural network model for non-intrusive load identification.

[0016] On the other hand, the present invention also discloses an electronic device, including a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the computer program, the non-intrusive load identification method as described above is implemented to perform non-intrusive load identification.

[0017] On the other hand, the present invention further discloses a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the non-intrusive load identification method as described above is implemented to perform non-intrusive load identification.

[0018] The beneficial effects of the present invention are as follows:

[0019] The present invention aims at the problems of weak learning ability and large network model of existing non-intrusive load identification methods, considers the correlation between voltage and current data, increases the difference between characteristic images of different electrical appliances, is conducive to load identification, adds SimAM parameter-free attention module to the lightweight network ShuffleNetV2 as a feature extraction network, expands the convolution kernel in the deep separable convolution, obtains a larger receptive field, and realizes load classification and identification with less parameters. The present invention can be applied to load monitoring and management of smart grids to improve the efficiency and reliability of energy use. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings are only used for the purpose of illustrating specific embodiments and are not to be considered as limiting the present invention. In the entire drawings, the same reference symbols represent the same components;

[0021] Figure 1 is a flow chart of a non-intrusive load identification method in an embodiment of the present invention;

[0022] Figure 2 It is a schematic diagram of a process of obtaining an RGB color image by using voltage and voltage normalization data in an embodiment of the present invention;

[0023] Figure 3 The load Markov transfer field image generated by using 11 kinds of electrical appliances in the PLAID data set in the embodiment of the present invention;

[0024] Figure 4 A schematic diagram of the network model structure in which the SimAM parameter-free attention module is placed before the classification layer of the lightweight network ShuffleNetV2 in an embodiment of the present invention;

[0025] Figure 5 This is a network structure diagram of ShuffleNetV2-0.5 as a lightweight network for load identification in an embodiment of the present invention;

[0026] Figure 6 Schematic diagram of the PLAID dataset training process in an embodiment of the present invention;

[0027] Figure 7 It is a confusion matrix diagram of the PLAID test set experimental results in an embodiment of the present invention;

[0028] Figure 8 Schematic diagram of the WHITED data set training process in an embodiment of the present invention;

[0029] Fig. 9 It is a confusion matrix diagram of the WHITED test set experimental results in an embodiment of the present invention;

[0030] Fig.10 is a Markov transition field image of a microwave oven in a LAID data set in an embodiment of the present invention when the bin values ​​are equal to 5, 10, 20 and 40;

[0031] Fig.11 The comparison of the accuracy of the test set under the two strategies at different bin values ​​in the embodiment of the present invention is shown in the figure;

[0032] Fig.12 The figure is a schematic diagram of the connection components of a non-intrusive load identification device based on Markov transfer field in an embodiment of the present invention. DETAILED DESCRIPTION

[0033] The preferred embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of this application and are used to illustrate the principles of the present invention together with the embodiments of the present invention.

[0034] Embodiment 1

[0035] This embodiment discloses a non-intrusive load identification method, such as Figure 1 As shown, including:

[0036] Step S1, data preprocessing: processing the collected current and voltage data to generate a Markov transition field;

[0037] Each element in the Markov transition field is a state transition probability corresponding to the collected current and voltage data arranged in the time domain; the state transition probability is the state transition probability of mapping the obtained current and voltage normalized data to the corresponding quantile unit after normalizing and quantile processing the collected current and voltage data;

[0038] Step S2, generating a feature image; downsampling and pseudo-color encoding the Markov transition field to obtain an RGB color image;

[0039] Step S3, load identification: inputting the RGB color image into the constructed neural network model for non-intrusive load identification;

[0040] Preferably, the neural network model is a network model in which a SimAM parameter-free attention module is added to a lightweight network ShuffleNetV2 as a feature extraction network.

[0041] The neural network model in this embodiment adds a SimAM parameter-free attention module to the lightweight network ShuffleNetV2 as a feature extraction network, so that the neural network focuses on specific parts of the input data to improve model performance.

[0042] Specifically, the step S1 includes:

[0043] 1) Normalizing the collected discrete current and voltage signals arranged in the time domain to obtain current and voltage normalized data;

[0044] Collect N discrete current and voltage signals arranged in the time domain to obtain a discrete voltage signal sequence u = {u1, u2, ... u N} and discrete current signal sequence i={i1,i2,…i N};

[0045] Normalization is performed separately to obtain the voltage normalized data u d and current normalized data i d :

[0046]

[0047]

[0048] In the formula, u min and u max Respectively represent the minimum and maximum values ​​of voltage; i min and i max Represent the minimum and maximum values ​​of the current respectively.

[0049] 2) Perform quantile processing on the normalized current and voltage data;

[0050] Normalize the voltage data u d Divide into Q quantile units (bin values) according to the amplitude, each quantile unit has the same number of sampling points; normalize each voltage data u d and current normalized data i d Map them into Q quantile units respectively;

[0051] That is, for each u d 、i d Are mapped to the corresponding bin value q j Above, j∈[1,Q].

[0052] The bin value is 5-40, with 20 being the best.

[0053] 3) Generate a Markov state transfer matrix;

[0054] The transition probability of the Markov chain is used to represent the relationship between the normalized data of current and voltage and the corresponding quantile units. All the transition probabilities of the Markov chain are arranged along the transition rule to obtain the Markov state transition matrix.

[0055] The transition probability of the Markov chain is used to represent the relationship between the normalized current and voltage data and the corresponding quantile units, as shown in the following formula:

[0056] P j,k =p j,k (i d ∈q j |u d ∈q k );

[0057] P j,k Indicates that at the same time u d and i d From the quantile unit q k Transfer to q j The conditional probability of , k, j∈[1,Q];

[0058] Arrange all the transition probabilities of the Markov chain along the transition rule, and the resulting Q×Q Markov state transition matrix T is:

[0059]

[0060] 4) Filling the state transition probability according to the time domain arrangement of the collected current and voltage to obtain the Markov transition field;

[0061] The Markov transition field M is:

[0062]

[0063] Where M jk =p j,k (i j ∈q j |u k ∈q k ) represents the current normalized data i d =i j , voltage normalized data is u d =u k At the moment, the normalized data i j and u k Transfer to quantile unit q j and q k The corresponding transition probability on the state transition matrix T.

[0064] The size of the Markov transition field finally obtained in step S1 is N×N. When the amount of discrete data N collected is too large, the size of the image generated subsequently is large, which is not conducive to the calculation and data storage of the neural network and has a large amount of redundant information.

[0065] Based on this, in step S2, it includes:

[0066] 1) Downsampling processing;

[0067] Use kernel blurring method to downsample the Markov transition field to obtain a two-dimensional matrix of m×m;

[0068] 2) Generate a grayscale image;

[0069] Draw a grayscale image by corresponding the data in the m×m two-dimensional matrix to the grayscale values ​​encoded inside the computer;

[0070] 3) Convert the grayscale image to an RGB color image;

[0071] Different grayscale values ​​are mapped to different colors for pseudo-color encoding to obtain an RGB color image.

[0072] The RGB color image generated by the scheme of this embodiment is constructed based on two time series of voltage and current. The image contains both the time domain information of the sequence and the correlation between current and voltage, thereby increasing the difference between characteristic images of different electrical appliances and facilitating load identification.

[0073] The schematic diagram of the process of obtaining RGB color images using voltage and voltage normalization data is as follows: Figure 2 shown.

[0074] The load Markov transfer field images generated by 11 types of electrical appliances in the PLAID dataset are shown in the attached figure. Figure 3 shown.

[0075] Specifically, the neural network model in step S3 adopts the lightweight network ShuffleNetV2;

[0076] As one of the most representative lightweight networks, ShuffleNetV2 has the advantages of fewer network parameters, low computational complexity, fast computing speed, and high recognition accuracy. Since lightweight networks usually have fewer parameters and layers, they are usually more efficient and easier during training and tuning. This can save time and computing resources, making the model development and optimization process smoother.

[0077] The ShuffleNetV2 model uses depthwise separable convolution and channel shuffling to optimize the residual structure. The depthwise separable convolution operation is divided into depthwise convolution and pointwise convolution. Depthwise convolution first performs an independent convolution operation on each input channel, and then uses pointwise convolution to fuse the results of the previous step; channel shuffling means that after the convolution operation is completed, the features within the group are dispersed to different groups before the next group convolution is performed.

[0078] The lightweight network ShuffleNetV2 model uses channel transformation and depth-wise separable convolution to optimize the ResNet residual structure, which not only improves the operating efficiency of the model but also ensures the accuracy of the network.

[0079] However, structurally there is no effective attention mechanism in ShuffleNetV2 to help the model learn features.

[0080] Preferably, this embodiment improves the ShuffleNetV2 model by adding a SimAM parameter-free attention module to the lightweight network ShuffleNetV2 as a feature extraction network.

[0081] The attention mechanism can make the neural network focus on a specific part of the input data to improve the model performance. The SimAM parameter-free attention module used in this embodiment is different from the existing channel attention or spatial attention. When obtaining the three-dimensional attention weights of the feature map, no additional parameters are required.

[0082] In order to successfully implement attention in the SimAM parameter-free attention module, it is necessary to estimate the importance of a single neuron. The weight of the neuron is calculated by the minimum energy function. The minimum energy function formula is:

[0083]

[0084] In the formula, λ is the regularization term, t l is the lth neuron of the input feature map on a single channel, is the mean of all neurons on a single channel, is the variance of all neurons on a single channel.

[0085] The smaller the value, the lower the energy, the greater the difference between neuron l and surrounding neurons, and the more important it is for visual processing. Therefore, the importance of each neuron can be expressed by Get. Output feature map As shown below:

[0086]

[0087] Where E is the number of neurons Set, the purpose of the sigmoid function is to limit the E value, and X is the input feature map.

[0088] like Figure 4 As shown, in order to avoid the attention module increasing the complexity of the model, in the preferred solution of this embodiment, the SimAM parameter-free attention module is placed before the classification layer of the lightweight network ShuffleNetV2, and the input feature map passes through H×W SimAM attention modules and is then calculated using the formula , so as to obtain the final output feature map; H and W are the two-dimensional widths of the classification layer output data respectively.

[0089] This embodiment places the SimAM parameter-free attention module before the classification layer, which improves the model's perception of channel information and further enables the model to better extract spatial features.

[0090] Furthermore, the convolution kernel in the depthwise separable convolution of the lightweight network ShuffleNetV2 model is expanded to obtain a larger receptive field.

[0091] Specifically, the 3×3 convolution in the depthwise separable convolution is replaced with a 5×5 convolution to obtain a larger receptive field.

[0092] Preferably, the study of this embodiment selects ShuffleNetV2-0.5 with the least number of parameters as a lightweight network for load identification. The network structure of the present invention is as shown in the attached figure. Figure 5 shown.

[0093] In a specific solution of this embodiment, in order to better verify the effectiveness of the solution of the present invention, the PLAID data set and the WHITED data set are used to train and test the neural network model respectively;

[0094] The specific training and testing environment parameters are shown in Table 1. The specific experimental settings are as follows:

[0095] Table 1

[0096]

[0097] During the training and testing process, accuracy, confusion matrix and F1 score are used as evaluation indicators for load identification. Accuracy is used to evaluate the overall recognition effect of the data set and is calculated as follows:

[0098]

[0099] In the formula, A represents the total number of samples, and a represents the number of samples that are correctly identified.

[0100] The F1 score is used to evaluate the recognition effect of each type of load. It is the harmonic mean of precision and recall. The calculation formula is as follows:

[0101]

[0102]

[0103]

[0104] Where, T P Indicates the number of samples that are actually positive and are identified as positive; F N Indicates the number of samples that are actually positive but identified as negative; F P Indicates the number of samples that are actually negative but identified as positive. re is the precision rate, R e is the recall rate.

[0105] The main experimental results in this embodiment include experimental results of the PLAID dataset, experimental results of the WHITED dataset, comparison results of different Markov transition field strategies, and comparison results with existing methods.

[0106] Experimental results of the PLAID dataset: The PLAID dataset contains 1074 instances of 15 types of electrical appliances, and records detailed information from startup to stable operation at a sampling frequency of 30kHz. According to the present invention, the voltage and current in the PLAID dataset are processed, and a data set is taken every 20 cycles to generate a load image set with fusion features. There are a total of 7953 samples, which are divided into training set, validation set and test set in a ratio of 6:2:2. The Adam optimizer is used for training, and an adaptive adjustment mechanism is set for the learning rate. The initial learning rate is 0.0001. If the loss function does not decrease within 7 times, the learning rate is updated to 1 / 10 of the original learning rate to optimize the model. The batch size set for model training is 64, and the training includes 100 iterations.

[0107] Figure 6 This is the training process of the PLAID dataset. It can be seen that the model fully converged after about 80 iterations. After convergence, the highest accuracy of the validation set reached 99.31%, and the validation set loss value converged to 0.018. The test set was input into the trained model, and the recognition accuracy on the PLAID test set reached 98.99%.

[0108] Figure 7 The confusion matrix is ​​drawn based on the results. The refrigerator recognition effect is lower than other loads because in the PLAID dataset, refrigerators have more unknown states and are easily misjudged as other loads. Fluorescent lamps and laptops have similar current trajectories, so their Markov transfer matrices are slightly different and easily confused. Heaters and hair dryers are both heating devices with similar working modes, making them difficult to distinguish. The average F1 score for recognition reached 98.94%.

[0109] Experimental results of the WHITED dataset: The WHITED dataset contains 54 electrical appliances, a total of 1339 instances, and a sampling frequency of 44.1kHz. The WHITED dataset uses a similar experimental process to the PLAID dataset, generating a total of 6450 samples. The accuracy and loss function of the training process are shown in Figure 2. Figure 7 As shown in Figure 2, the inter-class differences in the WHITED dataset are large, so the convergence speed is higher than that of the PLAID dataset. Complete convergence is achieved in about 70 times, the highest accuracy of the validation set is 99.53%, and the loss value is as low as 0.016. When the test set is input into the trained model, the overall accuracy reaches 99.22%, and the average F1 score is 99.21%. The confusion matrix is ​​shown in Figure 2. Figure 8 shown.

[0110] There are many heating loads in the WHITED data set, such as kettles, irons, rice cookers, sandwich makers, etc. The current signals of these loads are almost sinusoidal signals, and the phase angle is close to 0, which is very easy to be confused. Therefore, further research is conducted on the accurate identification of heating loads. The current waveforms and phase differences of game consoles, treadmills, TVs, and fluorescent lamps are similar, and the differences in the Markov transfer field images generated after normalization are small, which indicates that misjudgment occurred between these loads.

[0111] Comparison results of different strategies for Markov transition field: Different bin values ​​have a greater impact on image generation. When the bin value becomes larger, the probability of Markov transition matrix becomes more diverse and the Markov transition field image becomes more complex.

[0112] Fig.10 The figure shows the Markov transition field images of microwave ovens in the PLAID dataset when the bin values ​​are 5, 10, 20, and 40. It can be seen that as the bin value increases, the image segmentation increases and the texture becomes more complex. The Markov transition field generated by the two sequences of current and voltage is used as the feature image for load identification. Compared with the image generated by the traditional single current sequence, the method of the present invention is more discriminative. The accuracy of the test set under the two strategies at different bin values ​​is compared. Fig.11 As shown, it can be seen that the accuracy of the method of the present invention is significantly higher than that of the single current sequence Markov transfer field method at different bin values ​​for the two data sets.

[0113] Under the method of the embodiment of the present invention, the PLAID dataset reaches a maximum accuracy of 98.99% at 20bin, and the WHITED dataset reaches a maximum accuracy of 99.30% at 40bin. Since the accuracy of the two datasets at 20bin and 40bin is not much different, from the perspective of computational complexity, the present invention selects 20 as the final bin value for experiment.

[0114] Comparison results with existing methods: In order to fully verify the effectiveness of the method of the present invention, the load identification effect of the method of the present invention is compared with the current advanced methods on the PLAID and WHITED data sets. The recognition accuracy, network parameter quantity and calculation amount of different methods are shown in Table 2. It can be seen from the results that the accuracy of the method of the present invention is better than that of the other four load identification methods. Method 1 uses the feature combination grayscale image as the feature image, and uses the lightweight improved network ZFNet-Inception as the recognition network; Method 2 uses the color image of the UI trajectory color encoding as the feature image, and uses the classic network VGG16 for load identification; Method 3 first extracts the reactive current, and then uses the Gram angle field of the reactive current as the feature image, and uses Inception-v3 to realize load identification. It can be seen from the results that compared with the existing methods, the present invention has a higher recognition accuracy than the three methods, and the parameter amount of the feature image is reduced by 75.5%-91.8%; the network parameter amount is much lower than the VGG16 and Inception-v3 models of methods 2 and 3, and the parameter amount of the lightweight network ZFNet of method 1 is reduced by 78.3%; in terms of the amount of calculation, the present invention method is only about 1 / 1000 of the three methods. It can be seen that the present invention method achieves a higher recognition accuracy rate with less parameters and calculations, which reflects the superiority of the present invention method.

[0115] Table 2

[0116]

[0117] In summary, the non-intrusive load identification method in this embodiment considers the correlation between voltage and current data, increases the difference between feature images of different electrical appliances, is conducive to load identification, adds the SimAM parameter-free attention module to the lightweight network ShuffleNetV2 as a feature extraction network, expands the convolution kernel in the deep separable convolution, obtains a larger receptive field, and thus realizes load classification and identification with fewer parameters. The solution of this embodiment can be applied to load monitoring and management of smart grids to improve the efficiency and reliability of energy use.

[0118] Embodiment 2

[0119] Another embodiment of the present invention discloses a non-intrusive load identification device based on Markov transition field, such as Fig.12 As shown, it includes: a data preprocessing module, a feature image generation module and a load identification module; wherein,

[0120] A data preprocessing module, used for processing the collected current and voltage data into a Markov transfer field;

[0121] Each element in the Markov transition field is a state transition probability filled with the collected current and voltage data arranged in the time domain; the state transition probability is the state transition probability of mapping the current and voltage normalized data obtained after normalization and quantile processing of the collected current and voltage data to the corresponding quantile unit;

[0122] A feature image generation module is used to downsample and pseudo-color encode the Markov transition field to obtain an RGB color image;

[0123] The load identification module is used to input the RGB color image into the constructed neural network model for non-intrusive load identification.

[0124] The specific technical details and beneficial effects of this embodiment are the same as those in Embodiment 1. Please refer to them for details and will not be described in detail here.

[0125] Embodiment 3

[0126] An embodiment of the present invention discloses an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor.

[0127] In one example, the processor may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0128] The memory may include a read-only memory (ROM), a random access memory (RAM), a disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Therefore, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform non-intrusive load identification with reference to the non-intrusive load identification method according to the first embodiment.

[0129] The processor runs a computer program corresponding to the executable program code by reading the executable program code stored in the memory, so as to implement the non-intrusive load identification method in the first embodiment and perform non-intrusive load identification.

[0130] In one example, a communication interface and a bus may also be included.

[0131] Among them, the memory, processor, and communication interface are connected through a bus and complete communication with each other.

[0132] The communication interface is mainly used to realize the communication between the modules, devices, units and / or equipment in the embodiments of the present application. The input device and / or output device can also be accessed through the communication interface.

[0133] The bus includes hardware, software or both, and the components of the electronic device are coupled to each other. For example, but not limitation, the bus may include an accelerated graphics port (Accelerated Graphics Port, AGP) or other graphics bus, an enhanced industry standard architecture (Enhanced Industry Standard Architecture, EISA) bus, a front side bus (Front Side Bus, FSB), a hypertransport (HyperTransport, HT) interconnection, an industry standard architecture (Industry Standard Architecture, ISA) bus, an infinite bandwidth interconnection, a low pin count (Lowpincount, LPC) bus, a memory bus, a micro channel architecture (MicroChannel Architecture, MCA) bus, a peripheral component interconnect (Peripheral Component Interconnect, PCI) bus, a PCI-Express (PCI-E) bus, a serial advanced technology attachment (Serial Advanced Technology Attachment, SATA) bus, a video electronics standards association local (Video Electronics Standards Association Local Bus, VLB) bus or other suitable buses or a combination of two or more of these. Where appropriate, the bus may include one or more buses. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.

[0134] Embodiment 4

[0135] An embodiment of the present invention discloses a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the non-intrusive load identification method in Embodiment 1 can be implemented to perform non-intrusive load identification, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. Among them, the above-mentioned computer-readable storage medium may include a non-transitory computer-readable storage medium, such as a read-only memory (Read-Only Memory, referred to as ROM), a random access memory (Random Access Memory, referred to as RAM), a disk or an optical disk, etc., which is not limited here.

[0136] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.

Claims

1. A non-intrusive load identification method, characterized in that: include: Data preprocessing step: processing the collected current and voltage data to generate a Markov transition field; Each element in the Markov transition field is a state transition probability corresponding to the collected current and voltage data arranged in the time domain; the state transition probability is the state transition probability of mapping the obtained current and voltage normalized data to the corresponding quantile unit after normalizing and quantile processing the collected current and voltage data; Feature image generation step: downsampling and pseudo-color encoding the Markov transition field to obtain an RGB color image; Load identification step: Input the RGB color image into the constructed neural network model for non-intrusive load identification.

2. The non-intrusive load identification method according to claim 1, characterized in that: The neural network model is a network model in which a SimAM parameter-free attention module is added to the lightweight network ShuffleNetV2 as a feature extraction network.

3. The non-intrusive load identification method according to claim 2, characterized in that: Data preprocessing steps include: 1) Normalizing the collected discrete current and voltage signals arranged in the time domain to obtain current and voltage normalized data; 2) Perform quantile processing on the normalized current and voltage data; Normalize the voltage data u d Divide into Q quantile units according to the amplitude, each quantile unit has the same number of sampling points; normalize each voltage data u d and current normalized data i d Map them into Q quantile units respectively; 3) Generate a Markov state transfer matrix; The transition probability of the Markov chain is used to represent the relationship between the normalized data of current and voltage and the corresponding quantile units. All the transition probabilities of the Markov chain are arranged along the transition rule to obtain the Markov state transition matrix. 4) The state transition probability is filled according to the time domain arrangement of the collected current and voltage to obtain the Markov transition field.

4. The non-intrusive load identification method according to claim 3, characterized in that: In step S2, it includes: 1) Downsampling processing; Use kernel blur to downsample the Markov transition field to obtain an m×m two-dimensional matrix; 2) Generate a grayscale image; Draw a grayscale image by corresponding the data in the m×m two-dimensional matrix to the grayscale values ​​encoded inside the computer; 3) Convert the grayscale image to an RGB color image; Different grayscale values ​​are mapped to different colors for pseudo-color encoding to obtain an RGB color image.

5. The non-intrusive load identification method according to any one of claims 1 to 4, characterized in that: The SimAM parameter-free attention module is placed before the classification layer of the lightweight network ShuffleNetV2. After the input feature map passes through the SimAM attention module, the formula is Calculate to obtain the final output feature map; X is the input feature map, is the output feature map, E is the weight set of all neurons; the sigmoid function limits the E value.

6. The non-intrusive load identification method according to claim 5, characterized in that: The weight of the neuron is calculated by the minimum energy function; the minimum energy function formula is: In the formula, λ is the regularization term, t l is the lth neuron of the input feature map on a single channel, is the mean of all neurons on a single channel, is the variance of all neurons on a single channel.

7. The non-intrusive load identification method according to claim 5, characterized in that: The convolution kernel in the depthwise separable convolution of the lightweight network ShuffleNetV2 model is expanded to obtain a larger receptive field.

8. A non-intrusive load identification device based on Markov transition field, characterized in that: include: Data preprocessing module, feature image generation module and load identification module; among which, A data preprocessing module, used for processing the collected current and voltage data into a Markov transfer field; Each element in the Markov transition field is a state transition probability filled with the collected current and voltage data arranged in the time domain; the state transition probability is the state transition probability of mapping the current and voltage normalized data obtained after normalization and quantile processing of the collected current and voltage data to the corresponding quantile unit; A feature image generation module is used to downsample and pseudo-color encode the Markov transition field to obtain an RGB color image; The load identification module is used to input the RGB color image into the constructed neural network model for non-intrusive load identification.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the non-intrusive load identification method according to any one of claims 1 to 7 is implemented to perform non-intrusive load identification.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the non-intrusive load identification method according to any one of claims 1 to 7 is implemented to perform non-intrusive load identification.

Citation Information

Patent Citations

  • Converter transformer state classification method and device, computer equipment and storage medium

    CN113780393A

  • Rolling bearing fault intelligent diagnosis method

    CN115290326A

  • Modulation identification method based on Markov conversion field and deep learning

    CN116614333A

  • Waxberry quality identification method based on lightweight CNN and regularization fine tuning

    CN116978001A

  • Method for obtaining white flow recognition model, medium and product

    CN116996313A

Cited By

  • Non-intrusive load monitoring method for V-I track image based on color coding

    CN119478449A