P2O (Prediction, Protection, Optimization) tackles overflow risk and cyber-physical threats in wastewater treatment plants. The stack forecasts tunnel water levels, flags malicious sensor manipulation, and prescribes pump schedules that minimize chemical use and avert spills. The system scored top marks in the IWS Challenge 2022 by pairing deep learning forecasters with threat classifiers and a genetic algorithm recommender.