Water meter automatic detection system based on Internet of Things

By designing an automatic detection system for Internet of Things water meters, using image processing and deep learning technology, the automatic collection and comparison of water meter pointer readings is realized, which solves the time-consuming and labor-intensive problem of manual detection in the existing technology and improves the accuracy and efficiency of detection. Enhanced metering accuracy and consistency.

CN118623983APending Publication Date: 2024-09-10HEBEI FORYON INTELLIGENT CONTROL CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410888745.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Existing water meter detection mainly relies on manual methods, which is time-consuming and labor-intensive and easily affected by human factors, making it difficult to ensure measurement accuracy and efficiency.

Method used

An IoT water meter automatic detection system is designed, including a water supply device, a detection device and a control device. Through image processing and deep learning recognition technology, the automatic collection and comparison of water meter pointer readings is realized to reduce human interference.

Benefits of technology

Automatic comparison of electronic readings and mechanical readings of water meters is realized, which improves detection accuracy and efficiency, reduces labor costs, and enhances measurement accuracy and consistency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118623983A
    Figure CN118623983A
Patent Text Reader

Abstract

The invention discloses an Internet of Things water meter automatic detection system, and relates to the technical field of water meter detection. The detection system comprises a water supply device, a detection device and a control device, the water supply device is used for supplying water to a to-be-detected Internet of Things water meter, and the detection device is used for triggering the Internet of Things water meter through the control device to transmit electronic data collected by the Internet of Things water meter to a server for processing. Image acquisition is carried out on the pointer reading of the Internet of Things water meter, and the acquired image is transmitted to the server for processing, so that automatic detection of the Internet of Things water meter is completed. According to the system, automatic uploading of the electronic reading of the water meter of the internet of things is achieved, the pointer value of the water meter of the internet of things is recognized through an image recognition algorithm, and then automatic comparison of the electronic reading and the pointer reading of a mechanical device is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of water meter detection, and in particular to an Internet of Things water meter automatic detection system based on image processing. Background Art

[0002] Water meters are important components in urban water supply systems, and are mainly responsible for measuring water consumption. Water meters are measuring tools that need to work for a long time, so they have extremely high requirements for their measurement accuracy. Water meters need to undergo strict accuracy testing before leaving the factory. Many intelligent water meters have appeared in many places, and the water meter readings are directly sent to the intelligent water meter management platform server for water consumption supervision and water fee settlement. This requires strict inspection and calibration of the consistency between the mechanical readings and the electronic readings of the IoT water meters to ensure the metering accuracy of the water meters. At present, most water meter factories still use manual methods to test water meters, using meter readers to compare the electronic readings and mechanical readings of water meters, which is time-consuming and labor-intensive, and the results are easily affected by human factors, making it difficult to effectively control the water meters leaving the factory. Summary of the invention

[0003] The technical problem to be solved by the present invention is how to provide an Internet of Things water meter automatic detection system that can automatically complete the detection of the Internet of Things water meter and improve the accuracy and efficiency of the detection.

[0004] In order to solve the above technical problems, the technical solution adopted by the present invention is: an automatic detection system for an Internet of Things water meter, comprising a water supply device, a detection device and a control device, wherein the water supply device is used to supply water to the Internet of Things water meter to be detected, and the detection device is used to trigger the Internet of Things water meter through the control device to transmit the data collected by the Internet of Things water meter to a server for processing, and to capture an image of the pointer reading of the Internet of Things water meter, and transmit the captured image to the server for processing, thereby completing the automatic detection of the Internet of Things water meter.

[0005] A further technical solution is that the water supply device includes a water tank, a water outlet of the water tank is connected to a water inlet of a pressure-regulating tank via a pipeline, a water outlet of the pressure-regulating tank is connected to the water inlet of a water pump via a pipeline, the water outlet of the water pump is connected to the water inlet on a water meter installation groove via a pipeline, the water outlet on the water meter installation groove is connected to a water inlet of an electromagnetic three-way valve via a pipeline, two water outlets of the electromagnetic three-way valve are respectively connected to two water inlets of the pressure-regulating tank through pipelines, the other two water outlets of the pressure-regulating tank are respectively connected to two water inlets of the water tank through pipelines, the water meter installation groove is used to install and fix the Internet of Things water meter, the water inlet of the Internet of Things water meter is connected to the water inlet on the water meter installation groove, and the water outlet of the Internet of Things water meter is connected to the water outlet on the water meter installation groove.

