Intelligent water meter data coding method and water consumption characteristic fine analysis method
Through partitioning and binary data encoding methods, the problem of uploading restrictions on intelligent water meter data is solved, refined water use characteristics analysis is realized, leakage warning and user health analysis is supported, data transmission efficiency and battery service life are improved.
Patent Information
- Application Number
- CN202510703211.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-29
- Publication Date
- 2025-07-01
- Estimated Expiration
- 2045-05-29
AI Technical Summary
During the data upload process of existing smart water meter, due to battery capacity limitations, the water use time period and frequency cannot be recorded in detail, resulting in the data volume exceeding the limit, affecting the battery service life. At the same time, it is impossible to conduct a refined analysis of user water use characteristics.
The partition and binary data encoding method are used to divide the storage area into two parts that record water consumption and water consumption. M bytes and N bytes are used to record the water consumption and water consumption period information every 24/M hours, and the water consumption period information is recorded using binary data bits to represent the water consumption, and the data storage format is optimized to transmit more information in a data packet.
It achieves a refined analysis of water usage characteristics without affecting the life of the water meter battery, providing richer water usage information, supporting leakage warning, user health warning and life pattern analysis, and reducing leakage rate.
Smart Images

Figure CN120238773A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a method for encoding intelligent water meter data and a method for refined analysis of water consumption characteristics, belonging to the technical fields of intelligent water meters and data representation. Background Art
[0002] Currently, more and more water supply companies install NB-ioT intelligent remote water meters for meter reading and charging management. During use, the analysis of water consumption data has received increasing attention. However, limited by the battery capacity and service life of the water meter, it can only be connected to the network once a day to upload a data packet. After removing fields such as the packet header, packet tail, battery power, and check code from this data packet, the remaining number of bytes for data storage is generally between 50 and 100, which is mostly used to collect hourly water consumption data. Because there is no more detailed information on water use time periods and frequencies, it is impossible to conduct refined analysis of user water consumption characteristics.
[0003] If more accurate records of water use time periods and frequencies are required, then it is necessary to sequentially record the "start time, end time, and water consumption" of each water use. Due to the uncertainty of the actual number of water uses by users, if the water use is frequent, the data volume will exceed the limit, and it is necessary to increase the data upload time, which affects the battery service life. Summary of the Invention
[0004] The purpose of the present invention is to overcome the above deficiencies and provide a method for encoding intelligent water meter data, which can obtain richer water consumption characteristic information without affecting the designed service life of the water meter battery.
[0005] The technical solution adopted by the present invention is as follows: A method for encoding intelligent water meter data includes the following steps: S1. Determine the data transmission format and data storage area of the intelligent water meter, and the storage area capacity is C bytes; S2. Divide the storage area into two parts. One part records the water consumption of each time period of a day. This part of the storage area has M bytes, and sequentially records the water consumption data Q every 24 / M hours i , where i = 1~M, Q i =Q i末 -Q i初 , Q i末 is the water meter reading value at the end of this time period, and Q i初 is the water meter reading value at the beginning of this time period, and M water consumption data can be recorded; S3. Use N bytes of the other part of the storage area to record whether there is water use in each water use time period of a day. Binary data bits are used, and the water use situation is represented by the state "0" or "1" of the corresponding data bit. 0 indicates that there is no water use in this time period, and 1 indicates that there is water use in this time period. 8N binary data can be recorded, that is, the water use situation of 8N consecutive time periods can be recorded; S4. Store and upload data.
[0006] In the above method, preferably N=CM in step S3.
[0007] In step S3, the N bytes contain N×8Bit=8N binary data bits. After the total daily duration is evenly divided according to the data bits, the water usage situation in the water usage period can be accurately recorded to 24×60min÷8N=180 / Nmin.
[0008] The storage area capacity C of step S1 is preferably 60 to 96 bytes.
[0009] Another object of the present invention is to provide a method for fine-grained analysis of water use characteristics, comprising the steps of the above-mentioned smart water meter data encoding method, and further comprising: (1) Read the uploaded data through computer software and count the water consumption Q in each period of 24 / M hours. i , where i=1~M; count the number of time periods n with water use in a 24 / M hour period i , the estimated water consumption information for each water use period within the 24 / M-hour water use period can be obtained, and the calculation formula is as follows: M i =Q i / n i Among them, M i Q is the average water consumption in each water-using period within a 24 / M hour period; i is the water consumption in a 24 / M hour period; n i The number of water use periods in a 24 / M hour period; (2) The number of times water is used in different water use periods in a day is compared with the average number of times water is used in different water use periods before, and the health status of the user is analyzed. A sudden increase or decrease in the frequency of water use, especially an increase in the frequency of water use at night, reflects the health risks of the user. Irregularity in the frequency and amount of water use of elderly people living alone indicates that the elderly may have physical abnormalities. Delays or no water use during the regular water use period of elderly people living alone indicate that the elderly may fall ill. By comparing the number of water use times and average water consumption in different time periods of a day with the average number of water use times and average water consumption in previous time periods, we can analyze the user's life patterns and behaviors. If the normal water use time period and water consumption patterns of stable working residents change significantly, it means that the residents are not working normally. If the daily water use frequency and water consumption of residents increase exponentially, it is judged that there are people gathering in the household. If the user uses water at all times of the day and there is a continuous and relatively small amount of water used when the user uses water infrequently at night, there may be a leakage problem in the user's water pipeline.
[0010] A refined water usage feature analysis system includes an NB-ioT data encoding module for water meters, which divides the storage area according to the storage area capacity C and includes two parts. One part records the water usage amounts at each time period of a day. This part of the storage area has M bytes and sequentially records the water usage data Q every 24 / M hours i , where i = 1~M, and M water usage data can be recorded; the other part of the storage area with N bytes is used to record whether there is water usage information at each water usage time period of a day. Binary data bits are used, and the water usage situation is represented by the state "0" or "1" of the corresponding data bit. 0 indicates that there is no water usage situation in this time period, and 1 indicates that there is a water usage situation in this time period. The water usage situations of 8N consecutive time periods can be recorded; A data storage and upload module for saving and uploading the encoded NB-ioT data; A data reading and water usage feature information statistical calculation module for reading the uploaded data and, according to the statistics, for each 24 / M-hour time period, the water usage amount Q of each time period i , where i = 1~M; and the number of time periods n with water usage within the 24 / M-hour time period is statistically calculated i , and the average water usage amount of each water usage time period within the 24 / M-hour water usage time period can be obtained; A refined water usage feature analysis module for comparing the hourly water usage information, water usage time period information, and estimated water usage amount information of each time period of the water usage feature information of the current day with the previous information to perform user health status analysis, user living pattern and behavior analysis, and leakage warning analysis.
[0011] The beneficial effects of the present invention are: Through the partitioned and binary data encoding storage method, the present invention can obtain hourly water usage information, water usage time period information, estimated water usage amount information of each time period, etc., improve the refined water usage time period data analysis ability, and can analyze the water usage pattern more accurately; not only obtain richer water usage feature information, but also be able to transmit it within one data packet without affecting the designed service life of the water meter battery.
[0012] Based on the obtained water usage time period and water usage amount information, the present invention can perform refined water usage feature analysis of users, such as providing timely and accurate leakage warning services to avoid large losses when there is leakage in the user's meter; providing water theft warning for the water supply company to reduce the leakage rate; providing health warning for users; providing early warning of abnormal physical conditions for elderly people living alone; providing public services such as the living pattern characteristics of householders, people going out, indoor people gathering, and house occupancy rate for community management. Description of the Drawings
[0013] Figure 1 It is a flowchart of the method for refined analysis of water usage characteristics in the embodiments of the present invention; Figure 2 It is a range diagram of the data storage area of the present invention; Figure 3 It is a content diagram of the data storage of the present invention; Figure 4 It is an hourly water consumption information diagram of the present invention; Figure 5 It is a water usage period information diagram of the present invention; Figure 6 It is an estimated water consumption information diagram for each period of the present invention. Specific embodiments
[0014] The present invention will be described in detail below in conjunction with the accompanying drawings and embodiments.
[0015] Embodiment 1 A method for refined analysis of water usage characteristics, (see Figure 1 ) The steps are as follows: (1) Intelligent water meter data coding method S1. According to the requirements of the NB-ioT data transmission and analysis software, determine the data transmission format, determine the data storage area, and the storage area capacity is C bytes: The data storage area range of this embodiment is a total of 96 bytes, as Figure 2 shown.
[0016] S2. Divide the storage area into two parts. One part records the water consumption in each period of a day. This part of the storage area has M bytes, and the water consumption data Q is recorded in sequence every 24 / M hours i , where i = 1~M, Q i = Q i末 - Q i初 , Q i末 is the water meter code value at the end of the period, Q i初 is the water meter code value at the beginning of the period, and M water consumption data can be recorded: In this embodiment, 24 bytes are the hourly water consumption storage area, and the hourly water consumption data Q i , i = 0~23, Q i = Q i末 - Q i初 , Q i末 is the water meter code value at the end of the period, Q i初 is the water meter code value at the beginning of the period.
[0017] S3. Use N bytes of another storage area to record whether there is water usage information during each water usage period of a day. Binary data bits are adopted, and the water usage situation is represented by the state "0" or "1" of the corresponding data bit. 0 indicates that there is no water usage situation in this period, and 1 indicates that there is water usage in this period. 8N binary data can be recorded, that is, the water usage situation of 8N consecutive periods can be recorded: In this embodiment, N = C - M, and the remaining 25 to 96 bytes are used to record whether there is water usage information during each water usage period of the whole day, which are represented by the states "0" and "1" of the corresponding data bits respectively. 0 indicates that there is no water usage situation in this period, and 1 indicates that there is water usage in this period. For example, if 72 bytes are used, it contains 72×8Bit = 576 binary data bits. After the total daily duration is evenly divided by the data bits, the water usage period record can be accurate to 24×60min÷576 = 2.5min.
[0018] That is, starting from 0:00, once every 2.5 minutes, according to whether there is water usage, the data bits in the storage area are assigned values in turn. For example: First, judge whether there is water usage between 0:00:00 and 0:02:30 (the judgment method can be but is not limited to, when the instantaneous flow value collected by the intelligent water meter > 0.01m³ / h, it is determined that there is water usage, otherwise it is determined that there is no water usage), and assign a value to the first bit of the first byte in the water usage status storage area. If it is determined that there is no water usage, this bit is assigned 0; if it is determined that there is water usage, this bit is assigned 1; and so on until 23:57:30 to 0:00. According to whether there is water usage, the 7th bit of the 72nd byte is assigned, and the data collection of the water usage situation in a day's period is completed, and the water usage period characteristic information with a resolution of 2.5 minutes is obtained.
[0019] Contents of each byte of data: Hourly water usage data: For example, the water usage from 0:00 to 1:00 is 12L, the water usage from 1:00 to 2:00 is 0L,... the water usage from 22:00 to 23:00 is 36L, and the water usage from 23:00 to 0:00 is 5L. The water usage data for 24 hours of the whole day is stored in the 1st to 24th bytes of the corresponding storage area in sequence.
[0020] Water usage record for the period: If there is no water usage between 0:00 and 0:02:30, the 0th data bit of the 25th byte in the corresponding storage area is assigned "0"; if there is no water usage between 0:02:30 and 0:05:00, the 1st data bit is assigned "0"; if there is water usage between 0:05:00 and 0:07:30, the 3rd data bit is assigned "1", and so on until 23:57:30 to 0:00, with a total of 72 bytes and 576 bit status data.
[0021] The hexadecimal format of each byte of data is as follows: byte 25 is 22, byte 26 is 0, byte 95 is CE, byte 96 is 40, and the data storage content is as Figure 3 shown: (2)Statistical calculation of water usage characteristic information: After the computer receives the data packet, it decodes using the storage mechanism and calculates through the parsing method to obtain the water usage characteristic information of the day: such as hourly water usage information, water usage time period information, and estimated water usage information for each time period, as Figures 4-6 shown.
[0022] Read the uploaded data through computer software, and count the water usage Q of each time period in every 24 / M hour period i , where i = 1~M; count the number of time periods n with water usage within the 24 / M hour period i , and the estimated water usage information for each water usage time period within the 24 / M hour water usage time period can be obtained. The calculation formula is as follows: M i =Q i / n i where M i is the average water usage of each water usage time period within every 24 / M hour period; Q i is the water usage within every 24 / M hour period; n i is the number of water usage time periods within the 24 / M hour period.
[0023] (3)Refined analysis of water usage characteristics: Compare the number of water usage times in different water usage time periods within a day with the average number of water usage times in different water usage time periods within the past six months to analyze the user's health status. A sudden increase or decrease in the water usage frequency, especially an increase in the water usage frequency at night, reflects a risk to the user's health. Irregularities in the water usage frequency and water volume of a solitary elderly person indicate that the elderly person may have physical abnormalities. A delay or non-water usage in the regular water usage time period of a solitary elderly person indicates that the elderly person may be ill; Furthermore, compare the number of water usage times and the average water usage volume per time in different time periods within a day with the average number of water usage times and the average water usage volume per time in each time period within the past six months to conduct user's living pattern and behavior analysis. Obvious changes in the normal water usage time period and water volume pattern of a household with a stable job indicate that the household is not working normally; when the daily water usage frequency and volume of a household increase exponentially, it is judged that there is a situation of people gathering indoors; Furthermore, if the user uses water in all time periods within a day and there is continuous and relatively small water usage when the user does not use water frequently at night, there may be a leakage problem in the user's water pipeline.
[0024] Embodiment 2 A refined water usage feature analysis system, including an NB-ioT data encoding module for water meters, which divides the storage area according to the storage area capacity C and includes two parts. One part records the water consumption in each period of a day. This part of the storage area has M bytes and sequentially records the water consumption data Q every 24 / M hours i , where i = 0~M, and M water consumption data can be recorded; the other part of the storage area has N bytes and is used to record whether there is water usage information in each water usage period of a day. Binary data bits are used, and the water usage situation is represented by the state "0" or "1" of the corresponding data bit. 0 indicates that there is no water usage in this period, and 1 indicates that there is water usage in this period. The water usage situation of 8N consecutive periods can be recorded; A data storage and upload module for saving and uploading the encoded NB-ioT data; A data reading and water usage feature information statistical calculation module for reading the uploaded data and, according to the statistics, in each 24 / M-hour period, the water consumption Q i , where i = 1~M; statistically calculate the number n of periods with water usage within the 24 / M-hour period i , and the average water consumption of each water usage period within the 24 / M-hour water usage period can be obtained; A refined water usage feature analysis module for comparing the hourly water consumption information, water usage period information, and estimated water consumption information of each period of the water usage feature information of the current day with the previous information to conduct user health status analysis, user living pattern and behavior analysis, and leakage warning analysis.
[0025] The above is only the specific implementation manner of the present invention and is not used to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A data encoding method for an intelligent water meter, characterized in that It includes the following steps: S1. Determine the data transmission format and data storage area of the intelligent water meter. The storage area capacity is C bytes; S2. Divide the storage area into two parts. One part records the water consumption in each period of a day. This part of the storage area has M bytes and sequentially records the water consumption data Q every 24 / M hours i , where i = 1~M, Q i =Q i末 -Q i初 , Q i末 is the water meter reading value at the end of this period, and Q i初 is the water meter reading value at the beginning of this period. M water consumption data can be recorded S3. Use N bytes of another part of the storage area to record whether there is water usage information in each water usage period of a day. Binary data bits are adopted, and the water usage situation is represented by the corresponding data bit status "0" or "1". 0 indicates that there is no water usage in this period, and 1 indicates that there is water usage in this period. 8N binary data can be recorded, that is, the water usage situation of 8N consecutive periods can be recorded; S4. Store and upload the data.
2. The intelligent water meter data encoding method according to claim 1, characterized in that, The storage area capacity C in step S1 is 60-96 bytes.
3. The method for encoding intelligent water meter data according to claim 1, wherein In step S3, N = C - M.
4. The intelligent water meter data encoding method according to claim 1, characterized in that, In step S3, N bytes contain N×8Bit = 8N binary data bits. After the total daily duration is evenly divided by the data bits, the water usage situation of water usage periods accurate to 24×60min÷8N = 180 / N min can be recorded.
5. The method for encoding intelligent water meter data according to claim 1, characterized in that, In step S3, when the instantaneous flow value collected by the intelligent water meter > 0.01m³ / h, it is determined that there is water usage.
6. A refined analysis method for water use characteristics, characterized in that It includes the steps of the intelligent water meter data coding method described in any one of claims 1-5, and further includes: (1) Read the uploaded data through computer software, and count the water consumption Q of each period in every 24 / M-hour period, where i = 1~M; count the number of periods with water consumption n within the 24 / M-hour period. i i In this way, within the water consumption periods of 24 / M hours, the estimated water consumption information for each water consumption period can be obtained, and the calculation formula is as follows: M i =Q i / n i Where M i is the average water consumption for each water-using period within a certain 24 / M-hour period; Q i is the water consumption within a certain 24 / M-hour period; n i is the number of water-using periods existing within the 24 / M-hour period; (2) Compare the water usage times in different water usage periods within a day obtained with the average water usage times in previous different water usage periods to analyze the user's health status; Or compare the water usage times in different periods within a day obtained with the average water usage amount each time with the average water usage times and average water usage amount each time in previous periods to conduct user life pattern and behavior analysis; Or analyze whether there is a leakage problem based on whether there are continuous and relatively small water usage amounts in the water usage times and average water usage amount each time in different periods within a day obtained.
7. A refined analysis system for water use characteristics, characterized in that, It includes an NB-ioT data encoding module for water meters, which divides the storage area according to the storage area capacity C and includes two parts. One part records the water consumption in each period of a day. This part of the storage area has M bytes and sequentially records the water consumption data Q every 24 / M hours i , where i = 1~M, and M water consumption data can be recorded; the other part of the storage area with N bytes is used to record whether there is water consumption information in each water consumption period of a day. Binary data bits are adopted, and the water consumption situation is represented by the state "0" or "1" of the corresponding data bit. 0 indicates that there is no water consumption situation in this period, and 1 indicates that there is water consumption in this period. The water consumption situation of 8N consecutive periods can be recorded The data storage and upload module is used to save and upload the encoded NB-ioT data; A data reading and water consumption characteristic information statistical calculation module, which is used to read the uploaded data and calculate the water consumption Q of each time period in every 24 / M-hour period according to the statistics i , where i = 1~M; count the number of time periods n with water consumption within the 24 / M-hour period i , and the average water consumption of each water-using time period within the 24 / M-hour water-using time period can be obtained; The refined water usage feature analysis module is used to conduct user health status analysis, user life pattern and behavior analysis, and leakage warning analysis by comparing the water usage feature information (hourly water usage information, water usage period information, and estimated water usage amount information for each period) of the current day with the previous information.
Citation Information
Patent Citations
Life state detection method based on water consumption of water meter and storage medium
CN108961129A
Master / slave structure system for power network communication
CN1123492A
Intelligent water meter online fault detection and adjustment system
CN113532598A
Intelligent meter reading and real-time account checking device for charging pile
CN114881634A
Remote monitoring method, device and system for electricity utilization information acquisition equipment
CN115037421A