LiqD: Dynamic Liquid Level Detection under Containers
Abstract
In daily life and industrial production, it is crucial to accurately detect changes in liquid level in containers. Traditional contact measurement methods have some limitations, while emerging non-contact image processing technology shows good application prospects. This paper proposes a container dynamic liquid level detection model based on U²-Net. This model uses the SAM model to generate an initial data set, and then evaluates and filters out high-quality pseudo-label images through the semi-supervised framework to build an exclusive data set. The model uses U²-Net to extract masking images of containers from the data set, and uses morphological processing to compensate for masking defects. Subsequently, the model calculates the grayscale difference between adjacent video frame images at the same position, segments the liquid level change area by setting a difference threshold, and finally uses a lightweight neural network to classify the liquid level state and achieves the accuracy of 91.39%. This approach not only mitigates the impact of intricate surroundings, but also reduces the demand for training data, showing strong robustness and versatility. A large number of experimental results show that the proposed model can effectively detect the dynamic liquid level changes of the liquid in the container, providing a novel and efficient solution for related fields.
References
- Yadvendra Singh, Kumar Sanjeev Raghuwanshi, and Soubir Kumar. Review on liquid-level measurement and level transmit- ter using conventional and optical techniques. IETE Technical Review, 2018.
- Georgi Nikolov and Boyanka Nikolova. Virtual techniques for liquid level monitoring using differential pressure sensors. Recent, 9(2):49, 2008.
- Pankaj Mohindru. Development of liquid level measurement technology: A review. Flow Measurement and Instrumentation, 89:102295, 2023.
- Kam W Lo and Brian G Ferguson. Automatic detection and tracking of a small surface watercraft in shallow water using a high-frequency active sonar. IEEE Transactions on Aerospace and Electronic Systems, 40(4):1377–1388, 2004.
- Ti-Ho Wang, Ming-Chih Lu, Chen-Chien Hsu, Cheng-Chuan Chen, and Jia-Dong Tan. Liquid-level measurement using a single digital camera. Measurement, 42(4):604–610, 2009.
- Weiya Sun, Da Wang, Shuai Xu, Jingye Wang, and Zhanyu Ma. Water level detection algorithm based on computer vision. Journal of Applied Sciences, 40(03):434–447, 2022.
- Ping Xia, Feng Wang, Bangjun Lei, and Dongxia Shi. Intelligent visual water level recognition based on super pixel and graph cut algorithm. computer simulation, 38(03):430–436+441, 2021.
- Aiyin Fang, Yongxian Wang, Ximeng Yin, Peng Wang, Zhongyi Li, and Zhi Liu. Detsegnet: A high-precision water level detection network based on detection and segmentation. In Proceedings of the 2023 (11th) China Symposium on Water Conservancy Information Technology, pages 56–73, 2023.
- Yan-Ting Lin, Yi-Chun Lin, and Jen-Yu Han. Automatic water- level detection using single-camera images with varied poses. Measurement, 127:167–174, 2018.
- Xiaoyuan Zhang, Tangyou Liu, and Futing Yu. Prediction of height difference between liquid level and container top based on ellipse detection. Computer and Information Technology, 30(03):19–23, 2022.
- Gregor Bobovnik, Tim Musˇicˇ, and Jozˇe Kutin. Liquid level detection in standard capacity measures with machine vision. Sensors, 21(8):2676, 2021.
- Alexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao, Chloe Rolland, Laura Gustafson, Tete Xiao, Spencer Whitehead, C Alexander Berg, Wan-Yen Lo, et al. Segment anything. arXiv preprint arXiv:2304.02643, 2023.
- Lei Ke, Mingqiao Ye, Martin Danelljan, Yifan liu, Yu-Wing Tai, Chi-Keung Tang, and Fisher Yu. Segment anything in high quality. In A. Oh, T. Neumann, A. Globerson, K. Saenko,M. Hardt, and S. Levine, editors, Advances in Neural Infor- mation Processing Systems, volume 36, pages 29914–29934. Curran Associates, Inc., 2023.
- Maciej A Mazurowski, Haoyu Dong, Hanxue Gu, Jichen Yang, Nicholas Konz, and Yixin Zhang. Segment anything model for medical image analysis: an experimental study. Medical Image Analysis, 89:102918, 2023.
- Siyuan Li, Weiyang Jin, Zedong Wang, Fang Wu, Zicheng Liu, Cheng Tan, and Stan Z. Li. Semireward: A general reward model for semi-supervised learning. In The Twelfth International Conference on Learning Representations, 2024.
- Xuebin Qin, Zichen Zhang, Chenyang Huang, Masood De- hghan, R Osmar Zaiane, and Martin Jagersand. U2-net: Going deeper with nested u-structure for salient object detection. Pattern recognition, 106:107404, 2020.
- Ali Borji, Ming-Ming Cheng, Qibin Hou, Huaizu Jiang, and Jia Li. Salient object detection: A survey. Computational visual media, 5:117–150, 2019.
- V Yuriy Vizilter, P Yuriy Pyt’ev, I Alexey Chulichkov, and M Leonid Mestetskiy. Morphological image analysis for com- puter vision applications. Computer Vision in Control Systems- 1: Mathematical Theory, pages 9–58, 2015.
- AM Raid, WM Khedr, MA El-Dosuky, and Aoud Mona. Image restoration based on morphological operations. International Journal of Computer Science, Engineering and Information Technology, 4(3):9–21, 2014.
- C Saravanan. Color image to grayscale image conversion. In 2010 Second International Conference on Computer Engineer- ing and Applications, volume 2, pages 196–199. IEEE, 2010.
- Ali Güneş¸, Habil Kalkan, and Efkan Durmus¸. Optimizing the color-to-grayscale conversion for image classification. Signal, Image and Video Processing, 10:853–860, 2016.
- Zicheng Liu, Siyuan Li, Di Wu, Zihan Liu, Zhiyuan Chen, Lirong Wu, and Stan Z. Li. Unveiling the power of mixup for stronger classifiers. In European Conference on Computer Vision, 2022.
- Chaohui Zhan, Xiaohui Duan, Shuoyu Xu, Zheng Song, and Min Luo. An improved moving object detection algorithm based on frame difference and edge detection. In Fourth international conference on image and graphics (ICIG 2007), pages 519–523. IEEE, 2007.
- Mingxing Tan and Quoc Le. Efficientnet: Rethinking model scaling for convolutional neural networks. In International conference on machine learning, pages 6105–6114. PMLR, 2019.
- Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In Medical image computing and computer-assisted intervention– MICCAI 2015: 18th international conference, Munich, Ger- many, October 5-9, 2015, proceedings, part III 18, pages 234–241. Springer, 2015.
- Liang-Chieh Chen, Yukun Zhu, George Papandreou, Florian Schroff, and Hartwig Adam. Encoder-decoder with atrous separable convolution for semantic image segmentation. In Proceedings of the European conference on computer vision (ECCV), pages 801–818, 2018.
- Kaiming He, Georgia Gkioxari, Piotr Dolla´r, and Ross Girshick. Mask r-cnn. In Proceedings of the IEEE international confer- ence on computer vision, pages 2961–2969, 2017.
- Jun Wei, Shuhui Wang, and Qingming Huang. F3net: fusion, feedback and focus for salient object detection. In Proceedings of the AAAI conference on artificial intelligence, volume 34, pages 12321–12328, 2020.
- Ke Sun, Bin Xiao, Dong Liu, and Jingdong Wang. Deep high- resolution representation learning for human pose estimation. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 5693–5703, 2019.
- Hengshuang Zhao, Jianping Shi, Xiaojuan Qi, Xiaogang Wang, and Jiaya Jia. Pyramid scene parsing network. In Proceed- ings of the IEEE conference on computer vision and pattern recognition, pages 2881–2890, 2017.
- Jianlong Zhou, Amir H Gandomi, Fang Chen, and Andreas Holzinger. Evaluating the quality of machine learning explana- tions: A survey on methods and metrics. Electronics, 10(5):593, 2021.
- Stephen Robertson and Stephen Walker. Threshold setting in adaptive filtering. Journal of documentation, 56(3):312–331, 2000.