A method, system and storage medium for detecting abnormality of water meter readings

By checking the cache and historical data of photoelectric direct-reading water meters and combining the differences between the current meter reading and the historical meter reading, early warning information is output, which solves the problem of accuracy in detecting anomalies in photoelectric direct-reading water meters, reduces billing errors, and improves data reliability and user trust.

CN118533275BActive Publication Date: 2024-11-19HANGZHOU JUYUAN INTELLIGENT INSTR CO LTD +1
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202410976984.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-11-19
Estimated Expiration
2044-07-22

AI Technical Summary

Technical Problem

Existing photoelectric direct-reading water meter anomaly detection methods cannot effectively distinguish between normal high usage and abnormal data, leading to billing errors and data accuracy issues.

Method used

By receiving the current water meter reading, checking whether abnormal jump readings are stored in the cache, determining the difference between the current reading and the historical reading, combining historical water usage data to make anomaly judgments, outputting warning information, and updating the abnormal jump readings.

Benefits of technology

Effectively filter out abnormal and fluctuating data, improve data reliability, reduce billing errors, and enhance user trust.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118533275B_ABST
    Figure CN118533275B_ABST
Patent Text Reader

Abstract

The present application discloses a method, system and storage medium for detecting abnormality of water meter readings. The method comprises: upon receiving the current meter base number reported by the water meter at the first moment, checking whether the abnormal jump base number is stored in the cache; in the case where the abnormal jump base number is stored in the cache, judging whether the current meter base number is consistent with the abnormal jump base number; in the case where the current meter base number is inconsistent with the abnormal jump base number, extracting the first historical table base number stored at the second moment from the cache corresponding to the water meter number; in the case where the first historical table base number is greater than the current table base number, marking the current table base number as the first abnormal reverse base number; in the case where the number of the first abnormal reverse base numbers recorded continuously is greater than the first number threshold, outputting the first warning information of the corresponding water meter. Effective abnormality detection of water meter readings is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data collection and self-checking, and in particular to a method, system and storage medium for detecting abnormality of water meter readings. Background Art

[0002] In actual applications, photoelectric direct-reading water meters may produce abnormal vibrations when water flows through the water meter due to assembly problems of the character wheel shaft, improper installation position and method, or differences in water supply methods, causing the character wheel to shake and deviate, thereby causing reading errors. In addition, interference in a strong light environment may also cause abnormal data reading in photoelectric water meters.

[0003] However, the existing technology for anomaly detection of photoelectric direct-reading water meters mainly relies on setting a fixed hourly flow threshold (e.g., the maximum hourly water consumption of a 25-caliber water meter is 10 cubic meters). If the hourly consumption exceeds this threshold, the system will treat it as abnormal data. However, this method cannot fully take into account the differences in water meter calibers and historical water use patterns, which may result in misjudging normal high consumption as abnormal, or fail to accurately identify actual abnormal data, thus affecting the accuracy of bills and energy consumption data.

[0004] In view of the above problems, effective technical solutions are urgently needed. Summary of the invention

[0005] The purpose of this application is to provide a method, system and storage medium for detecting abnormality of water meter readings, which can effectively filter out abnormal jump data and more accurately judge data abnormalities, reduce billing errors caused by excessive abnormal data, and improve data reliability and user trust.

[0006] In a first aspect, the present application provides a method for detecting anomalies in water meter readings, the method comprising:

[0007] When receiving the current meter base number reported by the water meter at the first moment, check whether the abnormal jump base number is stored in the cache;

[0008] In the case where the abnormal jump base number is stored in the cache, determining whether the current table base number is consistent with the abnormal jump base number;

[0009] When the current table base number is inconsistent with the abnormal jump base number, extracting the first historical table base number stored at the second moment from the cache corresponding to the table number of the water meter, the second moment being the previous moment adjacent to the first moment;

[0010] When the base number of the first history table is greater than the base number of the current table, marking the base number of the current table as the first abnormal backward base number;

