Real-Time Detection of Small Liquid Drip in Pipeline in Complex Industrial Scenes Based on Machine Vision
Abstract
1. Introduction
- (1)
- The proposed method achieves a processing speed of 90.71 fps at 1920 × 1080 resolution, enabling real-time detection and analysis.
- (2)
- It effectively handles environmental disturbances such as lighting variations, equipment vibration, and personnel movement, ensuring robustness in complex industrial scenarios.
- (3)
- By integrating both contour and motion features of droplets, the method effectively filters out interference and ensures accurate identification of pipeline liquid leakage. Experimental results demonstrate a detection rate of 98.04% and a false alarm rate of 5.26%, validating the effectiveness of the proposed approach and offering a novel solution for pipeline liquid leakage detection.
2. Methodology
2.1. Overview of the Model
- (1)
- Image foreground extraction: To detect liquid dripping behavior, it is necessary to first extract foreground targets from video streams. In this study, the frame difference method is employed to extract foreground regions from the image sequences.
- (2)
- Image foreground validity check: In real-world industrial scenarios, various interference signals are present, such as lighting variations, equipment vibration, and personnel movement, all of which can generate irrelevant foreground targets. To isolate valid droplet regions, a morphological feature model of falling droplets is constructed to eliminate interference and retain only candidate regions that exhibit droplet-like characteristics.
- (3)
- Accumulation and attenuation of image foreground: Interference signals are typically incidental and non-persistent, whereas liquid dripping behavior in pipelines exhibits repetitive patterns. However, slow dripping is difficult to detect from a single frame and may lead to false alarms if evaluated in isolation. To address this, a dynamic foreground accumulation and attenuation model is developed to capture the repetitive nature of droplet activity. This model records the accumulated behavioral features of dripping over a period of time, enhancing the reliability of detection.
- (4)
- Liquid drip detection: Unlike the repetitive falling motion characteristic of pipeline liquid dripping, interference signals are generally sporadic and lack persistence. By constructing a liquid dripping behavior detection model, the proposed method distinguishes repetitive foreground motion from occasional disturbances. This enables accurate detection of pipeline liquid dripping while effectively filtering out non-repetitive interference.
2.2. Video Foreground Motion Target Extracting
2.3. Video Foreground Moving Object Filtering
2.4. Foreground Moving Target Accumulation and Attenuation
2.5. Detection and Location of Liquid Leakage in Pipeline
3. Experiment
3.1. Experimental Environment and Data
3.2. Evaluation Metrics
3.3. Experimental Results
3.4. Comparison with Other Methods
4. Discussion
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Rajtar, J.M.; Muthiah, R. Pipeline Leak Detection System for Oil and Gas Flowlines. J. Manuf. Sci. Eng. 1997, 119, 105–109. [Google Scholar] [CrossRef]
- Wang, X.F.; Cui, K.Y. Overview of Pipeline Leakage Detection Sensors and Applications. J. Jilin Univ. (Inf. Sci. Ed.) 2025, 43, 265–275. (In Chinese) [Google Scholar]
- Yao, Z.; Li, Y.; Ding, Y.; Wang, C.; Yao, L.; Song, J. Improved Shock Tube Method for Dynamic Calibration of the Sensitivity Characteristic of Pizoresistive Pressure Sensors. Measurement 2022, 196, 111271. [Google Scholar] [CrossRef]
- Li, J.; Zheng, Q.; Qian, Z.; Yang, X. A Novel Location Algorithm for Pipeline Leakage Based on the Attenuation of Negative Pressure Wave. Process Saf. Environ. Prot. 2019, 123, 309–316. [Google Scholar] [CrossRef]
- Song, P.; Ma, Z.; Ma, J.; Yang, L.; Wei, J.; Zhao, Y.; Zhang, M.; Yang, F.; Wang, X. Recent Progress of Miniature MEMS Pressure Sensors. Micromachines 2020, 11, 56. [Google Scholar] [CrossRef]
- Rathod, V.T. A Review of Electric Impedance Matching Techniques for Piezoelectric Sensors, Actuators and Transducers. Electronics 2019, 8, 169. [Google Scholar] [CrossRef]
- Lee, M.-K.; Han, S.-H.; Park, K.-H.; Park, J.-J.; Kim, W.-W.; Hwang, W.-J.; Lee, G.-J. Design Optimization of Bulk Piezoelectric Acceleration Sensor for Enhanced Performance. Sensors 2019, 19, 3360. [Google Scholar] [CrossRef] [PubMed]
- Kang, J.; Park, Y.J.; Lee, J.; Wang, S.H.; Eom, D.S. Novel Leakage Detection by Ensemble CNN-SVM and Graph-Based Localization in Water Distribution Systems. IEEE Trans. Ind. Electron. 2017, 65, 4279–4289. [Google Scholar] [CrossRef]
- Zuo, J.; Zhang, Y.; Xu, H.; Zhu, X.; Zhao, Z.; Wei, X.; Wang, X. Pipeline Leak Detection Technology Based on Distributed Optical Fiber Acoustic Sensing System. IEEE Access 2020, 8, 30789–30796. [Google Scholar] [CrossRef]
- He, Z.Y.; Liu, Q.W. Principles and Applications of Optical Fiber Distributed Acoustic Sensors. Laser Optoelectron. Prog. 2021, 58, 11–25. [Google Scholar]
- Stajanca, P.; Chruscicki, S.; Homann, T.; Seifert, S.; Schmidt, D.; Habib, A. Detection of Leak-Induced Pipeline Vibrations Using Fiber: Optic Distributed Acoustic Sensing. Sensors 2018, 18, 2841. [Google Scholar] [CrossRef]
- Klein, W.R. Acoustic Leak Detection. In Proceedings of the 16th Annual Energy-Sources Technology Conference and Exhibition, Houston, TX, USA, 31 January–4 February 1993. [Google Scholar]
- Datta, S.; Sarkar, S. A Review on Different Pipeline Fault Detection Methods. J. Loss Prev. Process Ind. 2016, 41, 97–106. [Google Scholar] [CrossRef]
- Zhang, J. Designing a Cost-Effective and Reliable Pipeline Leak-Detection System. Pipes Pipelines Int. 1997, 42, 20–26. [Google Scholar]
- Chen, C.G.; Wang, Y.; Yang, Z.K. Overview of Long Oil and Gas Pipeline Leak Detection Technology. Chem. Engneering Oil Gas 2002, 31, 52–54. [Google Scholar]
- Sun, L.; Chang, N. Integrated-Signal-Based Leak Location Method for Liquid Pipelines. J. Loss Prev. Process Ind. 2014, 32, 311–318. [Google Scholar] [CrossRef]
- Wang, B.; Chen, M.; Guan, C.; Xia, Z.; Gao, Y.; Dong, L. Oil Leak Detection Method Based on Improved YOLOv7. In Proceedings of the IEEE 2nd International Conference on Energy and Electrical Engineering, Nanchang, China, 20–21 June 2025. [Google Scholar] [CrossRef]
- Zhang, J.; Lan, X.; Wang, S.; Liu, W. EPA-YOLO: A Lightweight Pipeline Leak Detection Algorithm Based on Improved YOLOv7. In Proceedings of the 5th International Conference on Computers and Artificial Intelligence Technology, Hangzhou, China, 20–22 December 2024. [Google Scholar] [CrossRef]
- Li, Z.; Kong, S.; Tang, P.; Hu, J.; Chen, J.; Wang, Q. A Leak Detection Method for Heat Network pipes Based on YOLOv5 and Automatic Region Growing. In Proceedings of the 8th International Conference on Image, Vision and Computing, Dalian, China, 27–29 July 2023. [Google Scholar] [CrossRef]
- Rong, S.; Hamdan, E.; Khaleghi, H.; Karatas, A.; Cetin, A.E. Air Leak Detection Using Sobel-Enhanced YOLO Algorithm from Infrared Images. In Proceedings of the IEEE International Symposium on Circuits and Systems (ISCAS), London, UK, 25–28 May 2025. [Google Scholar] [CrossRef]
- Achiam, J.; Adler, S.; Agarwal, S.; Ahmad, L.; Akkaya, I.; Aleman, F.L.; Almeida, D.; Altenschmidt, J.; Altman, S.; Anadkat, S.; et al. Gpt-4 technical report. arXiv 2023. [Google Scholar] [CrossRef]
- Jiang, X.; Li, J.; Deng, H.; Liu, Y.; Gao, B.-B.; Zhou, Y.; Li, J.; Wang, C.; Zheng, F. MMAD: A Comprehensive Benchmark for Multimodal Large Language Models in Industrial Anomaly Detection. arXiv 2024. [Google Scholar] [CrossRef]
- Wei, S.; Jiang, J.; Xu, X. UniNet: A Contrastive Learning-guided Unified Framework with Feature Selection for Anomaly Detection. In Proceedings of the Computer Vision and Pattern Recognition Conference (CVPR), Nashville, TN, USA, 11–15 June 2025; Available online: https://ieeexplore.ieee.org/document/11094947 (accessed on 20 January 2026).
- Shao, Y.; He, H.; Li, S.; Chen, S.; Long, X.; Zeng, F.; Fan, Y.; Zhang, M.; Yan, Z.; Ma, A.; et al. Eventvad: Training-free event-aware video anomaly detection. In Proceedings of the ACM International Conference on Multimedia, Dublin, Ireland, 27–31 October 2025. [Google Scholar] [CrossRef]
- Zhou, Q.; Pang, G.; Tian, Y.; He, S.; Chen, J. Anomalyclip: Object-agnostic prompt learning for zero-shot anomaly detection. arXiv 2023. [Google Scholar] [CrossRef]
- QwenTeam. Qwen3-VL Technical Report. arXiv 2025. [Google Scholar] [CrossRef]
- Dongmeia, W.; Nannan, S.; Dan, Z.; Peng, W.; Jingyi, L. Leakage Identification Model of Digital Twin Pipeline Based on AOA-SVM. J. Jilin Univ. (Inf. Sci. Ed.) 2025, 43, 934–943. [Google Scholar] [CrossRef]
- Elvio, D.; Giancarlo, B. An Efficient Data-Driven Leak Detection Strategy by Enhancing a Convolutional Neural Network Approach Using a Gaussian Process Regressor. Water Resour. Manag. 2026, 40, 32. [Google Scholar] [CrossRef]
- Cherifi, D.; Mekroud, S.; Boudaoud, A. Deep Learning-Based Segmentation for Oil Pipeline Leak Detection Using Quadcopter Drones. In Proceedings of International Conference on Artificial Intelligence in Renewable Energetic Systems; Lecture Notes in Networks and Systems; Springer: Cham, Switzerland, 2025; Volume 1238. [Google Scholar] [CrossRef]
- Li, Y.; Liu, Y.; Wan, Q.; Bi, L.; Yin, X. Implementation of Underwater Vehicle Pipeline Inspection Based on Machine Vision. In Intelligent Networked Things; Communications in Computer and Information Science; Springer: Singapore, 2022; Volume 1714. [Google Scholar] [CrossRef]
- Wang, J.; Tchapmi, L.P.; Ravikumara, A.P.; McGuire, M.; Bell, C.S.; Zimmerle, D.; Savarese, S.; Brandt, A.R. Machine vision for natural gas methane emissions detection using an infra-red camera. Appl. Energy 2020, 257, 113998. [Google Scholar] [CrossRef]
- Mingguang, S.; Mengmeng, D.; Xuefen, X.; Luyi, L.; Lei, L.; Bin, L.; Zhi, Z. Research Progress on Optical-Flow-Based Video Vibration Measurement Technology. Chin. J. Lasers 2026, 53, 0504003. [Google Scholar]







