Use of near-infrared spectroscopy on predicting wastewater constituents to facilitate the operation of a membrane bioreactor