[0011] When the number of first abnormal reverse running base numbers recorded continuously is greater than a first numerical threshold, the first warning information corresponding to the water meter is output.

[0012] Optionally, after extracting the first history table base number stored at the second moment from the cache according to the table number corresponding to the water meter, the method further includes:

[0013] Calculate the average usage in the first hour based on the current table base and the first historical table base;

[0014] When the first hourly average usage is greater than or equal to the first usage threshold, calculating the hourly maximum usage corresponding to the water meter according to the recorded caliber value and maximum flow rate value of the water meter;

[0015] When the average usage in the first hour is greater than or equal to the maximum usage per hour, the abnormal jump base number in the cache is replaced with the current table base number to update the abnormal jump base number corresponding to the water meter.

[0016] Optionally, after calculating the maximum hourly usage corresponding to the water meter, the method further includes:

[0017] When the average water consumption in the first hour is less than the maximum water consumption per hour, clear the abnormal jump base number, and check whether there is a reference table base number and average water consumption corresponding to the water meter in the cache;

[0018] When the reference table base number and the average water consumption corresponding to the water meter do not exist in the cache, a second historical table base number whose value is less than the current table base number and the corresponding minimum record time within a preset time range is queried, the second historical table base number is marked as a reference table base number and stored in the cache, and the average water consumption is calculated according to the historical table base numbers recorded within the preset time range, and the average water consumption is stored in the cache.

[0019] Optionally, after checking whether the cache contains the reference table base number and the average water consumption corresponding to the water meter, the method further includes:

[0020] When the reference table base number and the average water consumption corresponding to the water meter exist in the cache, the current table base number is compared with the reference table base number;

[0021] In the case where the current table base number is less than the reference table base number, marking the current table base number as the second abnormal backward base number;

[0022] When the number of the continuously recorded second abnormal reverse flow base numbers is greater than the second numerical threshold, the second warning information corresponding to the water meter is output.

[0023] Optionally, after comparing the current table base number with the reference table base number, the method further includes:

[0024] When the current meter base number is greater than the reference meter base number, the average usage for the second hour is calculated based on the current meter base number and the reference meter base number. When the average usage for the second hour is greater than the product of the average water usage and a preset coefficient, the abnormal jump base number in the cache is replaced with the current meter base number to update the abnormal jump base number corresponding to the water meter.

[0025] Optionally, after calculating the average usage in the second hour based on the current meter base number and the reference meter base number, the method further includes:

[0026] When the second hour average usage is less than or equal to the product of the average water usage and the preset coefficient, the integer digit corresponding to the current table base is truncated to a modified table base with the same length as the reference table base, and the third hour average usage is calculated based on the modified table base and the reference table base;

[0027] When the average water consumption in the third hour is less than the average water consumption, the base number of the correction table is stored in the cache.

[0028] Optionally, after calculating the average usage in the third hour based on the modified table base number and the reference table base number, the method further includes:

[0029] When the average usage in the third hour is greater than or equal to the average water usage, the abnormal jump base number in the cache is replaced with the current table base number to update the abnormal jump base number corresponding to the water meter.

[0030] Optionally, the calculation formula for the average usage in the first hour is as follows:

[0031] Average usage in the first hour = (current table base – historical table base) / (first moment – ​​second moment) / 3600.

[0032] In a second aspect, the present application provides a water meter reading anomaly detection method system, the water meter reading anomaly detection method system comprising: a memory and a processor, the memory comprising a program of the water meter reading anomaly detection method, the program of the water meter reading anomaly detection method being executed by the processor to implement the following steps:

[0033] When receiving the current meter base number reported by the water meter at the first moment, check whether the abnormal jump base number is stored in the cache;

[0034] In the case where the abnormal jump base number is stored in the cache, determining whether the current table base number is consistent with the abnormal jump base number;

[0035] When the current table base number is inconsistent with the abnormal jump base number, extracting the first historical table base number stored at the second moment from the cache corresponding to the table number of the water meter, the second moment being the previous moment adjacent to the first moment;

