Meter power consumption abnormity determination method

By collecting the voltage data of the intelligent metering instrument and using the monotonic stack algorithm to determine the reason for the slashed voltage increase, combined with the order-keeping regression processing, the possible high power consumption problems of the metering instrument are solved, and automatic judgment and positioning of the time points of high power consumption are realized, and judgment efficiency and accuracy are improved.

CN120065110AActive Publication Date: 2025-05-30CHENGDU QIANJIA TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202510538240.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-27
Publication Date
2025-05-30
Estimated Expiration
2045-04-27

AI Technical Summary

Technical Problem

Smart metering instruments may experience abnormally high power consumption, which will cause the battery to lose power quickly. It is necessary to accurately judge the cause of the sharp increase in voltage and locate the time point of high power consumption.

Method used

By collecting the voltage data of the table at a fixed time, using the monotonic stack algorithm to determine whether the voltage increase is abnormal AD sampling or battery replacement operation. If it is a battery replacement operation, record the battery replacement time and perform order-saving regression processing on the voltage data during a battery replacement cycle to determine whether there is a high power consumption abnormality in the table.

Benefits of technology

The automatic judgment meter's battery voltage is realized, without manual participation, accurately positioning the time point of high power consumption, reducing manual workload and improving judgment efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120065110A_ABST
    Figure CN120065110A_ABST
Patent Text Reader

Abstract

The invention relates to a method for judging power consumption abnormity of a meter, which comprises the following steps of: acquiring voltage data of the meter at a fixed moment, if the voltage data has a voltage abrupt increase condition, judging whether the reason of the voltage abrupt increase is AD sampling abnormity or battery replacement operation by utilizing a monotone stack algorithm, and if the reason of the voltage abrupt increase is the battery replacement operation, recording the battery replacement time; performing order-preserving regression processing on the voltage data in one battery replacement period to obtain an order-preserving voltage data sequence; judging whether the meter has an abnormal condition of high power consumption or not based on the order-preserving voltage data sequence, and if so, constructing a dictionary of voltage occurrence times; a point in time at which high power consumption occurs is determined based on the dictionary of the number of voltage occurrences. The invention aims to accurately judge whether the abnormal condition of high power consumption exists when the voltage of the meter is suddenly increased, and locate the time point of the abnormal condition of high power consumption.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power detection, and particularly relates to a method for determining abnormal power consumption of a meter Background Art

[0002] With the continuous popularization of Internet of Things communication technology, intelligent metering meters with remote transmission functions have gradually replaced the original ordinary meters. They can regularly report metering data and the operating status of the meters (such as battery voltage, valve status, signal strength, etc.) to the management center, and remote meter reading can be achieved without disturbing households. Intelligent metering meters usually consist of a main control circuit board, a basic meter, a housing, etc. Since the components on the circuit board (such as resistors, capacitors, etc.) have a certain service life, corrosion or short - circuit phenomena may occur under relatively bad working conditions, and the most serious impact is that the meter may exhibit abnormal high power consumption

[0003] A typical time - battery voltage data of a meter is as Figure 1 shown, and there are 3 key mutation points, which are analyzed as follows

[0004] ① The voltage value should have decreased slowly, but at this time the voltage value decreases rapidly, which is very likely that the components are damaged and there is a phenomenon of high power consumption

[0005] ② The voltage value has dropped to 4.7V, and it is judged that the power is almost exhausted; after replacing the battery again, the voltage returns to 6.3V

[0006] ③ Two to three months after replacing the battery, the voltage value drops to 4.7V again, and it is judged that the power is exhausted again; after replacing the battery again, the voltage returns to 6.3V; but there is still a situation where the voltage value drops rapidly

[0007] According to the design mode of the meter, the normal voltage of 4 dry batteries is about 6.4V, and the service life is about 12 months. If the power drops too fast after replacing the new battery, it indicates that there is very likely a problem of abnormal power consumption Summary of the Invention

[0008] The purpose of the present invention is to accurately determine whether there is an abnormal situation of high power consumption when the voltage of the meter suddenly increases, and locate the time point of abnormal high power consumption, and provide a method for determining abnormal power consumption of a meter

[0009] In order to achieve the above - mentioned invention purpose, the embodiments of the present invention provide the following technical solutions

[0010] A method for determining abnormal power consumption of a meter, comprising the following steps

[0011] Step 1: Collect the voltage data of the meter at a fixed time. If there is a sudden increase in voltage in the voltage data, use the monotonic stack algorithm to determine whether the reason for the sudden increase in voltage is an abnormal AD sampling or a battery replacement operation. If it is a battery replacement operation, record the time of battery replacement and proceed to Step 2;

[0012] Step 2: Perform isotonic regression processing on the voltage data within a battery replacement cycle to obtain an isotonic voltage data sequence;