[0006] A further technical solution is that the detection device includes a stand, a mechanical tentacles and a camera, and the mechanical tentacles and the camera can be arranged on the stand for X-axis movement and Y-axis movement. The mechanical tentacles are used to trigger the signal sending button of the Internet of Things water meter, and send the information collected by the Internet of Things water meter to the server for processing. The camera is used to capture images of the Internet of Things water meter and transmit the captured images to the server for processing. The server reads the water meter pointer reading through image recognition.

[0007] A further technical solution is that the platform includes a support frame, and a Y-axis slide rail is formed on the left and right sides of the upper end of the support frame respectively, and an X-axis slide rail is formed between the two Y-axis slide rails. A Y-axis motion drive device is arranged between each Y-axis slide rail and the X-axis slide rail, which is used to drive the X-axis slide rail to move along the Y-axis direction, and a camera motion drive device and a mechanical tentacle motion drive device are respectively arranged on the X-axis slide rails, which are used to drive the camera and the mechanical tentacle to move along the X-axis direction respectively.

[0008] A further technical solution is that the mechanical tentacle includes a drive motor fixing block, the drive motor is fixed on the drive motor fixing block, the power output end of the drive motor is connected to a gear box, the power output gear of the gear box is meshed with a rack, a limiter and a block are provided at the upper end of the rack for limiting the position of the rack, a horizontal sensor mounting plate is provided at the lower end of the rack, the sensor is fixed at the end of the lower side of the sensor mounting plate for sensing the signal sending button of the Internet of Things water meter, the drive motor is controlled by a control device, and the signal collected by the sensor is uploaded to the server through the control device for processing.

[0009] A further technical solution is that the working method of the detection system comprises the following steps:

[0010] After the IoT water meter to be tested is placed in the water meter installation slot, the operator sets the control parameters of the Y-axis motion drive device, the camera motion drive device and the mechanical tentacle motion drive device in the server, and transmits them to the control device to generate control signals to drive the X-axis slide rail, the mechanical tentacle and the camera to move, and adjust the position of the camera and the mechanical tentacle;

[0011] After the positions of the camera and the mechanical tentacles are adjusted, the control device controls the camera to take pictures of the water meter to be inspected, and transmits the photographed images to the server through the control device. The server reads the water meter pointer reading through image recognition technology. The image recognition result generates a start signal for the mechanical tentacle drive device, drives the mechanical tentacles to move, adjusts the positions of the mechanical tentacles, and makes the sensors on the mechanical tentacles trigger the signal sending button on the IoT water meter to send initial flow data to the server; starts the water supply device, opens the solenoid valve, and the water pump pumps the water in the water tank into the pressure-stabilizing tank, and the water passes through the pressure-stabilizing tank through the water supply pipe to pass through the IoT water meter to be inspected;

[0012] Set the water supply volume of the water supply device in the server, and the water supply volume is set to 0.5m 3 , 1m 3 or 1.5m 3 , the set water supply value is adjusted according to the requirements of different water meter models or water tank sizes;

[0013] After the timer reaches the set time, the water supply device completes the supply of the corresponding amount of water. At this time, the water supply device is turned off, and the camera collects the water meter image again, uses deep learning to automatically identify the mechanical part reading, and uploads the reading result to the server; at the same time, the mechanical tentacles are started, triggering the water meter signal button to send electronic data to the server, turning off the water supply device, comparing the mechanical reading with the electronic reading, and checking whether the smart water meter meets the factory standards.

[0014] The beneficial effect of adopting the above technical solution is that the system described in this application realizes the automatic uploading of the electronic readings of the IoT water meter, uses the image recognition algorithm to identify the pointer value of the IoT water meter, and then realizes the automatic comparison of the electronic readings with the pointer readings of the mechanical device. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0016] Figure 1 is a schematic diagram of the structure of the system according to an embodiment of the present invention;

[0017] Figure 2 is a schematic diagram of the structure of the detection device in the system according to an embodiment of the present invention;

[0018] Figure 3 is a schematic diagram of the structure of a mechanical tentacle in a system according to an embodiment of the present invention;

[0019] Figure 4 It is a schematic diagram of the coordination structure between the mechanical tentacles and the IoT water meter to be detected in the system according to an embodiment of the present invention;

[0020] Figure 5 is a control program diagram of the mechanical tentacle in an embodiment of the present invention;

[0021] Figure 6 is a circuit diagram of an asynchronous motor control in an embodiment of the present invention;

