journal article·2023-05-02Open access

Application of Deep Learning Techniques in Water Level Measurement: Combining Improved SegFormer-UNet Model with Virtual Water Gauge

Zhifeng Xie, Jianhui Jin, Jianping Wang, Rongxing Zhang, Shenghong Li

Applied Sciences· Volume 13· Issue 9

Abstract

Most computer vision algorithms for water level measurement rely on a physical water gauge in the image, which can pose challenges when the gauge is partially or fully obscured. To overcome this issue, we propose a novel method that combines semantic segmentation with a virtual water gauge. Initially, we compute the perspective transformation matrix between the pixel coordinate system and the virtual water gauge coordinate system based on the projection relationship. We then use an improved SegFormer-UNet segmentation network to accurately segment the water body and background in the image, and determine the water level line based on their boundaries. Finally, we transform the water level line from the pixel coordinate system to the virtual gauge coordinate system using the perspective transformation matrix to obtain the final water level value. Experimental results show that the improved SegFormer-UNet segmentation network achieves an average pixel accuracy of 99.10% and an Intersection Over Union of 98.34%. Field tests confirm that the proposed method can accurately measure the water level with an error of less than 1 cm, meeting the practical application requirements.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Image Enhancement Techniques · Water Quality Monitoring Technologies · Advanced Neural Network Applications

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Faculty of Information Engineering and Automation, Kunming University of Science and Technology, Kunming 650500, China

Funding

Yunnan and Key Projects of Yunnan Basic Research Plan

References (35)

Show source-provided references
1. Considerations on direct stream flow measurements using video imagery:Outlook and research needs10.1016/j.jher.2010.11.002 ↗
2. Review of image water level detection
3. A Brief Discussion on Model Selection of Water Level Gauge for Mountain River
4. Cheng, G. (2017). Research on Water Level Scale Recognition Based on Digital Image Processing, South China University of Technology.
5. A review of water level measurement methods and equipment
6. Design and implementation of bubble pressure type water level meter field detection device
7. Analysis of radar water level meter and artificial observation water level ratio at Wushenggong hydrological station
8. Analysis of ultrasonic water level meter in Shule River irrigation area bucket mouth measurement test application
9. Application of laser water level meter in Yantan hydropower station
10. Virtual Staff Gauges for Crowd Based Stream Level Observations10.3389/feart.2019.00070 ↗
11. A water level measurement method for indefinite water gauge image
12. A novel water surface detection method based on correlation analysis for rectangular control area10.3741/JKWRA.2012.45.12.1227 ↗
13. Image-based water level measurement method under stained ruler
14. Water Level Detection Algorithm Based on Computer Vision
15. Water Level Detection Based on U-net
16. Research on water level recognition method based on deep learning algorithms
17. Water Level Recognition Method Based on Traditional Image Processing Algorithm and YOLOv4
18. Research on water gauge water level detection method under small area guidance
19. Efficient image segmentation and implementation of K-means clustering10.1016/j.matpr.2021.01.154 ↗
20. Long, J., Shelhamer, E., and Darrell, T. (2015, January 7–12). Fully convolutional networks for semantic segmentation. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Boston, MA, USA.10.1109/CVPR.2015.7298965 ↗
21. Ronneberger, O., Fischer, P., and Brox, T. (2015, January 5–9). U-net: Convolutional networks for biomedical image segmentation. Proceedings of the International Conference on Medical Image Computing and Computer-Assisted Intervention, Munich, Germany.10.1007/978-3-319-24574-4_28 ↗
22. Chen, L.C., Papandreou, G., Kokkinos, I., Murphy, K., and Yuille, A.L. (2014). Semantic image segmentation with deep convolutional nets and fully connected crfs. arXiv.
23. Chen, L.C., Papandreou, G., Schroff, F., and Adam, H. (2017). Rethinking atrous convolution for semantic image segmentation. arXiv.
24. Chen, L.C., Zhu, Y., Papandreou, G., Schroff, F., and Adam, H. (2018, January 8–14). Encoder-decoder with atrous separable convolution for semantic image segmentation. Proceedings of the European conference on computer vision (ECCV), Munich, Germany.10.1007/978-3-030-01234-2_49 ↗
25. Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G., and Gelly, S. (2020). An image is worth 16x16 words: Transformers for image recognition at scale. arXiv.
26. Zheng, S., Lu, J., Zhao, H., Zhu, X., Luo, Z., Wang, Y., Fu, Y., Feng, J., Xiang, T., and Torr, P.H. (2021, January 14–19). Rethinking semantic segmentation from a sequence-to-sequence perspective with transformers. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA.10.1109/CVPR46437.2021.00681 ↗
27. SegFormer: Simple and efficient design for semantic segmentation with transformers
28. Research and implementation of adaptive correction and quality enhancement algorithm for distorted image
29. Guo, M.H., Lu, C.Z., Hou, Q., Liu, Z., Cheng, M.M., and Hu, S.M. (2022). Segnext: Rethinking convolutional attention design for semantic segmentation. arXiv.
30. Wang, W., Xie, E., Li, X., Fan, D.P., Song, K., Liang, D., Lu, T., Luo, P., and Shao, L. (2021, January 11–17). Pyramid vision transformer: A versatile backbone for dense prediction without convolutions. Proceedings of the IEEE/CVF International Conference on Computer Vision, Montreal, BC, Canada.10.1109/ICCV48922.2021.00061 ↗
31. A computational approach to edge detection10.1109/TPAMI.1986.4767851 ↗
32. Loshchilov, I., and Hutter, F. (2016). Sgdr: Stochastic gradient descent with warm restarts. arXiv.
33. Zhao, H., Shi, J., Qi, X., Wang, X., and Jia, J. (2017, January 21–26). Pyramid scene parsing network. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA.10.1109/CVPR.2017.660 ↗
34. Deep high-resolution representation learning for visual recognition10.1109/TPAMI.2020.2983686 ↗
35. Semantic segmentation and scale recognition based water-level monitoring algorithm10.2112/JCR-SI105-039.1 ↗