[0036] When the base number of the first history table is greater than the base number of the current table, marking the base number of the current table as the first abnormal backward base number;

[0037] When the number of first abnormal reverse running base numbers recorded continuously is greater than a first numerical threshold, the first warning information corresponding to the water meter is output.

[0038] In a third aspect, the present application provides a computer-readable storage medium, which includes a program for a method for detecting anomalies in water meter readings. When the program for detecting anomalies in water meter readings is executed by a processor, the steps of the method for detecting anomalies in water meter readings are implemented.

[0039] As can be seen from the above, the water meter reading anomaly detection method, system and storage medium provided by the present application, when receiving the current meter base number reported by the water meter at the first moment, checks whether the abnormal jump base number is stored in the cache; when the abnormal jump base number is stored in the cache, determines whether the current table base number is consistent with the abnormal jump base number; when the current table base number is inconsistent with the abnormal jump base number, extracts the first historical table base number stored at the second moment from the cache corresponding to the meter number of the water meter, and the second moment is the previous moment adjacent to the first moment; when the first historical table base number is greater than the current table base number, marks the current table base number as the first abnormal reverse base number; when the number of continuously recorded first abnormal reverse base numbers is greater than the first number threshold, outputs the first warning information corresponding to the water meter. This application can effectively filter out abnormal jump data by combining the recorded abnormal jump base number; by comparing the historical table base number with the current table base number, it can more accurately judge data anomalies, and issue early warnings for continuous abnormal data, promptly reminding back-end personnel of water meter abnormalities, reducing billing errors caused by excessive abnormal data, and improving data reliability and user trust.

[0040] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the embodiments of the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0042] Figure 1 A flow chart of a method for detecting abnormality in water meter readings provided in an embodiment of the present application;

[0043] Figure 2 A flowchart of another method for detecting abnormality of water meter readings provided in an embodiment of the present application;

[0044] Figure 3 A system block diagram of a method for detecting abnormalities in water meter readings provided in an embodiment of the present application. DETAILED DESCRIPTION

[0045] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0046] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so 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 this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0047] Please refer to Figure 1 , is a flow chart of a method for detecting abnormality of water meter readings in some embodiments of the present application. The method for detecting abnormality of water meter readings is used for photoelectric direct reading water meters. The method for detecting abnormality of water meter readings comprises the following steps:

[0048] S101, when receiving the current meter base number reported by the water meter at the first moment, checking whether the abnormal jump base number is stored in the cache;

[0049] S102: if the abnormal jump base number is stored in the cache, determine whether the current table base number is consistent with the abnormal jump base number;

[0050] S103: when the current meter base number is inconsistent with the abnormal jump base number, extracting the first historical table base number stored at a second moment from the cache corresponding to the meter number of the water meter, the second moment being a moment immediately before the first moment;

[0051] S104: When the base number of the first history table is greater than the base number of the current table, marking the base number of the current table as a first abnormal backward base number;

[0052] S105. When the number of first abnormal reverse flow base numbers recorded continuously is greater than a first numerical threshold, output first warning information corresponding to the water meter.

[0053] It should be noted that the current table base number can be the table base number reported in real time according to the set frequency by the water meter, the first moment is the reporting time of the current table base number, and the abnormal jump base number can be the table base number with abnormally increased values ​​in the historical records. By storing the abnormal jump base number, it can be used to quickly determine whether the current table base number has the same historical jump abnormality, reduce the repeated judgment of the same jump abnormality, and improve the judgment efficiency of the jump abnormality. In the case that the current table base number is inconsistent with the recorded abnormal jump base number, the abnormality judgment can continue to be based on the historical water use data, and the data abnormality of the table base number can be accurately identified by combining multiple abnormal judgment mechanisms. When the first historical table base number is greater than the current table base number, it can be regarded as the data fluctuation situation that the water meter may go backwards, and the current table base number can be marked as the first abnormal backward base number. If the multiple table base numbers recorded continuously all go backwards, it can be regarded as the water meter has equipment abnormality, not data fluctuation, and the first warning information needs to be output to remind relevant personnel to conduct abnormal investigation.