[0022] Figure 7 is an overall flow chart of the verification of the system according to the embodiment of the present invention;

[0023] Figure 8 is a schematic diagram of image annotation of a water meter in an embodiment of the present invention;

[0024] Fig. 9 is the average recognition rate of ResNet18-CBAM on the test set at different pixels in the embodiment of the present invention;

[0025] Fig.10 : is an image comparison diagram of a water meter image before (left) and after (right) scaling in an embodiment of the present invention;

[0026] Fig.11 It is a schematic diagram of the structure of the network detection model ResNet18-CBAM in an embodiment of the present invention;

[0027] Fig.12a This is the heat map after processing by the first residual structure of the network detection model ResNet18-CBAM;

[0028] Figure 12b This is the heat map after processing by the second residual structure of the network detection model ResNet18-CBAM;

[0029] Fig.12c This is the heat map after processing by the third residual structure of the network detection model ResNet18-CBAM;

[0030] Fig.12d This is the heat map after processing by the fourth residual structure of the network detection model ResNet18-CBAM;

[0031] Among them: 1. Water tank; 2. Pressure regulating tank; 3. Water pump; 4. Water meter installation slot; 5. Solenoid valve; 6. Internet of Things water meter; 7. Stand; 8. Mechanical tentacles; 8-1. Drive motor fixing block; 8-2. Drive motor; 8-3. Gear box; 8-4. Power output gear; 8-5. Rack; 8-6. Limiter; 8-7. Block; 8-8. Sensor installation plate; 8-9. Sensor; 9. Camera; 10. Y-axis slide rail; 11. X-axis slide rail; 12. Control device; 13. Server. DETAILED DESCRIPTION

[0032] The following is a clear and complete description of the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0033] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0034] like Figure 1 As shown, an automatic detection system for an Internet of Things water meter mainly includes three parts: a water supply device, a detection device and a control device. The water supply device is used to supply water to the Internet of Things water meter to be detected, and the detection device is used to trigger the Internet of Things water meter through the control device, transmit the electronic data collected by the Internet of Things water meter to the server for processing, and perform image acquisition on the pointer reading of the Internet of Things water meter, and transmit the acquired image to the server for processing to complete the automatic detection of the Internet of Things water meter. The detection system also includes a remote monitoring system, and the detection device outputs and transmits through the Internet of Things and the remote monitoring system to achieve real-time monitoring and remote management of water meter readings, thereby achieving integrated management of equipment safety, efficiency, energy saving, environmental protection, etc., and providing reliable data on water operations for equipment manufacturers and equipment users.

[0035] Further, such as Figure 1 As shown, the water supply device includes a water tank 1, one water outlet of the water tank 1 is connected to a water inlet of a pressure-suppressing tank 2 through a pipeline, one water outlet of the pressure-suppressing tank 2 is connected to a water inlet of a water pump 3 through a pipeline, and the pressure-suppressing tank 2 is used to stabilize the water pressure. The water outlet of the water pump 3 is connected to the water inlet on the water meter installation slot 4 through a pipeline, the water outlet on the water meter installation slot 4 is connected to a water inlet of a solenoid valve 5 through a pipeline, the two water outlets of the solenoid valve 5 are respectively connected to the two water inlets of the pressure-suppressing tank 2 through pipelines, and the other two water outlets of the pressure-suppressing tank 2 are respectively connected to the two water inlets of the water tank 1 through pipelines, the water meter installation slot 4 is used to install and fix the Internet of Things water meter 6, the water inlet of the Internet of Things water meter 6 is connected to the water inlet on the water meter installation slot 4, and the water outlet of the Internet of Things water meter 6 is connected to the water outlet on the water meter installation slot 4.

[0036] Further, such as Figure 2As shown, the detection device includes a stand 7, a mechanical tentacle 8 and a camera 9. The mechanical tentacle 8 and the camera 9 can be arranged on the stand 7 for movement along the X-axis and the Y-axis. The mechanical tentacle 8 is used to trigger the signal sending button of the IoT water meter, and send the electronic data collected by the IoT water meter to the server for processing. The camera 9 is used to capture images of the IoT water meter and transmit the captured images to the server for processing. The server reads the water meter pointer reading through image recognition to obtain the mechanical reading of the water meter.

