SMART WASTEWATER SYSTEMS: AI-DRIVEN OPTIMIZATION FOR RESOURCE RECOVERY