A Water Level Measurement Approach Based on YOLOv5s

Sensors (Basel). 2022 May 13;22(10):3714. doi: 10.3390/s22103714.

Abstract

Existing water gauge reading approaches based on image analysis have problems such as poor scene adaptability and weak robustness. Here, we proposed a novel water level measurement method based on deep learning (YOLOv5s, convolutional neural network) to overcome these problems. The proposed method uses the YOLOv5s to extract the water gauge area and all scale character areas in the original video image, uses image processing technology to identify the position of the water surface line, and then calculates the actual water level elevation. The proposed method is validated with a video monitoring station on a river in Beijing, and the results show that the systematic error of the proposed method is only 7.7 mm, the error is within 1 cm/the error is between 1 cm and 3 cm, and the proportion of the number of images is 95%/5% (daylight), 98%/2% (infrared lighting at night), 97%/2% (strong light), 45%/44% (transparent water body), 91%/9% (rainfall), and 90%/10% (water gauge is slightly dirty). The results demonstrate that the proposed method shows good performance in different scenes, and its effectiveness has been confirmed. At the same time, it has a strong robustness and provides a certain reference for the application of deep learning in the field of hydrological monitoring.

Keywords: image processing; machine vision; object detection; water level measurement.