[0037] Further, such as Figure 2 As shown, the platform 7 includes a support frame, and a Y-axis slide rail 10 is formed on the left and right sides of the upper end of the support frame respectively, and an X-axis slide rail 11 is formed between the two Y-axis slide rails 10. A Y-axis motion drive device is arranged between each Y-axis slide rail 10 and the X-axis slide rail 11, which is used to drive the X-axis slide rail to move along the Y-axis direction. The X-axis slide rail 11 is respectively provided with a camera motion drive device and a mechanical tentacle motion drive device, which are used to drive the camera 9 and the mechanical tentacle 8 to move along the X-axis direction respectively.

[0038] Further, such as Figure 3-Figure 4 As shown, the mechanical tentacle 8 includes a drive motor fixing block 8-1, a drive motor 8-2 is fixed on the drive motor fixing block 8-1, a power output end of the drive motor 8-2 is connected to a gear box 8-3, a power output gear 8-4 of the gear box 8-3 is meshed with a rack 8-5, a limiter 8-6 and a block 8-7 are provided at the upper end of the rack 8-5 for limiting the position of the rack 8-5, a horizontal sensor mounting plate 8-8 is provided at the lower end of the rack 8-5, a sensor 8-9 is fixed at the end of the lower side of the sensor mounting plate 8-8 for sensing the signal sending button of the Internet of Things water meter, the drive motor 8-2 is controlled by a control device, and the signal collected by the sensor 8-9 is uploaded to the server for processing through the control device.

[0039] The mechanical tentacles are controlled by the following method:

[0040] First, determine whether the mechanical tentacle is in the original position, and if not, perform a mechanical tentacle reset operation;

[0041] After determining that the mechanical tentacle 8 has been reset, according to the parameters set by the operator, the mechanical tentacle driving device is controlled to drive the mechanical tentacle 8 to move on the x-axis, and the Y-axis motion driving device is driven to drive the X-axis slide rail 11 to move in the Y-axis direction, and the position of the mechanical tentacle 8 is adjusted so that the sensor on the mechanical tentacle 8 is aligned with the signal sending button on the water meter;

[0042] The image recognition result of the camera 9 is converted into an electrical signal, which is sent to the mechanical tentacle 8 through the control device as a descending trigger signal of the mechanical tentacle 8;

[0043] A sensor is installed at the end of the mechanical tentacle 8. When the mechanical tentacle 8 contacts the signal sending button of the water meter, the sensor transmits a current signal to the control device, and the control device controls the drive motor to work, so that the rack on the mechanical tentacle rises, and the sensor is out of contact with the signal sending button;

[0044] When the mechanical tentacles 8 rise to the limiter, the driving motor stops running and the mechanical tentacles stop.

[0045] According to the working process of the mechanical tentacles, the control program of the mechanical tentacles is designed. The control program of the mechanical tentacles is as follows: Figure 5 As shown. The rise and fall of the mechanical tentacles are achieved through the forward and reverse rotation of the asynchronous motor. When the mechanical tentacles move upward, KMI is closed and the motor rotates forward. When the mechanical tentacles move upward, KM2 is closed and the motor rotates reversely. The asynchronous motor control circuit is as shown in Figure 6 shown.

[0046] Further, such as Figure 7 As shown, the working method of the detection system includes the following steps:

[0047] After the IoT water meter to be tested is placed in the water meter installation slot 4, the operator sets the control parameters of the Y-axis motion drive device, the camera motion drive device and the mechanical tentacle motion drive device in the server, and transmits them to the control device to generate a control signal to drive the X-axis slide rail 11, the mechanical tentacle 8 and the camera 9 to move, and adjust the position of the camera 9 and the mechanical tentacle 8;

[0048] After the positions of the camera 8 and the mechanical tentacles 9 are adjusted, the control device controls the camera to take a picture of the water meter to be inspected, and transmits the photographed image to the server 13 through the control device 12. The server 13 reads the water meter pointer reading through the image recognition technology. The image recognition result generates a start signal of the mechanical tentacle drive device, drives the mechanical tentacle 8 to move, adjusts the position of the mechanical tentacle 8, and makes the sensor on the mechanical tentacle 8 trigger the signal sending button on the IoT water meter, and sends the initial flow data to the server 13; starts the water supply device, opens the solenoid valve 5, and the water pump 3 pumps the water in the water tank 1 into the pressure-stabilizing tank 2, and the water passes through the pressure-stabilizing tank 2 through the water supply pipe to make the water pass through the IoT water meter to be inspected;

[0049] The water supply of the water supply device is set in the server 13, and the water supply is set to 0.5m 3 , 1m 3 or 1.5m 3 , the set water supply value is adjusted according to the requirements of different water meter models or water tank sizes;

