AI-based solution for improving wastewater quality, increasing utility efficiency and supporting public health