A Machine Learning Framework to Improve Effluent Quality Control in Wastewater Treatment Plants 27 12