Giovanni Rafael Caicedo Escorcia, Liliana Vera‐Londono, J. Pérez
Water quality monitoring remains a critical challenge for achieving Sustainable Development Goal 6, particularly in rural and resource-constrained environments where conventional laboratory-based methods are costly and slow. This study presents the development and field validation of an Artificial Intelligence of Things (AIoT) ecosystem for intelligent, low-cost, and real-time water quality assessment using edge computing and generative artificial intelligence. The system integrates a laboratory-developed multiparameter probe measuring temperature, pH, dissolved oxygen, and electrical conductivity with a mobile application and a cloud-based backend. Field validation was conducted in riverine environments in the municipality of Pueblo Bello (Cesar, Colombia), where the system was deployed for in situ data acquisition and real-time inference. A supervised Artificial Neural Network (ANN) was trained to classify water quality based on a Water Quality Index (WQI) ground truth derived from a public dataset, employing KNN-based missing data imputation, interquartile range outlier filtering, stratified balancing, and grid search hyperparameter optimization. The best-performing model achieved 85.1% accuracy and an AUC of 0.87 using only four physical parameters and was successfully deployed in TensorFlow Lite format on both the embedded probe and the mobile application with sub-millisecond inference time. Integration with a generative AI backend provides contextual natural-language interpretations of measurements. These results demonstrate that reduced-parameter edge AI systems can provide reliable environmental diagnostics while enhancing accessibility and citizen engagement for participatory water monitoring.