Water Quality Assessment Using Transformer, Quantum Neural Network, XGBoost, and Random Forest Models in an Agentic n8n Workflow with Applications in Maritime Robotics, Education, and Training
Water quality monitoring is important for protecting aquatic life and supporting informed water quality assessment and environmental decision support. However, many existing systems mainly focus on data collection and threshold-based alerts, without connecting prediction, diagnosis, and intelligent assessment within a unified workflow. This paper proposes an integrated smart aquatic monitoring system using Southeast Texas (SETX) water quality data, advanced machine learning models, large language models (LLMs), and an agentic n8n workflow. Firstly, SETX water quality data are extracted, cleaned, and converted into a structured CSV format. Important water features such as pH, dissolved oxygen, temperature, conductivity, and total dissolved solids are used to train and evaluate four different machine learning models, including Transformer, Quantum Neural Network (QNN), XGBoost, and Random Forest. The ML model is then deployed to a backend system for use inside the n8n automation workflow. For simulation, a Python script is designed to emulate an IoT water quality sensor by reading dataset records, converting valid records into JSON objects, and sending them to an agentic n8n webhook. The n8n workflow receives the sensor data and forwards it to the deployed model to predict surface water quality status. Across three simulations with three different datasets, the ML models demonstrate strong performance in classifying safe and unsafe water conditions. On the SETX dataset, Random Forest achieved the best performance, with 99.97% accuracy and a 99.95% macro F1-score. XGBoost also performed strongly, achieving 99.91% accuracy and a 99.86% macro F1-score. The Transformer model achieved 95.98% accuracy and a 94.00% macro F1-score, while the QNN model achieved 94.78% accuracy and a 92.24% macro F1-score.
- Link
- https://doi.org/10.3390/w18182240
- Found by
- Crossref
- Authors
- Nabin Bhandari, Md. Masud Rana, Wajiha Shireen, Mamta Singh, Clayton Jeffryes
- Organizations
- Department of Computer Science, Lamar University, Beaumont, TX 77710, USA, Department of Engineering Technology and Electrical and Computer Engineering, Cullen College of Engineering, University of Houston, Houston, TX 77479, USA, Department of Curriculum & Instruction, Lamar University, Beaumont, TX 77710, USA, Dan F. Smith Department of Chemical & Biomolecular Engineering, Lamar University, Beaumont, TX 77710, USA
- Categories
- evaluation, dataset
- Published
- 2026-09-09
- Last seen by the radar
- 2026-09-10
- Citations
- 0
- Radar score
- 43.39 / 100 (how it is scored)
- Why it scored so
- Matched: data collection, dataset, evaluat; Primary record: Crossref