a algorithm for coli detection