[0050] After the timer reaches the set time, the water supply device completes the supply of the corresponding amount of water. At this time, the water supply device is turned off, and the camera 9 collects the water meter image again, uses deep learning to automatically identify the mechanical part reading, and uploads the reading result to the server; at the same time, the mechanical tentacle 8 is started, triggering the water meter signal button to send electronic data to the server 13, turning off the water supply device, comparing the mechanical reading with the electronic reading, and checking whether the IoT water meter meets the factory standards.

[0051] Furthermore, the amount of water flowing through the pipe is Q=Avt, where A is the cross-sectional area of ​​the pipe, v is the water flow velocity, and t is the water supply time. When the cross-sectional area of ​​the pipe and the water flow velocity are constant, the water supply time can be calculated according to different water supply amounts, and the water supply time under different water supply amounts can be set by a timer to control the closing of the solenoid valve of the water supply system.

[0052] Furthermore, water meter pointer identification includes the following steps:

[0053] 1) Image acquisition

[0054] The camera position is adjusted to be just above the dial of the water meter to be inspected, the camera is aimed at the dial and photographed to obtain the dial image, and the dial image is transmitted to the server via a data cable for recognition processing;

[0055] 2) Make labels

[0056] When the water meter pointer with an accuracy of 0.1 points to the numbers between "0" and "1", and the water meter pointer with an accuracy of 0.01 points to the numbers between "0" and "1", it is marked as 0.00; when the water meter pointer with an accuracy of 0.1 points to the numbers between "0" and "1", and the water meter pointer with an accuracy of 0.01 points to the numbers between "1" and "2", it is marked as 0.01, and so on, a total of 100 categories are obtained; the schematic diagram of water meter image annotation is shown in Figure 8 As shown;

[0057] 3) Image processing

[0058] In order to reduce the interference of external factors on the recognition process, it is necessary to filter out invalid information in the image as much as possible while retaining the image information of interest in the image, so as to improve the accuracy of subsequent detection and recognition. The image is processed through a series of technologies such as homogenization, filtering, image enhancement, etc., so as to enhance the image features.

[0059] The normalization method uses bilinear interpolation, which is a method of normalizing the new pixel value by taking the weighted average of the four nearest neighboring pixels, as shown in formula (1):

[0060]

[0061] Input pictures of different sizes into the ResNet18-CBAM network model, and determine the optimal picture size for the ResNet18-CBAM network model based on the recognition accuracy, such as Fig. 9 As shown in the figure, it is finally determined that scaling to 20% of the original image is the best, which reduces the burden of model training without affecting the recognition rate. Fig.10 This is a comparison of the water meter image before (left) and after (right) scaling.

[0062] 4) Build a deep network detection model

[0063] The CBAM attention mechanism is added to the Resnet18 skeleton network model to enhance feature extraction, and finally the network detection model ResNet18-CBAM is obtained, as shown in Fig.11 As shown, the network detection model ResNet18-CBAM includes:

[0064] CBAM attention mechanism: CBAM consists of two submodules, namely the channel attention module CAM and the spatial attention module SAM; CAM and SAM are stacked together in sequence to form CBAM; the input feature map F,F∈R C×H×W First, the channel attention module CAM generates a one-dimensional channel attention map M c, M c ∈R C×1×1 , and then generate a two-dimensional spatial attention map M through the spatial attention module SAM s, M s ∈R 1×H×W Finally, the feature adjustment output is performed, as shown in formula (2):

[0065]

[0066] The channel attention module CAM is used to process the distribution relationship of feature map channels. First, the input feature map is subjected to global average pooling and global maximum pooling to obtain two 1×1×C feature maps. The two processed results are added together, and then a sigmoid is taken. At this time, the weight of each channel of the input feature layer is obtained (between 0 and 1). After obtaining this weight, this weight is multiplied by the original input feature layer, as shown in formula (3):

[0067]

[0068] The spatial attention module SAM is used to make the network pay more attention to the pixels that are important for image classification. It takes the maximum value and the average value of each feature point in the channel of the input feature layer, and then stacks the two results. The number of channels is adjusted by a convolution with a channel number of 1, and then a sigmoid function is taken. At this time, we obtain the weight (between 0 and 1) of each feature point in the input feature layer. After obtaining this weight, multiply this weight by the original input feature layer, as shown in formula (4):

[0069]

[0070] The sigmoid function formula is shown in formula (5):

[0071]

