Accurate classification of water quality and precise prediction of the Water Quality Index (WQI) are essential for safeguarding aquatic ecosystems and mitigating disease risks in aquaculture. This study systematically evaluates multiple machine learning models including LightGBM, XGBoost, Random Forest, and Support Vector Machines using grid search optimization to enhance performance. Results show that ensemble models, particularly LightGBM and XGBoost, achieved superior accuracy in water quality classification (up to 99.65 %). For WQI prediction, XGBoost regression delivered the highest performance with an R2 of 0.9685. SHAP (SHapley Additive exPlanations) analysis was employed to interpret model predictions and quantify feature contributions. Dissolved oxygen and BOD emerged as the most influential predictors, followed by turbidity, nitrate, and electrical conductivity, aligning with known risk factors for aquatic disease outbreaks. These findings underscore the potential of combining advanced machine learning with explainable AI techniques and real-time water quality data to enable proactive monitoring and early warning systems for sustainable aquatic health management.