Explainable AI with dual-layer validation framework for ensuring noise resilience and physical consistency in low-cost sustainable water quality monitoring
Ensuring sustainable water management (SDG 6) requires reliable IoT-based sensor networks, yet low-cost deployments are often hindered by environmental noise and the opaque nature of complex AI models. This research aims to develop a robust contaminant classification framework that prioritizes actionable transparency and physical consistency in environmental monitoring. Time-series water quality data were analyzed using Random Forest (RF), LSTM, and Transformer models. Beyond standard performance metrics (Weighted F1-Score), this study introduces a Dual-Layer Validation (DLV) framework powered by SHAP-based Explainable AI (XAI) to verify the models’ alignment with hydrogeochemical principles. The RF model achieved the highest performance (F1 = 0.872), outperforming LSTM (0.852) and Transformer (0.817) ( p < 0.05). Crucially, the XAI analysis revealed a strong cross-architecture consensus: both ensemble and attention-based models independently identified Turbidity and pH as the principal eco-chemical drivers of contamination. The DLV framework demonstrates that transparent models can effectively learn genuine physical and hydrogeochemical fingerprints rather than statistical artifacts. This cross-validated resilience to sensor noise offers a critical pathway toward sustainable, trustworthy, and cost-effective IoT water quality management systems.
Authors
- Muhammad Imam Ghozali (ORCID: https://orcid.org/0009-0007-4773-9207)
- Alif Catur Murti (ORCID: https://orcid.org/0000-0003-4653-0616)
- Wibowo Harry Sugiharto (ORCID: https://orcid.org/0000-0002-5940-0805)
- Ahmad Abdul Chamid (ORCID: https://orcid.org/0000-0001-7951-639X)
- Rizkysari Meimaharani
Institutions
- Muria Kudus University (ID)
Publication Details
- Journal
- Discover Sustainability
- Published
- 2026-07-26
- DOI
- https://doi.org/10.1007/s43621-026-04210-9
- Primary Topic
- Explainable Artificial Intelligence (XAI)
- Type
- article
- Field-Weighted Citation Impact
- 0.00