[0054] It should be noted that, upon receiving the current meter base number reported by the water meter at the first moment, check whether the abnormal jump base number is stored in the cache; if the abnormal jump base number is stored in the cache, determine whether the current meter base number is consistent with the abnormal jump base number; if the current meter base number is inconsistent with the abnormal jump base number, extract the first historical table base number stored at the second moment from the cache corresponding to the meter number of the water meter, and the second moment is the previous moment adjacent to the first moment; calculate the average usage for the first hour based on the current meter base number and the first historical table base number; if the first historical table base number is greater than the current table base number, mark the current meter base number as the first abnormal reverse base number; if the number of continuously recorded first abnormal reverse base numbers is greater than the first number threshold, output the first warning information corresponding to the water meter. This application can effectively filter out abnormal jump data by combining the recorded abnormal jump base number; by combining the historical table base number with the current table base number to calculate the hourly usage, it can more accurately judge data anomalies, and issue early warnings for continuous abnormal data, promptly reminding back-end personnel of water meter abnormalities, reducing billing errors caused by excessive abnormal data, and improving data reliability and user trust.

[0055] According to an embodiment of the present invention, after the table number corresponding to the water meter is extracted from the cache, the base number of the first history table stored at the second moment is further included:

[0056] Calculate the average usage in the first hour based on the current table base and the first historical table base;

[0057] When the first hourly average usage is greater than or equal to the first usage threshold, calculating the hourly maximum usage corresponding to the water meter according to the recorded caliber value and maximum flow rate value of the water meter;

[0058] When the average usage in the first hour is greater than the maximum usage per hour, the abnormal jump base number in the cache is replaced with the current table base number to update the abnormal jump base number corresponding to the water meter.

[0059] It should be noted that the average usage in the first hour can be calculated based on the following formula:

[0060] Average usage in the first hour = (current table base – historical table base) / (first moment – ​​second moment) / 3600;

[0061] The average usage in the first hour can be used to characterize the average water usage in the most recent time interval. If the average usage in the first hour is greater than the first usage threshold, it can be considered that the current meter base number has not reversed, and it can be further determined whether the current meter base number belongs to other jump situations. The calculation formula for the maximum usage per hour can be as follows:

[0062] Maximum usage per hour = cross section * maximum flow rate * 3600 = (diameter value / 2)^2 * * Maximum flow rate value * 3600, where the maximum flow rate value can be set according to historical measured values, for example, it can be set to 5.7m / s, etc., where the maximum flow rate value can be set according to historical measured values, for example, it can be set to 5.7m / s, etc., where the cross section is the cross section and diameter value of the pipe connected to the water meter, and the maximum flow rate value is the maximum value of the historical measurement per unit time of the pipe connected to the water meter.

[0063] By comparing the average usage in the first hour and the maximum usage per hour, it can be determined whether the current table base number has a jump. If the average usage in the first hour is greater than the maximum usage per hour, it can be considered that the current table base number has a jump abnormality, and the abnormal jump base number in the cache is updated to the current table base number to maintain the timeliness of the abnormal jump base number.

[0064] According to an embodiment of the present invention, after calculating the maximum hourly usage corresponding to the water meter, the method further includes:

[0065] When the average water consumption in the first hour is less than or equal to the maximum water consumption per hour, clear the abnormal jump base number, and check whether there is a reference table base number and average water consumption corresponding to the water meter in the cache;

[0066] When the reference table base number and the average water consumption corresponding to the water meter do not exist in the cache, a second historical table base number whose value is less than the current table base number and the corresponding minimum record time within a preset time range is queried, the second historical table base number is marked as a reference table base number and stored in the cache, and the average water consumption is calculated according to the historical table base numbers recorded within the preset time range, and the average water consumption is stored in the cache.

