Skip to main navigation Skip to search Skip to main content
1 Citation (Scopus)

Abstract

Detecting water contaminants is important to mitigate environmental and health problems. Currently, traditional techniques for detecting water contaminants are costly and time-consuming. Thus, the development of a cost-effective, rapid, and AI-based alternative is needed. This paper proposes a novel integrated and systematic framework for detecting water contaminants from electrochemical sensor data using an improved Transformer Encoder optimized with a Genetic Algorithm (TE-GA). The electrochemical sensor is employed to capture voltammetric signals from water contaminant samples. Then, the Transformer Encoder processes these signals to capture patterns for identifying contaminants. A Genetic Algorithm (GA) is applied to optimize the hyperparameters of the Transformer Encoder. Furthermore, this study compares the effectiveness of GA in improving Transformer Encoder performance with other optimization methods, including Grid Search, Random Search, Particle Swarm Optimization, Bayesian Optimization, and Tree-structured Parzen Estimator. The Technique for Order Preference by Similarity to Ideal Solution ranking confirmed that the TE-GA achieved the optimal balance, delivering the highest accuracy (99.17%) while completing the optimization process in 965.78 s, thereby reducing the computation time by up to 57% compared to other computationally heavy methods.

Original languageEnglish
Article number110111
JournalJournal of Water Process Engineering
Volume87
DOIs
Publication statusPublished - May 2026

Keywords

  • Electrochemical sensor
  • Genetic algorithm
  • TOPSIS
  • Transformer encoder
  • Water pollution

Fingerprint

Dive into the research topics of 'Detecting water contaminants using an electrochemical sensor based on improved Transformer Encoder with Genetic Algorithm'. Together they form a unique fingerprint.

Cite this