Electric equipment state perception method, control server and medium based on graph convolutional neural network

By constructing the graph structure of electrical equipment and learning the relationship between devices, the method based on graph convolutional neural network solves the problem of insufficient equipment feature learning in the existing technology, achieves high-accuracy power equipment status prediction, and simplifies data processing steps.

CN118035811BActive Publication Date: 2024-09-20NANJING INFORMATION HIGH-SPEED RAILWAY RES INST OF SCI AND TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311863258.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-18
Publication Date
2024-09-20
Estimated Expiration
2044-04-18

AI Technical Summary

Technical Problem

When identifying multiple electrical devices, the existing technology mainly focuses on learning the independent current characteristics of each device, without fully considering the relationship between device features, and requires multi-step processing before data is input into the neural network, such as decomposition and segmentation. Aggregation affects efficiency.

Method used

A method based on graph convolutional neural network (GCNN) is used to construct a graph structure of electrical equipment. Through the graph structure with devices as nodes and currents as edges, the relationship between devices is learned, and the GCNN network is used to predict the behavior of multiple electrical devices at the same time. status, reducing data processing steps and improving the comprehensiveness of feature learning.

Benefits of technology

It achieves simultaneous learning of the characteristics of multiple electrical equipment, improves the accuracy of state prediction, reaches an accuracy of 94%, simplifies the data input process, and improves the learning efficiency of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118035811B
    Figure CN118035811B
Patent Text Reader

Abstract

The present invention proposes a method for sensing the state of an electric device based on a graph convolutional neural network, a control server and a medium. The method includes constructing a training data set for the state of an electric device using the total current of multiple cycles of a circuit composed of several electric devices; constructing a graph structure with devices as nodes and currents as edges according to the structural relationship of the electric devices in the circuit to obtain the adjacency matrix of the electric devices; using the electric device state data set to train a GCNN-based electric device state prediction model, the neighbor matrix of the GCNN network of the GCNN-based electric device state prediction model adopts the adjacency matrix of the electric devices; inputting the total current of one cycle into the trained electric device state prediction model to predict the state of the electric device. The present invention adopts a GCNN-based electric device state prediction model, which can better learn the characteristics of multiple electric devices on the state data set of the electrical appliance, and has a high accuracy rate in state prediction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a technology for sensing the state of an electric device, and specifically to a method for sensing the state of an electric device based on a graph convolutional neural network, a control server, and a medium. Background Art

[0002] The society has limited and tight disposable electricity, and the proportion of electricity converted from green energy is relatively small. In order to save electricity, reduce carbon emissions and protect the earth's environment, it is necessary to study the user's electricity usage habits and use them energy-efficiently. The development of the Internet of Things and sensor technology has made it feasible to collect user electricity data non-invasively, and the large amount of data obtained provides a basis for further analysis of user habits. At the same time, deep learning algorithms have been successfully applied in many fields, providing an analysis method for studying user electricity data. One of the keys to analyzing electricity usage habits is to identify the state of electrical appliances through current. At present, the deep learning method used in current identification has the following problems: (1) When identifying multiple electrical devices, the main focus is on learning the independent current characteristics of each device, while insufficient consideration is given to learning the relationship between device characteristics. For example, multiple models are used to learn the characteristics of multiple electrical appliances, but less consideration is given to learning the relationship between the switch states of different electrical appliances. (2) The simultaneous learning of the characteristics of multiple electrical devices is insufficient, and a model that can fully learn the characteristics of multiple electrical devices at the same time is required. (3) When identifying the status of electrical devices, many processing steps are performed before the data is input into the neural network. For example, the accumulated current is first decomposed, segmented and aggregated for approximate calculation, and distance similarity is calculated before it is sent to the neural network to output the status of the electrical device. Summary of the invention

[0003] The present invention proposes a method for sensing the state of electrical equipment based on a graph convolutional neural network.

[0004] The technical solution to achieve the purpose of the present invention is: a method for sensing the state of an electric device based on a graph convolutional neural network, comprising:

[0005] Using the total current of multiple cycles of a circuit composed of several electrical devices, a training data set of electrical device states is constructed;

[0006] According to the structural relationship of electrical equipment in the circuit, a graph structure with equipment as nodes and current as edges is constructed to obtain the adjacency matrix of electrical equipment;

[0007] The GCNN-based electric device state prediction model is trained using the electric device state data set, wherein the neighbor matrix of the GCNN network of the GCNN-based electric device state prediction model adopts the adjacency matrix of the electric device;