[0013] Step 3: Based on the isotonic voltage data sequence, determine whether there is an abnormal situation of high power consumption in the meter. If so, construct a dictionary of the number of voltage occurrences; based on the dictionary of the number of voltage occurrences, determine the time point of high power consumption.

[0014] Compared with the prior art, the beneficial effects of the present invention are as follows: The present invention uses an algorithm combining state transition and monotonic stack to determine whether the reason for the sudden increase in the battery voltage of the meter is an abnormal AD sampling or a battery replacement operation. If it is determined to be a battery replacement operation, the voltage data within a battery replacement cycle is subjected to isotonic regression processing, and then it is determined whether there is an abnormal situation of high power consumption in the meter. Moreover, the time point of high power consumption can be located, and meter repair is required instead of simply replacing the battery. The whole process of judgment does not require manual participation, reducing the manual workload, and the judgment result is accurate and efficient. Description of the Drawings

[0015] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings required to be used in the embodiments. It should be understood that the following drawings only show some embodiments of the present invention, and therefore should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative efforts.

[0016] Figure 1 It is a typical time-battery voltage data waveform diagram of the meter in the background technology;

[0017] Figure 2 It shows the situation of abnormal AD sampling when collecting the voltage data of the meter in the embodiment of the present invention;

[0018] Figure 3 It is a schematic diagram of the isotonic voltage data sequence in the embodiment of the present invention;

[0019] Figure 4 It is a state transition schematic diagram of Step 1 of the present invention;

[0020] Figure 5 It is a flowchart of the method of the present invention. Detailed Embodiments

[0021] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. The components of the embodiments of the present invention usually described and illustrated in the accompanying drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the claimed present invention, but merely represents the selected embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts belong to the scope of protection of the present invention.

[0022] It should be noted that: similar reference numerals and letters indicate similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of the present invention, terms such as "first", "second", etc. are only used for distinguishing descriptions and cannot be understood as indicating or implying relative importance, or implying any such actual relationship or order between these entities or operations. In addition, terms such as "connected" and "coupled" can be directly connected between components or indirectly connected through other components.

[0023] Embodiment:

[0024] The present invention is realized through the following technical solutions. As Figure 5 shown, a method for determining abnormal power consumption of a meter includes the following steps:

[0025] Step 1: Collect the voltage data of the meter at a fixed time. If the voltage data shows a sudden increase in voltage, use the monotonic stack algorithm to determine whether the reason for the sudden increase in voltage is an abnormal AD sampling or a battery replacement operation. If it is a battery replacement operation, record the time of battery replacement and proceed to Step 2.

[0026] Since during the AD sampling of the voltage data of the meter, the collected voltage data may occasionally show abnormal fluctuations due to other inevitable technical reasons or external factors, as Figure 2 shown in ① and ②. Such abnormal AD sampling is manifested as a sudden increase or decrease in voltage, which is easily confused with the sudden increase in voltage during battery replacement. Therefore, in this step, an improved method combining the state transition algorithm and the monotonic stack algorithm is used to determine whether the reason for the sudden increase in voltage is abnormal AD sampling or caused by battery replacement. For ease of understanding, the voltage state is recorded as three states: 1. Normal operation state; 2. Voltage sudden increase state; 3. Battery replacement state. Regardless of the reason for the voltage sudden increase state, the meter will necessarily first go through the normal operation state. Therefore, as Figure 4 shown, Step 1 may include the following steps:

[0027] Step 1-1, Normal operation state: After the meter is powered on, it is in the normal operation state. The voltage data of the meter is collected at fixed times. By comparing the difference between the current voltage data v i and the previous voltage data v i-1 , if it satisfies v i -v i-1 > 1V and v i-1 < 5V, it is determined that the voltage has increased steeply, and it jumps to Step 1-2; otherwise, it remains in the normal operation state.

[0028] Step 1-2, Voltage steep increase state: When in the voltage steep increase state, based on the monotonic stack algorithm, it is judged whether this voltage steep increase state is an AD sampling anomaly or a battery replacement operation; if it is judged as an AD sampling anomaly, it returns to Step 1-1 and returns to the normal operation state; if it is judged as a battery replacement operation, it jumps to Step 1-3.

[0029] Step 1-3, Battery replacement state: When it is determined that it is in the battery replacement state, the time when the voltage has increased steeply is recorded as the time x k of the battery replacement operation. After the recording is completed, it returns to Step 1-1 and returns to the normal operation state.

