Intelligent control front-end for water treatment process