Interpretable Machine Learning Model-Driven Electrochemical Impedance Spectroscopic Analysis for Determination of Nitrate, Nitrite Ammonium Ions in Water

Abstract

Rapid developments in materials chemistry and data-driven approaches have accelerated the development of aquatic chemical sensors, yet accurate, real long-term nutrient monitoring remains a significant challenge. Reliable real-time detection of nitrate (NO3−), nitrite (NO2−), and ammonium (NH4+) is essential for understanding aquatic biogeochemistry, mitigating eutrophication, ensuring precision fertigation, and ensuring sustainable water resource and crop management. Conventional electrochemical sensors can achieve low detection limits, but issues of accuracy, reproducibility, and stability under variable conditions hinder their broader application. In this preliminary study, electrochemical impedance spectroscopy (EIS) was employed in a three-electrode system to capture impedance responses over a wide frequency range, where the electrode-electrolyte interface was modelled using an equivalent circuit comprising resistive, capacitive and impedance elements. Impedance features including the real part, imaginary part, amplitude, and phase were analyzed as functions of concentration and frequency for the three target ions. To address the inherent nonlinearities of EIS data, advanced machine learning models were applied, with extreme gradient boosting (XGBoost) used for feature extraction, principal component analysis (PCA) for dimensionality reduction and a stacked ensemble (SVR-MLP-Ridge Regression) yielding the highest overall predictive accuracy (R2 = 0.99, RMSE < 0.921ppm, MAE < 0.808 ppm, EV = 0.99) across all analytes. The developed hybrid tree-PCA-ML framework enables interpretable frequency-based analysis consistent with the physicochemical interpretations from the equivalent electrical circuit models. This combined EIS-ML approach not only enhances predictive accuracy for nutrient concentrations but also identifies critical frequency regions governing the sensing mechanisms, offering a pathway toward high-precision, real-time water quality monitoring.

Supplementary files

Transparent peer review

To support increased transparency, we offer authors the option to publish the peer review history alongside their article.

View this article’s peer review history

Article information

Article type
Paper
Submitted
04 Dec 2025
Accepted
03 Apr 2026
First published
11 Apr 2026

Analyst, 2026, Accepted Manuscript

Interpretable Machine Learning Model-Driven Electrochemical Impedance Spectroscopic Analysis for Determination of Nitrate, Nitrite Ammonium Ions in Water

R. K, V. Ramakrishnan, A. Narayanaswamy, V. Rajagopal, S. Vishnu and M. Rangarajan, Analyst, 2026, Accepted Manuscript , DOI: 10.1039/D5AN01279A

To request permission to reproduce material from this article, please go to the Copyright Clearance Center request page.

If you are an author contributing to an RSC publication, you do not need to request permission provided correct acknowledgement is given.

If you are the author of this article, you do not need to request permission to reproduce figures and diagrams provided correct acknowledgement is given. If you want to reproduce the whole article in a third-party publication (excluding your thesis/dissertation for which permission is not required) please go to the Copyright Clearance Center request page.

Read more about how to correctly acknowledge RSC content.

Social activity

Spotlight

Advertisements