A data collection method and system based on NB-iot smart water meter
Through NB-iot smart water meters combined with image recognition and deep learning models, water meter data collection and anomaly detection are realized, and maintenance priorities are dynamically adjusted. This solves the problems of incomplete data collection and non-real-time anomaly detection in traditional methods, and improves water resources. Management efficiency and user experience.
Patent Information
- Application Number
- CN202411106375.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-13
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-08-13
AI Technical Summary
Traditional smart water meter data collection methods cannot achieve comprehensive, real-time anomaly detection and early warning, resulting in high operation and maintenance costs and low management efficiency for the water department.
A data collection method based on NB-IoT smart water meters is used, combined with image recognition technology to obtain the appearance of the water meter, and a deep learning model is used to detect anomalies, calculate the overall priority of the water meter, and dynamically adjust the maintenance priority to improve maintenance efficiency.
It realizes intelligent water meter management, reduces operation and maintenance costs, improves water resource management efficiency, ensures timeliness and pertinence of water meter maintenance, and improves user experience.
Smart Images

Figure CN118640998B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of smart water meters, and in particular to a data collection method and system based on NB-iot smart water meters. Background Art
[0002] The construction of urban water supply is faced with serious leakage and low success rate of manual meter reading. With the emergence and application of NB-IoT narrowband Internet of Things technology, this situation has been fundamentally changed. NB-IoT has the characteristics of high security, wide coverage, large connection, low power consumption and low cost, which can effectively reduce the cost of meter reading and improve the accuracy of meter reading. It not only greatly reduces the manpower and material costs for water departments, improves efficiency and management capabilities, but also improves user experience.
[0003] Traditional smart water meter data collection methods mainly rely on regular manual inspections and single data reading, which cannot achieve comprehensive and real-time anomaly detection and early warning. Summary of the invention
[0004] In order to improve the intelligence level of the smart water meter management system, reduce operation and maintenance costs, and improve water resource management efficiency, the present application provides a data collection method and system based on NB-iot smart water meter.
[0005] In the first aspect, the present application provides a data collection method based on NB-iot smart water meter, which adopts the following technical solution:
[0006] A data collection method based on NB-iot smart water meter, comprising:
[0007] Collect and obtain water meter data, and use image recognition technology to identify and obtain information about the appearance of the water meter, where the appearance of the water meter includes water meter damage and water meter leakage;
[0008] Extracting, from the collected water meter data, associated data of time series characteristics of water meter readings, associated data of characteristics related to data transmission efficiency, and associated data of characteristics related to battery power consumption;
[0009] The associated data of the time series characteristics of the water meter readings, the associated data of the characteristics related to the data transmission efficiency, and the associated data of the characteristics of the battery power consumption are input as input objects to the trained deep learning model for anomaly detection, and the anomaly detection results are output, wherein the anomaly detection results include reading anomalies, data transmission efficiency anomalies, and battery power consumption anomalies;
[0010] According to the output abnormal detection results, the water meter number to be maintained is analyzed and determined, and according to the corresponding relationship between the water meter number and the location, the location of the water meter with the corresponding number is analyzed and determined;
[0011] The overall priority value of the analyzed and determined water meter is calculated based on the preset corresponding relationship between different water meter appearance conditions and priority values, and the preset corresponding relationship between different abnormal detection results and priority values;
[0012] The water meters to be processed are sorted according to the overall priority values of the water meters determined through analysis, and the sorting results, abnormality detection results and information on the appearance of the water meters are sent to the terminal held by the person in charge.
[0013] By adopting the above technical solution, based on the data collection method of NB-IoT smart water meter, the appearance of water meter is obtained through image recognition, and anomalies are detected by deep learning model to achieve comprehensive monitoring. This method not only extracts key data such as water meter reading, transmission efficiency, battery power, etc., but also intelligently calculates the overall priority of water meter based on anomaly detection results and water meter appearance, providing a scientific basis for maintenance sorting.
[0014] Optionally, according to the preset correspondence between different water meter appearance conditions and priority values, and the preset correspondence between different abnormal detection results and priority values, the overall priority value of the analyzed and determined water meter is calculated to include:
[0015] Get weather information within a preset time range in the future;
[0016] According to the correspondence between weather condition information, water meter appearance and weight coefficient, and at the same time according to the correspondence between weather condition information, anomaly detection result and weight coefficient, respectively determine the weight coefficient of the water meter appearance under the influence of weather condition information within a future preset time range, and the weight coefficient of the anomaly detection result under the influence of weather condition information within a future preset time range;
[0017] Based on the weight coefficient of the water meter's appearance affected by weather conditions within a preset time range in the future, the weight coefficient of the anomaly detection result affected by weather conditions within a preset time range in the future, the preset correspondence between different water meter appearances and priority values, and the preset correspondence between different anomaly detection results and priority values, the overall priority value of the water meter determined by analysis and calculation is obtained.
[0018] By adopting the above technical solution, this solution can intelligently calculate the overall priority value of the water meter by integrating future weather conditions, water meter appearance and abnormal detection results. In bad weather, water meters with damaged appearance or serious abnormal detection results will be given higher weights and thus given priority. This dynamic adjustment mechanism ensures the timeliness and pertinence of water meter maintenance and effectively improves the efficiency of water resource management. This solution is innovative and practical, and has brought revolutionary changes to water meter maintenance.
[0019] Optionally, according to the preset correspondence between different water meter appearance conditions and priority values, and the preset correspondence between different abnormal detection results and priority values, the overall priority value of the analyzed and determined water meter is calculated to include:
[0020] Get information about seasonal changes and weather conditions within a preset time range in the future;
[0021] Inputting seasonal changes and weather conditions within a preset time range in the future into the trained water consumption prediction model to predict the water consumption within the preset time range. The trained water consumption prediction model is constructed by using water consumption data associated with water meters within a historical preset time range and seasonal changes and weather conditions within a historical preset time range in combination with a machine learning algorithm.
[0022] Based on the water consumption within a future preset time range and the current water consumption, the predicted increase in water consumption within a future preset time range is analyzed and obtained;
[0023] According to the preset different water meter appearance conditions, the corresponding range of the water consumption forecast increase range and the priority value, as well as the preset different abnormal detection results, the corresponding range of the water consumption forecast increase range and the priority value, the overall priority value of the analyzed water meter is analyzed and determined.
[0024] By adopting the above technical solutions, this solution can accurately calculate the overall priority value of water meters by integrating future seasonal changes, weather conditions and water consumption forecasts. In the case of a large increase in water consumption forecast, water meters with severe appearance damage or abnormal detection results will be given a higher priority to ensure timely maintenance. This dynamic priority setting based on data and predictions not only improves the pertinence and efficiency of water meter maintenance, but also brings forward-looking innovative ideas to water resource management.
[0025] Optionally, the method further includes steps after analyzing and obtaining the predicted increase in water consumption within a preset future time range and before analyzing and determining the overall priority value of the analyzed water meter, specifically as follows:
[0026] Analyze whether the predicted increase in water consumption within the preset time range exceeds the preset increase;
[0027] If yes, then the overall priority value adjustment coefficient of the water meter is analyzed and determined according to the water consumption exceeding the preset increase and the overall priority value adjustment coefficient of the water meter, and the overall priority value of the water meter determined by the analysis is calculated according to the preset corresponding relationship between different water meter appearance conditions and priority values, the preset corresponding relationship between different abnormal detection results and priority values, and the overall priority value adjustment coefficient of the water meter;
[0028] If no, continue with the next steps.
[0029] By adopting the above technical solutions, this solution further refines the calculation logic of the overall priority value of the water meter by introducing the judgment link of the predicted increase in water consumption. When the predicted increase exceeds the set threshold, the overall priority of the water meter will be dynamically adjusted to ensure that the water meter with high increase rate receives timely attention and processing. This flexible and accurate priority adjustment mechanism not only improves the response speed and processing efficiency of water meter management, but also provides strong support for preventing potential problems and ensuring water safety.
[0030] Optionally, the method further includes sending the sorting results, the abnormality detection results, and the water meter appearance information to the terminal held by the person in charge, as follows:
[0031] Analyze and determine the cause of the abnormal detection result based on the information about the appearance of the water meter and the corresponding relationship between the abnormal detection result and the cause of the abnormal detection result;
[0032] The reason for the abnormal detection result is sent as notification information to the terminal held by the person in charge.
[0033] By adopting the above technical solutions, this solution can accurately determine the cause of the abnormality through intelligent analysis of the water meter appearance and abnormal detection results, and send notifications to the person in charge in a timely manner, thus realizing the rapid location and response of the problem. This mechanism not only improves the accuracy and efficiency of water meter maintenance, but also helps the person in charge to quickly grasp the situation and make correct decisions. At the same time, the intelligent and automated features of the solution also greatly reduce the cost of manual intervention, bringing a new solution to water resource management.
[0034] Optionally, the water meters to be processed are sorted according to the overall priority values of the water meters determined by the analysis, including:
[0035] Analyze whether there are maintenance personnel within a preset distance from the water meter to be processed;
[0036] If yes, the maintenance work of the corresponding water meter to be processed is assigned to the corresponding maintenance personnel, and the assigned processing information, abnormal detection results and water meter appearance information are sent to the corresponding maintenance personnel, and the corresponding water meter number is deleted from the water meters to be processed, and the water meters to be processed are sorted according to the overall priority value of the water meters determined by the analysis;
[0037] If not, the water meters to be processed are sorted according to the overall priority values of the water meters determined through analysis.
[0038] By adopting the above technical solutions, this solution realizes the accurate sorting and allocation of water meter maintenance work by intelligently analyzing the overall priority values of the water meters to be processed. In the presence of maintenance personnel, tasks can be quickly assigned and relevant information can be sent, which improves maintenance efficiency and response speed. At the same time, the solution also takes into account the situation where there are no maintenance personnel, and ensures priority handling of emergency issues through priority sorting. This intelligent water meter maintenance management solution brings a more efficient and convenient solution to water resource management.
[0039] Optionally, the method further includes the steps of sorting the water meters to be processed according to the overall priority values of the water meters determined by the analysis, and sending the sorting results, the abnormality detection results and the information about the appearance of the water meters to the terminal held by the person in charge, as follows:
[0040] Get the overall priority value of the water meter;
[0041] Backing up the real-time detection data of the corresponding numbered water meters exceeding the preset overall priority value to the storage device of the camera device within the preset distance range in real time;
[0042] The water meters with corresponding numbers lower than the preset overall priority value will periodically back up the detected data to the storage device of the camera device within the preset distance range.
[0043] By adopting the above technical solution, this solution determines the overall priority value of the water meter through intelligent analysis, and performs real-time or scheduled data backup based on the value, thereby achieving comprehensive and efficient management of water meter data. For high-priority water meters, real-time backup ensures the timeliness and accuracy of the data; for low-priority water meters, scheduled backup saves storage resources while ensuring data integrity. This flexible data backup strategy not only improves the level of intelligence in water meter data management, but also provides strong support for subsequent data analysis, fault warning, etc.
[0044] In the second aspect, the present application provides a data collection system based on NB-iot smart water meter, which adopts the following technical solution:
[0045] A data collection system based on an NB-iot smart water meter, comprising a memory, a processor, and a program stored in the memory and executable on the processor, wherein the program can be loaded and executed by the processor to implement the data collection method based on the NB-iot smart water meter as described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 It is a flow chart of a data collection method based on NB-iot smart water meter in an embodiment of the present application.
[0047] Figure 2It is a flowchart of another embodiment of the present application for calculating the overall priority value of the analyzed and determined water meter based on the preset correspondence between different water meter appearance conditions and priority values, and the preset correspondence between different abnormal detection results and priority values.
[0048] Figure 3 It is a flowchart of another embodiment of the present application for calculating the overall priority value of the analyzed and determined water meter based on the preset correspondence between different water meter appearance conditions and priority values, and the preset correspondence between different abnormal detection results and priority values.
[0049] Figure 4 It is a flowchart diagram of another embodiment of the present application, which is located after analyzing and obtaining the predicted increase in water consumption within a future preset time range, and before analyzing and determining the overall priority value of the analyzed water meter.
[0050] Figure 5 It is a flowchart of another embodiment of the present application and the steps of sending the sorting results, abnormal detection results and water meter appearance information to the terminal held by the person in charge in parallel.
[0051] Figure 6 It is a flowchart diagram of another embodiment of the present application for sorting water meters to be processed according to the overall priority values of the water meters determined by analysis.
[0052] Figure 7 This is a flowchart of another embodiment of the present application and the steps of sorting the water meters to be processed according to the overall priority values of the water meters determined by analysis, and sending the sorting results, abnormality detection results and information on the appearance of the water meters to the terminal held by the person in charge. DETAILED DESCRIPTION
[0053] The present application is further described in detail below in conjunction with the accompanying drawings.
[0054] Reference Figure 1 , is a data collection method based on NB-iot smart water meter disclosed in this application, comprising:
[0055] Step S100, collect and obtain water meter data, and use image recognition technology to identify and obtain information about the appearance of the water meter.
[0056] The water meter data includes but is not limited to water consumption data, timestamp data, flow rate data, and pressure data.
[0057] The appearance of the water meter includes water meter damage and water meter leakage. The process of obtaining the appearance of the water meter through image recognition technology includes the following:
[0058] First, use a high-definition camera to collect images of water meters regularly or in real time. Then, pre-process the collected images, including denoising, contrast enhancement, brightness adjustment, etc., to improve image quality. For example, in an intelligent water management system, an automatic inspection robot can be set up with a high-definition camera to collect images of water meters at regular intervals along a preset path. At the same time, the system's built-in image preprocessing algorithm can automatically optimize the collected images to ensure that the image quality meets the analysis requirements.
[0059] Then, through deep learning techniques such as convolutional neural networks (CNN), features are extracted from the preprocessed images. These features may include key information such as the shape, color, and texture of the water meter. Next, a large amount of annotated water meter image data is used to train the model so that it can accurately identify the features of broken and leaking water meters. For example, suppose we built a CNN model specifically for water meter appearance recognition. During the training phase, we used an image dataset containing various water meter damage and leaks for training. Through continuous iteration and optimization, the model gradually learned how to extract effective features from these images and use them to determine whether the water meter is broken or leaking.
[0060] Finally, after training is completed, the model can recognize new water meter images. By inputting the image, the model can automatically determine whether the water meter is damaged or leaking, and give the corresponding recognition results.
[0061] Step S200: extracting, from the collected water meter data, the associated data of the time series characteristics of the water meter readings, the associated data of the characteristics related to the data transmission efficiency, and the associated data of the characteristics of the battery power consumption.
[0062] The process of extracting the associated data of the time series characteristics of water meter readings from the collected water meter data is as follows: First, the records containing timestamps and water meter readings are filtered out from the original water meter data. Then, the water meter readings are sorted in the order of timestamps to form time series data. On this basis, the statistical characteristics of the time series, such as the mean, median, maximum, minimum, etc., can be further extracted to characterize the overall trend and fluctuation of the water meter readings. In addition, time series analysis techniques, such as stationarity test, seasonal analysis, trend decomposition, etc., can be used to further explore the time series characteristics of water meter readings.
[0063] The process of extracting data related to data transmission efficiency from the collected water meter data is as follows: First, identify records related to data transmission from the water meter data, including information such as sending time, receiving time, and amount of data transmitted. Next, calculate the data transmission rate, such as the amount of data transmitted per unit time, to evaluate the transmission efficiency. At the same time, the stability of data transmission can also be analyzed, such as whether there are packet loss, retransmission, and other phenomena, and the impact of these phenomena on the overall transmission efficiency. Finally, based on the above features, a feature set that comprehensively reflects the data transmission efficiency is constructed.
[0064] The process of extracting the associated data of battery power consumption characteristics from the collected water meter data is as follows: First, the records containing battery power information are filtered out from the water meter data. Then, the battery power consumption is analyzed, including the power decline rate per unit time, battery life, etc.
[0065] At the same time, the impact of the working state of the water meter on the battery consumption can also be considered, such as the battery consumption in certain specific modes (such as high-frequency data acquisition mode). Based on the above analysis, a feature set that can fully reflect the battery consumption is extracted.
[0066] Step S300: taking the associated data of the time series characteristics of the water meter readings, the associated data of the characteristics related to the data transmission efficiency, and the associated data of the characteristics of the battery power consumption as input objects, inputting them into the trained deep learning model for anomaly detection, and outputting the anomaly detection results.
[0067] Among them, the abnormal detection results include abnormal readings, abnormal data transmission efficiency, and abnormal battery power consumption.
[0068] The process of outputting anomaly detection results is as follows: First, the time series feature data of water meter readings, data transmission efficiency feature data, and battery power consumption feature data are integrated to ensure that their timestamps are aligned for subsequent analysis. Then, since these feature data may have different dimensions and ranges, they need to be standardized to eliminate the impact of dimension differences on the model. After completing the data standardization process, the standardized data is used as input and fed into the trained deep learning model. The deep learning model then outputs the detected anomalies and their specific categories (such as reading anomalies, data transmission efficiency anomalies, or battery power consumption anomalies).
[0069] The process of model processing and anomaly detection is as follows: 1. Feature extraction and representation learning: The deep learning model automatically extracts deep features of the input data and learns effective representations of these features. These features may include fluctuation patterns in readings, stability in data transmission efficiency, and the rate at which battery power is consumed. 2. Anomaly detection algorithm: The model uses specific anomaly detection algorithms, such as reconstruction error-based methods or density-based methods, to detect anomalies in input data. These algorithms can identify data points that are significantly different from the normal pattern, i.e., anomalies. 3. Anomaly determination and classification: The model will classify the detected anomalies as abnormal readings, abnormal data transmission efficiency, or abnormal battery power consumption based on the preset anomaly determination criteria. This classification process may be based on the specific characteristic performance of the anomaly, such as a sudden increase or decrease in readings, a significant decrease in data transmission efficiency, or a rapid consumption of battery power.
[0070] Step S400: Analyze and determine the number of the water meter to be maintained according to the output abnormality detection result, and analyze and determine the location of the water meter with the corresponding number according to the corresponding relationship between the water meter number and the location.
[0071] The analysis and determination of the location of the water meter with the corresponding number is as follows: taking the water meter number as the query object, querying and obtaining the location of the water meter with the corresponding number from a preset database storing the corresponding relationship between the water meter number and the location.
[0072] Step S500, based on the preset correspondence between different water meter appearance conditions and priority values, and the preset correspondence between different abnormality detection results and priority values, the overall priority value of the analyzed and determined water meter is calculated.
[0073] The calculation of the overall priority value of the water meter determined by the analysis is obtained as follows: the collected water meter appearance and abnormal detection result data are mapped to the preset priority values, and then different weights are set for the appearance and abnormal detection results. Then, the overall priority value of the water meter is obtained through weighted calculation. For example, if the weight of the appearance is 0.6 and the weight of the abnormal detection result is 0.4, then the overall priority value = appearance priority value * 0.6 + abnormal detection result priority value * 0.4.
[0074] Step S600, sorting the water meters to be processed according to the overall priority values of the water meters determined by analysis, and sending the sorting results, abnormality detection results and information on the appearance of the water meters to the terminal held by the person in charge.
[0075] The terminal held by the person in charge can be a mobile phone, computer or other device capable of interactive communication.
[0076] exist Figure 1In step S500, the weights set for the appearance and abnormal detection results should also be considered. The weather conditions in the future time range should also be considered. Further analysis should be done at this time. For details, refer to Figure 2 The illustrated embodiment is described in detail.
[0077] Reference Figure 2 According to the preset corresponding relationship between different water meter appearance conditions and priority values, and the preset corresponding relationship between different abnormal detection results and priority values, the overall priority value of the analyzed and determined water meter is calculated to include:
[0078] Step S510, obtaining weather condition information within a preset time range in the future.
[0079] Among them, the future preset time range can be 3 days or 7 days, which can be set according to needs. The weather condition information includes key indicators such as temperature, humidity, wind speed, wind direction, air pressure and rainfall.
[0080] Weather condition information within a preset time range in the future can be obtained from weather forecast information through crawler technology.
[0081] Step S520, based on the correspondence between weather condition information, water meter appearance and weight coefficient, and at the same time based on the correspondence between weather condition information, anomaly detection result and weight coefficient, respectively determine the weight coefficient of the water meter appearance affected by the weather condition information within a future preset time range, and the weight coefficient of the anomaly detection result affected by the weather condition information within a future preset time range.
[0082] Among them, the analysis of the weight coefficient of the water meter appearance under the influence of weather condition information within a preset time range in the future is determined as follows: taking weather condition information and water meter appearance as common query objects, the weight coefficient is queried from a preset database that stores the correspondence between weather condition information, water meter appearance and weight coefficient.
[0083] The analysis and determination of the weight coefficient of the anomaly detection results under the influence of weather condition information within a preset time range in the future is as follows: taking weather condition information and water meter appearance as common query objects, the weight coefficient is queried from a preset database that stores the correspondence between weather condition information, anomaly detection results and weight coefficients.
[0084] Step S530, based on the weight coefficient of the water meter appearance affected by the weather condition information within a preset time range in the future, the weight coefficient of the abnormal detection result affected by the weather condition information within a preset time range in the future, the preset correspondence between different water meter appearance conditions and priority values, and the preset correspondence between different abnormal detection results and priority values, analyze and calculate the overall priority value of the water meter determined by the analysis.
[0085] For example, the appearance and abnormal detection results are weighted differently according to the weather conditions in the future preset time range. Then, the overall priority value of the water meter is obtained through weighted calculation. For example, if the weight of the appearance is 0.6 and the weight of the abnormal detection result is 0.4, the overall priority value = appearance priority value * 0.6 + abnormal detection result priority value * 0.4.
[0086] exist Figure 1 In step S500, the predicted increase in water consumption within the preset time range in the future should be further considered. Due to the influence of the predicted increase in water consumption, the appearance of the water meter and the abnormal detection results have an impact on the priority value. Further analysis should be performed at this time. For details, refer to Figure 3 The illustrated embodiment is described in detail.
[0087] Reference Figure 3 According to the preset corresponding relationship between different water meter appearance conditions and priority values, and the preset corresponding relationship between different abnormal detection results and priority values, the overall priority value of the analyzed and determined water meter is calculated to include:
[0088] Step S5a0, obtaining seasonal changes and weather condition information within a preset time range in the future.
[0089] The preset time range may be 3 days or 7 days, and may be specifically extracted and obtained through crawler technology from broadcast information that records seasonal changes and weather conditions within a future preset time range.
[0090] Step S5b0, inputting seasonal changes and weather condition information within a future preset time range into the trained water consumption prediction model to predict the water consumption within the preset time range.
[0091] The forecast of water consumption within the preset time range is obtained as follows:
[0092] First, collect seasonal variation data: This includes key climate indicators such as temperature, humidity, rainfall, etc. for each season, as well as historical data on how these indicators affect water consumption. Collect weather condition information: Obtain weather forecast data for a preset time range in the future, including detailed information such as temperature, humidity, wind speed, rainfall, etc.
[0093] The collected data is then cleaned and formatted to ensure data quality and consistency so that the model can make accurate predictions.
[0094] Finally, the processed seasonal variation data and weather condition information are input into the trained water consumption prediction model. The model analyzes and calculates these input data based on the historical data patterns and algorithms it has learned. The model predicts the water consumption within a preset time range in the future based on the input data.
[0095] The trained water consumption prediction model is constructed by combining the water consumption data associated with the water meter within the historical preset time range, the seasonal changes and weather conditions within the historical preset time range, and the machine learning algorithm. The specific construction process is as follows: 1. Data collection and integration: First, we collect water consumption data associated with the water meter within the historical preset time range from multiple channels. These data not only include water consumption, but also cover detailed information such as peak water consumption hours and water consumption types. At the same time, we also obtain seasonal change data and weather conditions information for the corresponding time period, such as temperature, humidity, rainfall, etc. 2. Data preprocessing: After collecting the raw data, we performed a series of data preprocessing operations. This includes data cleaning to remove outliers and missing data; data normalization to ensure the uniformity of dimensions between different features; and feature engineering to enhance the model's prediction ability by extracting and combining meaningful features. 3. Model construction and training: Using the processed data, we combined the machine learning algorithm to build a water consumption prediction model. In this process, we selected algorithms suitable for processing time series data, such as long short-term memory networks (LSTM) or support vector regression (SVR). By constantly adjusting model parameters and performing cross-validation, we ensure that the model can accurately capture the underlying patterns in historical data. 4. Model evaluation and optimization: After the model was built, we conducted a comprehensive evaluation. We evaluated the model's predictive performance by calculating error indicators between the predicted value and the actual value, such as mean square error (MSE) or mean absolute error (MAE). In response to the deficiencies found in the evaluation results, we carried out targeted optimizations, such as adjusting the model structure and introducing more meaningful features. 5. Model application and real-time update: Finally, we applied the trained model to actual scenarios. By inputting the latest seasonal change data and weather conditions information, the model can predict water consumption in the future in real time. At the same time, we have also established a feedback mechanism to continuously collect new water use data and related information to regularly update and optimize the model to ensure the continuous improvement of its predictive performance.
[0096] For example, suppose we collected a city's water meter water consumption data, seasonal variation data, and weather conditions for the past year. After data preprocessing and feature engineering, we used the LSTM algorithm to build a water consumption prediction model. During the model training process, we found that the model can better capture the impact of seasonal changes (such as increased water consumption in summer) and weather conditions (such as reduced water consumption after rainfall) on water consumption. Through continuous optimization and adjustment, we successfully reduced the model's prediction error to an acceptable range.
[0097] Step S5c0, analyzing and obtaining a predicted increase in water consumption within a future preset time range based on the water consumption within a future preset time range and the current water consumption.
[0098] The specific formula is as follows: (future predicted water consumption - current water consumption) / current water consumption × 100% to calculate the predicted increase at each time point. This formula can clearly reflect the growth ratio relative to current water consumption.
[0099] Step S5d0, analyze and determine the overall priority value of the analyzed water meter based on the preset different water meter appearance conditions, the corresponding range of the interval range that the water consumption forecast increase falls into and the priority value, and the preset different abnormal detection results, the corresponding range of the interval range that the water consumption forecast increase falls into and the priority value.
[0100] First, based on the appearance of the water meter and the predicted increase in water consumption, the priority value is queried from a preset database that stores the correspondence between different preset water meter appearances, the interval ranges into which the predicted increase in water consumption falls, and the priority values. At the same time, based on the abnormal detection results and the predicted increase in water consumption, the priority value is queried from a preset database that stores the correspondence between different preset abnormal detection results, the interval ranges into which the predicted increase in water consumption falls, and the priority values.
[0101] Finally, the obtained priority values are added together, and the obtained sum is the overall priority value of the analyzed and determined water meter.
[0102] exist Figure 3 After step S5c0, the situation where the predicted increase in water consumption is high should also be considered. At this time, the overall priority value should be adjusted as a coefficient. For details, please refer to Figure 4 The illustrated embodiment is described in detail.
[0103] Reference Figure 4 A data collection method based on NB-iot smart water meter also includes steps after analyzing and obtaining the predicted increase in water consumption within a preset time range in the future and before analyzing and determining the overall priority value of the analyzed water meter, which are as follows:
[0104] Step SA00, analyzing whether the predicted increase in water consumption within a preset time range exceeds a preset increase. If yes, execute step SB00, if no, execute SC00.
[0105] Step SB00, analyze and determine the overall priority value adjustment coefficient of the water meter based on the correspondence between the water consumption exceeding the preset increase and the overall priority value adjustment coefficient of the water meter, and calculate the overall priority value of the water meter determined by analysis based on the preset correspondence between different water meter appearance conditions and priority values, the preset correspondence between different abnormal detection results and priority values, and the overall priority value adjustment coefficient of the water meter.
[0106] First, according to the situation of water consumption exceeding the preset increase, the overall priority value adjustment coefficient of the water meter is queried from a preset database that stores the correspondence between the water consumption exceeding the preset increase and the overall priority value adjustment coefficient of the water meter. Finally, the priority value determined according to the appearance of the water meter and the priority number determined by the abnormal detection result are added together, and the sum obtained is the initial overall priority value. The initial overall priority value is multiplied by the overall priority value adjustment coefficient, and the product obtained is the overall priority value of the water meter.
[0107] Step SC00, continue with subsequent steps.
[0108] Reference Figure 5 , a data collection method based on NB-iot smart water meter also includes the steps of sending the sorting results, abnormal detection results and water meter appearance information to the terminal held by the person in charge, as follows:
[0109] Step Sa00, analyzing and determining the cause of the abnormal detection result based on the information about the appearance of the water meter and the corresponding relationship between the abnormal detection result and the cause of the abnormal detection result.
[0110] Among them, the analysis of the cause of the abnormal detection result is determined as follows: taking the water meter appearance information and the abnormal detection result as the common query objects, querying and obtaining the cause of the abnormal detection result from a preset database that stores the water meter appearance information and the correspondence between the abnormal detection result and the cause of the abnormal detection result.
[0111] Suppose we are facing a water meter anomaly detection problem. The appearance inspection of the water meter found that the dial had obvious scratches and the digital display was blurred. At the same time, the anomaly detection result showed that the water meter reading was inaccurate.
[0112] Appearance analysis: We noticed scratches on the water meter dial and blurry digital display, which suggested that the water meter may have been physically damaged. Correlation analysis: Combining the appearance with the anomaly detection results, we inferred that the scratches on the dial may have caused the blurry digital display, which in turn affected the accuracy of the reading. Determine the cause: Based on the above analysis, we can determine that the specific cause of the inaccurate water meter reading is the blurry digital display caused by the damaged dial.
[0113] Step Sb00, the cause of the abnormal detection result is sent as notification information to the terminal held by the person in charge.
[0114] The terminal held by the person in charge can be a mobile phone or a computer.
[0115] Reference Figure 6 , according to the overall priority value of the water meter determined by analysis, the water meters to be processed are sorted as follows:
[0116] Step S610, analyzing whether there is a maintenance personnel within a preset distance range from the water meter to be processed. If yes, execute step S620; if not, execute step S630.
[0117] The preset distance range of the water meter can be 50 meters or 100 meters. The analysis of whether there is a maintenance personnel within the preset distance range of the water meter to be processed is as follows: This can be achieved through GPS positioning or other geographic positioning technologies. At the same time, we also need to obtain the real-time location information of the maintenance personnel, which can be achieved through mobile phone positioning, smart work badges or other positioning devices.
[0118] Step S620, assign the maintenance work of the corresponding water meter to be processed to the corresponding maintenance personnel, and send the assigned processing information, abnormal detection results and water meter appearance information to the corresponding maintenance personnel, delete the corresponding water meter number from the water meter to be processed, and sort the water meters to be processed according to the overall priority value of the water meter determined by analysis.
[0119] Step S630, sorting the water meters to be processed according to the overall priority values of the water meters determined through analysis.
[0120] Reference Figure 7 A data collection method based on NB-iot smart water meter also includes the steps of sorting the water meters to be processed according to the overall priority value of the water meters determined by analysis, and sending the sorting results, abnormality detection results and water meter appearance information to the terminal held by the person in charge, which are as follows:
[0121] Step S700, obtaining the overall priority value of the water meter.
[0122] Step S800, backing up the real-time detection data of the water meters with corresponding numbers exceeding the preset overall priority value in real time to the storage device of the camera device within the preset distance range.
[0123] The specific process is as follows: 1. Real-time monitoring and priority judgment: The system continuously monitors the real-time data of all water meters and calculates the overall priority value of each water meter. When the overall priority value of a water meter exceeds the preset threshold, the water meter is marked as "high priority". 2. Data backup trigger: Once the water meter is marked as "high priority", the system immediately triggers the data backup mechanism. The system determines the camera device within the preset distance range of the water meter location and prepares for data transmission. 3. Data backup execution: The real-time detection data of the high-priority water meter is transmitted to the storage device of the camera device through a secure communication protocol, such as an encrypted wireless network or wired connection. The backup data includes the water meter number, detection time, detection data (such as water consumption, water pressure, etc.) and possible other related parameters. 4. Backup completion and status update: After the data is successfully backed up, the system updates the status of the water meter and the camera device to ensure that both parties record the completion of the backup operation.
[0124] Suppose we have a smart water meter monitoring system that includes multiple water meters and a camera device equipped with a storage device. The system's preset overall priority value is 10. One day, the water meter numbered "W001" detected a sharp increase in water consumption due to abnormal detection, and its overall priority value reached 12, exceeding the preset threshold. Real-time monitoring and judgment: The system detects that the overall priority value of the "W001" water meter is 12, exceeding the preset 10, and immediately marks it as "high priority". Trigger backup: The system determines the nearest camera device "C001" based on the location information of the "W001" water meter and prepares for data transmission. Data backup: The real-time detection data of the "W001" water meter, including key parameters such as water consumption and water pressure, is securely transmitted to the storage device of the "C001" camera device through an encrypted wireless network. Status update and notification: After the data backup is completed, the system updates the status of the "W001" water meter and the "C001" camera device, and sends a notification to the management personnel to inform them that the data of the "W001" water meter has been successfully backed up to the "C001" camera device.
[0125] Step S900: The water meters with corresponding numbers lower than the preset overall priority value will periodically back up the detected data to the storage device of the camera device within the preset distance range.
[0126] Based on the same inventive concept, an embodiment of the present invention provides a data acquisition system based on an NB-iot smart water meter, including a memory and a processor, wherein the memory stores data that can be executed on the processor to implement the following Figures 1 to 7 Procedure for either method.
[0127] The embodiments of this specific implementation method are all preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. Therefore, all equivalent changes made based on the structure, shape, and principle of the present application should be included in the protection scope of the present application.
Claims
1. A data collection method based on NB-iot smart water meter, It is characterized in that include: Collect and obtain water meter data, and use image recognition technology to identify and obtain information about the appearance of the water meter, where the appearance of the water meter includes water meter damage and water meter leakage; Extracting, from the collected water meter data, associated data of time series characteristics of water meter readings, associated data of characteristics related to data transmission efficiency, and associated data of characteristics related to battery power consumption; The associated data of the time series characteristics of the water meter readings, the associated data of the characteristics related to the data transmission efficiency, and the associated data of the characteristics of the battery power consumption are input as input objects to the trained deep learning model for anomaly detection, and the anomaly detection results are output, wherein the anomaly detection results include reading anomalies, data transmission efficiency anomalies, and battery power consumption anomalies; According to the output abnormal detection results, the water meter number to be maintained is analyzed and determined, and according to the corresponding relationship between the water meter number and the location, the location of the water meter with the corresponding number is analyzed and determined; The overall priority value of the analyzed and determined water meter is calculated based on the preset corresponding relationship between different water meter appearance conditions and priority values, and the preset corresponding relationship between different abnormal detection results and priority values; The water meters to be processed are sorted according to the overall priority values of the water meters determined by the analysis, and the sorting results, abnormality detection results, and information about the appearance of the water meters are sent to the terminal held by the person in charge; According to the preset corresponding relationship between different water meter appearance conditions and priority values, and the preset corresponding relationship between different abnormal detection results and priority values, the overall priority value of the analyzed and determined water meter is calculated to include: Get information about seasonal changes and weather conditions within a preset time range in the future; Inputting seasonal changes and weather conditions within a preset time range in the future into the trained water consumption prediction model to predict the water consumption within the preset time range. The trained water consumption prediction model is constructed by using water consumption data associated with water meters within a historical preset time range and seasonal changes and weather conditions within a historical preset time range in combination with a machine learning algorithm. Based on the water consumption within a future preset time range and the current water consumption, the predicted increase in water consumption within a future preset time range is analyzed and obtained; According to the preset different water meter appearance conditions, the corresponding range of the water consumption forecast increase range and the priority value, as well as the preset different abnormal detection results, the corresponding range of the water consumption forecast increase range and the priority value, the overall priority value of the analyzed water meter is analyzed and determined.
2. According to claim 1, a data collection method based on NB-iot smart water meter, It is characterized in that According to the preset corresponding relationship between different water meter appearance conditions and priority values, and the preset corresponding relationship between different abnormal detection results and priority values, the overall priority value of the analyzed and determined water meter is calculated to include: Get weather information within a preset time range in the future; According to the correspondence between weather condition information, water meter appearance and weight coefficient, and at the same time according to the correspondence between weather condition information, anomaly detection result and weight coefficient, respectively determine the weight coefficient of the water meter appearance under the influence of weather condition information within a future preset time range, and the weight coefficient of the anomaly detection result under the influence of weather condition information within a future preset time range; Based on the weight coefficient of the water meter's appearance affected by weather conditions within a preset future time range, the weight coefficient of the anomaly detection result affected by weather conditions within a preset future time range, the preset correspondence between different water meter appearances and priority values, and the preset correspondence between different anomaly detection results and priority values, the overall priority value of the analyzed and determined water meter is calculated.
3. According to claim 1, a data collection method based on NB-iot smart water meter, It is characterized in that The steps are also included after the analysis obtains the predicted increase in water consumption within a preset time range in the future and before the analysis determines the overall priority value of the analyzed water meter, which are as follows: Analyze whether the predicted increase in water consumption within the preset time range exceeds the preset increase; If yes, then the overall priority value adjustment coefficient of the water meter is analyzed and determined according to the correspondence between the water consumption exceeding the preset increase and the overall priority value adjustment coefficient of the water meter, and the overall priority value of the water meter determined by the analysis is calculated according to the preset correspondence between different water meter appearance conditions and priority values, the preset correspondence between different abnormal detection results and priority values, and the overall priority value adjustment coefficient of the water meter; If no, continue with the next steps.
4. A data collection method based on NB-iot smart water meter according to any one of claims 1 to 3, It is characterized in that The method also includes the following steps in parallel with sending the sorting results, abnormality detection results, and information about the appearance of the water meter to the terminal held by the person in charge: Analyze and determine the cause of the abnormal detection result based on the information about the appearance of the water meter and the corresponding relationship between the abnormal detection result and the cause of the abnormal detection result; The reason for the abnormal detection result is sent as notification information to the terminal held by the person in charge.
5. According to claim 4, a data collection method based on NB-iot smart water meter, It is characterized in that The water meters to be processed are sorted according to the overall priority values of the water meters determined by the analysis, including: Analyze whether there are maintenance personnel within a preset distance from the water meter to be processed; If yes, the maintenance work of the corresponding water meter to be processed is assigned to the corresponding maintenance personnel, and the assigned processing information, abnormal detection results and water meter appearance information are sent to the corresponding maintenance personnel, and the corresponding water meter number is deleted from the water meters to be processed, and the water meters to be processed are sorted according to the overall priority value of the water meters determined by the analysis; If not, the water meters to be processed are sorted according to the overall priority values of the water meters determined through analysis.
6. According to claim 5, a data collection method based on NB-iot smart water meter, It is characterized in that The steps also include sorting the water meters to be processed according to the overall priority values of the water meters determined by the analysis, and sending the sorting results, the abnormality detection results and the information about the appearance of the water meters to the terminal held by the person in charge, which are as follows: Get the overall priority value of the water meter; Backing up the real-time detection data of the corresponding numbered water meters exceeding the preset overall priority value to the storage device of the camera device within the preset distance range in real time; The water meters with corresponding numbers lower than the preset overall priority value will periodically back up the detected data to the storage device of the camera device within the preset distance range.
7. A data acquisition system based on NB-iot smart water meter, It is characterized in that It includes a memory, a processor, and a program stored in the memory and executable on the processor, wherein the program can be loaded and executed by the processor to implement a data collection method based on an NB-iot smart water meter as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Light energy intelligent instrument and abnormal state monitoring method using same
CN115655391A
Intelligent water meter communication anomaly detection method, device and equipment and storage medium
CN117686068A