[0008] The total current of a cycle is input into the trained power-consuming equipment state prediction model to predict the state of the power-consuming equipment.

[0009] Preferably, the specific method of constructing the power-consuming device state training data set by using the total current of multiple cycles of several power-consuming devices obtained is:

[0010] Obtaining total current data of multiple cycles of a circuit composed of several electrical devices;

[0011] The total current data obtained is normalized, and the sample data of each cycle is copied a set number of times as new samples, and the new samples constitute the power equipment status training data set.

[0012] Preferably, the total current data of each cycle of a circuit formed by a plurality of electrical devices is taken as a sample.

[0013] Preferably, the elements in the adjacency matrix of the electric devices represent the adjacent relationship between any two electric devices in the graph structure. When the two electric devices are adjacent in the graph structure, the corresponding element in the matrix is ​​1, otherwise it is 0.

[0014] Preferably, the GCNN-based electrical equipment state prediction model includes several cascaded residual layers and softmax layers, each residual layer is composed of a parallel GCNN network and a CNN network, and the output results of the GCNN network and the CNN network are added as the output of each residual layer. The softmax layer is used to perform softmax calculation on the output of the last residual layer to obtain a probability matrix of each electrical equipment in different states.

[0015] Preferably, each column of the probability matrix represents the probability value of the corresponding device being in each state in the corresponding period, and the state of each electrical device is predicted according to the state corresponding to the maximum probability value of each column, and the device state matrix of the corresponding probability matrix is ​​constructed at the same time.

[0016] Preferably, the specific method for training the GCNN-based electric device state prediction model using the electric device state data set is:

[0017] Initialize the parameters of the power equipment status prediction model based on GCNN;

[0018] Input the power equipment status training data set into the power equipment status prediction model based on GCNN;

[0019] Calculate the loss function with respect to the sample labels and the predicted device state matrix;

[0020] The back propagation algorithm is used to update the parameters of the power equipment state prediction model based on GCNN until the loss function value reaches the set value.

[0021] Preferably, the device state matrix of the sample label is specifically:

[0022] According to the s working states of the electrical equipment, a label of each sample consisting of 1 and 0 is constructed. The label is represented as a matrix (s, n), where n columns of labels represent n devices and s rows represent the working states of s devices. When the device works in the corresponding state, the corresponding label is 1, otherwise it is 0.

[0023] Compared with the prior art, the present invention has the following significant advantages: the present invention obtains samples by replicating the total current of the cycle, which provides rich information for the subsequent prediction model to learn the features related to the status of each electrical device;

[0024] The present invention constructs a graph structure with devices as nodes and currents as edges, which can better describe the structural relationship of electrical devices and facilitate the model to learn the relationship between the characteristics of different devices;

[0025] The present invention adopts a GCNN-based electrical equipment state prediction model, which can better learn the characteristics of multiple electrical appliances on the electrical appliance state and event data set, and has a high accuracy rate in state prediction, reaching 94% overall.

[0026] The present invention is described in further detail below in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 Recognition diagram of the power equipment status recognition model based on GCNN.

[0028] Figure 2 It is a simplified schematic diagram of the circuit of electrical equipment and its structure.

[0029] Figure 3 This is the training flow chart of the GCNN-based power equipment status recognition model.

[0030] Figure 4 Flowchart for dataset construction and model identification of electrical equipment status. DETAILED DESCRIPTION

[0031] In order to solve the problem of identifying the status of each electrical device from the total current by deep learning, the present invention can simultaneously learn the characteristics of multiple devices and the relationship between the devices by using GCNN; by replicating the current samples of the cycle, the characteristics of each electrical device can be independently retained after inputting into the neural network, without the need to decompose the data before inputting into the network; by using CNN to learn the current characteristics in the time dimension, finally output the probability value of the classification through softmax, and finally construct a classification model, such as Figure 1 As shown, the state of multiple electrical devices can be predicted simultaneously using the system constructed by the present invention.

[0032] As an embodiment, a method for sensing the state of an electric device based on a graph convolutional neural network comprises the following specific steps:

[0033] Get the total current data of the circuit composed of n electrical devices. The data has m cycles, expressed as X s =(x s1 ,x s2 ,…,x si ,…,x sm ), x si is the total current data of the i-th cycle;

[0034] For the periodic total current data X s Normalize it and get X′ s =(x′ s1 ,x′ s2 ,…,x′ si ,…,x′ sm ); copy each processed sample data n times to get a new sample in There are n x′ in total si , i∈{1,2,…,m};

