DOI: 10.3390/w18131557 ISSN: 2073-4441

Water Level Measurement Approach Using Monocular Vision with Piecewise Linear Fitting Algorithm

Dong Zhou, Xiaochen Wang, Kai Si, Mingtang Liu, Mengmeng Ge, Zhixin Li, Jinggan Shao

Water level monitoring is closely linked to the safety of production and daily activities along riverbanks, making real-time and high-precision water level measurement an urgent technical demand. The feature extraction backbone of the Unet model is modified, and the lightweight MobileNet V2 network is adopted in this paper. The constructed network achieves significantly higher computational efficiency than standard convolutions, effectively overcoming the limited real-time performance of conventional water level measurement methods. Furthermore, the coordinate attention (CA) mechanism is integrated into the skip connections of Unet to strengthen the network’s capability to extract key features for water level segmentation, thereby further improving the accuracy of water level detection. A novel piecewise linear fitting method for water level line measurement based on monocular vision is proposed, and field-measured water level data are adopted to verify the calculation results. The main achievements of the improved model include the following: (1) Compared with the baseline model, the improved model MCUnet (MobileNet V2 + CA + Unet) achieves a 5.77% increase in accuracy and a 25.71% improvement in inference speed on the experimental water surface recognition dataset. (2) Taking the field-observed water level as the reference, the mean absolute error of the proposed image-based water level monitoring method reaches approximately 1.69 cm. (3) In comparison with DeepLab, U2net and Unet, the MCUnet model gains accuracy improvements of 4.47%, 2.81% and 5.77% respectively, with the detection frame rate increased by 12 FPS, 15 FPS and 11 FPS correspondingly. Through this work, the paper can provide some theoretical support and technical references for overcoming the limitations of conventional water level measuring devices, including strict installation requirements, limited measurement precision, high deployment and maintenance costs, and cumbersome data processing.

More from our Archive