[0067] It should be noted that if the average usage in the first hour is less than or equal to the maximum usage per hour, it can be regarded that the current table base number has not undergone a large degree of jump, and the reference data generated based on historical data can be continued to be combined to determine whether the current table base number has undergone a small degree of jump. By checking whether there is a reference table base number and average water consumption corresponding to the water meter in the cache, it can be determined whether the cache has generated reference base data based on historical data. If the reference table base number and average water consumption corresponding to the water meter do not exist in the cache, it can be regarded as being unable to continue the jump judgment of the current table base number, and the current abnormal jump process can be terminated. At the same time, a data query within a preset time range is performed to generate a reference table base number and an average water consumption. The preset time range can be 5 days, 10 days or 15 days. Within the preset time range, the data with the earliest time and a value less than the current table base number can be used as the reference table base number to characterize the minimum water meter cumulative flow, and the average value of all historical table base numbers within the preset time range is calculated to obtain the average water consumption. By storing the reference meter base number and the average water consumption in the cache, reference data can be provided for the next judgment on whether a small jump occurs in the current meter base number, which is conducive to improving the accuracy of the jump judgment.

[0068] According to an embodiment of the present invention, after checking whether there is a reference table base number and an average water consumption corresponding to the water meter in the cache, the method further includes:

[0069] When the reference table base number and the average water consumption corresponding to the water meter exist in the cache, the current table base number is compared with the reference table base number;

[0070] In the case where the current table base number is less than the reference table base number, marking the current table base number as the second abnormal backward base number;

[0071] When the number of the continuously recorded second abnormal reverse flow base numbers is greater than the second numerical threshold, the second warning information corresponding to the water meter is output.

[0072] It should be noted that the cache contains the reference table base number and the average water consumption corresponding to the water meter, and the judgment can continue to be made whether the current table base number has undergone a small degree of jump. If the current table base number is smaller than the reference table base number, it means that the cumulative flow of the water meter has not increased but decreased instead. This can be regarded as a data fluctuation that may have caused the water meter to reverse. The current table base number can be marked as the second abnormal reverse base number. If multiple consecutively recorded table base numbers all reverse, it can be regarded as an equipment abnormality in the water meter, not a data fluctuation, and a second warning information output is required to remind relevant personnel to conduct abnormality investigation.

[0073] According to an embodiment of the present invention, after comparing the base number of the current table with the base number of the reference table, the method further includes:

[0074] When the current meter base number is greater than the reference meter base number, the average usage for the second hour is calculated based on the current meter base number and the reference meter base number. When the average usage for the second hour is greater than the product of the average water usage and a preset coefficient, the abnormal jump base number in the cache is replaced with the current meter base number to update the abnormal jump base number corresponding to the water meter.

[0075] It should be noted that if the current table base is greater than the reference table base, the average usage in the second hour can be used to further determine whether a jump occurs. The preset coefficient can be obtained by numerically fitting the corresponding relationship between the average usage and the average usage in the second hour through historical statistical data, which is not limited in this application. The average usage in the second hour is greater than the product of the average water usage and the preset coefficient, which can be regarded as a small degree of jump in the current table base. The abnormal jump base in the cache can be replaced with the current table base, and the record of the abnormal jump base can be updated to provide an effective reference for the next abnormal jump judgment.

[0076] According to an embodiment of the present invention, after calculating the average usage in the second hour based on the current meter base number and the reference meter base number, the method further includes:

[0077] When the average usage in the second hour is less than or equal to the product of the average water usage and the preset coefficient, if the integer digits corresponding to the current table base are the same length as the integer digits corresponding to the reference table base, the current table base is stored in the cache.

[0078] It should be noted that if the average usage in the second hour is less than or equal to the product of the average water usage and the preset coefficient, it can be regarded that the current meter base number has not undergone a significant numerical jump. The length of the integer digit corresponding to the current meter base number and the integer digit corresponding to the reference meter base number can be judged. If the lengths are the same, the current meter base number can be regarded as a normal water meter reading and can be stored directly.