[0072] Convolutional layer Conv, used for feature extraction in image processing;

[0073] Batch normalization Batchnom is used to normalize the data of each training batch so that the input of the network remains within a stable distribution range;

[0074] The activation function Relu is a nonlinear function used to help neural networks learn nonlinear relationships and better fit complex data;

[0075] The pooling layer Maxpool is used to reduce the spatial dimension of each convolutional layer in the convolutional neural network CNN while retaining important features;

[0076] 5) Train the network detection model

[0077] For the built network detection model ResNet18-CBAM, input the training set to make it continuously learn features, and continuously correct it according to the training error to complete the network training;

[0078] 6) Image detection

[0079] Use the trained network detection module to detect the image and obtain the mechanical reading of the water meter to be detected.

[0080] 7) Verify the detection model

[0081] To further illustrate that adding the attention mechanism can improve the model's extraction of useful information, the ResNet18_CBAM network detection model structure is used to visualize the features of the image behind each residual structure. The weight of each dimension is calculated using the activation function Relu, as shown in formula (6). A large weight represents important information, while a small weight represents unimportant information.

[0082]

[0083] in Fig.12a This is the heat map after processing by the first residual structure of the network detection model ResNet18-CBAM; Figure 12b This is the heat map after processing by the second residual structure of the network detection model ResNet18-CBAM; Fig.12c This is the heat map after processing by the third residual structure of the network detection model ResNet18-CBAM; Fig.12d This is a heat map after processing by the fourth residual structure of the network detection model ResNet18-CBAM.

[0084] The red part of the heat map indicates that the area contributes the most to the prediction results, followed by the yellow part, and the blue part has a smaller impact. Figures 12a-12d It can be observed that the red part is more concentrated in the water meter pointer area, indicating that ResNet18-CBAM pays more attention to the pointer area and effectively extracts features.

[0085] The system of the present invention replaces the manual detection method, realizes the automatic uploading and automatic verification of the electronic readings of the Internet of Things water meter, improves the standardization and consistency of the water meter verification, saves the labor cost of the water meter production enterprise, and improves the verification efficiency. In addition, the system of the present invention is simple and stable to operate, and reduces the interference of human factors.

Claims

1. An Internet of Things water meter automatic detection system, Features include: A water supply device, a detection device and a control device, wherein the water supply device is used to supply water to an IoT water meter to be detected, and the detection device is used to trigger the IoT water meter through the control device to transmit the electronic data collected by the IoT water meter to a server for processing, and to capture an image of the pointer reading of the IoT water meter, and transmit the captured image to the server for processing, thereby completing automatic detection of the IoT water meter.

2. The Internet of Things water meter automatic detection system as claimed in claim 1, Features: The water supply device comprises a water tank (1), a water outlet of the water tank (1) is connected to a water inlet of a pressure-suppressing tank (2) via a pipeline, a water outlet of the pressure-suppressing tank (2) is connected to a water inlet of a water pump (3) via a pipeline, the water outlet of the water pump (3) is connected to a water inlet on a water meter installation groove (4) via a pipeline, the water outlet on the water meter installation groove (4) is connected to a water inlet of a solenoid valve (5) via a pipeline, two water outlets of the solenoid valve (5) are respectively connected to two water inlets of the pressure-suppressing tank (2) via pipelines, the other two water outlets of the pressure-suppressing tank (2) are respectively connected to two water inlets of the water tank (1) via pipelines, the water meter installation groove (4) is used to install and fix the Internet of Things water meter (6), the water inlet of the Internet of Things water meter (6) is connected to the water inlet on the water meter installation groove (4), and the water outlet of the Internet of Things water meter (6) is connected to the water outlet on the water meter installation groove (4).

3. The Internet of Things water meter automatic detection system as claimed in claim 1, Features: The detection device comprises a platform (7), a mechanical tentacle (8) and a camera (9); the mechanical tentacle (8) and the camera (9) are arranged on the platform (7) so as to be movable along the X-axis and the Y-axis; the mechanical tentacle (8) is used to trigger a signal sending button of the Internet of Things water meter, and send the electronic data collected by the Internet of Things water meter to a server for processing; the camera (9) is used to collect images of the Internet of Things water meter, and transmit the collected images to the server for processing; the server reads the water meter pointer reading through image recognition, and obtains the mechanical reading of the water meter.