| File | TP | FP | TN | FN | Average Time (ms) | FPS | Number of Frames |
|---|---|---|---|---|---|---|---|
| 1.mp4 | 1 | 0 | 0 | 0 | 11.80 | 84.78 | 604 |
| 2.mp4 | 0 | 1 | 0 | 1 | 9.88 | 101.20 | 638 |
| 3.mp4 | 1 | 0 | 0 | 0 | 11.68 | 85.59 | 455 |
| 4.mp4 | 1 | 0 | 0 | 0 | 13.72 | 72.88 | 576 |
| 5.mp4 | 1 | 0 | 0 | 0 | 10.10 | 99.02 | 415 |
| 6.mp4 | 1 | 0 | 0 | 0 | 13.84 | 72.23 | 603 |
| 7.mp4 | 1 | 0 | 0 | 0 | 13.73 | 72.83 | 654 |
| 8.mp4 | 1 | 0 | 0 | 0 | 13.35 | 74.93 | 639 |
| 9.mp4 | 1 | 0 | 0 | 0 | 9.49 | 105.39 | 429 |
| 10.mp4 | 1 | 0 | 0 | 0 | 9.77 | 102.35 | 612 |
| 11.mp4 | 1 | 0 | 0 | 0 | 9.69 | 103.17 | 608 |
| 12.mp4 | 1 | 0 | 0 | 0 | 10.24 | 97.62 | 605 |
| 13.mp4 | 1 | 0 | 0 | 0 | 10.64 | 93.96 | 613 |
| 14.mp4 | 1 | 0 | 0 | 0 | 10.24 | 97.66 | 677 |
| 15.mp4 | 1 | 0 | 0 | 0 | 10.12 | 98.79 | 636 |
| 16.mp4 | 1 | 0 | 0 | 0 | 10.86 | 92.05 | 606 |
| 17.mp4 | 1 | 0 | 0 | 0 | 12.63 | 79.16 | 626 |
| 18.mp4 | 1 | 0 | 0 | 0 | 10.13 | 98.70 | 725 |
| 19.mp4 | 1 | 0 | 0 | 0 | 10.42 | 95.99 | 601 |
| 20.mp4 | 1 | 0 | 0 | 0 | 10.57 | 94.60 | 605 |
| 21.mp4 | 1 | 0 | 0 | 0 | 10.11 | 98.88 | 613 |
| 22.mp4 | 1 | 0 | 0 | 0 | 10.34 | 96.75 | 608 |
| 23.mp4 | 1 | 0 | 0 | 0 | 10.29 | 97.22 | 610 |
| 24.mp4 | 1 | 0 | 0 | 0 | 10.23 | 97.74 | 602 |
| 25.mp4 | 1 | 0 | 0 | 0 | 9.89 | 101.15 | 643 |
| 26.mp4 | 1 | 0 | 0 | 0 | 10.89 | 91.81 | 755 |
| 27.mp4 | 1 | 0 | 0 | 0 | 10.93 | 91.50 | 755 |
| 28.mp4 | 1 | 0 | 0 | 0 | 11.07 | 90.35 | 796 |
| 29.mp4 | 1 | 0 | 0 | 0 | 11.06 | 90.39 | 599 |
| 30.mp4 | 1 | 0 | 0 | 0 | 10.97 | 91.17 | 624 |
| 31.mp4 | 1 | 0 | 0 | 0 | 10.97 | 91.19 | 739 |
| 32.mp4 | 1 | 0 | 0 | 0 | 11.17 | 89.53 | 902 |
| 33.mp4 | 1 | 0 | 0 | 0 | 11.28 | 88.65 | 935 |
| 34.mp4 | 1 | 0 | 0 | 0 | 11.36 | 88.00 | 914 |
| 35.mp4 | 1 | 0 | 0 | 0 | 11.00 | 90.90 | 906 |
| 36.mp4 | 1 | 0 | 0 | 0 | 11.02 | 90.71 | 904 |
| 37.mp4 | 1 | 0 | 0 | 0 | 11.19 | 89.39 | 897 |
| 38.mp4 | 1 | 0 | 0 | 0 | 10.98 | 91.09 | 913 |
| 39.mp4 | 1 | 0 | 0 | 0 | 11.02 | 90.75 | 905 |
| 40.mp4 | 1 | 0 | 0 | 0 | 11.18 | 89.47 | 1101 |
| 41.mp4 | 1 | 0 | 0 | 0 | 11.28 | 88.63 | 1122 |
| 42.mp4 | 1 | 0 | 0 | 0 | 11.27 | 88.71 | 913 |
| 43.mp4 | 1 | 0 | 0 | 0 | 11.10 | 90.07 | 898 |
| 44.mp4 | 1 | 0 | 0 | 0 | 10.99 | 90.95 | 971 |
| 45.mp4 | 1 | 0 | 0 | 0 | 10.94 | 91.40 | 918 |
| 46.mp4 | 1 | 0 | 0 | 0 | 11.10 | 90.06 | 1059 |
| 47.mp4 | 1 | 0 | 0 | 0 | 11.31 | 88.41 | 926 |
| 48.mp4 | 1 | 0 | 0 | 0 | 11.45 | 87.35 | 760 |
| 49.mp4 | 1 | 0 | 0 | 0 | 11.34 | 88.22 | 748 |
| 50.mp4 | 1 | 0 | 0 | 0 | 11.35 | 88.09 | 1062 |
| 51.mp4 | 1 | 0 | 0 | 0 | 11.57 | 86.40 | 736 |
| 52.mp4 | 0 | 0 | 1 | 0 | 11.30 | 88.52 | 541 |
| 53.mp4 | 0 | 0 | 1 | 0 | 12.05 | 83.02 | 455 |
| 54.mp4 | 0 | 0 | 1 | 0 | 11.37 | 87.94 | 443 |
| 55.mp4 | 0 | 0 | 1 | 0 | 10.10 | 99.05 | 577 |
| 56.mp4 | 0 | 0 | 1 | 0 | 10.58 | 94.55 | 899 |
| 57.mp4 | 0 | 0 | 1 | 0 | 10.95 | 91.36 | 452 |
| 58.mp4 | 0 | 0 | 1 | 0 | 10.51 | 95.15 | 447 |
| 59.mp4 | 0 | 0 | 1 | 0 | 10.57 | 94.58 | 606 |
| 60.mp4 | 0 | 0 | 1 | 0 | 11.15 | 89.70 | 523 |
| 61.mp4 | 0 | 0 | 1 | 0 | 11.22 | 89.14 | 445 |
| 62.mp4 | 0 | 0 | 1 | 0 | 10.61 | 94.23 | 893 |
| 63.mp4 | 0 | 0 | 1 | 0 | 10.77 | 92.88 | 690 |
| 64.mp4 | 0 | 0 | 1 | 0 | 11.11 | 89.98 | 537 |
| 65.mp4 | 0 | 0 | 1 | 0 | 10.42 | 95.93 | 453 |
| 66.mp4 | 0 | 0 | 1 | 0 | 10.37 | 96.43 | 453 |
| 67.mp4 | 0 | 0 | 1 | 0 | 10.55 | 94.81 | 458 |
| 68.mp4 | 0 | 0 | 1 | 0 | 10.77 | 92.86 | 448 |
| 69.mp4 | 0 | 0 | 1 | 0 | 11.04 | 90.57 | 407 |
| subtotal | 50 | 1 | 18 | 1 | 11.02 | 90.71 | 47488 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Zeng, J.; Cai, B. Real-Time Detection of Small Liquid Drip in Pipeline in Complex Industrial Scenes Based on Machine Vision. Appl. Sci. 2026, 16, 2823. https://doi.org/10.3390/app16062823
Zeng J, Cai B. Real-Time Detection of Small Liquid Drip in Pipeline in Complex Industrial Scenes Based on Machine Vision. Applied Sciences. 2026; 16(6):2823. https://doi.org/10.3390/app16062823
Chicago/Turabian StyleZeng, Jingcan, and Biao Cai. 2026. "Real-Time Detection of Small Liquid Drip in Pipeline in Complex Industrial Scenes Based on Machine Vision" Applied Sciences 16, no. 6: 2823. https://doi.org/10.3390/app16062823
APA StyleZeng, J., & Cai, B. (2026). Real-Time Detection of Small Liquid Drip in Pipeline in Complex Industrial Scenes Based on Machine Vision. Applied Sciences, 16(6), 2823. https://doi.org/10.3390/app16062823

