Device and method for detecting abnormal power consumption of electrical appliances
By collecting total power data at the main gate and decomposing the power sequence of electrical appliances, combined with the least square method and matching index, the problem of abnormal power consumption detection of electrical appliances in the existing technology is solved, and fast and accurate detection results are achieved.
Patent Information
- Application Number
- CN202410910550.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-07-09
AI Technical Summary
It is difficult to quickly and accurately detect abnormal power consumption of electrical appliances in a building with existing technology, especially in the absence of specialized wiring interfaces, and unified wiring detection is costly and cumbersome.
By collecting the total power data at the main gate, the total power sequence is generated, and the switch judgment module is used to determine the time when the electrical appliance is turned on or off, and the power sequence of the target electrical appliance is decomposed, and the least squares linear fitting and matching index are combined to determine the electrical appliance. Is there abnormal power consumption?
It realizes the convenient, fast and accurate detection of abnormal power consumption of electrical appliances in the building, and reduces the detection cost and complexity.
Smart Images

Figure CN118465413B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of abnormal power consumption detection for electrical appliances, and in particular to a device and method for abnormal power consumption detection for electrical appliances. Background Art
[0002] In electricity consumption scenarios such as public buildings and residential buildings, abnormal power consumption of electrical appliances includes increased or decreased power consumption or large fluctuations in a short period of time. Abnormal power consumption of electrical appliances not only leads to energy waste and increased electricity costs, but also reflects problems or hidden dangers of electrical facilities themselves, such as aging or failure of electrical appliances, aging, failure or mismatch of related lines of electrical appliances. Therefore, it is possible to formulate a renovation plan for building electrical facilities by detecting abnormal power consumption of electrical appliances.
[0003] The most direct way to detect the power consumption of electrical appliances is to set up voltage, current and other detection devices for the electrical appliances you want to detect, which requires wiring in the branch where the electrical appliances are located. However, the branch where the electrical appliances are located generally does not have a dedicated detection wiring interface, and it takes a long time to perform time-sharing wiring detection on each electrical appliance one by one, and unified wiring detection of all electrical appliances requires connecting many detection devices, which is costly and troublesome. Summary of the invention
[0004] In order to solve the above technical problems, the present invention provides a device and method for detecting abnormal power consumption of electrical appliances, which can conveniently, quickly and accurately detect abnormal power consumption of electrical appliances in a building.
[0005] The technical solution adopted by the present invention is as follows:
[0006] A device for detecting abnormal power consumption of electrical appliances, wherein a plurality of electrical appliances to be detected are connected to the rear stage of a main switch, and the detection device comprises: an acquisition module, wherein the acquisition module is used to acquire power data at the main switch and generate a total power sequence; a switch judgment module, wherein the switch judgment module is used to judge whether any electrical appliance to be detected is turned on or off according to the total power sequence, and obtain the corresponding turn-on time or turn-off time; a decomposition module, wherein when the switch judgment module determines that an electrical appliance to be detected is turned on, the electrical appliance to be detected is used as a target electrical appliance to be detected, and the turn-on time of the target electrical appliance to be detected is used as the starting point of a target time period, and when it is determined that any electrical appliance to be detected is turned on or off after the turn-on time of the target electrical appliance to be detected, the decomposition module is used to judge whether any electrical appliance to be detected is turned on or off according to the total power sequence, and obtain the corresponding turn-on time or turn-off time; and The moment before the turning on or off of the electrical appliance is taken as the end point of the target time period, and then the power sequence of the target electrical appliance to be detected is decomposed from the total power sequence within the target time period; an abnormality judgment module, the abnormality judgment module is used to identify the target electrical appliance to be detected according to the power sequence of the target electrical appliance to be detected, when the target electrical appliance to be detected is identified, it is determined that the power consumption of the target electrical appliance to be detected is normal, when the target electrical appliance to be detected cannot be identified, it is determined that the power consumption of the target electrical appliance to be detected is abnormal; an abnormality prompt module, the abnormality prompt module is used to record the system time corresponding to the turning on time of the target electrical appliance to be detected and issue a prompt message when the abnormality judgment module determines that the power consumption of the target electrical appliance to be detected is abnormal.
[0007] The switch judgment module is specifically used to: calculate the difference between the power at each moment in the total power sequence and the power at the previous moment; judge whether the absolute value of the difference is greater than a preset difference; if the absolute value of the difference is greater than the preset difference, and the difference is a positive number, then it is determined that the electrical appliance to be detected is turned on at this moment, and this moment is the turning-on moment; if the absolute value of the difference is greater than the preset difference, and the difference is a negative number, then it is determined that the electrical appliance to be detected is turned off at this moment, and this moment is the turning-off moment.
[0008] The switch judgment module is specifically used to: obtain a set power change threshold and a time window length; calculate a power change rate threshold according to the power change threshold and the time window length; use the time window to slide within the total power sequence, starting from the first element and with one element as a step, and intercept data in sequence, and perform linear fitting on the intercepted data according to the least squares method to obtain the power change rate within the time window intercepted each time; compare the power change rate within the time window intercepted each time with the power change rate threshold to determine whether the electrical appliance to be detected is turned on or off, and obtain the corresponding turn-on time or turn-off time.
[0009] The total power sequence is: p 1, p 2,…, p n},in, p x Indicates x The power of the moment, x =1,2,…, n , n is an integer greater than 1, n is the total number of elements in the total power sequence. When the length of the time window is an odd number, the switch judgment module calculates the power change rate threshold according to the following formula:
[0010]
[0011] in, k th is the power change rate threshold, Δ p th is the power change threshold, L w is the length of the time window;
[0012] When the length of the time window is an even number, the switch determination module calculates the power change rate threshold according to the following formula:
[0013]
[0014] The switch judgment module calculates the first s The power change rate within the time window captured is:
[0015]
[0016] in, K s For the s The power change rate within the time window captured for the first time, p s For the s The first element in the time window captured for the first time, s The power sequence fragment within the time window intercepted is { p s , p s+1 ,…, p s+Lw-1};
[0017] The switch judgment module ,and ,and K s-1 andK s When both are not less than 0, it is determined that s Always have the electrical appliances to be tested turned on and s The switch judgment module is at ,and ,and K s-1 and K s When both are not greater than 0, it is determined that s Always make sure that the electrical appliances to be tested are turned off and the s The time is the closing time.
[0018] The total power sequence is: p 1, p 2,…, p i ,… p j ,…, p n}, the power sequence of the target electrical appliance to be detected decomposed by the decomposition module is: { p i - p i-1 , p i+1 - p i-1 ,…, p j-1 - p i-1},in, p x Indicates x The power of the moment, x =1,2,…, n , 1< i < j ≤ n , x , i , j , n are integers, n is the total number of elements in the total power sequence, i is the start-up time of the target electrical appliance to be detected, j It is the start time or the shut down time of any electrical appliance to be detected after the start time of the target electrical appliance to be detected.
[0019] The abnormality judgment module is specifically used for: obtaining the standard power sequence of each electrical appliance to be detected stored in the memory, and comparing the power sequence of the target electrical appliance to be detected with the standard power sequence of each electrical appliance to be detected one by one; judging whether the number of elements in the power sequence of the target electrical appliance to be detected is equal to the number of elements in the compared standard power sequence; if not equal, when the number of elements in the power sequence of the target electrical appliance to be detected is less than the number of elements in the compared standard power sequence, eliminating the elements in the compared standard power sequence one by one from back to front until the number of elements in the power sequence of the target electrical appliance to be detected is equal to the number of elements in the compared standard power sequence, and when the number of elements in the power sequence of the target electrical appliance to be detected is greater than the number of elements in the compared standard power sequence, eliminating the elements in the power sequence of the target electrical appliance to be detected one by one from back to front until the number of elements in the power sequence of the target electrical appliance to be detected is equal to the number of elements in the compared standard power sequence. The number of elements of the power sequence of the target electrical appliance to be detected is equal to the number of elements of the compared standard power sequence; when the number of elements of the power sequence of the target electrical appliance to be detected is equal to the number of elements of the compared standard power sequence, calculate the matching index between the power sequence of the target electrical appliance to be detected and the compared standard power sequence; determine whether the matching index between the power sequence of the target electrical appliance to be detected and the compared standard power sequence is greater than a matching threshold; if the matching index between the power sequence of the target electrical appliance to be detected and the compared standard power sequence is greater than the matching threshold, determine that the target electrical appliance to be detected is the electrical appliance to be detected to which the compared standard power sequence belongs, and the power consumption of the electrical appliance to be detected is normal; if the matching index between the power sequence of the target electrical appliance to be detected and all standard power sequences is not greater than the matching threshold, determine that the target electrical appliance to be detected cannot be identified.
[0020] The abnormality judgment module calculates the matching index between the power sequence of the target electrical appliance to be detected and the compared standard power sequence according to the following formula:
[0021]
[0022] in, M is the matching index, e is a natural constant, r dmax is the proportion of the maximum values in the power sequence of the target electrical appliance to be detected, r cmax is the proportion of the maximum values in the compared standard power sequence, r dmin is the proportion of the number of minimum values in the power sequence of the target electrical appliance to be detected, r cmin is the proportion of the number of minimum values in the compared standard power sequence, p dbIndicates the first power sequence of the target electrical appliance to be detected b elements, p cb The first b elements, is the mean value of all elements in the power sequence of the target electrical appliance to be detected, is the mean of all elements in the aligned standard power sequence.
[0023] A method for detecting abnormal power consumption of electrical appliances, wherein a plurality of electrical appliances to be detected are connected to the rear stage of a main switch, and the detection method comprises the following steps: collecting power data at the main switch and generating a total power sequence; judging whether any electrical appliance to be detected is turned on or off according to the total power sequence, and obtaining the corresponding turn-on time or turn-off time; when it is determined that an electrical appliance to be detected is turned on, the electrical appliance to be detected is used as a target electrical appliance to be detected, and the turn-on time of the target electrical appliance to be detected is used as the starting point of a target time period; and when it is determined that any electrical appliance to be detected is turned on or off after the turn-on time of the target electrical appliance to be detected, the electrical appliance to be detected is turned off or on. The moment before the opening moment or closing moment of the target electrical appliance to be detected is taken as the end point of the target time period, and then the power sequence of the target electrical appliance to be detected is decomposed from the total power sequence within the target time period; the target electrical appliance to be detected is identified according to the power sequence of the target electrical appliance to be detected, and when the target electrical appliance to be detected is identified, it is determined that the power consumption of the target electrical appliance to be detected is normal; when the target electrical appliance to be detected cannot be identified, it is determined that the power consumption of the target electrical appliance to be detected is abnormal; when it is determined that the power consumption of the target electrical appliance to be detected is abnormal, the system time corresponding to the opening moment of the target electrical appliance to be detected is recorded and a prompt message is issued.
[0024] Judging whether the electrical appliance to be detected is turned on or off according to the total power sequence, and obtaining the corresponding turning on time or turning off time, specifically includes: obtaining the set power change threshold and the length of the time window; calculating the power change rate threshold according to the power change threshold and the length of the time window; using the time window to slide within the total power sequence with the first element as the starting point and one element as the step length, and intercepting data in sequence, and performing linear fitting on the intercepted data according to the least squares method to obtain the power change rate within the time window intercepted each time; comparing the power change rate within the time window intercepted each time with the power change rate threshold to judge whether the electrical appliance to be detected is turned on or off, and obtaining the corresponding turning on time or turning off time.
[0025] The total power sequence is: p 1, p 2,…, p n},in, p x Indicates x The power of the moment, x =1,2,…, n , n is an integer greater than 1, n is the total number of elements in the total power sequence. When the length of the time window is an odd number, the power change rate threshold is calculated according to the following formula:
[0026]
[0027] in, k th is the power change rate threshold, Δ p th is the power change threshold, L w is the length of the time window;
[0028] When the length of the time window is an even number, the power change rate threshold is calculated according to the following formula:
[0029]
[0030] No. s The power change rate within the time window captured for the first time is calculated according to the following formula:
[0031]
[0032] in, K s For the s The power change rate within the time window captured for the first time, p s For the s The first element in the time window captured for the first time, s The power sequence fragment within the time window intercepted is { p s , p s+1 ,…, p s+Lw-1};
[0033] when ,and ,and K s-1 and K s When both are not less than 0, it is determined that s Always have the electrical appliances to be tested turned on and s The time is the opening time; when , and ,and K s-1 and K s When both are not greater than 0, it is determined that s Always make sure that the electrical appliances to be tested are turned off and the s The time is the closing time.
[0034] Beneficial effects of the present invention:
[0035] The present invention collects the total power sequence at the main switch, and judges whether any electrical appliances are turned on or off based on it, and decomposes the power sequence of the turned-on electrical appliances, and then judges whether the turned-on electrical appliances can be identified based on the power sequence, and determines that the power consumption is abnormal when it cannot be identified. In this way, the abnormal power consumption of electrical appliances in the building can be detected conveniently, quickly and accurately. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 Schematic diagram of a block diagram of a device for detecting abnormal power consumption of an electrical appliance according to an embodiment of the present invention;
[0037] Figure 2 The figure is a flow chart of a method for detecting abnormal power consumption of an electrical appliance according to an embodiment of the present invention. DETAILED DESCRIPTION
[0038] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0039] In an embodiment of the present invention, an apparatus and method for detecting abnormal power consumption of electrical appliances are applicable to a variety of buildings, such as public buildings such as office buildings, commercial buildings, tourist buildings, science and education buildings, communication buildings, and transportation buildings, as well as residential buildings such as houses, villas, and apartments. There is at least one main switch in the building to control the power on and off of the corresponding multiple electrical appliances, that is, the power on and off of all electrical appliances in the building are controlled by one main switch, or the power on and off of the corresponding multiple electrical appliances in the building are controlled by multiple main switches respectively, and any one of the latter multiple main switches can be the main switch belonging to a certain floor, the main switch of a certain household, or the main switch of a certain room. The apparatus and method for detecting abnormal power consumption of electrical appliances in the embodiment of the present invention are implemented in units of a certain main switch and a plurality of electrical appliances to be detected connected to the subsequent stage. When the main switch is in the closed state, the apparatus for detecting abnormal power consumption of electrical appliances in the embodiment of the present invention can perform its function, and when the main switch is in the closed state, the method for detecting abnormal power consumption of electrical appliances in the embodiment of the present invention can be executed.
[0040] like Figure 1 As shown, the device for detecting abnormal power consumption of electrical appliances according to the embodiment of the present invention comprises an acquisition module 10, a switch judgment module 20, a decomposition module 30, an abnormality judgment module 40 and an abnormality prompt module 50. The acquisition module 10 is used to collect power data at the main switch and generate a total power sequence; the switch judgment module 20 is used to judge whether there is an electrical appliance to be detected turned on or off according to the total power sequence, and obtain the corresponding opening time or closing time; the decomposition module 30 is used to, when the switch judgment module 20 determines that an electrical appliance to be detected is turned on, use the electrical appliance to be detected as the target electrical appliance to be detected, and use the opening time of the target electrical appliance to be detected as the starting point of the target time period, and when it is determined that any electrical appliance to be detected is turned on or off after the opening time of the target electrical appliance to be detected, use the opening time or closing time of any electrical appliance to be detected. The previous moment is taken as the end point of the target time period, and then the power sequence of the target electrical appliance to be detected is decomposed from the total power sequence within the target time period; the abnormality judgment module 40 is used to identify the target electrical appliance to be detected according to the power sequence of the target electrical appliance to be detected, and when the target electrical appliance to be detected is identified, it is determined that the power consumption of the target electrical appliance to be detected is normal; when the target electrical appliance to be detected cannot be identified, it is determined that the power consumption of the target electrical appliance to be detected is abnormal; the abnormality prompt module 50 is used to record the system time corresponding to the start-up moment of the target electrical appliance to be detected and issue a prompt message when the abnormality judgment module 40 determines that the power consumption of the target electrical appliance to be detected is abnormal.
[0041] In one embodiment of the present invention, the acquisition module 10 can collect voltage and current data at the main switch, and generate a total power sequence based on the voltage and current data. It should be understood that what is collected at the main switch is the total power data of all the electrical appliances to be detected that are consuming power, so the power sequence here is called the total power sequence. In an embodiment of the present invention, the total power sequence can be expressed as: { p 1, p 2,…, p n},in, p x is the first in the total power sequence x elements, indicating the x The power of the moment, x =1,2,…, n , n is an integer greater than 1, n The total power sequence in the embodiment of the present invention, as well as the power sequence and standard power sequence of the target electrical appliance to be detected described below, all have power as the elements in the sequence. In the embodiment of the present invention, the power refers to the active power value.
[0042] In one embodiment of the present invention, the switch judgment module 20 can calculate the difference between the power at each moment in the total power sequence and the power at the previous moment, and judge whether the absolute value of the difference is greater than a preset difference. If the absolute value of the difference is greater than the preset difference, and the difference is a positive number, it is determined that the electrical appliance to be detected is turned on at this moment, and this moment is the turning-on moment. If the absolute value of the difference is greater than the preset difference, and the difference is a negative number, it is determined that the electrical appliance to be detected is turned off at this moment, and this moment is the turning-off moment.
[0043] The above-mentioned on or off judgment method of the switch judgment module 20 for the electrical appliance to be detected is simply based on the judgment of the preset difference, with simple logic and small calculation amount. However, it is easy to cause misjudgment in situations of strong electromagnetic interference and poor power quality, so it is only applicable to a few occasions.
[0044] In order to improve the accuracy and universality of the switch judgment module 20 for judging whether the electrical appliance to be detected is turned on or off, the embodiment of the present invention also proposes another judgment method. Specifically, the switch judgment module 20 can perform the following steps S21 to S24 to judge whether the electrical appliance to be detected is turned on or off, and obtain the corresponding turn-on time or turn-off time.
[0045] S21, obtaining a set power change threshold and a length of a time window.
[0046] In one embodiment of the present invention, the power change threshold is greater than 0, and the length of the time window can be an integer greater than 2. It should be noted that the power change threshold here can be set according to specific circumstances when implementing the present invention, and it is not convenient to limit it to a specific value here, but it must be greater than 0; the smaller the length of the time window here, the more accurate the subsequent judgment of whether the electrical appliance to be detected is turned on or off, but the amount of calculation will be greater, so it can also be set according to actual conditions.
[0047] S22, calculating a power change rate threshold according to the power change threshold and the length of the time window.
[0048] In one embodiment of the present invention, when the length of the time window is an odd number, the switch determination module 20 calculates the power change rate threshold according to the following formula:
[0049]
[0050] in, k th is the power change rate threshold, Δ p th is the power change threshold, L w is the length of the time window.
[0051] When the length of the time window is an even number, the switch determination module 20 calculates the power change rate threshold according to the following formula:
[0052]
[0053] S23, using the time window to slide in the total power sequence with the first element as the starting point and one element as the step size, and intercepting data in sequence, and performing linear fitting on the intercepted data according to the least squares method to obtain the power change rate in each intercepted time window.
[0054] The data intercepted by the time window is a sequence fragment. The actual meaning of the length of the above time window is the number of elements in the intercepted sequence fragment. Taking the length of the time window as 3 as an example, the data intercepted for the first time is { p 1, p 2, p 3}, the second intercepted data is { p 2, p 3, p 4}, and the same applies to the subsequent intercepted data.
[0055] In one embodiment of the present invention, the switch determination module 20 calculates the first s The power change rate within the intercepted time window is:
[0056]
[0057] in, K s For the s The power change rate within the intercepted time window is p s For the s The first element in the time window of the interception, s The power sequence fragment within the time window intercepted is { p s , p s+1 ,…, p s+Lw-1}.
[0058] S24, comparing the power change rate in each intercepted time window with the power change rate threshold to determine whether the electrical appliance to be detected is turned on or off, and obtaining the corresponding turning on time or turning off time.
[0059] In one embodiment of the present invention, the switch determination module 20 ,and ,and K s-1 and K sWhen both are not less than 0, it is determined that s Always have the electrical appliances to be tested turned on and s The switch judgment module 20 is at the opening time. ,and ,and K s-1 and K s When both are not greater than 0, it is determined that s Always make sure that the electrical appliances to be tested are turned off and the s The time is the closing time.
[0060] In order to illustrate the sequence decomposed by the decomposition module 30, introduce i Indicates the start time of the target electrical appliance to be detected. j represents the start time or shut down time of any electrical appliance to be detected after the start time of the target electrical appliance to be detected, then the total power sequence can be expressed as: p 1, p 2,…, p i ,… p j ,…, p n Before a new electrical appliance is turned on, the total power in the circuit generally tends to be stable. Therefore, in one embodiment of the present invention, the power sequence of the target electrical appliance to be detected decomposed by the decomposition module 30 is: p i - p i-1 , p i+1 - p i-1 ,…, p j-1 - p i-1},in, p x Indicates x The power of the moment, x =1,2,…, n , 1< i < j ≤ n , x , i , j , n are integers, n is the total number of elements in the total power sequence.
[0061] It should be noted that after the target electrical appliance to be detected is turned on, as long as the switch judgment module 20 again judges that the electrical appliance to be detected is turned on, or the switch judgment module 20 judges that the electrical appliance to be detected is turned off, the decomposition module 30 determines the target time period and decomposes the power sequence of the target electrical appliance to be detected within the target time period. If the switch judgment module 20 again judges that the electrical appliance to be detected is turned on after the target electrical appliance to be detected is turned on, then the object judged again is another target electrical appliance to be detected.
[0062] In one embodiment of the present invention, the abnormality determination module 40 may execute the following steps S41 to S47 to identify the target electrical appliance to be detected.
[0063] S41, acquiring the standard power sequence of each electrical appliance to be detected stored in the memory, and comparing the power sequence of the target electrical appliance to be detected with the standard power sequence of each electrical appliance to be detected one by one.
[0064] In one embodiment of the present invention, the standard power sequence of the electrical appliance to be detected is a sequence obtained by testing under the condition of ensuring that the power consumption of the electrical appliance to be detected is normal, and is pre-stored in the memory. The test method can be to detect the power data of the electrical appliance to be detected from the time it is turned on until it stops when the operation reaches a preset time. The standard power sequence of the electrical appliance to be detected can be provided by the merchant of the electrical appliance to be detected, or it can be obtained by testing before the electrical appliance of the same model as the electrical appliance to be detected is officially put into use.
[0065] Each electrical appliance to be detected has at least one standard power sequence. When a certain electrical appliance to be detected has multiple working modes, its standard power sequence can be correspondingly multiple (the "on" in the above test method refers to the "on" of the corresponding mode). If a certain electrical appliance to be detected has multiple standard power sequences, then when comparing the power sequence of the target electrical appliance to be detected with the standard power sequence of the electrical appliance to be detected, each standard power sequence should be compared according to steps S42 to S45.
[0066] S42, determining whether the number of elements in the power sequence of the target electrical appliance to be detected is equal to the number of elements in the compared standard power sequence.
[0067] S43, if they are not equal, then when the number of elements in the power sequence of the target electrical appliance to be detected is less than the number of elements in the compared standard power sequence, the elements in the compared standard power sequence are eliminated one by one from back to front until the number of elements in the power sequence of the target electrical appliance to be detected is equal to the number of elements in the compared standard power sequence, and when the number of elements in the power sequence of the target electrical appliance to be detected is greater than the number of elements in the compared standard power sequence, the elements in the power sequence of the target electrical appliance to be detected are eliminated one by one from back to front until the number of elements in the power sequence of the target electrical appliance to be detected is equal to the number of elements in the compared standard power sequence.
[0068] S44, when the number of elements in the power sequence of the target electrical appliance to be detected is equal to the number of elements in the compared standard power sequence, calculating the matching index between the power sequence of the target electrical appliance to be detected and the compared standard power sequence.
[0069] In one embodiment of the present invention, the abnormality determination module 40 may calculate the matching index between the power sequence of the target electrical appliance to be detected and the compared standard power sequence according to the following formula:
[0070]
[0071] in, M is the matching index, e is a natural constant, r dmax is the proportion of the maximum value in the power sequence of the target electrical appliance to be detected, r cmax is the proportion of the maximum values in the compared standard power sequence, r dmin is the proportion of the minimum values in the power sequence of the target electrical appliance to be detected, r cmin is the proportion of the number of minimum values in the compared standard power sequence, p db Indicates the first b elements, p cb The first b elements, is the mean value of all elements in the power sequence of the target electrical appliance to be detected, is the mean of all elements in the aligned standard power sequence.
[0072] The maximum value in the power sequence is determined as follows: if the power at the previous moment and the power at the next moment are both less than the power at the current moment, then the power at the current moment is the maximum value. The determination method for the minimum value is the opposite. The number ratio of the maximum values in the power sequence is the ratio of the total number of maximum values in the power sequence to the total number of all elements in the power sequence, and the number ratio of the minimum values in the power sequence is the ratio of the total number of minimum values in the power sequence to the total number of all elements in the power sequence.
[0073] S45, determining whether a matching index between the power sequence of the target electrical appliance to be detected and the compared standard power sequence is greater than a matching threshold.
[0074] The matching threshold here can be set according to specific circumstances when implementing the present invention, and it is not convenient to limit it to a specific value here.
[0075] S46, if the matching index between the power sequence of the target electrical appliance to be detected and the compared standard power sequence is greater than the matching threshold, it is determined that the target electrical appliance to be detected is the electrical appliance to be detected to which the compared standard power sequence belongs, and the power consumption of the electrical appliance to be detected is normal.
[0076] S47: If the matching indexes of the power sequence of the target electrical appliance to be detected and all the standard power sequences are not greater than the matching threshold, it is determined that the target electrical appliance to be detected cannot be identified.
[0077] If the power sequence of the target electrical appliance to be detected matches the compared standard power sequence, it means that the power consumption of the target electrical appliance to be detected is similar to that of the electrical appliances to be detected to which the standard power sequence belongs. Based on this, it can be considered that the target electrical appliance to be detected is the electrical appliance to be detected to which the standard power sequence belongs, and there is no obvious increase, decrease or abnormal fluctuation in its power consumption. If the power sequence of the target electrical appliance to be detected does not match any of the standard power sequences, it means that there is a significant increase, decrease or abnormal fluctuation in the power consumption of the target electrical appliance to be detected.
[0078] Of course, there may be a situation where the standard power sequences of two or more electrical appliances to be detected are the same or similar. This is because the two or more electrical appliances to be detected are of the same model. In step S46, it can be determined that the target electrical appliance to be detected is the model of the electrical appliance to be detected to which the compared standard power sequence belongs.
[0079] The prompt information of the abnormal prompt module 50 can inform the detector that there is abnormal power consumption of the electrical appliance, and the recorded system time (such as the time in the time zone where the implementation location of the present invention is located), that is, the start-up time of the electrical appliance with abnormal power consumption, can help the detector determine which electrical appliance has abnormal power consumption.
[0080] According to the abnormal power consumption detection device of the embodiment of the present invention, the total power sequence at the main switch is collected, and whether any electrical appliances are turned on or off is determined based on this, and the power sequence of the turned-on electrical appliances is decomposed, and then the turned-on electrical appliances are determined to be whether they can be identified based on their power sequences, and their power consumption is determined to be abnormal when they cannot be identified. In this way, the abnormal power consumption of electrical appliances in a building can be detected conveniently, quickly and accurately.
[0081] Corresponding to the device for detecting abnormal power consumption of an electrical appliance in the above-mentioned embodiment, the present invention further provides a method for detecting abnormal power consumption of an electrical appliance.
[0082] like Figure 2 As shown, the method for detecting abnormal power consumption of an electrical appliance according to an embodiment of the present invention includes the following steps S1 to S5.
[0083] S1, collects power data at the main switch and generates a total power sequence.
[0084] In one embodiment of the present invention, the voltage and current data at the main switch can be collected, and a total power sequence can be generated based on the voltage and current data. It should be understood that what is collected at the main switch is the total power data of all the electrical appliances to be detected that are consuming power, so the power sequence here is called the total power sequence. In an embodiment of the present invention, the total power sequence can be expressed as: { p 1, p 2,…, p n},in, p x is the first in the total power sequence x elements, indicating the x The power of the moment, x =1,2,…, n , n is an integer greater than 1, n The total power sequence in the embodiment of the present invention, as well as the power sequence and standard power sequence of the target electrical appliance to be detected described below, all have power as the elements in the sequence. In the embodiment of the present invention, the power refers to the active power value.
[0085] S2, judging whether the electrical appliance to be detected is turned on or off according to the total power sequence, and obtaining the corresponding turning on time or turning off time.
[0086] In one embodiment of the present invention, the difference between the power at each moment in the total power sequence and the power at the previous moment can be calculated, and it is determined whether the absolute value of the difference is greater than a preset difference. If the absolute value of the difference is greater than the preset difference, and the difference is a positive number, it is determined that the electrical appliance to be detected is turned on at this moment, and this moment is the turning-on moment. If the absolute value of the difference is greater than the preset difference, and the difference is a negative number, it is determined that the electrical appliance to be detected is turned off at this moment, and this moment is the turning-off moment.
[0087] The above-mentioned method of judging whether the electrical appliance to be detected is turned on or off is simply based on the judgment of the preset difference, with simple logic and small calculation amount. However, it is easy to cause misjudgment in situations of strong electromagnetic interference and poor power quality, so it is only applicable to a few occasions.
[0088] In order to improve the accuracy and universality of the judgment on whether the detected electrical appliance is turned on or off, another judgment method is proposed in the embodiment of the present invention. Specifically, step S2 includes the following steps S21 to S24.
[0089] S21, obtaining a set power change threshold and a length of a time window.
[0090] In one embodiment of the present invention, the power change threshold is greater than 0, and the length of the time window can be an integer greater than 2. It should be noted that the power change threshold here can be set according to specific circumstances when implementing the present invention, and it is not convenient to limit it to a specific value here, but it must be greater than 0; the smaller the length of the time window here, the more accurate the subsequent judgment of whether the electrical appliance to be detected is turned on or off, but the amount of calculation will be greater, so it can also be set according to actual conditions.
[0091] S22, calculating a power change rate threshold according to the power change threshold and the length of the time window.
[0092] In one embodiment of the present invention, when the length of the time window is an odd number, the power change rate threshold is calculated according to the following formula:
[0093]
[0094] in, k th is the power change rate threshold, Δ p th is the power change threshold, L w is the length of the time window.
[0095] When the length of the time window is an even number, the power change rate threshold is calculated according to the following formula:
[0096]
[0097] S23, using the time window to slide in the total power sequence with the first element as the starting point and one element as the step size, and intercepting data in sequence, and performing linear fitting on the intercepted data according to the least squares method to obtain the power change rate in each intercepted time window.
[0098] The data intercepted by the time window is a sequence fragment. The actual meaning of the length of the above time window is the number of elements in the intercepted sequence fragment. Taking the length of the time window as 3 as an example, the data intercepted for the first time is { p 1, p 2, p 3}, the second intercepted data is { p 2, p 3, p 4}, and the same applies to the subsequent intercepted data.
[0099] In one embodiment of the present invention, the first s The power change rate within the intercepted time window is:
[0100]
[0101] in, K s For the s The power change rate within the intercepted time window is p s For the s The first element in the time window of the interception, s The power sequence fragment within the time window intercepted is { p s , p s+1 ,…, p s+Lw-1}.
[0102] S24, comparing the power change rate in each intercepted time window with the power change rate threshold to determine whether the electrical appliance to be detected is turned on or off, and obtaining the corresponding turning on time or turning off time.
[0103] In one embodiment of the present invention, if ,and ,and K s-1 and K s are not less than 0, then it is determined that s Always have the electrical appliances to be tested turned on and s time is the opening time; if ,and ,and Ks-1 and K s are not greater than 0, then it is determined that s Always make sure that the electrical appliances to be tested are turned off and the s The time is the closing time.
[0104] S3, when it is determined that an electrical appliance to be detected is turned on, the electrical appliance to be detected is taken as the target electrical appliance to be detected, and the turn-on time of the target electrical appliance to be detected is taken as the starting point of the target time period; and when it is determined that any electrical appliance to be detected is turned on or off after the turn-on time of the target electrical appliance to be detected, the moment before the turn-on time or the turn-off time of any electrical appliance to be detected is taken as the end point of the target time period, and then the power sequence of the target electrical appliance to be detected is decomposed from the total power sequence within the target time period.
[0105] In order to illustrate the sequence decomposed in step S3, we introduce i Indicates the start time of the target electrical appliance to be detected. j represents the start time or shut down time of any electrical appliance to be detected after the start time of the target electrical appliance to be detected, then the total power sequence can be expressed as: p 1, p 2,…, p i ,… p j ,…, p n Before a new electrical appliance is turned on, the total power in the circuit generally tends to be stable. Therefore, in one embodiment of the present invention, the power sequence of the target electrical appliance to be detected decomposed in step S3 is: p i - p i-1 , p i+1 - p i-1 ,…, p j-1 - p i-1}, where p x Indicates x The power of the moment, x =1,2,…, n , 1< i < j ≤ n , x , i , j , n are integers, n is the total number of elements in the total power sequence.
[0106] It should be noted that after the target electrical appliance to be detected is turned on, as long as it is determined that the electrical appliance to be detected is turned on again, or it is determined that the electrical appliance to be detected is turned off, the target time period is determined, and the power sequence of the target electrical appliance to be detected in the target time period is decomposed. If after the target electrical appliance to be detected is turned on again, the object to be determined again is another target electrical appliance to be detected.
[0107] S4, identifying the target electrical appliance to be detected according to the power sequence of the target electrical appliance to be detected, and when the target electrical appliance to be detected is identified, determining that the power consumption of the target electrical appliance to be detected is normal; when the target electrical appliance to be detected cannot be identified, determining that the power consumption of the target electrical appliance to be detected is abnormal.
[0108] In one embodiment of the present invention, step S4 includes the following steps S41 to S47.
[0109] S41, acquiring the standard power sequence of each electrical appliance to be detected stored in the memory, and comparing the power sequence of the target electrical appliance to be detected with the standard power sequence of each electrical appliance to be detected one by one.
[0110] In one embodiment of the present invention, the standard power sequence of the electrical appliance to be detected is a sequence obtained by testing under the condition of ensuring that the power consumption of the electrical appliance to be detected is normal, and is pre-stored in the memory. The test method can be to detect the power data of the electrical appliance to be detected from the time it is turned on until it stops when the operation reaches a preset time. The standard power sequence of the electrical appliance to be detected can be provided by the merchant of the electrical appliance to be detected, or it can be obtained by testing before the electrical appliance of the same model as the electrical appliance to be detected is officially put into use.
[0111] Each electrical appliance to be detected has at least one standard power sequence. When a certain electrical appliance to be detected has multiple working modes, its standard power sequence can be correspondingly multiple (the "on" in the above test method refers to the "on" of the corresponding mode). If a certain electrical appliance to be detected has multiple standard power sequences, then when comparing the power sequence of the target electrical appliance to be detected with the standard power sequence of the electrical appliance to be detected, each standard power sequence should be compared according to steps S42 to S45.
[0112] S42, determining whether the number of elements in the power sequence of the target electrical appliance to be detected is equal to the number of elements in the compared standard power sequence.
[0113] S43, if they are not equal, then when the number of elements in the power sequence of the target electrical appliance to be detected is less than the number of elements in the compared standard power sequence, the elements in the compared standard power sequence are eliminated one by one from back to front until the number of elements in the power sequence of the target electrical appliance to be detected is equal to the number of elements in the compared standard power sequence, and when the number of elements in the power sequence of the target electrical appliance to be detected is greater than the number of elements in the compared standard power sequence, the elements in the power sequence of the target electrical appliance to be detected are eliminated one by one from back to front until the number of elements in the power sequence of the target electrical appliance to be detected is equal to the number of elements in the compared standard power sequence.
[0114] S44, when the number of elements in the power sequence of the target electrical appliance to be detected is equal to the number of elements in the compared standard power sequence, calculating the matching index between the power sequence of the target electrical appliance to be detected and the compared standard power sequence.
[0115] In one embodiment of the present invention, the matching index between the power sequence of the target electrical appliance to be detected and the compared standard power sequence can be calculated according to the following formula:
[0116]
[0117] in, M is the matching index, e is a natural constant, r dmax is the proportion of the maximum value in the power sequence of the target electrical appliance to be detected, r cmax is the proportion of the maximum values in the compared standard power sequence, r dmin is the proportion of the minimum values in the power sequence of the target electrical appliance to be detected, r cmin is the proportion of the number of minimum values in the compared standard power sequence, p db Indicates the first b elements, p cb The first b elements, is the mean value of all elements in the power sequence of the target electrical appliance to be detected, is the mean of all elements in the aligned standard power sequence.
[0118] The maximum value in the power sequence is determined as follows: if the power at the previous moment and the power at the next moment are both less than the power at the current moment, then the power at the current moment is the maximum value. The determination method for the minimum value is the opposite. The number ratio of the maximum values in the power sequence is the ratio of the total number of maximum values in the power sequence to the total number of all elements in the power sequence, and the number ratio of the minimum values in the power sequence is the ratio of the total number of minimum values in the power sequence to the total number of all elements in the power sequence.
[0119] S45, determining whether a matching index between the power sequence of the target electrical appliance to be detected and the compared standard power sequence is greater than a matching threshold.
[0120] The matching threshold here can be set according to specific circumstances when implementing the present invention, and it is not convenient to limit it to a specific value here.
[0121] S46, if the matching index between the power sequence of the target electrical appliance to be detected and the compared standard power sequence is greater than the matching threshold, it is determined that the target electrical appliance to be detected is the electrical appliance to be detected to which the compared standard power sequence belongs, and the power consumption of the electrical appliance to be detected is normal.
[0122] S47: If the matching indexes of the power sequence of the target electrical appliance to be detected and all the standard power sequences are not greater than the matching threshold, it is determined that the target electrical appliance to be detected cannot be identified.
[0123] If the power sequence of the target electrical appliance to be detected matches the compared standard power sequence, it means that the power consumption of the target electrical appliance to be detected is similar to the power consumption of the electrical appliances to be detected to which the standard power sequence belongs. Based on this, it can be considered that the target electrical appliance to be detected is the electrical appliance to be detected to which the standard power sequence belongs, and there is no obvious increase, decrease, or abnormal fluctuation in its power consumption. If the power sequence of the target electrical appliance to be detected does not match all the standard power sequences, it means that the power consumption of the target electrical appliance to be detected is not similar to the power consumption of multiple electrical appliances to be detected in all normal power consumption states, which further indicates that the power consumption of the target electrical appliance to be detected is obviously increased, decreased, or abnormally fluctuated.
[0124] Of course, there may be a situation where the standard power sequences of two or more electrical appliances to be detected are the same or similar. This is because the two or more electrical appliances to be detected are of the same model. In step S46, it can be determined that the target electrical appliance to be detected is the model of the electrical appliance to be detected to which the compared standard power sequence belongs.
[0125] S5, when it is determined that the target electrical appliance to be detected has abnormal power consumption, the system time corresponding to the start-up time of the target electrical appliance to be detected is recorded and a prompt message is issued.
[0126] The prompt information can inform the inspector that there is abnormal power consumption of an electrical appliance, and the recorded system time (such as the time in the time zone where the present invention is implemented), that is, the start-up time of the electrical appliance with abnormal power consumption, can help the inspector determine which electrical appliance has abnormal power consumption.
[0127] According to the method for detecting abnormal power consumption of electrical appliances in an embodiment of the present invention, the total power sequence at the main switch is collected, and based on this, it is determined whether any electrical appliances are turned on or off, and the power sequence of the turned-on electrical appliances is decomposed, and then based on the power sequence of the turned-on electrical appliances, it is determined whether they can be identified, and if they cannot be identified, their power consumption is determined to be abnormal. In this way, abnormal power consumption of electrical appliances in a certain electrical usage occasion can be detected conveniently, quickly and accurately.
[0128] In the description of the present invention, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. "Multiple" means two or more, unless otherwise clearly and specifically defined.
[0129] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0130] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, a first feature being "above", "above" or "above" a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being "below", "below" or "below" a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.
[0131] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.
[0132] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.
[0133] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples (non-exhaustive list) of computer-readable media include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0134] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0135] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0136] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0137] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A device for detecting abnormal power consumption of electrical appliances, It is characterized in that A plurality of electrical appliances to be tested are connected to the rear stage of the main switch, and the testing device comprises: A collection module, the collection module is used to collect power data at the main switch and generate a total power sequence; A switch judgment module, the switch judgment module is used to judge whether the electrical appliance to be detected is turned on or off according to the total power sequence, and obtain a corresponding turn-on time or turn-off time; A decomposition module, the decomposition module is used to, when the switch judgment module determines that an electrical appliance to be detected is turned on, use the electrical appliance to be detected as a target electrical appliance to be detected, and use the turn-on time of the target electrical appliance to be detected as the starting point of the target time period, and when it is determined that any electrical appliance to be detected is turned on or off after the turn-on time of the target electrical appliance to be detected, use the turn-on time or the previous time of the turn-on time of any electrical appliance to be detected as the end point of the target time period, and then decompose the power sequence of the target electrical appliance to be detected from the total power sequence within the target time period; an abnormality judgment module, the abnormality judgment module is used to identify the target electrical appliance to be detected according to the power sequence of the target electrical appliance to be detected, and when the target electrical appliance to be detected is identified, it is determined that the power consumption of the target electrical appliance to be detected is normal; when the target electrical appliance to be detected cannot be identified, it is determined that the power consumption of the target electrical appliance to be detected is abnormal; an abnormality prompt module, wherein the abnormality prompt module is used to record the system time corresponding to the start-up time of the target electrical appliance to be detected and issue a prompt message when the abnormality judgment module determines that the power consumption of the target electrical appliance to be detected is abnormal; The abnormality judgment module is specifically used for: obtaining the standard power sequence of each electrical appliance to be detected stored in the memory, and comparing the power sequence of the target electrical appliance to be detected with the standard power sequence of each electrical appliance to be detected one by one; judging whether the number of elements in the power sequence of the target electrical appliance to be detected is equal to the number of elements in the compared standard power sequence; if not equal, when the number of elements in the power sequence of the target electrical appliance to be detected is less than the number of elements in the compared standard power sequence, eliminating the elements in the compared standard power sequence one by one from back to front until the number of elements in the power sequence of the target electrical appliance to be detected is equal to the number of elements in the compared standard power sequence, and when the number of elements in the power sequence of the target electrical appliance to be detected is greater than the number of elements in the compared standard power sequence, eliminating the elements in the power sequence of the target electrical appliance to be detected one by one from back to front until the number of elements in the power sequence of the target electrical appliance to be detected is equal to the number of elements in the compared standard power sequence. The number of elements of the power sequence of the target electrical appliance to be detected is equal to the number of elements of the compared standard power sequence; when the number of elements of the power sequence of the target electrical appliance to be detected is equal to the number of elements of the compared standard power sequence, calculate the matching index between the power sequence of the target electrical appliance to be detected and the compared standard power sequence; determine whether the matching index between the power sequence of the target electrical appliance to be detected and the compared standard power sequence is greater than the matching threshold; if the matching index between the power sequence of the target electrical appliance to be detected and the compared standard power sequence is greater than the matching threshold, determine that the target electrical appliance to be detected is the electrical appliance to be detected to which the compared standard power sequence belongs, and the power consumption of the electrical appliance to be detected is normal; if the matching index between the power sequence of the target electrical appliance to be detected and all standard power sequences is not greater than the matching threshold, determine that the target electrical appliance to be detected cannot be identified. The abnormality judgment module calculates the matching index between the power sequence of the target electrical appliance to be detected and the compared standard power sequence according to the following formula: ; in, M is the matching index, e is a natural constant, r dmax is the proportion of the maximum values in the power sequence of the target electrical appliance to be detected, r cmax is the proportion of the maximum values in the compared standard power sequence, r dmin is the proportion of the number of minimum values in the power sequence of the target electrical appliance to be detected, r cmin is the proportion of the number of minimum values in the compared standard power sequence, p db Indicates the first power sequence of the target electrical appliance to be detected b elements, p cb The first b elements, is the mean value of all elements in the power sequence of the target electrical appliance to be detected, is the mean of all elements in the aligned standard power sequence.
2. The device for detecting abnormal power consumption of an electrical appliance according to claim 1, It is characterized in that The switch judgment module is specifically used for: Calculate the difference between the power at each moment in the total power sequence and the power at the previous moment; Determine whether the absolute value of the difference is greater than a preset difference; If the absolute value of the difference is greater than the preset difference and the difference is a positive number, it is determined that the electrical appliance to be detected is turned on at this moment and this moment is the turning-on moment. If the absolute value of the difference is greater than the preset difference and the difference is a negative number, it is determined that the electrical appliance to be detected is turned off at this moment and this moment is the turning-off moment.
3. The device for detecting abnormal power consumption of an electrical appliance according to claim 1, It is characterized in that The switch judgment module is specifically used for: Obtain the set power change threshold and time window length; Calculate a power change rate threshold according to the power change threshold and the length of the time window; Using the time window in the total power sequence, sliding with the first element as the starting point and one element as the step length, intercepting data in sequence, and performing linear fitting on the intercepted data according to the least squares method to obtain the power change rate in the time window intercepted each time; The power change rate within the time window captured each time is compared with the power change rate threshold to determine whether the electrical appliance to be detected is turned on or off, and to obtain the corresponding turning on time or turning off time.
4. The device for detecting abnormal power consumption of an electrical appliance according to claim 3, It is characterized in that The total power sequence is: p 1 , p 2 ,…, p n }, in, p x Indicates x The power of the moment, x =1,2,…, n , n is an integer greater than 1, n is the total number of elements in the total power sequence, When the length of the time window is an odd number, the switch determination module calculates the power change rate threshold according to the following formula: ; in, k th is the power change rate threshold, Δ p th is the power change threshold, L w is the length of the time window; When the length of the time window is an even number, the switch determination module calculates the power change rate threshold according to the following formula: ; The switch judgment module calculates the first s The power change rate within the time window captured is: ; in, K s For the s The power change rate within the time window captured for the first time, p s For the s The first element in the time window captured for the first time, s The power sequence fragment within the time window intercepted is { p s , p s+1 ,…, p s+Lw-1 }; The switch judgment module ,and ,and K s-1 and K s When both are not less than 0, it is determined that s Always have the electrical appliances to be tested turned on and s The switch judgment module is at ,and ,and K s-1 and K s When both are not greater than 0, it is determined that s Always make sure that the electrical appliances to be tested are turned off and the s The time is the closing time.
5. The device for detecting abnormal power consumption of an electrical appliance according to claim 1, It is characterized in that The total power sequence is: p 1 , p 2 ,…, p i ,… p j ,…, p n }, the power sequence of the target electrical appliance to be detected decomposed by the decomposition module is: { p i - p i-1 , p i+1 - p i-1 ,…, p j-1 - p i-1 }, in, p x Indicates x The power of the moment, x =1,2,…, n , 1< i < j ≤ n , x , i , j , n are all integers, n is the total number of elements in the total power sequence, i is the start-up time of the target electrical appliance to be detected, j It is the start time or the shut down time of any electrical appliance to be detected after the start time of the target electrical appliance to be detected.
6. A method for detecting abnormal power consumption of electrical appliances, It is characterized in that A plurality of electrical appliances to be tested are connected to the rear stage of the main switch, and the testing method comprises the following steps: Collecting power data at the main switch and generating a total power sequence; Determine whether the electrical appliance to be detected is turned on or off according to the total power sequence, and obtain the corresponding turning on time or turning off time; When it is determined that an electrical appliance to be detected is turned on, the electrical appliance to be detected is used as a target electrical appliance to be detected, and the turn-on time of the target electrical appliance to be detected is used as the starting point of the target time period, and when it is determined that any electrical appliance to be detected is turned on or off after the turn-on time of the target electrical appliance to be detected, the moment before the turn-on time or the turn-off time of any electrical appliance to be detected is used as the end point of the target time period, and then the power sequence of the target electrical appliance to be detected is decomposed from the total power sequence within the target time period; Identify the target electrical appliance to be detected according to the power sequence of the target electrical appliance to be detected, and when the target electrical appliance to be detected is identified, determine that the power consumption of the target electrical appliance to be detected is normal; when the target electrical appliance to be detected cannot be identified, determine that the power consumption of the target electrical appliance to be detected is abnormal; When it is determined that the target electrical appliance to be detected has abnormal power consumption, the system time corresponding to the start-up time of the target electrical appliance to be detected is recorded and a prompt message is issued. The target electrical appliance to be detected is identified according to its power sequence. When the target electrical appliance to be detected is identified, it is determined that the power consumption of the target electrical appliance to be detected is normal. When the target electrical appliance to be detected cannot be identified, it is determined that the power consumption of the target electrical appliance to be detected is abnormal, including the following steps: obtaining the standard power sequence of each electrical appliance to be detected stored in a memory, and comparing the power sequence of the target electrical appliance to be detected with the standard power sequence of each electrical appliance to be detected one by one; judging whether the number of elements in the power sequence of the target electrical appliance to be detected is equal to the number of elements in the compared standard power sequence; if not equal, then when the number of elements in the power sequence of the target electrical appliance to be detected is less than the number of elements in the compared standard power sequence, removing the elements in the compared standard power sequence one by one from back to front until the number of elements in the power sequence of the target electrical appliance to be detected is equal to the number of elements in the compared standard power sequence, and When the number of elements is greater than the number of elements of the compared standard power sequence, the elements in the power sequence of the target electrical appliance to be detected are eliminated one by one from back to front until the number of elements in the power sequence of the target electrical appliance to be detected is equal to the number of elements in the compared standard power sequence; when the number of elements in the power sequence of the target electrical appliance to be detected is equal to the number of elements in the compared standard power sequence, the matching index between the power sequence of the target electrical appliance to be detected and the compared standard power sequence is calculated; it is determined whether the matching index between the power sequence of the target electrical appliance to be detected and the compared standard power sequence is greater than the matching threshold; if the matching index between the power sequence of the target electrical appliance to be detected and the compared standard power sequence is greater than the matching threshold, it is determined that the target electrical appliance to be detected is the electrical appliance to be detected to which the compared standard power sequence belongs, and the power consumption of the electrical appliance to be detected is normal; if the matching index between the power sequence of the target electrical appliance to be detected and all the standard power sequences is not greater than the matching threshold, it is determined that the target electrical appliance to be detected cannot be identified. The matching index between the power sequence of the target electrical appliance to be tested and the compared standard power sequence is calculated according to the following formula: ; in, M is the matching index, e is a natural constant, r dmax is the proportion of the maximum value in the power sequence of the target electrical appliance to be detected, r cmax is the proportion of the maximum values in the compared standard power sequence, r dmin is the proportion of the minimum values in the power sequence of the target electrical appliance to be detected, r cmin is the proportion of the number of minimum values in the compared standard power sequence, p db Indicates the first b elements, p cb The first b elements, is the mean value of all elements in the power sequence of the target electrical appliance to be detected, is the mean of all elements in the aligned standard power sequence.
7. The method for detecting abnormal power consumption of an electrical appliance according to claim 6, It is characterized in that Determining whether the electrical appliance to be detected is turned on or off according to the total power sequence, and obtaining the corresponding turning on time or turning off time, specifically includes: Obtain the set power change threshold and time window length; Calculate a power change rate threshold according to the power change threshold and the length of the time window; Using the time window in the total power sequence, sliding with the first element as the starting point and one element as the step length, intercepting data in sequence, and performing linear fitting on the intercepted data according to the least squares method to obtain the power change rate in the time window intercepted each time; The power change rate within the time window captured each time is compared with the power change rate threshold to determine whether the electrical appliance to be detected is turned on or off, and to obtain the corresponding turning on time or turning off time.
8. The method for detecting abnormal power consumption of an electrical appliance according to claim 7, It is characterized in that The total power sequence is: p 1 , p 2 ,…, p n }, in, p x Indicates x The power of the moment, x =1,2,…, n , n is an integer greater than 1, n is the total number of elements in the total power sequence, When the length of the time window is an odd number, the power change rate threshold is calculated according to the following formula: ; in, k th is the power change rate threshold, Δ p th is the power change threshold, L w is the length of the time window; When the length of the time window is an even number, the power change rate threshold is calculated according to the following formula: ; No. s The power change rate within the time window captured for the first time is calculated according to the following formula: ; in, K s For the s The power change rate within the time window captured for the first time, p s For the s The first element in the time window captured for the first time, s The power sequence fragment within the time window intercepted is { p s , p s+1 ,…, p s+Lw-1 }; when ,and ,and K s-1 and K s When both are not less than 0, it is determined that s Always have the electrical appliances to be tested turned on and s The time is the opening time; when ,and ,and K s-1 and K s When both are not greater than 0, it is determined that s Always make sure that the electrical appliances to be tested are turned off and the s The time is the closing time.
Citation Information
Patent Citations
Operating status determination device and operating status determination method
CN102449646A
Power monitoring and management with remote access
CN102914692A
Method for detecting abnormal power consumption, terminal and computer readable memory medium
CN107357673A
Non-invasive load monitoring method and storage medium
CN111126780A
Load decomposition method and system suitable for industrial and commercial users
CN113326296A