4. The Internet of Things water meter automatic detection system as claimed in claim 3, Features: The platform (7) comprises a support frame, wherein a Y-axis slide rail (10) is formed on the left and right sides of the upper end of the support frame respectively, and an X-axis slide rail (11) is formed between the two Y-axis slide rails (10). A Y-axis motion driving device is arranged between each Y-axis slide rail (10) and the X-axis slide rail (11), and is used to drive the X-axis slide rail to move along the Y-axis direction. A camera motion driving device and a mechanical tentacle motion driving device are respectively arranged on the X-axis slide rail (11), and are used to drive the camera (9) and the mechanical tentacle (8) to move along the X-axis direction respectively.

5. The Internet of Things water meter automatic detection system as claimed in claim 4, Features: The mechanical tentacle (8) comprises a drive motor fixing block (8-1), a drive motor (8-2) is fixed on the drive motor fixing block (8-1), a power output end of the drive motor (8-2) is connected to a gear box (8-3), a power output gear (8-4) of the gear box (8-3) is meshed with a rack (8-5), a limiter (8-6) and a block (8-7) are arranged at the upper end of the rack (8-5) for limiting the position of the rack (8-5), a horizontal sensor mounting plate (8-8) is arranged at the lower end of the rack (8-5), a sensor (8-9) is fixed at the end of the lower side of the sensor mounting plate (8-8) for sensing the signal sending button of the Internet of Things water meter, the drive motor (8-2) is controlled by a control device, and the signal collected by the sensor (8-9) is uploaded to the server for processing through the control device.

6. The Internet of Things water meter automatic detection system as claimed in claim 3, It is characterized in that The working method of the detection system comprises the following steps: After the IoT water meter to be tested is placed in the water meter installation slot (4), the operator sets control parameters of the Y-axis motion drive device, the camera motion drive device and the mechanical tentacle motion drive device in the server, and transmits the control parameters to the control device to generate a control signal, drive the X-axis slide rail (11), the mechanical tentacle (8) and the camera (9) to move, and adjust the positions of the camera (9) and the mechanical tentacle (8); After the positions of the camera (8) and the mechanical tentacles (9) are adjusted, the control device controls the camera to take a picture of the water meter to be inspected, and transmits the taken image to the server (13) through the control device (12). The server (13) reads the water meter pointer reading through image recognition technology. The image recognition result generates a start signal for the mechanical tentacle driving device, drives the mechanical tentacle (8) to move, adjusts the position of the mechanical tentacle (8), and causes the sensor on the mechanical tentacle (8) to trigger the signal sending button on the IoT water meter, thereby sending initial flow data to the server (13); The water supply device is started, the electromagnetic valve (5) is opened, and the water pump (3) pumps the water in the water tank (1) into the pressure-stabilizing tank (2), and the water passes through the pressure-stabilizing tank (2) through the water supply pipe to pass through the IoT water meter to be tested; The water supply of the water supply device is set in the server (13), and the water supply is set to 0.5m 3 , 1m 3 or 1.5m 3 , the set water supply value is adjusted according to the requirements of different water meter models or water tank sizes; After the timer reaches the set time, the water supply device completes the supply of the corresponding amount of water. At this time, the water supply device is turned off, and the camera (9) collects the water meter image again, uses deep learning to automatically identify the mechanical part reading, and uploads the reading result to the server; at the same time, the mechanical tentacles (8) are started, triggering the water meter signal button to send electronic data to the server (13), turn off the water supply device, compare the mechanical reading with the electronic reading, and check whether the IoT water meter meets the factory standards.

7. The Internet of Things water meter automatic detection system as claimed in claim 6, Features: The working method of the mechanical tentacle comprises the following steps: First, determine whether the mechanical tentacle is in the original position, and if not, perform a mechanical tentacle reset operation; After determining that the mechanical tentacle (8) has been reset, according to the parameters set by the operator, the mechanical tentacle driving device is controlled to drive the mechanical tentacle (8) to move on the x-axis, and the y-axis motion driving device is driven to drive the x-axis slide rail (11) to move in the y-axis direction, and the position of the mechanical tentacle (8) is adjusted so that the sensor on the mechanical tentacle (8) is aligned with the signal sending button on the water meter; The image recognition result of the camera (9) is converted into an electrical signal, which is sent to the mechanical tentacle (8) through the control device as a descending trigger signal of the mechanical tentacle (8); A sensor is installed at the end of the mechanical tentacle (8). When the mechanical tentacle (8) contacts the signal sending button of the water meter, the sensor transmits a current signal to the control device. The control device controls the drive motor to work, so that the rack on the mechanical tentacle rises, and the sensor is out of contact with the signal sending button. When the mechanical tentacles (8) rise to the position of the limiter, the driving motor stops running and the mechanical tentacles stop.

