Drinking Water Monitoring: Computer Vision Kit for Early E.coli Detection

Authors

  • Mansoor Khan
  • Samad Riaz CISNR, UET Peshawar
  • Gul Muhammad Khan

Keywords:

Water Quality, Escherichia coli, Computer Vision

Abstract

This work presents an easy-to-use and accurate method to find up to 1 coliform unit (CFU) of a pathogenic bacterium i.e., Escherichia coli (E. coli) in 100ml of drinking water in 6-8 Hours of the incubation period. A larger number of CFUs is easy to detect and incubation time is reduced to 5-7 Hours for the testing samples containing more than 20 CFUs. Normally in laboratories up to 1 ml of a water sample is spread on an endo agar medium and incubated for about 24 Hours, and the E. coli coliform in metallic green color becomes visible through the naked eye. Which has a limitation of finding 1 CFU in just 1 ml of water and a limitation of a large amount of time.  In the proposed work Membrane filtration method is used for experiments and a microscopic camera with deep learning algorithms i.e., yolov5 and yolov8 is used for the early detection and counting of E. coli colonies. This system is generalized on the field data of 8k images taken from different cities' water samples in Pakistan. Yolov5s model achieved a mean average precession (mAP@0.5) of .949, while the latest release version yolov8 achieved mAP@0.5 of 0.950. An automatic imagery system is developed that takes the images just by placing a petri dish in it processes those images through Raspberry Pi, and shows the detected colonies on the screen, while remote users can use a low-cost microscopic camera manually with a developed mobile application.

References

“Drinking-water.” Accessed: May 11, 2024. [Online]. Available: https://www.who.int/news-room/fact-sheets/detail/drinking-water

N. S. K. Gunda, S. H. Gautam, and S. K. Mitra, “Editors’ Choice—Artificial Intelligence Based Mobile Application for Water Quality Monitoring,” J. Electrochem. Soc., vol. 166, no. 9, p. B3031, Mar. 2019, doi: 10.1149/2.0081909JES.

P. I. Tarr, C. A. Gordon, and W. L. Chandler, “Shiga-toxin-producing Escherichia coli and haemolytic uraemic syndrome,” Lancet, vol. 365, no. 9464, pp. 1073–1086, Mar. 2005, doi: 10.1016/S0140-6736(05)71144-2.

O. Clermont, S. Bonacorsi, and E. Bingen, “Rapid and simple determination of the Escherichia coli phylogenetic group,” Appl. Environ. Microbiol., vol. 66, no. 10, pp. 4555–4558, 2000, doi: 10.1128/AEM.66.10.4555-4558.2000/ASSET/76C8CB9C-8C42-4A85-B407-7538CAADF53D/ASSETS/GRAPHIC/AM1000238002.JPEG.

A. Gupta and E. Ruebush, “AquaSight: Automatic Water Impurity Detection Utilizing Convolutional Neural Networks,” Jul. 2019, Accessed: May 11, 2024. [Online]. Available: https://arxiv.org/abs/1907.07573v1

and H. D. T. Irani, H. Amiri, S. Azadi, M. Bayat, “Use of a convolution neural network for the classification of E. Coli and V. Cholara bacteria in wastewater,” Environ. Res. Technol., vol. 5, no. 1, pp. 101–110, doi: 10.35208/ERT.969400.

H. Yanik, A. Hilmi Kaloğlu, and E. Değirmenci, “Detection of Escherichia Coli Bacteria in Water Using Deep Learning: A Faster R-CNN Approach,” Teh. Glas., vol. 14, no. 3, pp. 273–280, Sep. 2020, doi: 10.31803/TG-20200524225359.

J. Redmon, S. Divvala, R. Girshick, and A. Farhadi, “You Only Look Once: Unified, Real-Time Object Detection,” Proc. IEEE Comput. Soc. Conf. Comput. Vis. Pattern Recognit., vol. 2016-December, pp. 779–788, Jun. 2015, doi: 10.48550/arxiv.1506.02640.

F. M. Khan, R. Gupta, and S. Sekhri, “A convolutional neural network approach for detection of E. coli bacteria in water,” Environ. Sci. Pollut. Res., vol. 28, no. 43, pp. 60778–60786, Nov. 2021, doi: 10.1007/S11356-021-14983-3/METRICS.

S. Rauf et al., “Digital E. coli Counter: A Microfluidics and Computer Vision-Based DNAzyme Method for the Isolation and Specific Detection of E. coli from Water Samples,” Biosensors, vol. 12, no. 1, p. 34, Jan. 2022, doi: 10.3390/BIOS12010034/S1.