[0030] Specifically, since the steep increase in voltage may correspond to a battery replacement operation or an AD sampling anomaly, Step 1-2 of this solution is based on the monotonic stack algorithm to judge. By comparing the maximum voltage drop degree with a window size of m within n sampling times, it is judged whether this steep increase in voltage is a battery replacement operation. Assume that the voltage data of 5 sampling times {v 1 , v 2 , v 3 , v 4 , v 5} is collected, and m = 3 is set. Then, the window sizes of {v 1 , v 2 , v 3}, {v 2 , v 3 , v 4}, {v 3 , v 4 , v 5} can be selected in turn. Here, it is only used as an example for easy understanding of the meanings of n and m. In fact, the values of n and m are much larger than this. In this embodiment, m = n / 2 or m = (n + 1) / 2 can be preferably used.

[0031] For each sampling time v i , the minimum value among the subsequent m sampling voltages is found in turn. The time complexity of the algorithm is O(nm). This solution designs an algorithm of a monotonic double-ended queue (i.e., both the head end and the tail end), which can complete the judgment with a time complexity of O(n + m), thus greatly reducing the computational complexity. The specific steps of Step 1-2 include the following steps:

[0032] Step 1-2-1. Denote the voltage data sequence collected at n + m moments as V = {v i} = {v 1 , v 2 ,..., v n+m}, where v i represents the i-th voltage data in the sequence V, i = 1, 2,..., n + m, n is the number of sampling moments, and m is the window size. Denote the subsequent voltage minimum value sequence of the first n + 1 sampling voltages as Y, and the sequence Y is empty in the initial state. Create a double-ended queue D for recording the subscripts of voltage data, and the queue D is empty in the initial state. First, select the voltage v 1 with subscript i = 1 in the sequence V.

[0033] Step 1-2-2. If the queue D is empty, jump to Step 1-2-3; otherwise, denote the tail element of the queue D as a. If v i < v a , and v a is the voltage data with subscript a in the sequence V, then remove the tail element a of the queue D and execute this step again; if v i ≥ v a , then jump to Step 1-2-3.

[0034] Step 1-2-3. If the queue D is empty, jump to Step 1-2-4; if the queue D is not empty, denote the head element of the queue D as b. If b ≤ i - m, then remove the head element b of the queue D and execute this step again; if b > i - m, then jump to Step 1-2-4.

[0035] Step 1-2-4. Add i to the tail of the queue D. If i < m, execute i = i + 1 and jump to Step 1-2-2; if i ≥ m, then denote the head element of the queue D as b, and add v b to the sequence Y, where v b is the voltage data with subscript b in the sequence V. Then, if i < n + m, execute i = i + 1 and jump to Step 1-2-2; if i ≥ n + m, then end this step and jump to Step 1-2-5.

[0036] As an example, when the voltage is in a steep increase state, the voltage v 1 is 6.1V. Set n = 9 and m = 3, then the voltage data sequence V is shown in Table 1.

[0037] Table 1 Parameter Table of Voltage Data Sequence V

[0038] Initialization: D = {}; Y = {};

[0039] i = 1, vi =v 1 : At this time, D is empty. Jump from Step 1-2-2 to Step 1-2-3 and then to Step 1-2-4. Add 1 to the end of the queue of D, D = {1}; Since 1 < 3, execute i = i + 1 and jump to Step 1-2-2;

[0040] i = 2, v i =v 2 : At this time, D = {1}. Denote the element 1 at the end of the queue as a. Since v 2 =v 1 , jump from Step 1-2-2 to Step 1-2-3; Denote 1 as b. Since 1 > 2 - 3, jump from Step 1-2-3 to Step 1-2-4; Add 2 to the end of the queue of D, D = {1, 2}. Since 2 < 3, execute i = i + 1 and jump to Step 1-2-2;

[0041] i = 3, v i =v 3 : At this time, D = {1, 2}. Denote the element 2 at the end of the queue as a. Since v 3 <v 2 , then remove the element 2 at the end of the queue. At this time, D = {1}; Denote the element 1 at the end of the queue as a. Since v 3 <v 1 , then remove the element 1 at the end of the queue. At this time, D = {}. Jump from Step 1-2-2 to Step 1-2-3 and then to Step 1-2-4; Add 3 to the end of the queue of D, D = {3}. Since i = 3, denote 3 as b, and add v 3 to Y. At this time, Y = {v 3}; Since 3 < 9 + 3, execute i = i + 1 and jump to Step 1-2-2;

[0042] i = 4, v i =v 4 : At this time, D = {3}. Denote the element 3 at the end of the queue as a. Since v 4 =v 3 , jump from Step 1-2-2 to Step 1-2-3; Denote the element 3 at the head of the queue as b. Since 3 > 4 - 3, jump from Step 1-2-3 to Step 1-2-4; Add 4 to the end of the queue of D, D = {3, 4}. Since 4 > 3, denote the element 3 at the head of the queue as b, and add v3 to Y, Y = {v 3 ,v 3}; Since 4 < 9 + 3, execute i = i + 1 and jump to Step 1-2-2;

