NON-INTRUSIVE LOAD MONITORING METHOD
20230384355 · 2023-11-30
Inventors
- SHENGBING XU (Guangzhou, Guangdong, CN)
- ZHENYOU WANG (Guangzhou, Guangdong, CN)
- QINTAO DU (Guangzhou, Guangdong, CN)
- PEIJIE LI (Guangzhou, Guangdong, CN)
- QINGPING DU (Guangzhou, Guangdong, CN)
- WEIXIAN CHEN (Guangzhou, Guangdong, CN)
- WEILIN CHEN (Guangzhou, Guangdong, CN)
Cpc classification
G01R19/2506
PHYSICS
G01R19/2513
PHYSICS
G06F18/241
PHYSICS
International classification
Abstract
A non-intrusive load monitoring system, including a device classification and prediction sub-process, a new device identification sub-process, and a classifier self-training sub-process. By means of the configuration of these processes, the defect in accuracy of identification of a new device in the prior art is overcome; and when a device other than the devices in a device database is detected, data of the device can be intercepted and stored in the device database, so that the function of accurately identifying existing devices in a device database can be achieved, and the device database can be automatically updated when a new device other than the devices in the device database is discovered.
Claims
1. A non-intrusive load monitoring method, comprising a device classification and prediction sub-process, a new device identification sub-process, and a classifier self-training sub-process; the new device identification sub-process comprises following steps: step 1. making large dynamic labeling on results of transient events for detecting whether a periodic power transition device exists; step 2. determining whether there is periodic power transition by using a peak filter method, so as to label whether the detected events have periodic changes and separate aperiodic large dynamic events from the detected events; step 3. correcting event detection results and correcting data of stable segment to obtain possible periodic power transition device from the corrected data, and correcting prediction of electrical device again; step 4. intercepting waveform data of stable operation segment of the electrical device, inputting the intercepted waveform data as information, calculating a number of the stable operation segments of the electrical device in a predetermined time according to recorded start time point and end time point of each transient event; wherein no electrical device is restarted between the start time point and the end time point; and labeling and recording a segment number corresponding to the start time point and the end time point; step 5. performing feature extraction on the waveform data of the stable operation segment of each electrical device; step 6. identifying whether an unknown device is a new device by using feature similarity discrimination index; step 7. subtracting the waveform data of previous stable operation segment of the electrical devices from the waveform data of the stable operation segment of electrical devices having the new devices so as to separate out waveform data of the new device.
2. The non-intrusive load monitoring method according to claim 1, wherein before the step 1 of the new device identification sub-process, the device classification and prediction sub-process is started, and the device classification sub-process comprises following steps: step 1. collecting and preprocessing current and voltage data of the electrical devices; wherein high-frequency current and high-frequency voltage data of multiple electrical devices in a given period of time is collected by an installed data collection terminal; and the preprocessing includes removing outliers and interpolating; step 2. detecting event behaviors, including detecting occurrence of events and distinguishing transient event and steady state event; wherein when the event detected is classified into the transient event, the step 1 of the new device identification sub-process is performed; and when the event detected is classified into steady state event, subsequent step 3 is performed; step 3. intercepting the preprocessed data to obtain the waveform data of the stable operation segment, performing feature extraction based on the waveform data of the stable operation segment, and extracting operating state features of the electrical device; step 4. invoking a classifier model for prediction; wherein the operating state features of the electrical devices are used as an input of the classifier model according to the operating state features of the electrical device, and classifier model parameters generated by training are invoked for prediction; step 5. analyzing classification results of the classifier model to obtain energy-using information of the electrical device; wherein the energy-using information comprises operating state information and energy consumption information; wherein the classifier self-training sub-process is performed after the waveform data of the new devices is separated out in step 7 of the new devices identification sub-process; the classifier self-training sub-process comprises following steps: step 1. adding and updating a device database; wherein the device database comprises a device name, a device number, waveform data of steady state and transient state of each device; and for the identified new devices, a request for inputting the device name is sent to a user by a program; and finally, the device name, the device number, the waveform data of the steady state and the transient state of the new devices are automatically added into the device database; step 2. generating waveform data of comprehensive state: generating a variety of permutations and combinations of the device number composed of different numbers by invoking the device numbers in the device database and using a calculation method of permutation and combination of the device numbers; superposing the corresponding waveform data of the devices based on the permutations and combinations of different numbers according to the obtained permutations and combinations and the waveform data of the steady state of each device in the device database, so as to obtain multiple segments of waveform data of comprehensive state superposed by different waveform data of the devices; step 3. performing feature extraction on current waveform data during combined operation of multiple electrical devices to obtain feature data set, and dividing the obtained feature data set into a training set and a test set, and then performing parameter training by using a machine learning classifier model, as well as accurately predicting behaviors of the electrical device; step 4. evaluating model results: statistically analyzing the prediction results of each electrical device of each cycle in n consecutive cycles within each intercepted time period of the waveform data of the stable segment of the devices, so as to determine the condition ratio of starting and stopping of the devices; before step 7 of the new device identification sub-process, feature similarity is compared according to step 6 of the new device identification sub-process; if there is a new device, the classifier self-training sub-process is performed, and step 5 of the device classification and prediction sub-process is then performed after the model training is completed; if there is no new device, the step 5 of the device classification and prediction sub-process is directly performed to analyze which device is operating and when to start and stop it, so as to obtain the energy-using information of electrical devices.
3. The non-intrusive load monitoring method according to claim 1 or 2, wherein the features in the feature extraction comprise current effective value, active power and reactive power; wherein the current effective value of the electrical device in the operating state is calculated by following equation:
P=√{square root over (3)}UI cos φ. where, P represents active power, U represents line voltage, I represents line current, and φ represents phase difference between U and I; the reactive power of the electrical device in the operating state is calculated by following equation:
Q=√{square root over (3)}UI sin φ.
4. The non-intrusive load monitoring method according to claim 1, wherein the step 1 of the new device identification sub-process comprises: for the above power sequence (P.sub.1, P.sub.2, . . . , P.sub.N), labeling the detected event with 1 and indicating that no event occurs with 0 to obtain c point sequence x[n], n∈{0, 1, 2, 3 . . . , N−1}, which is expressed as:
5. The non-intrusive load monitoring method according to claim 1, wherein in the step 2 of the new device identification sub-process, non-maximum point and value that a maximum value is less than a peak value θ of the sequence obtained by Discrete Fourier Transform (DFT) is set to equal to 0 by the peak filter to obtain peak filtering effect; wherein for large dynamic labeled sequences x[n], performing Discrete Fourier Transform as follows:
η[n]=x[n]−{circumflex over (x)}[n]; the aperiodic large dynamic events meet following condition:
η[n]>η[n].sub.max.
6. The non-intrusive load monitoring method according to claim 1, wherein in the step 7 of the new device identification sub-process, waveform data of the new devices after DFT is expressed as follows:
7. The non-intrusive load monitoring method according to claim 2, wherein in the step 2 of the classifier self-training sub-process, a number of household appliances in the household appliance database is set as r, and sampling points of each appliance in each cycle are c, the appliance A.sub.j is expressed as follows:
A.sub.j={I.sub.j,1, I.sub.j,2, . . . , I.sub.j,c}; when current data of all the electrical devices operating alone is collected, current data of the multiple electrical devices is obtained through following operations: for waveform data of the electrical device I.sub.j, model of signal waveform decomposed by Discrete time Fourier transform (DTFT) is expressed as follows:
8. The non-intrusive load monitoring method according to claim 2, wherein in the step 4 of the classifier self-training sub-process, device status is evaluated as follows: for identification results at a certain time, behaviors of each device are labeled as follows:
9. The non-intrusive load monitoring method according to claim 1, wherein the classifier is a neural network or K-means clustering algorithm or support vector machine or random forest.
Description
BRIEF DESCRIPTION OF DRAWINGS
[0068] In order to more clearly explain the embodiments of the present disclosure or the technical solutions of the prior art, the following will briefly introduce the drawings used in the description of the examples or the prior art. Obviously, the drawings in the following description are only for some examples of the disclosure, for those skilled in the art, other drawings may be obtained based on these drawings without paying any creative labor.
[0069]
[0070]
[0071]
DETAILED DESCRIPTION
[0072] The embodiment of the present disclosure provides a non-intrusive load monitoring system, which is used to automatically update the device database when a new device other than the devices in the device database is discovered. When intercepting the operation data of the new devices, it provides a method for determining whether a periodic transition exists in the power sequence by using the peak filter and further determining whether the periodic power transition devices exist, so as to intercept the operation data of the new devices more accurately.
[0073] In order to make the object, features and advantages of the present disclosure more obvious and understandable, the technical solution in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure. Obviously, the embodiments described below are only part of the embodiments of the present disclosure, but not all of them. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative labor belong to the protection scope of the present disclosure.
[0074] The technical solution of the present disclosure will be further illustrated with reference to the drawings and specific embodiments.
[0075] Please refer to
[0084] Further, before the step 1 of the new device identification sub-process, the device classification and prediction sub-process is started, and the device classification sub-process comprises following steps: [0085] step 1. collecting and preprocessing current and voltage data of the electrical devices; wherein high-frequency current and high-frequency voltage data of multiple electrical devices in a given period of time by an installed data collection terminal; and the preprocessing includes removing outliers and interpolating; [0086] step 2. detecting event behaviors, including detecting occurrence of events and distinguishing transient event and steady state event; wherein when the event detected is classified into the transient event, the step 1 of the new device identification sub-process is performed; and [0087] when the event detected is classified into steady state event, subsequent step 3 is performed; [0088] step 3. intercepting the preprocessed data to obtain the waveform data of the stable operation segment, performing feature extraction based on the waveform data of the stable operation segment, and extracting operating state features of the electrical device; [0089] step 4. invoking a classifier model for prediction; wherein the operating state features of the electrical devices are used as an input of the classifier model according to the operating state features of the electrical device, and classifier model parameters generated by training are invoked for prediction; [0090] step 5. analyzing classification results of the classifier model to obtain energy-using information of the electrical device; wherein the energy-using information comprises operating state information and energy consumption information; [0091] wherein the classifier self-training sub-process is performed after the waveform data of the new devices is extracted in step 7 of the new devices identification sub-process; [0092] the classifier self-training sub-process comprises following steps: [0093] step 1. adding and updating a device database; wherein the device database comprises a device name, a device number, waveform data of steady state and transient state of each device; and for the identified new devices, a request for inputting the device name is sent to a user by a program; and finally, the device name, the device number, the waveform data of the steady state and the transient state of the new devices are automatically added into the device database; [0094] step 2. generating waveform data of comprehensive state: generating a variety of permutations and combinations of the device number composed of different numbers by invoking the device numbers in the device database and using a calculation method of permutation and combination of the device numbers; superposing the corresponding waveform data of the devices based on the permutations and combinations of different numbers according to the obtained permutations and combinations and the waveform data of the steady state of each device in the device database, so as to obtain multiple segments of waveform data of comprehensive state superposed by different waveform data of the devices; [0095] step 3. performing feature extraction on current waveform data during combined operation of multiple electrical devices to obtain feature data set, and dividing the obtained feature data set into a training set and a test set, and then performing parameter training by using a machine learning classifier model, as well as accurately predicting behaviors of the electrical device; [0096] step 4. evaluating model results: statistically analyzing the prediction results of each electrical device of each cycle in n consecutive cycles within each intercepted time period of the waveform data of the stable segment of the devices, so as to determine the condition ratio of starting and stopping of the devices; [0097] before step 7 of the new device identification sub-process, feature similarity is compared according to step 6 of the new device identification sub-process; if there is a new device, the classifier self-training sub-process is performed, and step 5 of the device classification and prediction sub-process is then performed after the model training is completed; if there is no new device, the step 5 of the device classification and prediction sub-process is directly performed to analyze which device is operating and when to start and stop it, so as to obtain the energy-using information of electrical devices.
[0098] The following is a specific application scenario of the present disclosure: [0099] As shown in
TABLE-US-00001 Total Device Start time of collection Collected Collected name collection time current data voltage data Device 1 06/05/2020 00:01 Time i.sub.11, i.sub.12, . . . , i.sub.1n u.sub.11, u.sub.12, . . . , u.sub.1n Device 2 06/05/2020 00:03 Time i.sub.21, i.sub.22, . . . , i.sub.2n u.sub.21, u.sub.22, . . . , u.sub.1n Device 3 06/05/2020 00:06 Time i.sub.31, i.sub.32, . . . , i.sub.3n u.sub.31, u.sub.32, . . . , u.sub.3n Device 4 06/05/2020 00:14 Time i.sub.41, i.sub.42, . . . , i.sub.4n u.sub.41, u.sub.42, . . . , u.sub.4n Device 5 06/05/2020 00:19 Time i.sub.51, i.sub.52, . . . , i.sub.5n u.sub.51, u.sub.52, . . . , u.sub.5n Device 6 06/05/2020 00:25 Time u.sub.61, u.sub.62, . . . , u.sub.6n Device 7 06/05/2020 00:45 Time i.sub.71, i.sub.72, . . . , i.sub.7n u.sub.71, u.sub.72, . . . , u.sub.7n Device 8 06/05/2020 00:54 Time i.sub.81, i.sub.82, . . . , i.sub.8n u.sub.81, u.sub.82, . . . , u.sub.8n Device 9 06/05/2020 00:65 Time i.sub.91, i.sub.92, . . . , i.sub.9n u.sub.91, u.sub.92, . . . , u.sub.9n [0101] Step 2. detecting event behaviors, including detecting occurrence of events and distinguishing transient event and steady state event; [0102] Step 3. intercepting the preprocessed data to obtain the waveform data of the stable operation segment, and extracting operating state features of the electrical device based on the waveform data of the stable operation segment; [0103] the features in the feature extraction comprise current effective value, active power and reactive power; wherein [0104] the current effective value of the electrical device in the operating state is calculated by following equation:
P=√{square root over (3)}UI cos φ, [0107] where, P represents active power, U represents line voltage, I represents line current, and φ represents phase difference between U and I; [0108] the reactive power of the electrical device in the operating state is calculated by following equation:
Q=√{square root over (3)}UI sin φ. [0109] Step 4. invoking a classifier model for prediction; wherein the operating state features of the electrical devices are used as an input of the classifier model according to the operating state features of the electrical device in previous step 3, and classifier model parameters generated by training are invoked for prediction; [0110] Step 5. analyzing the classification results of the classifier to determine which device is operating and when to start and stop it, so as to obtain the operating state and the energy consumption information of electrical devices;
[0111] The new device identification sub-process comprises following steps: [0112] Step 1. making large dynamic labeling on results of transient events and steady state events of the device classification and prediction sub-process for detecting whether a periodic power transition device exists; [0113] in step 2 of the device classification and prediction sub-process, event behaviors and the occurrence of events are detected; step 3 of the device classification and prediction sub-process is performed if it is distinguished as a transient event; and step 1 of large dynamic markings of the new device identification sub-process is performed if it is distinguished as a transient event; [0114] a periodic power transition device is a device whose power can transition periodically in the process of the device operation, in particular: [0115] for the above power sequence (P.sub.1, P.sub.2, . . . , P.sub.N), labeling the detected event with 1 and indicating that no event occurs with 0 to obtain c point sequence x[n], n∈{0, 1, 2, 3 . . . , N−1}, which is expressed as:
η[n]=x[n]−{circumflex over (x)}[n]; [0125] the aperiodic large dynamic events meet following condition:
η[n]>η[n].sub.max.
[0126] Note: 0.15 is a threshold in the program.
[0127] Taking active power as a research object, the aperiodic large dynamic time extracted is shown in
[0128] In the identification effect subgraph, there are several obvious salient points, which are extracted aperiodic large dynamic events. Then, by comparing the results of these aperiodic large dynamic events with the original transient identification results, it can be concluded whether the device is periodic device or not. If it is consistent with the transient identification results, it means that this aperiodic large dynamic event is the transient process of the existing device; otherwise, we can consider the device as an aperiodic device.
[0129] Step 3. correcting event detection results and correcting data of stable segment to obtain possible periodic power transition device from the corrected data, and correcting prediction of electrical device again.
[0130] Without correction, the periodic power transition device may not be identified, resulting in a big difference between the combination predicted by the model and the actual combination of electrical appliances, and finally the trained model invalid. After the data of the stable segment is corrected, the data at this time is the data that all devices are in normal operation state. In this case, the interference of the current waveform changes caused by the periodic power transition device not being energized for a period of time is eliminated, and the accuracy of the prediction is enhanced. The data of each stable segment is intercepted, and the steady state waveform of each device is obtained.
[0131] Step 4. Intercepting waveform data of stable operation segment of the devices, inputting the intercepted waveform data as information, and calculating the number of stable operation segments of the electrical devices in a period of time according to recorded start time point and end time point of each transient event, that is, wherein no electrical device is restarted between the start time point and the end time point; and labeling and recording a segment number corresponding to the start time point and the end time point.
[0132] Step 5. performing feature extraction on the waveform data of the stable operation segment of each electrical device; performing feature extraction on the waveform data of stable operation segment of each device, and the feature calculation method is equivalent to the feature extraction of step 3 of the device classification and prediction process; calculating the features of different stable segments of the device, such as current effective value, active power and reactive power.
[0133] Step 6. identifying whether an unknown device is a new device by using feature similarity discrimination index;
[0134] Step 7. subtracting the waveform data of previous stable operation segment of the electrical devices from the waveform data of the stable operation segment of electrical devices having the new devices so as to extract waveform data of the new device. [0135] waveform data of the new devices after DFT is expressed as follows:
[0138] The classifier self-training sub-process comprises steps as follows:
[0139] Step 1. adding and updating a device database; wherein the device database comprises a device name, a device number, waveform data of steady state and transient state of each device; and for the identified new devices, a request for inputting the device name is sent to a user by a program; and finally, the device name, the device number, the waveform data of the steady state and the transient state of the new devices are automatically added into the device database, as shown in
[0140] Step 2. generating waveform data of comprehensive state: generating a variety of permutations and combinations of the device number composed of different numbers by invoking the device numbers in the device database and using a calculation method of permutation and combination of the device numbers; superposing the corresponding waveform data of the devices based on the permutations and combinations of different numbers according to the obtained permutations and combinations and the waveform data of the steady state of each device in the device database, so as to obtain multiple segments of waveform data of comprehensive state superposed by different waveform data of the devices; [0141] in particular: [0142] a number of household appliances in the household appliance database is set as r, and sampling points of each appliance in each cycle are c , the appliance A.sub.j is expressed as follows:
A.sub.j={I.sub.j,1, I.sub.j,2, . . . , I.sub.j,c}; [0143] when current data of all the electrical devices operating alone is collected, current data of the multiple electrical devices is obtained through following operations. [0144] for waveform data of the electrical device , model of signal waveform decomposed by Discrete time Fourier transform (DTFT) is expressed as follows:
[0149] Step 3. performing feature extraction on current waveform data during combined operation of multiple electrical devices to obtain feature data set, and dividing the obtained feature data set into a training set and a test set, and then performing parameter training by using a machine learning classifier model, as well as accurately predicting behaviors of the electrical device;
[0150] Step 4. evaluating model results: statistically analyzing the prediction results of each electrical device of each cycle in n consecutive cycles within each intercepted time period of the waveform data of the stable segment of the devices, so as to determine the condition ratio of starting and stopping of the devices; [0151] for identification results at a certain time, behaviors of each device are labeled as follows:
[0155] Before step 7 of the new device identification sub-process, feature similarity is compared according to step 6 of the new device identification sub-process; if there is a new device, the classifier self-training sub-process is performed, and step 5 of the device classification and prediction sub-process is then performed after the model training is completed; if there is no new device, the step 5 of the device classification and prediction sub-process is directly performed to analyze which device is operating and when to start and stop it, so as to obtain the energy-using information of electrical devices.
[0156] In conclusion, the embodiment of the disclosure discloses a non-intrusive load monitoring system, comprising a device classification and prediction sub-process, a new device identification sub-process, and a classifier self-training sub-process. By means of the configuration of these processes, the defect in accuracy of identification of a new device in the prior art is overcome; and when a device other than the devices in a device database is detected, data of the device can be intercepted and stored in the device database, so that the function of accurately identifying existing devices in a device database can be achieved, and the device database can be automatically updated when a new device other than the devices in the device database is discovered. When intercepting the operation data of the new devices, it provides a method for determining whether a periodic transition exists in the power sequence by using the peak filter and further determining whether the periodic power transition devices exist, which can correctly determine the device behavior changes, so as to intercept the operation data of the new devices more accurately.
[0157] As mentioned above, the above embodiments are only for illustrating the technical solution of the present disclosure without limiting. Although the disclosure has been described in detail with reference to the foregoing embodiments, it should be understood by those skilled in the art that it is still possible to modify the technical solutions described in the foregoing embodiments or to equivalently replace some technical features thereof without departing from the spirit and scope of the various embodiments of the present disclosure.