8. The Internet of Things water meter automatic detection system as claimed in claim 6, Features: Water meter pointer identification includes the following steps: 1) Image acquisition The camera position is adjusted to be just above the dial of the water meter to be inspected, the camera is aimed at the dial and photographed to obtain the dial image, and the dial image is transmitted to the server via a data cable for recognition processing; 2) Make labels When the water meter pointer with an accuracy of 0.1 points to the numbers between "0" and "1", the water meter pointer with an accuracy of 0.01 points to the numbers between "0" and "1", and it is marked as 0.00; when the water meter pointer with an accuracy of 0.1 points to the numbers between "0" and "1", the water meter pointer with an accuracy of 0.01 points to the numbers between "1" and "2", and it is marked as 0.01, and so on, a total of 100 categories are obtained; 3) Image processing Process the image through homogenization, filtering, and image enhancement to enhance image features; The normalization method uses bilinear interpolation, which is a method of normalizing the new pixel value by taking the weighted average of the four nearest neighboring pixels, as shown in formula (1): Input images of different sizes into the ResNet18-CBAM network model, and determine the optimal image size suitable for the ResNet18-CBAM network model based on the recognition accuracy; 4) Build a deep network detection model The CBAM attention mechanism is added to the Resnet skeleton network model to enhance feature extraction, and finally the network detection model ResNet18-CBAM is obtained. The network detection model ResNet18-CBAM includes: CBAM attention mechanism: CBAM consists of two submodules, namely the channel attention module CAM and the spatial attention module SAM; CAM and SAM are stacked together in sequence to form CBAM; the input feature map F,F∈R C×H×W First, the channel attention module CAM generates a one-dimensional channel attention map M c, M c ∈R C×1×1 , and then generate a two-dimensional spatial attention map M through the spatial attention module SAM s, M s ∈R 1×H×W Finally, the feature adjustment output is performed, as shown in formula (2): The channel attention module CAM is used to process the distribution relationship of feature map channels. First, the input feature map is subjected to global average pooling and global maximum pooling respectively to obtain two 1×1×C feature maps, which are processed using a shared fully connected layer. The two processed results are added, and then a sigmoid is taken to obtain the weight of each channel of the input feature layer. After obtaining this weight, this weight is multiplied by the original input feature layer, as shown in formula (3): The spatial attention module SAM is used to make the network pay more attention to the pixels that are important for image classification. It takes the maximum value and the average value of each feature point in the channel of the input feature layer, and then stacks the two results. The number of channels is adjusted by a convolution with a channel number of 1, and then a sigmoid function is taken. At this time, we obtain the weight of each feature point in the input feature layer. After obtaining this weight, multiply this weight by the original input feature layer, as shown in formula (4): The sigmoid function formula is shown in formula (5): Convolutional layer Conv, used for feature extraction in image processing; Batch normalization Batchnom is used to normalize the data of each training batch so that the input of the network remains within a stable distribution range; The activation function Relu is a nonlinear function used to help neural networks learn nonlinear relationships and better fit complex data; The pooling layer Maxpool is used to reduce the spatial dimension of each convolutional layer in the convolutional neural network CNN while retaining important features; 5) Train the network detection model For the built network detection model ResNet18-CBAM, input the training set to make it continuously learn features, and continuously correct it according to the training error to complete the network training; 6) Image detection Use the trained network detection module to detect the image and obtain the mechanical reading of the water meter to be detected.

9. The Internet of Things water meter automatic detection system according to claim 6, Features: The amount of water flowing through the pipe Q = Avt, where A is the cross-sectional area of ​​the pipe, v is the water flow velocity, and t is the water supply time; when the cross-sectional area of ​​the pipe and the water flow velocity are constant, the water supply time is calculated according to different water supply volumes, and the water supply time under different water supply volumes is set by a timer to control the closing of the solenoid valve of the water supply system.

10. The Internet of Things water meter automatic detection system according to claim 1, Features: The detection system also includes a remote monitoring system. The detection device performs output transmission with the remote monitoring system through the Internet of Things to achieve real-time monitoring and remote management of water meter readings.

Citation Information

Cited By

  • Internet of Things inspection system and method for photoelectric direct-reading water meter counter

    CN121540246A

  • Internet of things inspection system and method for optoelectronic direct reading water meter counter

    CN121540246B