[0043] i = 5, v i =v 5 : At this time, D = {3, 4}. Denote the element 4 at the end of the queue as a. Since v 5 =v 4, jump from step 1-2-2 to step 1-2-3; Denote the first element 3 in the queue as b. Since 3 > 5 - 3, jump from step 1-2-3 to step 1-2-4; Add 5 to the end of the queue D, D = {3, 4, 5}. Since 5 > 3, denote the first element 3 as b, and add v 3 to Y, Y = {v 3 , v 3 , v 3}; Since 5 < 9 + 3, execute i = i + 1 and jump to step 1-2-2;

[0044] i = 6, v i = v 6 : At this time, D = {3, 4, 5}. Denote the last element 5 in the queue as a. Since v 6 > v 5 , jump from step 1-2-2 to step 1-2-3; Denote the first element 3 as b. Since 3 = 6 - 3, remove the first element 3. At this time, D = {4, 5}; Denote the first element 4 as b. Since 4 > 6 - 3, jump from step 1-2-3 to step 1-2-4; Add 6 to the end of the queue D, D = {4, 5, 6}. Since 6 > 3, denote the first element 4 as b, and add v 4 to Y, Y = {v 3 , v 3 , v 3 , v 4}; Since 6 < 9 + 3, execute i = i + 1 and jump to step 1-2-2;

[0045] i = 7, v i = v 7 : At this time, D = {4, 5, 6}. Denote the last element 6 as a. Since v 7 < v 6 , remove the last element 6. At this time, D = {4, 5}; Denote the last element 5 as a. Since v 7 < v 5 , remove the last element 5. At this time, D = {4}; Denote the last element 4 as a. Since v 7 < v 4 , remove the last element 4. At this time, D = {}, jump from step 1-2-2 to step 1-2-3 and then to step 1-2-4; Add 7 to the end of the queue D, D = {7}. Since 7 > 3, denote the first element 7 as b, and add v 7 to Y, Y = {v 3 , v 3 , v 3 , v 4 , v 7}; Since 7 < 9 + 3, execute i = i + 1 and jump to step 1-2-2;

[0046] i = 8, vi =v 8 : At this time, D = {7}, and the tail element 7 of the queue is denoted as a. Since v 8 >v 7 , jump from step 1-2-2 to step 1-2-3; Denote the head element 7 of the queue as b. Since 7 > 8 - 3, jump from step 1-2-3 to step 1-2-4; Add 8 to the tail of D, D = {7, 8}. Since 8 > 3, add v 7 to Y, Y = {v 3 , v 3 , v 3 , v 4 , v 7 , v 7}; Since 8 < 9 + 3, execute i = i + 1 and jump to step 1-2-2;

[0047] i = 9, v i =v 9 : At this time, D = {7, 8}, and the tail element 8 of the queue is denoted as a. Since v 8 >v 7 , jump from step 1-2-2 to step 1-2-3; Denote the head element 7 of the queue as b. Since 7 > 9 - 3, jump from step 1-2-3 to step 1-2-4; Add 9 to the tail of D, D = {7, 8, 9}. Since 9 > 3, add v 7 to Y, Y = {v 3 , v 3 , v 3 , v 4 , v 7 , v 7 , v 7}; Since 9 < 9 + 3, execute i = i + 1 and jump to step 1-2-2;

[0048] i = 10, v i =v 10 : At this time, D = {7, 8, 9}, and the tail element 9 of the queue is denoted as a. Since v 10 <v 9 , then remove the tail element 9. At this time, D = {7, 8}; Denote the tail element 8 of the queue as a. Since v 10 <v 8 , then remove the tail element 8. At this time, D = {7}; Denote the tail element 7 of the queue as a. Since v 10 =v 7 , jump from step 1-2-2 to step 1-2-3; Denote the head element 7 of the queue as b. Since 7 = 10 - 3, then remove the head element 7. At this time, D = {}, jump from step 1-2-3 to step 1-2-4; Add 10 to the tail of D, D = {10}. Since 10 > 3, denote the head element 10 of the queue as b, and add v 10Add Y, where Y = {v 3 , v 3 , v 3 , v 4 , v 7 , v 7 , v 7 , v 10}; Since 10 < 9 + 3, execute i = i + 1 and jump to step 1 - 2 - 2;

[0049] i = 11, v i = v 11 : At this time, D = {10}. Denote the tail element 10 as a. Since v 11 < v 10 , remove the tail element 10. At this time, D = {}. Jump from step 1 - 2 - 2 to step 1 - 2 - 3 and then to step 1 - 2 - 4; Add 11 to the tail of D, so D = {11}. Since 11 > 3, denote the head element 11 as b. Add v 11 to Y, where Y = {v 3 , v 3 , v 3 , v 4 , v 7 , v 7 , v 7 , v 10 , v 11}; Since 11 < 9 + 3, execute i = i + 1 and jump to step 1 - 2 - 2;