[0079] According to an embodiment of the present invention, when the second hourly average water consumption is less than or equal to the product of the average water consumption and a preset coefficient, the method further includes:

[0080] If the integer digits corresponding to the current table base are different in length from the integer digits corresponding to the reference table base, the integer digits corresponding to the current table base are truncated to a revised table base with the same length as the reference table base, and the average usage for the third hour is calculated based on the revised table base and the reference table base;

[0081] When the average water consumption in the third hour is less than the average water consumption, the base number of the correction table is stored in the cache.

[0082] It should be noted that the length of the integer digits corresponding to the current meter base number is different from that of the integer digits corresponding to the reference meter base number, indicating that the current meter base number is an acceptable upward fluctuation of the water meter value, and the water meter reading within the normal range can be obtained through correction. By truncating the integer digits corresponding to the current meter base number to a corrected meter base number with the same length as the reference meter base number, it can be helpful to control the current meter base number within a reasonable range of values, and by comparing the corrected meter base number with the average usage in the third hour, it can be determined whether the correction is reasonable. If the average usage in the third hour is less than the average water usage, the result of the correction can be regarded as reasonable correction data, and the corrected meter base number can be stored in the cache as historical data for subsequent data statistics or bill calculations.

[0083] Optionally, the first numerical threshold, the second numerical threshold, and the first usage threshold in the embodiment of the present application can be predicted based on the pre-trained large model according to the historical abnormal data and the historical flow data. Optionally, the abnormal jump data and flow data obtained by real-time measurement can be added to the training data of the large model, and the large model can be retrained to obtain a new large model, and the first numerical threshold, the second numerical threshold, and the first usage threshold are updated according to the updated large model to improve the accuracy of abnormality detection.

[0084] Figure 2 A flowchart of another method for detecting abnormality of water meter readings provided in an embodiment of the present application is shown in FIG. Figure 2As shown, after the abnormality detection process is started, the bottom data of the water meter can be read to obtain the latest abnormal data. If the bottom data is the same as the latest abnormal data, it is determined that there is a data jump and the abnormality detection process ends; then, the latest bottom data is obtained. If there is no latest bottom data, it means that the water meter has just started and the abnormality detection process ends; if there is the latest bottom data, the hourly usage is calculated. If the hourly usage is less than 0, it is determined that the water meter is running backwards and the abnormality detection process ends; if the hourly usage is not less than 0, the hourly maximum usage is calculated according to the caliber. If the hourly maximum usage is greater than or equal to the hourly maximum usage threshold, it is determined that there is a data jump and the abnormality detection process ends; if the hourly maximum usage is not greater than the hourly maximum usage threshold, the latest reference value and the last reference value data continue to be obtained. If the latest reference value and the last reference value data do not exist, the farthest data within 15 days is obtained to calculate the reference value data; if the latest reference value and the last reference value data are If the data exists, determine whether the current data time is earlier than the reference value data time. If the current data time is earlier than the reference value data time, determine whether the current value of the data at the bottom of the table is greater than the reference value. If the current value is greater than the reference value, determine that the data is reversed, and the abnormal detection process ends; if the current data time is not earlier than the reference value data time, and the current value is not greater than the reference value, calculate the hourly average usage; if the hourly average usage is greater than the reference value average usage * the preset coefficient, determine that there is a data jump, and the abnormal detection process ends; in addition, after calculating the hourly average usage, you can continue to determine whether the integer digits of the current value are equal to the integer digits of the reference value. If the integer digits of the current value are equal to the integer digits of the reference value, the abnormal detection process ends; if the integer digits of the current value are not equal to the integer digits of the reference value, then the current value is truncated and the comparison usage is calculated. If the current value exceeds the threshold, the table code is corrected and the abnormal detection process ends; if the current value does not exceed the threshold, the abnormal detection process ends directly.

[0085] The present application also provides a method system for detecting abnormality of water meter readings. Figure 3 A system block diagram of a method for detecting abnormality of water meter readings is shown. The system includes a memory 21 and a processor 22. The memory includes a program of the method for detecting abnormality of water meter readings. When the program of the method for detecting abnormality of water meter readings is executed by the processor, the following steps are implemented:

[0086] S101, when receiving the current meter base number reported by the water meter at the first moment, checking whether the abnormal jump base number is stored in the cache;

[0087] S102: if the abnormal jump base number is stored in the cache, determine whether the current table base number is consistent with the abnormal jump base number;

[0088] S103: when the current meter base number is inconsistent with the abnormal jump base number, extracting the first historical table base number stored at a second moment from the cache corresponding to the meter number of the water meter, the second moment being a moment immediately before the first moment;

[0089] S104: When the base number of the first history table is greater than the base number of the current table, marking the base number of the current table as a first abnormal backward base number;

[0090] S105. When the number of first abnormal reverse flow base numbers recorded continuously is greater than a first numerical threshold, output first warning information corresponding to the water meter.

[0091] It should be noted that, when receiving the current table base number reported by the water meter at the first moment, check whether the abnormal jump base number is stored in the cache; when the abnormal jump base number is stored in the cache, determine whether the current table base number is consistent with the abnormal jump base number; when the current table base number is inconsistent with the abnormal jump base number, extract the first historical table base number stored at the second moment from the cache corresponding to the table number of the water meter, and the second moment is the previous moment adjacent to the first moment; when the first historical table base number is greater than the current table base number, mark the current table base number as the first abnormal reverse base number; when the number of first abnormal reverse base numbers recorded continuously is greater than the first number threshold, output the first warning information corresponding to the water meter. This application can effectively filter out abnormal jump data by combining the recorded abnormal jump base number; by comparing the historical table base number with the current table base number, it can more accurately judge data anomalies, and issue warnings for continuous abnormal data, timely reminding the background personnel of the abnormality of the water meter, reducing billing errors caused by too much abnormal data, and improving data reliability and user trust.

[0092] The present invention also provides a computer-readable storage medium, which includes a water meter reading anomaly detection method program. When the water meter reading anomaly detection method program is executed by a processor, the steps of the water meter reading anomaly detection method are implemented.

[0093] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0094] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0095] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0096] Those skilled in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a readable storage medium. When the program is executed, it executes the steps of the above method embodiments; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), disks or optical disks, and other media that can store program codes.

[0097] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.

Claims

1. A method for detecting abnormality of water meter readings, characterized in that: The method comprises: When receiving the current meter base number reported by the water meter at the first moment, check whether the abnormal jump base number is stored in the cache; In the case where the abnormal jump base number is stored in the cache, determining whether the current table base number is consistent with the abnormal jump base number; When the current table base number is inconsistent with the abnormal jump base number, extracting the first historical table base number stored at the second moment from the cache corresponding to the table number of the water meter, the second moment being the previous moment adjacent to the first moment; When the base number of the first history table is greater than the base number of the current table, marking the base number of the current table as the first abnormal backward base number; When the number of first abnormal reverse running base numbers recorded continuously is greater than a first numerical threshold, the first warning information corresponding to the water meter is output.

2. A method for detecting abnormality of water meter readings according to claim 1, characterized in that: After the table number corresponding to the water meter is extracted from the cache, the base number of the first history table stored at the second moment is further included: Calculate the average usage in the first hour based on the current table base and the first historical table base; When the first hourly average usage is greater than or equal to the first usage threshold, the maximum hourly usage corresponding to the water meter is calculated according to the recorded caliber value and maximum flow rate value of the water meter; When the average usage in the first hour is greater than the maximum usage per hour, the abnormal jump base number in the cache is replaced with the current table base number to update the abnormal jump base number corresponding to the water meter.

