Physics Informed Machine Learning for Electrical Sensing and Prediction of Heavy Metal Contamination in Water

Access to safe drinking water remains a global challenge, with approximately 2.1 billion people lacking safely managed water services. Continuous, low-cost monitoring of heavy metal contamination is limited because conventional techniques such as atomic absorption spectroscopy (AAS) and inductively coupled plasma mass spectrometry (ICP-MS) are accurate but require centralized laboratories and high operational costs. Although machine learning has shown promise for water quality prediction, existing models are generally trained on empirical datasets and lack the physical constraints governing sensor behavior. This study addresses this limitation by developing a physics-informed machine learning framework based on a physically consistent synthetic dataset of 300 samples generated from Ohm's law, Kohlrausch's law of molar conductivity, and metal-hydrolysis pH chemistry. The dataset was utilized to predict heavy metal concentration from voltage, current, conductivity, temperature and pH. The Random Forest (RF) and Multi-Layer Perceptron Artificial Neural Network (ANN) models were benchmarked against linear regression using cross-validation of 5-folds and 10-folds. The ANN was optimized with L2 regularization and early stopping. During 5-fold cross-validation, the accuracy of RF was found to have R² of 0.38 ± 0.13 (RMSE = 0.049 ± 0.004 mg/L; MAE = 0.039 ± 0.003 mg/L), while ANN optimization was improved from R² = −0.05 till 0.22. Linear regression produced the best performance (R² = 0.47 ± 0.16), consistent with the predominantly linear physics underlying the dataset. Conductivity was identified as the dominant predictor, accounting for approximately 87% of RF feature importance and remaining robust under simulated sensor noise of up to 10%.

Link
https://doi.org/10.71170/tecoj.2026.2.2.pp42-58
Found by
Crossref
Authors
Hamza Mustapha Umar, Ismail A. Mahmoud, Neha Shrivas, Ibrahim Abba Ibrahim, Auwal Adam, Musa Garba Abdullahi, Jamila Lamido Sumaila
Categories
benchmark, dataset
Published
2026-10-15
Last seen by the radar
2026-10-17
Citations
0
Radar score
37.25 / 100 (how it is scored)
Why it scored so
Matched: benchmark, dataset, synthetic data; Primary record: Crossref
Is this record right? If you made this work and something here is wrong or missing, tell us what to fix.

More records found by Crossref