[0050] i = 12, v i = v 12 : At this time, D = {11}. Denote the tail element 11 as a. Since v 12 < v 11 , remove the tail element 11. At this time, D = {}. Jump from step 1 - 2 - 2 to step 1 - 2 - 3 and then to step 1 - 2 - 4; Add 12 to the tail of D, so D = {12}. Since 12 > 3, denote the head element 12 as b. Add v 12 to Y, where Y = {v 3 , v 3 , v 3 , v 4 , v 7 , v 7 , v 7 , v 10 , v 11 , v 12}; Since 12 = 9 + 3, end the step.

[0051] Step 1-2-5. After the above steps 1-2-1, 1-2-2, 1-2-3, and 1-2-4, for the first n + 1 voltage data {v 1 , v 2 ,..., v n+1} in the voltage data sequence V, for each v i , calculate the value of v i - y i respectively, where y i represents the i-th voltage data in the sequence Y. If all are less than the set threshold, it indicates that this voltage steep increase is a battery replacement operation, and record the time x 1 corresponding to the voltage data v k as the battery replacement time.

[0052] For example, finally Y = {6.0, 6.0, 6.0, 6.0, 5.9, 5.9, 5.9, 5.9, 5.8, 5.7}, and there are 10 voltage data in Y. The first 10 voltage data in the voltage data sequence V are {6.1, 6.1, 6.0, 6.0, 6.0, 6.1, 5.9, 6.0, 6.0, 5.9}. The threshold can be set to 0.3, and calculate the value of v i - y i respectively, to get {0.1, 0.1, 0, 0, 0.1, 0.2, 0, 0.1, 0.2, 0.2}. It can be seen that all are less than the set threshold 0.3, which indicates that this voltage steep increase is a battery replacement operation, and record the time x 1 corresponding to the voltage data v k as the battery replacement time for this time.

[0053] In step 1, when the meter shows a voltage steep increase during normal operation, this situation may be due to abnormal AD sampling or a battery replacement operation. To determine which one it is, through the method of this step, collect the voltage data when and after the voltage steep increase, and use the monotonic stack algorithm to make a judgment, that is, the process from step 1-2-1 to step 1-2-5, to realize the automatic judgment of the specific factors of the voltage steep increase situation, without manual calculation, improve the judgment efficiency, and reduce the manual complexity. If it is judged as abnormal AD sampling, it is a normal situation of the meter voltage change. If it is judged as a battery replacement operation, go to step 2.

[0054] Step 2. Perform isotonic regression processing on the voltage data within a battery replacement cycle to obtain an isotonic voltage data sequence.