[0035] According to the s working states of the electrical equipment, a label of each sample consisting of 1 and 0 is constructed. The shape of the label is (s,n). The n columns of the label represent n devices, and the s rows represent the working states of the s devices. When the device works in the corresponding state, the corresponding label is 1, otherwise it is 0. The working state of the electrical equipment can be different power consumption states, switch states, etc.

[0036] According to the structural relationship of electrical equipment in the circuit, a graph structure with equipment as nodes and current as edges is constructed. Figure 2 The simplified diagram of the current structure of the electrical equipment shown in the figure obtains the adjacency matrix of the electrical equipment

[0037] The devices are numbered from 1 to n according to their positions in the graph structure. When electrical devices k and l are adjacent in the graph structure, a k,l =1,a l,k =1, when the devices are not adjacent k,l =0,a l,k =0;

[0038] like Figure 3 As shown, the parameters of the power equipment state prediction model based on GCNN are initialized;

[0039] The sample that will be built The input is the r-layer residual layer composed of the addition of parallel GCNN and CNN. Specifically, the total current of a cycle is input into CNN and GCNN for processing at the same time. CNN extracts features from the time dimension, and GCNN processes and learns the current features of different electrical equipment and their relationship at the same time. Then the results of the two are added to obtain After the first layer of staggered layer processes the data, we get y m , and then input the next residual layer, and input r residual layers in sequence, and the output of the rth residual layer is y r ;

[0040] For output y r A softmax calculation is performed to obtain the probability matrix of each electrical device in different states. Each column of the probability matrix represents the probability value of the corresponding device in each state in a certain period. The state of each electrical device is predicted according to the state corresponding to the maximum probability value in each column. At the same time, a device state matrix corresponding to the probability matrix is ​​constructed. The shape of the matrix is ​​(s, n). Each column of the matrix is ​​a different state of the device. The value of the element in the state matrix is ​​set to 1 according to the predicted state of the electrical device, and the other states that are not in are set to 0.

[0041] Calculate the loss function with respect to the sample labels and the predicted device state matrix;

[0042] The back propagation algorithm is used to update the parameters of the power equipment state prediction model based on GCNN until the loss function value reaches the set value.

[0043] The total current of a cycle is input into the trained power-consuming equipment state prediction model to predict the state of the power-consuming equipment.

[0044] As an embodiment, a control server is presented in the form of a general-purpose computing device, including but not limited to: one or more processors or processing units, a system memory, and a bus connecting the system memory and the processing unit.

[0045] Bus refers to one or more of several types of bus structures, including a memory bus or a memory controller peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.

[0046] The control server includes a variety of computer system readable media. These media can be any available media that can be accessed by the control server, including volatile and non-volatile media, removable and non-removable media.

[0047] The system memory may include computer system readable media in the form of volatile memory, such as random access memory (RAM) and / or cache memory. The control server may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system may be used to read and write non-removable, non-volatile magnetic media (commonly referred to as "hard drives"). A disk drive for reading and writing removable non-volatile disks (such as "floppy disks"), and an optical disk drive for reading and writing removable non-volatile optical disks (such as CD-ROMs, DVD-ROMs or other optical media) may be provided. In these cases, each drive may be connected to the bus via one or more data medium interfaces. The system memory may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of various embodiments of the present invention.

[0048] A program / utility having a set (at least one) of program modules may be stored, for example, in a system memory, such program modules including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules generally perform the functions and / or methods of the embodiments described herein.

[0049] The control server may also communicate with one or more external devices, such as a keyboard, a pointing device, a display, etc., and may also communicate with one or more devices that enable a user to interact with the device, and / or communicate with any device (such as a network card, a modem, etc.) that enables the control server to communicate with one or more other computing devices. Such communication may be performed through an input / output (I / O) interface. In addition, the server may also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN) and / or a public network, such as the Internet) through a network adapter. The network adapter communicates with other modules of the control server through a bus. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the control server, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems. The processing unit executes various functional applications and data processing by running programs stored in the system memory, such as implementing the state perception method of an electric device based on a graph convolutional neural network provided in an embodiment of the present invention.

[0050] As an embodiment, a computer-readable storage medium stores a computer program, which, when executed by a processor, can implement any of the methods for sensing the state of electrical equipment based on a graph convolutional neural network in the above-mentioned embodiments.

[0051] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only storage (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0052] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0053] Program code embodied on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to:

[0054] Wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0055] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0056] As an embodiment, this embodiment constructs a data set using total current and state label data for 15 electrical appliances, including table lamps, floor lamps, humidifiers, televisions, purifiers, robot charging piles, microwave ovens, refrigerators, smart cameras, touch screen speakers, mobile phone chargers, laptop computers, display screens, smart interactive tablets, and hosts; divides the data set into a training set and a test set at a ratio of 3:2; each appliance in the data set has two states, and there are 81 combinations of each state.

[0057] First, the total current data of multiple electrical circuits is collected, the data is divided into cycles, and a data set is constructed according to the prediction task. A GCNN-based residual structure network model is implemented using a deep learning framework, and the model is trained using the constructed data set. Figure 3 As shown in the figure, the back propagation algorithm is used to update the learning parameters of the model, and the model hyperparameters and the number of model layers are further modified to optimize the model, and the test data is used to test the model learning effect.

[0058] The experimental results of the GCNN-based electrical equipment status prediction model on the test set are shown in Table 1, which measures the experimental results from two aspects: a single appliance and all appliances as a whole.

[0059] Table 1 Experimental results of the power equipment state perception algorithm based on GCNN

[0060]

[0061]

[0062] The calculation formula for the above data is:

[0063] Accuracy:

[0064]

[0065] TPR, TNR:

[0066]

[0067] Recall、Precision

[0068]

[0069] F1-Score

[0070]

Claims

1. A method for sensing the state of electrical equipment based on graph convolutional neural network, characterized in that: include: Using the total current of multiple cycles of a circuit composed of several electrical devices, a training data set of electrical device states is constructed; According to the structural relationship of electrical equipment in the circuit, a graph structure with equipment as nodes and current as edges is constructed to obtain the adjacency matrix of electrical equipment. The elements in the adjacency matrix of electrical equipment represent the adjacency relationship between any two electrical equipment in the graph structure. When two electrical equipment are adjacent in the graph structure, the corresponding element in the matrix is ​​1, otherwise it is 0. The GCNN-based electric device state prediction model is trained using the electric device state data set, wherein the neighbor matrix of the GCNN network of the GCNN-based electric device state prediction model adopts the adjacency matrix of the electric device; The GCNN-based electric device state prediction model includes several cascaded residual layers and softmax layers, each residual layer is composed of a parallel GCNN network and a CNN network, and the output results of the GCNN network and the CNN network are added as the output of each residual layer. The softmax layer is used to perform softmax calculation on the output of the last residual layer to obtain a probability matrix of each electric device in different states; Each column of the probability matrix represents the probability value of the corresponding device being in each state in the corresponding period, and the state of each electrical device is predicted according to the state corresponding to the maximum probability value of each column, and the device state matrix corresponding to the probability matrix is ​​constructed at the same time; The total current of a cycle is input into the trained power-consuming equipment state prediction model to predict the state of the power-consuming equipment.

2. According to claim 1, the method for sensing the state of electric equipment based on graph convolutional neural network is characterized in that: The specific method of constructing the power equipment state training data set by using the total current of several power equipments in multiple cycles is as follows: Obtaining total current data of multiple cycles of a circuit composed of several electrical devices; The total current data obtained is normalized, and the sample data of each cycle is copied a set number of times as new samples, and the new samples constitute the power equipment status training data set.

3. According to claim 1, the method for sensing the state of electric equipment based on graph convolutional neural network is characterized in that: The total current data of each cycle of a circuit composed of several electrical devices is taken as a sample.

4. The method for sensing the state of electric equipment based on graph convolutional neural network according to claim 1 is characterized in that: The specific method of using the power equipment status data set to train the GCNN-based power equipment status prediction model is as follows: Initialize the parameters of the power equipment status prediction model based on GCNN; Input the power equipment status training data set into the power equipment status prediction model based on GCNN; Calculate the loss function with respect to the sample labels and the predicted device state matrix; The back propagation algorithm is used to update the parameters of the power equipment state prediction model based on GCNN until the loss function value reaches the set value.

5. The method for sensing the state of electric equipment based on graph convolutional neural network according to claim 4 is characterized in that: The sample tag device state matrix is ​​specifically: According to the s working states of the electrical equipment, a label of each sample consisting of 1 and 0 is constructed. The label is represented as a matrix (s, n), where n columns of labels represent n devices and s rows represent the working states of s devices. When the device works in the corresponding state, the corresponding label is 1, otherwise it is 0.

6. A control server, characterized in that: include: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method for sensing the state of an electrical device based on a graph convolutional neural network as described in any one of claims 1 to 5.

7. A storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for sensing the state of an electric device based on a graph convolutional neural network as described in any one of claims 1 to 5 is implemented.