H. Yanik, A. Hilmi Kaloğlu, and E. Değirmenci, “Detection of Escherichia Coli Bacteria in Water Using Deep Learning: A Faster R-CNN Approach,” Teh. Glas., vol. 14, no. 3, pp. 273–280, Sep. 2020, doi: 10.31803/TG-20200524225359.

R. Patil, S. Levin, S. Rajkumar, and T. Ajmal, “Design of a Smart System for Rapid Bacterial Test,” Water 2020, Vol. 12, Page 15, vol. 12, no. 1, p. 15, Dec. 2019, doi: 10.3390/W12010015.

R. Hall-Clifford et al., “Toward co-design of an AI solution for detection of diarrheal pathogens in drinking water within resource-constrained contexts,” PLOS Glob. Public Heal., vol. 2, no. 8, p. e0000918, Aug. 2022, doi: 10.1371/JOURNAL.PGPH.0000918.

J. Carrillo-Gómez, C. Durán-Acevedo, and R. García-Rico, “Concentration Detection of the E. coli Bacteria in Drinking Water Treatment Plants through an E-Nose and a Volatiles Extraction System (VES),” Water 2019, Vol. 11, Page 774, vol. 11, no. 4, p. 774, Apr. 2019, doi: 10.3390/W11040774.

F. M. Khan, R. Gupta, and S. Sekhri, “Superposition learning-based model for prediction of E.coli in groundwater using physico-chemical water quality parameters,” Groundw. Sustain. Dev., vol. 13, p. 100580, May 2021, doi: 10.1016/J.GSD.2021.100580.

“Acta Biochimica Polonica | Home.” Accessed: May 11, 2024. [Online]. Available: https://www.frontierspartnerships.org/journals/acta-biochimica-polonica

M. Khanibaseri, “Developing Artificial Neural Networks (ANN) Models for Predicting E. Coli at Lake Michigan Beaches”, [Online]. Available: https://hammer.purdue.edu/articles/thesis/Developing_Artificial_Neural_Networks_ANN_Models_for_Predicting_E_Coli_at_Lake_Michigan_Beaches/12589247

M. D. Stocker, Y. A. Pachepsky, and R. L. Hill, “Prediction of E. coli Concentrations in Agricultural Pond Waters: Application and Comparison of Machine Learning Algorithms,” Front. Artif. Intell., vol. 4, p. 768650, Jan. 2022, doi: 10.3389/FRAI.2021.768650/BIBTEX.

S. Tinelli and I. Juran, “Artificial intelligence-based monitoring system of water quality parameters for early detection of non-specific bio-contamination in water distribution systems,” Water Supply, vol. 19, no. 6, pp. 1785–1792, Sep. 2019, doi: 10.2166/WS.2019.057.

S. Timms, K. O. Colquhoun, and C. R. Fricker, “Detection of Escherichia coli in potable water using indirect impedance technology,” J. Microbiol. Methods, vol. 26, no. 1–2, pp. 125–132, Jul. 1996, doi: 10.1016/0167-7012(96)00903-7.

“COMPARATIVE ASSESSMENT OF FIELD METHODS FOR MICROBIOLOGICAL WATER QUALITY TESTING IN EMERGENCIES.” Accessed: May 11, 2024. [Online]. Available: https://www.researchgate.net/publication/299461356_COMPARATIVE_ASSESSMENT_OF_FIELD_METHODS_FOR_MICROBIOLOGICAL_WATER_QUALITY_TESTING_IN_EMERGENCIES

“GitHub - ultralytics/yolov5: YOLOv5 ???? in PyTorch > ONNX > CoreML > TFLite.” Accessed: May 11, 2024. [Online]. Available: https://github.com/ultralytics/yolov5

“GitHub - ultralytics/ultralytics: NEW - YOLOv8 ???? in PyTorch > ONNX > OpenVINO > CoreML > TFLite.” Accessed: May 06, 2024. [Online]. Available: https://github.com/ultralytics/ultralytics

K. Wang, J. H. Liew, Y. Zou, D. Zhou, and J. Feng, “PANet: Few-shot image semantic segmentation with prototype alignment,” Proc. IEEE Int. Conf. Comput. Vis., vol. 2019-October, pp. 9196–9205, Oct. 2019, doi: 10.1109/ICCV.2019.00929.

Downloads

Published

2024-05-28

How to Cite

Mansoor Khan, Riaz, S., & Gul Muhammad Khan. (2024). Drinking Water Monitoring: Computer Vision Kit for Early E.coli Detection. International Journal of Innovations in Science & Technology, 6(5), 248–256. Retrieved from https://journal.50sea.com/index.php/IJIST/article/view/801