As a test case, we have implemented the developed AI-based mobile application platform for water quality monitoring for bacterial contamination. We used a low-cost rapid test kit i.e., Mobile Water Kit (MWK), developed by Gunda et al. [Anal. Methods, 2014, 6, 6236-6246 and Analyst, 2016, 141, 2920-2929] for monitoring the quality of water for bacterial contamination. MWK detects indicator bacteria (E. coli) in water samples within an hour, based on the appearance of pinkish red color on the surface of the sensing area. The color intensity represents the level of bacteria in water samples. Using the AI-based mobile app, we capture the image of the MWK sensing area (after testing water samples) and classify them into E. coli present images (i.e. E. coli images) and E. coli absent images (non-E. coli images). Deep learning works very well when there is an abundance of training data and there are certain factors that will make it difficult to programmatically distinguish between types. Using traditional computer vision techniques, one would scan the colors of each concentration. However, determining the color intensity for each concentration level is very difficult (especially because these are different shades of pinkish red for MWK). Using deep learning, this is made easy as the system determines these color intensities through training sets that have been provided statistically.
In this present work, we have collected training data from MWK by testing the water samples with known concentrations of E. coli bacteria and then manually segregated the captured images based on whether the sample contains E. coli or not. Then we wrote a labeling script to label these images based on their type. We then used Google Tensorflow (a deep learning Artificial Intelligence open source tool) to distinguish between E. coli and non-E. coli images. Subsequently, we used the labeling script to classify whether an MWK tested image contains E. coli or not. As of now, we can classify the images with approximately 99% accuracy. We will also able to predict concentration levels using this method.