3. A method for detecting abnormality of water meter readings according to claim 2, characterized in that: After calculating the maximum hourly usage corresponding to the water meter, the method further includes: When the average water consumption in the first hour is less than or equal to the maximum water consumption per hour, clear the abnormal jump base number, and check whether there is a reference table base number and average water consumption corresponding to the water meter in the cache; When the reference table base number and the average water consumption corresponding to the water meter do not exist in the cache, a second historical table base number whose value is less than the current table base number and the corresponding minimum record time within a preset time range is queried, the second historical table base number is marked as a reference table base number and stored in the cache, and the average water consumption is calculated according to the historical table base numbers recorded within the preset time range, and the average water consumption is stored in the cache.

4. A method for detecting abnormality of water meter readings according to claim 3, characterized in that: After checking whether there is a reference table base number and an average water consumption corresponding to the water meter in the cache, the method further includes: When the reference table base number and the average water consumption corresponding to the water meter exist in the cache, the current table base number is compared with the reference table base number; In the case where the current table base number is less than the reference table base number, marking the current table base number as the second abnormal backward base number; When the number of the continuously recorded second abnormal reverse flow base numbers is greater than the second numerical threshold, the second warning information corresponding to the water meter is output.

5. A method for detecting abnormality of water meter readings according to claim 4, characterized in that: After comparing the current table base number with the reference table base number, the method further includes: When the current meter base number is greater than the reference meter base number, the average usage for the second hour is calculated based on the current meter base number and the reference meter base number. When the average usage for the second hour is greater than the product of the average water consumption and a preset coefficient, the abnormal jump base number in the cache is replaced with the current meter base number to update the abnormal jump base number corresponding to the water meter.

6. A method for detecting abnormality of water meter readings according to claim 5, characterized in that: After calculating the average usage in the second hour based on the current meter base number and the reference meter base number, the method further includes: When the average usage in the second hour is less than or equal to the product of the average water usage and the preset coefficient, if the integer digits corresponding to the current table base are the same length as the integer digits corresponding to the reference table base, the current table base is stored in the cache.

7. A method for detecting abnormality of water meter readings according to claim 6, characterized in that: When the second hour average water consumption is less than or equal to the product of the average water consumption and a preset coefficient, the method further includes: If the integer digits corresponding to the current table base are different in length from the integer digits corresponding to the reference table base, the integer digits corresponding to the current table base are truncated to a revised table base with the same length as the reference table base, and the average usage for the third hour is calculated based on the revised table base and the reference table base; When the average water consumption in the third hour is less than the average water consumption, the base number of the correction table is stored in the cache.

8. A method for detecting abnormality of water meter readings according to any one of claims 2 to 7, characterized in that: The calculation formula for the average consumption in the first hour is as follows: Average usage in the first hour = (current table base – historical table base) / (first moment – ​​second moment) / 3600.

9. A water meter reading anomaly detection system, characterized in that: The water meter reading abnormality detection system comprises: a memory and a processor, wherein the memory comprises a program of a water meter reading abnormality detection method, and when the program of the water meter reading abnormality detection method is executed by the processor, the following steps are implemented: When receiving the current meter base number reported by the water meter at the first moment, check whether the abnormal jump base number is stored in the cache; In the case where the abnormal jump base number is stored in the cache, determining whether the current table base number is consistent with the abnormal jump base number; When the current table base number is inconsistent with the abnormal jump base number, extracting the first historical table base number stored at the second moment from the cache corresponding to the table number of the water meter, the second moment being the previous moment adjacent to the first moment; When the base number of the first history table is greater than the base number of the current table, marking the base number of the current table as the first abnormal backward base number; When the number of first abnormal reverse running base numbers recorded continuously is greater than a first numerical threshold, the first warning information corresponding to the water meter is output.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a water meter reading anomaly detection method program, and when the water meter reading anomaly detection method program is executed by a processor, the steps of the water meter reading anomaly detection method according to any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Abnormal water consumption detection method and database server

    CN108595687A

  • Meter abnormal data detection method and device, meter and readable storage medium

    CN111612647A

  • Abnormal alarm method, device, equipment, medium and product

    CN114201372A

  • Water source water supply data acquisition method and system, storage medium and intelligent terminal

    CN114877964A

  • Water meter data analysis method and system and readable storage medium

    CN115545058A