[0055] Each time the battery replacement time x k is recorded, except for the first record, a battery replacement cycle [x k-1 , x k, then it is necessary to analyze the voltage data within a battery replacement cycle to determine whether there is a problem of high power consumption in the meter. If there is no problem of high power consumption, the voltage data within a battery replacement cycle should satisfy the trend of gradually decreasing. Therefore, in this step, the isotonic regression processing of the voltage data within a battery replacement cycle is first performed.

[0056] Step 2 specifically includes the following steps:

[0057] Step 2-1, record that there are J voltage data within the battery replacement cycle [x k-1 , x k . x k-1 represents the (k - 1)-th battery replacement time, and x k represents the k-th battery replacement time. The voltage data sequence is VJ = {v j} = {v 1 , v 2 ,..., v J}. v j represents the j-th voltage data in the voltage data sequence VJ, where j = 1, 2,..., J; maintain a subscript traversal serial number j = 2; create a subscript serial number set B, and initialize B = {1}; create an isotonic voltage data sequence U, and initialize U = VJ.

[0058] Step 2-2, if j > J, jump to Step 2-3; otherwise, judge if u j ≤ u j-1 , where u j and u j-1 represent the j-th voltage data and the (j - 1)-th voltage data in the sequence U respectively. Clear the elements in B, execute B = {j}, j = j + 1, and execute this step again; if u j > u j-1 , then add j to B, calculate the weighted average voltage data v 0 according to the following formula, and execute u p = v 0 for all elements p ∈ B in B, and execute this step again;

[0059] Among them, u p represents the voltage data with subscript p in the sequence U; represents the weight of u p , and the calculation method is:

[0060] Among them, v p and v p-1 represent the voltage data with subscripts p and p - 1 in the sequence VJ respectively;

[0061] Step 2-3, if the elements in sequence U satisfy u 1 ≥u 2 ≥...≥u J ,where u 1 is the first voltage data in sequence U, u 2 is the second voltage data in sequence U, and u J is the Jth voltage data in sequence U, then this step ends; otherwise, execute B = {1}, j = 2, and jump to Step 2-2.

[0062] As an example, assume that the voltage data sequence within a battery replacement cycle is VJ = {6.1, 6.1, 6.0, 6.0, 6.0, 6.1, 5.9, 6.0}, J = 8. Initially, j = 2, B = {1}, i = 2, and U = VJ = {6.1, 6.1, 6.0, 6.0, 6.0, 6.1, 5.9, 6.0};

[0063] Since 2 < 8 and u 2 =u 1 , clear the elements in B, execute B = {2}, j = j + 1; since 3 < 8 and u 3 <u 2 , clear the elements in B, execute B = {3}, j = j + 1; since 4 < 8 and u 4 =u 5 , clear the elements in B, execute B = {4}, j = j + 1; since 5 < 8 and u 5 =u 4 , clear the elements in B, execute B = {5}, j = j + 1; since 6 < 8 and u 6 >u 5 , add 6 to B. At this time, B = {5, 6}, calculate v 0 when p = 5 and p = 6 respectively, obtain u 5 and u 6 , replace u 5 and u 6 in U with the v 0 values calculated here; determine whether U satisfies u 1 ≥u 2 ≥...≥u J . If it satisfies, end the calculation. If not, reset B = {1}, j = 2, and jump to Step 2-2, and continue the iterative calculation based on the current U until it satisfies u 1 ≥u 2 ≥...≥u J , thus obtaining the ordered voltage data sequence U.

[0064] Obtain the ordered voltage data sequence U = {u 1 ,u 2,..., u J}, minimize the following objective function through the isotonic regression algorithm:

[0065] where u 1 ≥ u 2 ≥... ≥ u J ; is the weight of v j . In this solution, . The calculation method of is as follows: when j = 1, it is assigned as ; when v j is not in the range of [4V, 6.5V], it indicates that the AD sampling must be abnormal, and the weight is assigned as ; in other cases, it is based on the absolute value of the difference between the current AD sampling voltage value and its previous one and normalized to the range of [0, 1].

[0066]

[0067] where v j , v j-1 respectively represent the j-th voltage data and the (j - 1)-th voltage data in the voltage data sequence VJ.

[0068] Step 3, based on the isotonic voltage data sequence, determine whether there is an abnormal situation of high power consumption in the meter. If so, construct a dictionary of the number of voltage occurrences; based on the dictionary of the number of voltage occurrences, determine the time point of high power consumption.

[0069] After the above processing, the voltage data becomes stepped data. As Figure 3 shows the voltage data of a certain abnormal meter after isotonic regression processing within a battery replacement cycle. Next, analyze whether there is a problem of high power consumption in the meter based on the isotonic voltage data sequence U:

[0070] Step 3-1, determine whether it is high power consumption: According to the setting of a conventional meter, the voltage data is sampled once a day for AD. If the number of voltage data in the current battery replacement cycle is less than the set value L (such as L = 270), it can be determined that the meter has a problem of high power consumption and enter Step 3-2.

[0071] Step 3-2, determine the time point of high power consumption anomaly: If it is confirmed as high power consumption, establish a voltage-occurrence times dictionary, traverse the isotonic regression voltage data sequence U, and count the number of times each voltage data is collected. Taking Figure 3 as an example, for instance, the statistical result is:

[0072] {6.2: 69, 6.1: 101, 6.0: 2, 5.9: 3, 5.8: 10, 5.7: 8, 5.6: 8, 5.5: 9, 5.4: 8, 5.3: 10, 5.2: 12, 5.1: 8, 5.0: 6, 4.9: 6, 4.8: 4, 4.7: 1}

[0073] Among them, 6.2V was collected 69 times (c 1 = 69), 6.1V was collected 101 times (c 2 = 101), 6.0V was collected 2 times (c 3 = 2), and the rest will not be elaborated here. Therefore, the sequence of the number of occurrences of voltage data C = {c 1 , c 2 ,..., c K} can be constructed, where c k represents the number of times the k-th voltage data is collected, c = 1, 2,..., K, and K represents the number of voltage data values.

[0074] Perform the following operations on the sequence of the number of occurrences of voltage data C = {c 1 , c 2 ,..., c K}:

[0075] Step 3 - 2 - 1: Initialize the traversal index k = 1, record the length of sequence C as K, set the size of the judgment window as d (d is an even number), create a standard deviation statistical sequence S, and in the initial state, sequence S is empty.

[0076] Step 3 - 2 - 2: Take out the k-th element to the (k + d - 1)-th element {c k , c k+1 ,..., c k+d-1} in sequence C, calculate the standard deviation s of this sequence using the following formula, and add s to sequence S.

[0077]

[0078] Among them, s represents the standard deviation of the sequence {c k , c k+1 ,..., c k+d-1}; c k , c k+1 , c k+d-1 all represent the elements in the sequence {c k , c k+1 ,..., c k+d-1}; represents the sequence {c k , c k+1 ,..., c k+d-1}'s average value; d represents the sequence {c k , c k+1 ,..., c k+d-1} the number of elements in.

[0079] Step 3-2-3, execute k = k + 1. If k < K - d, jump to Step 3-2-2; otherwise, jump to 3-2-4.

[0080] Step 3-2-4, record the subscript corresponding to the maximum value in sequence S as r, execute r = r + d / 2, and for all k < r, execute Σc k , and the obtained value is the time node most likely to have high power consumption.

[0081] For example, if voltage data is recorded once a day, and finally Σc k = 65, then it is determined that there is an abnormal situation of high power consumption on the 65th day.

[0082] As described above, it is only the specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention can easily think of changes or substitutions, which should all be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims

1. A method for determining abnormal power consumption of a meter, characterized in that: It includes the following steps: Step 1: Collect the voltage data of the meter at a fixed time. If there is a sudden increase in voltage in the voltage data, use the monotonic stack algorithm to determine whether the reason for the sudden increase in voltage is AD sampling abnormality or battery replacement operation. If it is a battery replacement operation, record the time of battery replacement and proceed to Step 2; Step 2: Perform isotonic regression processing on the voltage data within a battery replacement cycle to obtain an isotonic voltage data sequence; Step 3: Based on the isotonic voltage data sequence, determine whether there is an abnormal situation of high power consumption in the meter. If so, construct a dictionary of the number of voltage occurrences; Based on the dictionary of the number of voltage occurrences, determine the time point of high power consumption.

2. The method for determining abnormal power consumption of a meter according to claim 1, characterized in that: The specific steps of Step 1 include the following steps: Step 1-1, normal operation: After the meter is powered on, it is in normal operation. The voltage data of the meter is collected at a fixed time. By comparing the current voltage data v i Compared with the last voltage data v i-1 If the difference between i -v i-1 >1V and v i-1 <5V, it is judged that the voltage has entered a sudden increase state and jumps to step 1-2; otherwise, it is still in normal operation; Step 1-2: Voltage sudden increase state: When in the voltage sudden increase state, based on the monotonic stack algorithm, determine whether this voltage sudden increase state is an AD sampling abnormality or a battery replacement operation; if it is determined to be an AD sampling abnormality, return to Step 1-1 and return to the normal operation state; if it is determined to be a battery replacement operation, jump to Step 1-3; Step 1-3, battery replacement state: When the battery replacement state is determined, the time of the voltage surge is recorded as the battery replacement operation time x k After recording is completed, return to step 1-1 and return to normal operation.

3. The method for determining abnormal power consumption of a meter according to claim 2, characterized in that: The specific steps of Step 1-2 include the following steps: Step 1-2-1, record the voltage data sequence collected at n+m moments as V={v i }={v1,v2,...,v n+m },v i Represents the i-th voltage data in the sequence V, i=1,2,...,n+m, n is the number of sampling moments, and m is the window size; the subsequent voltage minimum value sequence of the first n+1 sampled voltages is recorded as Y, and the sequence Y is empty in the initial state; create a double-ended queue D for recording the subscripts of voltage data, and the queue D is empty in the initial state; first select the voltage v1 with subscript i=1 in the sequence V; Step 1-2-2, if queue D is empty, jump to step 1-2-3; otherwise, the tail element of queue D is a, if v i <v a , v a is the voltage data with subscript a in sequence V, then remove the tail element a of queue D and execute this step again; if v i ≥v a , then jump to step 1-2-3; Step 1-2-3: If queue D is empty, jump to Step 1-2-4; if queue D is not empty, record the head element of queue D as b. If b ≤ i - m, remove the head element b of queue D and execute this step again; if b > i - m, jump to Step 1-2-4; Step 1-2-4, add i to the end of queue D. If i < m, execute i = i + 1 and jump to Step 1-2-2; if i ≥ m, then denote the head element of queue D as b, and add v b to sequence Y, where v b is the voltage data at index b in sequence V. Then, if i < n + m, execute i = i + 1 and jump to Step 1-2-2; if i ≥ n + m, then end this step and jump to Step 1-2-5; Step 1-2-5: After the above steps 1-2-1, 1-2-2, 1-2-3 and 1-2-4, for the first n+1 voltage data {v1, v2, ..., v n+1 }, for each v i , calculate v respectively i -y i The value of y i Indicates the i-th voltage data in sequence Y. If all of them are less than the set threshold, it means that the voltage surge is a battery replacement operation, and the time corresponding to the voltage data v1 is recorded as the battery replacement time x k .

4. The method for determining abnormal power consumption of a meter according to claim 1, characterized in that: The specific steps of Step 2 include the following steps: Step 2-1, record the battery replacement cycle [x k-1 ,x k ] There are J voltage data in total, x k-1 represents the k-1th battery replacement time, x k represents the kth battery replacement time, the voltage data sequence is VJ={v j }={v1,v2,...,v J },v j Represent the j-th voltage data in the voltage data sequence VJ, j=1,2,...,J; maintain a subscript traversal number j=2; create a subscript number set B, initialize B={1}; create an order-preserving voltage data sequence U, initialize U=VJ; Step 2-2, if j>J, jump to step 2-3; otherwise, if u j ≤u j-1 ,u j 、u j-1 Respectively represent the j-th voltage data and j-1-th voltage data in sequence U, clear the elements in B, execute B={j}, j=j+1, and execute this step again; if u j >u j-1 , then add j to B, calculate the weighted average voltage data v0 according to the following formula, and perform u for all elements p∈B in B p =v0, execute this step again; Among them, u p Represents the voltage data with subscript p in sequence U; Indicates u p The weight is calculated as: Among them, v p 、v p-1 They represent the voltage data with subscripts p and p-1 in the sequence VJ respectively; Step 2-3, if the elements in sequence U satisfy u1≥u2≥...≥u J , u1 is the first voltage data in sequence U, u2 is the second voltage data in sequence U, u J If it is the J-th voltage data in sequence U, end this step; otherwise, execute B={1}, j=2, and jump to step 2-2.

5. The method for determining abnormal power consumption of a meter according to claim 4, characterized in that: Step 2 further includes the following steps: The sequence-preserving voltage data sequence U={u j }={u1,u2,...,u J },u j represents the jth voltage data in the sequence-preserving voltage data sequence U, j=1,2,...J, J is the number of voltage data in the sequence-preserving voltage data sequence U, and the following objective function f(x) is minimized by the sequence-preserving regression algorithm: Among them, u1≥u2≥...≥u J ; v j The weight of ; The calculation method is as follows: when j=1, the value is ; When v j If it is not in the range of [4V, 6.5V], it means that the AD sampling is abnormal, and the weight assignment is ; In other cases, the absolute value of the difference between the last AD sampling voltage value is used and normalized to the range of [0,1]; Among them, v j 、v j-1 They respectively represent the j-th voltage data and the j-1-th voltage data in the voltage data sequence VJ.

6. The method for determining abnormal power consumption of a meter according to claim 1, characterized in that: The specific steps of Step 3 include the following steps: Step 3-1: Determine whether it is high power consumption: According to the setting, the voltage data is sampled once a day for AD. If the number of voltage data in the current battery replacement cycle is less than the set value L, it can be determined that there is a high power consumption problem in the meter and proceed to Step 3-2; Step 3-2: Determine the time point of high power consumption abnormality: If it is confirmed to be high power consumption, establish a dictionary of voltage - number of occurrences, traverse the isotonic regression voltage data sequence U, and count the number of times each voltage data is collected to form a voltage data number of occurrences sequence C.

7. The method for determining abnormal power consumption of a meter according to claim 6, characterized in that: The specific steps of Step 3-2 include the following steps: Step 3-2-1: Initialize the traversal subscript k = 1, record the length of sequence C as K, set the size of the judgment window as d, d is an even number, create a standard deviation statistical sequence as S, and in the initial state, sequence S is empty; Step 3-2-2, take out the kth element to the k+d-1th element in the sequence C {c k ,c k+1 ,...,c k+d-1 }, calculate the standard deviation s of the sequence using the following formula, and add s to the sequence S; Where s represents the sequence {c k ,c k+1 ,...,c k+d-1 } standard deviation; c k 、c k+1 、c k+d-1 Both represent the sequence {c k ,c k+1 ,...,c k+d-1 } in the element; Represents the sequence {c k ,c k+1 ,...,c k+d-1 }; d represents the average value of the sequence {c k ,c k+1 ,...,c k+d-1 }The number of elements in Step 3-2-3: Execute k = k + 1. If k < K - d, jump to Step 3-2-2, otherwise jump to 3-2-4; Step 3-2-4: Denote the subscript corresponding to the maximum value in sequence S as r, execute r = r + d / 2, and for all k < r, execute Σc k , and the obtained value is the time node when high power consumption occurs.

Citation Information

Patent Citations

  • Monitoring device and monitoring method for health state of storage battery of power distribution automation station

    CN114441983A

  • Power battery consistency anomaly detection method based on real vehicle operation data

    CN117388564A

  • Abnormal discharge detection method for portable mobile power supply

    CN118362932A

  • Device and method for detecting abnormal power consumption of electric appliance

    CN118465413A

  • Direct-current power supply overvoltage and undervoltage diagnosis method and system based on abrupt change type data analysis

    CN118916826A