Electric appliance event detection method, apparatus and device, and readable storage medium
By calculating the average power change between adjacent windows in the power system and dynamically adjusting the threshold, the switching events of electrical appliances are identified, which solves the problem of inaccurate identification of electrical events in traditional technology and improves detection accuracy and adaptability. Provides support for smart energy management.
Patent Information
- Application Number
- CN202410911811.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2024-09-27
AI Technical Summary
Traditional non-intrusive load monitoring technology is difficult to achieve accurate and reliable identification of electrical events, affecting the efficiency and safety of energy management.
By obtaining the total power value at multiple time points of the power system, the average power change between adjacent windows is calculated, and adjusted according to the dynamic threshold to identify the opening and closing events of electrical appliances when the average power change is greater than the threshold.
It improves the detection accuracy and adaptability of electrical events, enhances the ability to identify changes in different electrical appliances and power consumption patterns, and provides a solid foundation for intelligent energy management.
Smart Images

Figure CN118713071A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of household appliance identification, and in particular to a method, device, equipment and readable storage medium for detecting an appliance event. Background Art
[0002] With the rapid development of smart home and smart grid technologies, the recognition of appliance usage patterns in power systems has become increasingly important for energy efficiency optimization, power safety monitoring, and smart device management. Traditional NILM (Non-intrusive Load Monitoring) technology analyzes changes in power consumption in power systems and identifies the usage events of various appliances, thereby achieving effective energy management.
[0003] Therefore, designing a more accurate and reliable method for detecting electrical events has become an urgent problem to be solved. Summary of the invention
[0004] The object of the present invention is to provide a method, device, equipment and readable storage medium for detecting electrical appliance events.
[0005] In order to achieve one of the above-mentioned purposes of the invention, an embodiment of the present invention provides a method for detecting electrical events in an electrical system, comprising the following steps: obtaining total power values P(1), P(2), ..., P(Num) of the electrical system at time point 1, time point 2, ..., time point Num corresponding to each other, where time point t is earlier than time point t+1, t and Num are both natural numbers, 1≤t≤Num-1; calculating the average power change between adjacent windows 1≤t+w≤Num, w is a natural number; get the threshold ΔP threshold , when ΔP(w,t)>ΔP threshold When , there is an electrical appliance turned on and off between time point t and time point t+1, or between time point t+w-1 and time point t+w, where ΔP threshold >0.
[0006] As a further improvement of an implementation manner of the present invention, the absolute values of the time differences between any two adjacent time points are equal.
[0007] As a further improvement of an embodiment of the present invention, the "obtaining threshold value ΔP threshold "Specifically comprising: obtaining power values of all electrical appliances of the power consumption system, converting the power values of all electrical appliances into a first set and a second set, wherein the union of the first set and the second set is empty, the intersection of the first set and the second set is all electrical appliances, and the power value of any electrical appliance in the first set is greater than the power value of any electrical appliance in the second set; Wherein, ΔPower1 is the average value of the power of all electrical appliances in the first set, and ΔPower2 is the average value of the power of all electrical appliances in the second set.
[0008] As a further improvement of an embodiment of the present invention, the average power value of all electrical appliances is ΔPower3, the power value of any electrical appliance in the first set is greater than ΔPower3, and the power value of any electrical appliance in the second set is less than or equal to ΔPower3.
[0009] The embodiment of the present invention also provides a detection device for electrical appliance events in an electrical system, comprising the following steps: an information acquisition module, used to obtain the total power values P(1), P(2), ..., P(Num) of the electrical system at time point 1, time point 2, ..., time point Num, one by one, where time point t is earlier than time point t+1, t and Num are both natural numbers, 1≤t≤Num-1; a processing module, used to calculate the average power change between adjacent windows 1≤t+w≤Num, w is a natural number; judgment module, used to obtain the threshold ΔP threshold , when ΔP(w,t)>ΔP threshold When , there is an electrical appliance turned on and off between time point t and time point t+1, or between time point t+w-1 and time point t+w, where ΔP threshold >0.
[0010] As a further improvement of an implementation manner of the present invention, the absolute values of the time differences between any two adjacent time points are equal.
[0011] As a further improvement of an embodiment of the present invention, the judgment module is further used to: obtain power values of all electrical appliances of the power consumption system, convert the power values of all electrical appliances into a first set and a second set, the union of the first and second sets is empty, the intersection of the first and second sets is all electrical appliances, and the power value of any electrical appliance in the first set is greater than the power value of any electrical appliance in the second set; Wherein, ΔPower1 is the average value of the power of all electrical appliances in the first set, and ΔPower2 is the average value of the power of all electrical appliances in the second set.
[0012] As a further improvement of an embodiment of the present invention, the average power value of all electrical appliances is ΔPower3, the power value of any electrical appliance in the first set is greater than ΔPower3, and the power value of any electrical appliance in the second set is less than or equal to ΔPower3.
[0013] An embodiment of the present invention further provides a device, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the above detection method.
[0014] An embodiment of the present invention further provides a readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned detection method is implemented.
[0015] Compared with the prior art, the technical effect of the present invention is that: the embodiment of the present invention provides a detection method, device, equipment and readable storage medium for electrical appliance events, and the detection method includes the following steps: obtaining the total power values corresponding to multiple time points of the power system, calculating the average power change between adjacent windows; when the average power is greater than the threshold, the electrical appliance is turned on and off. The detection method can detect the event of the electrical appliance being turned on and off. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a flowchart of a method for detecting electrical appliance events in an electrical system in an embodiment of the present invention. DETAILED DESCRIPTION
[0017] The present invention will be described in detail below in conjunction with the various embodiments shown in the accompanying drawings. However, these embodiments do not limit the present invention, and any structural, methodological, or functional changes made by a person skilled in the art based on these embodiments are all within the scope of protection of the present invention.
[0018] As used herein, terms indicating spatial relative positions such as "upper," "above," "lower," and "below" are used for the purpose of convenience to describe the relationship of one unit or feature relative to another unit or feature as shown in the accompanying drawings. Terms of spatial relative position may be intended to include different orientations of the device in use or operation in addition to the orientation shown in the drawings. For example, if the device in the figure is turned over, units described as being "below" or "beneath" other units or features will be located "above" the other units or features. Thus, the exemplary term "below" can encompass both above and below orientations. The device may be oriented in other ways (rotated 90 degrees or in other orientations), and the spatially relative descriptors used herein interpreted accordingly.
[0019] Furthermore, it should be understood that although the terms first, second, etc. may be used herein to describe various elements or structures, these described objects should not be limited by these terms. These terms are only used to distinguish these described objects from each other. For example, a first end may be referred to as a second end, and similarly a second end may also be referred to as a first end, without departing from the scope of protection of this application.
[0020] Embodiment 1 of the present invention provides a method for detecting electrical appliance events in an electrical system, where the electrical system may be an industrial electrical system (for example, all electrical equipment and transmission systems in a factory or office building are regarded as an industrial electrical system) or a household electrical system (that is, all electrical equipment and transmission systems in a household are regarded as a household electrical system).
[0021] like Figure 1 As shown, the following steps are included:
[0022] Step 101: Obtain the total power values P(1), P(2), ..., P(Num) of the power system at time point 1, time point 2, ..., time point Num, one by one, where time point t is earlier than time point t+1, and both t and Num are natural numbers, 1≤t≤Num-1; optionally, the time difference between any adjacent time points is equal, that is, |time point t-time point t+1| is a constant.
[0023] Step 102: Calculate the average power variation between adjacent windows 1≤t+w≤Num, w is a natural number;
[0024] Step 103: Obtaining a threshold value ΔP threshold , when ΔP(w,t)>ΔP threshold When , there is an electrical appliance turned on and off between time point t and time point t+1, or between time point t+w-1 and time point t+w, where ΔP threshold >0.
[0025] Here, the threshold ΔP threshold It can be obtained based on historical data statistics. For example, the threshold can be dynamically adjusted according to historical event data: Among them, ΔP 小 and ΔP 大 The average power changes of small power events and large power events respectively. "Open and close" should be understood as open or closed.
[0026] This detection method detects electrical appliance events by calculating the average power change in adjacent windows and comparing it with a threshold. This method effectively monitors the dynamic changes in power and can accurately identify the on and off events of electrical appliances.
[0027] Here, taking a home environment as an example, the system initially uses 100 watts as the threshold for determining electrical appliance events. Through analysis of historical data, it is found that the average power change of low-power events (such as light switches) is 30 watts, while the average power change of high-power events (such as air conditioner startup) is 500 watts. Based on this data, the system automatically adjusts the threshold to 265 watts (the average of 30 and 500). After that, the system will use the new threshold to identify the start and stop events of electrical appliances to improve the accuracy and adaptability of detection.
[0028] In summary, by introducing dynamic threshold adjustment in the event detection algorithm, we can adaptively optimize the threshold of event detection according to the actual power consumption behavior and appliance characteristics. This approach not only improves the accuracy of event detection, but also increases the system's adaptability to different appliances and changes in power consumption patterns, providing a solid foundation for accurate power consumption behavior analysis and intelligent energy management.
[0029] In this embodiment, the absolute values of the time differences between any two adjacent time points are equal.
[0030] In this embodiment, the "obtaining threshold value ΔP threshold "Specifically comprising: obtaining power values of all electrical appliances of the power consumption system, converting the power values of all electrical appliances into a first set and a second set, wherein the union of the first set and the second set is empty, the intersection of the first set and the second set is all electrical appliances, and the power value of any electrical appliance in the first set is greater than the power value of any electrical appliance in the second set; Wherein, ΔPower1 is the average value of the power of all electrical appliances in the first set, and ΔPower2 is the average value of the power of all electrical appliances in the second set.
[0031] In this embodiment, the average power value of all electrical appliances is ΔPower3, the power value of any electrical appliance in the first set is greater than ΔPower3, and the power value of any electrical appliance in the second set is less than or equal to ΔPower3.
[0032] Embodiment 2 of the present invention provides a device for detecting electrical appliance events in an electrical system, comprising the following steps:
[0033] The information acquisition module is used to obtain the total power values P(1), P(2), ..., P(Num) of the power system at time point 1, time point 2, ..., time point Num, one by one, where time point t is earlier than time point t+1, and t and Num are both natural numbers, 1≤t≤Num-1;
[0034] Processing module, used to calculate the average power change between adjacent windows 1≤t+w≤Num, w is a natural number;
[0035] Judgment module, used to obtain the threshold ΔP threshold , when ΔP(w,t)>ΔP threshold When , there is an electrical appliance turned on and off between time point t and time point t+1, or between time point t+w-1 and time point t+w, where ΔP threshold >0.
[0036] In this embodiment, the absolute values of the time differences between any two adjacent time points are equal.
[0037] In this embodiment, the judgment module is further used to: obtain power values of all electrical appliances in the power consumption system, convert the power values of all electrical appliances into a first set and a second set, the union of the first and second sets is empty, the intersection of the first and second sets is all electrical appliances, and the power value of any electrical appliance in the first set is greater than the power value of any electrical appliance in the second set; Wherein, ΔPower1 is the average value of the power of all electrical appliances in the first set, and ΔPower2 is the average value of the power of all electrical appliances in the second set.
[0038] In this embodiment, the average power value of all electrical appliances is ΔPower3, the power value of any electrical appliance in the first set is greater than ΔPower3, and the power value of any electrical appliance in the second set is less than or equal to ΔPower3.
[0039] Embodiment 3 of the present invention provides a device, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the detection method in embodiment 1.
[0040] Embodiment 4 of the present invention provides a readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the detection method in embodiment 1 is implemented.
[0041] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of hardware embodiments, software embodiments, or embodiments combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.
[0042] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0043] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0044] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0045] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention.
Claims
1. A method for detecting electrical appliance events in an electrical system, characterized in that: The following steps are involved: Obtain the total power values P(1), P(2), ..., P(Num) of the power system at time point 1, time point 2, ..., time point Num corresponding to each other, where time point t is earlier than time point t+1, and t and Num are both natural numbers, 1≤t≤Num-1; Calculate the average power change between adjacent windows 1≤t+w≤Num, w is a natural number; Get threshold ΔP threshold , when ΔP(w,t)>ΔP threshold When , there is an electrical appliance turned on and off between time point t and time point t+1, or between time point t+w-1 and time point t+w, where ΔP threshold >0.
2. The detection method according to claim 1, characterized in that: The absolute value of the time difference between any two adjacent time points is equal.
3. The detection method according to claim 1, characterized in that: The "obtaining threshold value ΔP threshold Specifically include: Obtaining power values of all electrical appliances of the power consumption system, converting the power values of all electrical appliances into a first set and a second set, wherein the union of the first set and the second set is empty, the intersection of the first set and the second set is all electrical appliances, and the power value of any electrical appliance in the first set is greater than the power value of any electrical appliance in the second set; Wherein, ΔPower1 is the average value of the power of all electrical appliances in the first set, and ΔPower2 is the average value of the power of all electrical appliances in the second set.
4. The detection method according to claim 3, characterized in that: The average power value of all electrical appliances is ΔPower3, the power value of any electrical appliance in the first set is greater than ΔPower3, and the power value of any electrical appliance in the second set is less than or equal to ΔPower3.
5. A device for detecting electrical appliance events in an electrical system, characterized in that: The following steps are involved: The information acquisition module is used to obtain the total power values P(1), P(2), ..., P(Num) of the power system at time point 1, time point 2, ..., time point Num, one by one, where time point t is earlier than time point t+1, and t and Num are both natural numbers, 1≤t≤Num-1; Processing module, used to calculate the average power change between adjacent windows 1≤t+w≤Num, w is a natural number; Judgment module, used to obtain the threshold ΔP threshold , when ΔP(w,t)>ΔP threshold When , there is an electrical appliance turned on and off between time point t and time point t+1, or between time point t+w-1 and time point t+w, where ΔP threshold >0.
6. The detection device according to claim 5, characterized in that: The absolute value of the time difference between any two adjacent time points is equal.
7. The detection device according to claim 5, characterized in that: The judging module is also used for: Obtaining power values of all electrical appliances of the power consumption system, converting the power values of all electrical appliances into a first set and a second set, wherein the union of the first set and the second set is empty, the intersection of the first set and the second set is all electrical appliances, and the power value of any electrical appliance in the first set is greater than the power value of any electrical appliance in the second set; Wherein, ΔPower1 is the average value of the power of all electrical appliances in the first set, and ΔPower2 is the average value of the power of all electrical appliances in the second set.
8. The detection device according to claim 7, characterized in that: The average power value of all electrical appliances is ΔPower3. The power value of any electrical appliance in the first set is greater than ΔPower3, and the power value of any electrical appliance in the second set is less than or equal to ΔPower3.
9. A device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the detection method according to any one of claims 1 to 4.
10. A readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the detection method according to any one of claims 1 to 4 is implemented.
