Prediction of trihalomethane occurrence and cancer risk using interpretable machine learning and virtual data
Zhaopeng Li1, Wencheng Ma1, Yu Ouyang1
1State Key Laboratory of Urban Water Resource and Environment, Harbin Institute of Technology, Harbin 150090, PR China.
Journal of Hazardous Materials
|May 28, 2025
Summary
This study introduces a machine learning framework to predict trihalomethanes (THMs) and cancer risks in drinking water using virtual data augmentation. The method enables cost-effective water quality monitoring, even in data-limited regions.
Area of Science:
- Environmental Chemistry
- Water Quality Monitoring
- Machine Learning Applications
Background:
- Trihalomethanes (THMs) in drinking water pose carcinogenic health risks, necessitating regular monitoring.
- Current water quality monitoring methods are resource-intensive, limiting frequent analysis.
- Predictive models are needed for efficient and cost-effective THM assessment.
Purpose of the Study:
- To develop an interpretable machine learning (ML) framework for predicting THM occurrence and associated cancer risks.
- To integrate virtual data augmentation for enhancing predictive model performance in data-limited scenarios.
- To establish a cost-effective soft sensing approach for water quality and health risk management.
Main Methods:
- Utilized 146 real water samples, employing CODMn as a proxy for THM precursors.
- Implemented interpretable ML models, including CatBoost with Bayesian optimization, for THM prediction.
- Applied SHAP for feature selection and Uniform Manifold Approximation and Projection (UMAP) for virtual data augmentation.
Main Results:
- The CatBoost model achieved high R² values (0.805-0.960) for THM species and cancer risk prediction.
- Simplified models using four key parameters (CODMn, temperature, chlorine, nitrate) maintained strong predictive accuracy (R²=0.803-0.915).
- UMAP-based data augmentation outperformed Generative Adversarial Networks, reducing RMSE and MAE by 9.64-12.28%.
Conclusions:
- The proposed ML framework offers an effective, low-cost solution for monitoring THMs and cancer risks.
- UMAP-based data augmentation significantly improves model performance, especially in data-scarce environments.
- This approach supports data-driven soft sensing for enhanced water quality and health risk management.
Keywords:
Cancer riskMachine learningTrihalomethanesUniform manifold approximation and projectionVirtual data generation

![Chemical-Induced Skin Carcinogenesis Model Using Dimethylbenz[a]Anthracene and 12-O-Tetradecanoyl Phorbol-13-Acetate DMBA-TPA](/_next/image?url=https%3A%2F%2Fcloudfront.jove.com%2FCDNSource%2Fteasers%2F60445.jpg&w=3840&q=50)