Search
2026 Volume 2
Article Contents
ORIGINAL RESEARCH   Open Access    

A machine learning-quantitative microbial risk assessment (ML-QMRA) framework for predicting potential health risks from pathogens in drinking water sources

  • Full list of author information is available at the end of the article.

  • Received: 12 April 2026
    Revised: 20 May 2026
    Accepted: 11 June 2026
    Published online: 10 July 2026
    Biocontaminant  2 Article number: e012 (2026)  |  Cite this article
  • An ML-QMRA framework was developed for pathogen health risk prediction.

    RF and DT showed good performance for microbial prediction.

    Decision Tree accurately predicts P. aeruginosa levels (R2 > 0.90).

    SHAP identified turbidity as the top predictor for indicator bacteria (41.6%–62.1%).

  • Pathogens in drinking water sources are diverse and pose potential health risks, yet rapid monitoring and risk assessment remain challenging. This study established detection methods for three indicator bacteria and six pathogens, and compared six machine learning models to develop a machine learning-quantitative microbial risk assessment (ML-QMRA) framework for assessing the potential health risks of microbial contamination. The framework provided a feasible data-driven approach for predicting the potential health risks posed by pathogens using routine water quality indicators. Water samples were collected monthly from May 2024 to December 2025, with pathogen concentrations typically ranging from 103 to 106 copies/L. Correlation analysis revealed weak associations between pathogens and indicator bacteria (p > 0.05). Among the six machine learning models, Random Forest and Decision Tree showed better performance. Overall, the predictive models achieved good agreement with the observed data for all pathogens (R2 > 0.75). Notably, the Decision Tree model demonstrated excellent predictive performance for Pseudomonas aeruginosa (P. aeruginosa, R2 > 0.90). SHapley Additive exPlanations (SHAP) analysis was applied to interpret the influence of variables on model predictions, revealing that models for indicator bacteria were primarily influenced by water temperature and turbidity, while TDS and electrical conductivity were the most influential predictors of adenovirus. The findings indicate that conventional water quality parameters show useful predictive potential for estimating pathogen levels and associated potential health risks.
    Graphical Abstract
  • 加载中
  • The supplementary files can be downloaded from here.
  • [1] Morens DM, Folkers GK, Fauci AS. 2004. The challenge of emerging and re-emerging infectious diseases. Nature 430:242−249 doi: 10.1038/nature02759

    CrossRef   Google Scholar

    [2] Pandey PK, Kass PH, Soupir ML, Biswas S, Singh VP. 2014. Contamination of water resources by pathogenic bacteria. AMB Express 4:51 doi: 10.1186/s13568-014-0051-x

    CrossRef   Google Scholar

    [3] WHO. 2023. State of the world's drinking-water: an urgent call to action to accelerate progress on ensuring safe drinking water for all. Geneva: World Health Organization. www.who.int/publications/m/item/state-of-the-world-s-drinking-water-executive-summary
    [4] WHO. 2006. Guidelines for safe recreational water environments: Swimming pools and similar environments, Volume 2. Geneva: World Health Organization. www.who.int/publications/i/item/9241546808
    [5] Saingam P, Li B, Yan T. 2020. Fecal indicator bacteria, direct pathogen detection, and microbial community analysis provide different microbiological water quality assessment of a tropical urban marine estuary. Water Research 185:116280 doi: 10.1016/j.watres.2020.116280

    CrossRef   Google Scholar

    [6] Harwood VJ, Levine AD, Scott TM, Chivukula V, Lukasik J, et al. 2005. Validity of the indicator organism paradigm for pathogen reduction in reclaimed water and public health protection. Applied and Environmental Microbiology 71:3163−3170 doi: 10.1128/aem.71.6.3163-3170.2005

    CrossRef   Google Scholar

    [7] Kaur J, Jain SK. 2012. Role of antigens and virulence factors of Salmonella enterica serovar Typhi in its pathogenesis. Microbiological Research 167:199−210 doi: 10.1016/j.micres.2011.08.001

    CrossRef   Google Scholar

    [8] Mani S, Wierzba T, Walker RI. 2016. Status of vaccine research and development for Shigella. Vaccine 34:2887−2894 doi: 10.1016/j.vaccine.2016.02.075

    CrossRef   Google Scholar

    [9] Liao C, Huang X, Wang Q, Yao D, Lu W. 2022. Virulence factors of Pseudomonas aeruginosa and antivirulence strategies to combat its drug resistance. Frontiers in Cellular and Infection Microbiology 12:926758 doi: 10.3389/fcimb.2022.926758

    CrossRef   Google Scholar

    [10] Oude Munnink BB, Van der Hoek L. 2016. Viruses causing gastroenteritis: the known, the new and those beyond. Viruses 8:42 doi: 10.3390/v8020042

    CrossRef   Google Scholar

    [11] Sadik NJ, Uprety S, Nalweyiso A, Kiggundu N, Banadda NE, et al. 2017. Quantification of multiple waterborne pathogens in drinking water, drainage channels, and surface water in Kampala, Uganda, during seasonal variation. GeoHealth 1:258−269 doi: 10.1002/2017gh000081

    CrossRef   Google Scholar

    [12] Graves GM, Vogel JR, Tanner RS. 2023. Investigation of environmental factors on Enterococcus survival in Oklahoma streams. Aquatic Sciences 85:34 doi: 10.1007/s00027-023-00933-3

    CrossRef   Google Scholar

    [13] Shahab SN, van Veen A, Kemper MA, Rijfkogel A, Vos MC, et al. 2025. Detection methods for carbapenem-resistant Pseudomonas aeruginosa in surface water and wastewater. Science of The Total Environment 961:178086 doi: 10.1016/j.scitotenv.2024.178086

    CrossRef   Google Scholar

    [14] Mahagamage MGYL, Pathirage MVSC, Manage PM. 2020. Contamination status of Salmonella spp., Shigella spp. and Campylobacter spp. in surface and groundwater of the Kelani River Basin, Sri Lanka. Water 12:2187 doi: 10.3390/w12082187

    CrossRef   Google Scholar

    [15] Zehra A, Kaur S, Singh R, Gill JPS. 2020. Surface water quality in Punjab, India: tracking human and farm animal-specific adenoviral contamination and correlation with microbiological and physiochemical parameters. Water, Air, & Soil Pollution 231:534 doi: 10.1007/s11270-020-04892-5

    CrossRef   Google Scholar

    [16] Reyes MSG, Palharini RSA, Monteiro FF, Ayala S, Undurraga EA. 2025. Prevalence and distribution of Salmonella in water bodies in South America: a systematic review. Microorganisms 13:489 doi: 10.3390/microorganisms13030489

    CrossRef   Google Scholar

    [17] Rincé A, Balière C, Hervio-Heath D, Cozien J, Lozach S, et al. 2018. Occurrence of bacterial pathogens and human noroviruses in shellfish-harvesting areas and their catchments in France. Frontiers in Microbiology 9:2443 doi: 10.3389/fmicb.2018.02443

    CrossRef   Google Scholar

    [18] Lodder WJ, de Roda Husman AM. 2005. Presence of noroviruses and other enteric viruses in sewage and surface waters in the Netherlands. Applied and Environmental Microbiology 71:1453−1461 doi: 10.1128/aem.71.3.1453-1461.2005

    CrossRef   Google Scholar

    [19] Hassard F, Andrews A, Jones DL, Parsons L, Jones V, et al. 2017. Physicochemical factors influence the abundance and culturability of human enteric pathogens and fecal indicator organisms in estuarine water and sediment. Frontiers in Microbiology 8:1996 doi: 10.3389/fmicb.2017.01996

    CrossRef   Google Scholar

    [20] Pras A, Mamane H. 2023. Nowcasting of fecal coliform presence using an artificial neural network. Environmental Pollution 326:121484 doi: 10.1016/j.envpol.2023.121484

    CrossRef   Google Scholar

    [21] Wang L, Zhu Z, Sassoubre L, Yu G, Liao C, et al. 2021. Improving the robustness of beach water quality modeling using an ensemble machine learning approach. Science of the Total Environment 765:142760 doi: 10.1016/j.scitotenv.2020.142760

    CrossRef   Google Scholar

    [22] Li R, Filippelli G, Wang L. 2023. Precipitation and discharge changes drive increases in Escherichia coli concentrations in an urban stream. Science of the Total Environment 886:163892 doi: 10.1016/j.scitotenv.2023.163892

    CrossRef   Google Scholar

    [23] Mohammed H, Hameed IA, Seidu R. 2018. Comparative predictive modelling of the occurrence of faecal indicator bacteria in a drinking water source in Norway. Science of the Total Environment 628−629:1178−1190 doi: 10.1016/j.scitotenv.2018.02.140

    CrossRef   Google Scholar

    [24] Panidhapu A, Li Z, Aliashrafi A, Peleato NM. 2020. Integration of weather conditions for predicting microbial water quality using Bayesian Belief Networks. Water Research 170:115349 doi: 10.1016/j.watres.2019.115349

    CrossRef   Google Scholar

    [25] Ni X, Yan C, Guo B, Han Z, Cui C. 2025. Occurrence, predictive models and potential health risk assessment of viable but non-culturable (VBNC) pathogens in drinking water. Environmental Pollution 368:125794 doi: 10.1016/j.envpol.2025.125794

    CrossRef   Google Scholar

    [26] Yao S, Liu L, Yan C, Zhang T, Yu J, et al. 2025. Virus contamination, removal characteristics and quantitative risk assessment from drinking water source to secondary water supply system. Water Cycle 6:95−104 doi: 10.1016/j.watcyc.2024.11.004

    CrossRef   Google Scholar

    [27] USEPA (U.S. Environmental Protection Agency). 2025. Conducting a human health risk assessment. Retrieved from www.epa.gov/risk/conducting-human-health-risk-assessment
    [28] Girones R, Ferrús MA, Alonso JL, Rodriguez-Manzano J, Calgua B, et al. 2010. Molecular detection of pathogens in water – The pros and cons of molecular techniques. Water Research 44:4325−4339 doi: 10.1016/j.watres.2010.06.030

    CrossRef   Google Scholar

    [29] Xu G, Wang T, Wei Y, Zhang Y, Chen J. 2022. Fecal coliform distribution and health risk assessment in surface water in an urban-intensive catchment. Journal of Hydrology 604:127204 doi: 10.1016/j.jhydrol.2021.127204

    CrossRef   Google Scholar

    [30] Li C, Sylvestre É, Fernandez-Cassi X, Julian TR, Kohn T. 2023. Waterborne virus transport and the associated risks in a large lake. Water Research 229:119437 doi: 10.1016/j.watres.2022.119437

    CrossRef   Google Scholar

    [31] McBride GB, Stott R, Miller W, Bambic D, Wuertz S. 2013. Discharge-based QMRA for estimation of public health risks from exposure to stormwater-borne pathogens in recreational waters in the United States. Water Research 47:5282−5297 doi: 10.1016/j.watres.2013.06.001

    CrossRef   Google Scholar

    [32] Miao J, Wei Z, Zhou S, Li J, Shi D, et al. 2022. Predicting the concentrations of enteric viruses in urban rivers running through the city center via an artificial neural network. Journal of Hazardous Materials 438:129506 doi: 10.1016/j.jhazmat.2022.129506

    CrossRef   Google Scholar

    [33] Van den Broeck G, Lykov A, Schleich M, Suciu D. 2022. On the tractability of SHAP explanations. Journal of Artificial Intelligence Research 74:851−886 doi: 10.1613/jair.1.13283

    CrossRef   Google Scholar

    [34] Kaplan ES, Karahan AG. 2018. The determination of E. coli levels and pathotypes in water sources around Isparta province Turkey. Environmental Monitoring and Assessment 190:653 doi: 10.1007/s10661-018-7036-1

    CrossRef   Google Scholar

    [35] Goh SG, Saeidi N, Gu X, Vergara GGR, Liang L, et al. 2019. Occurrence of microbial indicators, pathogenic bacteria and viruses in tropical surface waters subject to contrasting land use. Water Research 150:200−215 doi: 10.1016/j.watres.2018.11.058

    CrossRef   Google Scholar

    [36] Ye XY, Ming X, Zhang YL, Xiao WQ, Huang XN, et al. 2012. Real-time PCR detection of enteric viruses in source water and treated drinking water in Wuhan, China. Current Microbiology 65:244−253 doi: 10.1007/s00284-012-0152-1

    CrossRef   Google Scholar

    [37] Canh VD, Torii S, Furumai H, Katayama H. 2021. Application of capsid integrity (RT-)qPCR to assessing occurrence of intact viruses in surface water and tap water in Japan. Water Research 189:116674 doi: 10.1016/j.watres.2020.116674

    CrossRef   Google Scholar

    [38] Wong YY, Lee CW, Chai SCY, Lim JH, Bong CW, et al. 2022. Distribution of faecal indicator bacteria in tropical waters of Peninsular Malaysia and their decay rates in tropical seawater. Marine Pollution Bulletin 185:114297 doi: 10.1016/j.marpolbul.2022.114297

    CrossRef   Google Scholar

    [39] Wanjugi P, Sivaganesan M, Korajkic A, McMinn B, Kelty CA, et al. 2018. Incidence of somatic and F+ coliphage in Great Lake Basin recreational waters. Water Research 140:200−210 doi: 10.1016/j.watres.2018.04.055

    CrossRef   Google Scholar

    [40] Cooksey EM, Singh G, Scott LC, Aw TG. 2019. Detection of coliphages and human adenoviruses in a subtropical estuarine lake. Science of the Total Environment 649:1514−1521 doi: 10.1016/j.scitotenv.2018.08.322

    CrossRef   Google Scholar

    [41] Moritz MM, Flemming HC, Wingender J. 2010. Integration of Pseudomonas aeruginosa and Legionella pneumophila in drinking water biofilms grown on domestic plumbing materials. International Journal of Hygiene and Environmental Health 213:190−197 doi: 10.1016/j.ijheh.2010.05.003

    CrossRef   Google Scholar

    [42] Burton GA Jr, Gunnison D, Lanza GR. 1987. Survival of pathogenic bacteria in various freshwater sediments. Applied and Environmental Microbiology 53:633−638 doi: 10.1128/aem.53.4.633-638.1987

    CrossRef   Google Scholar

    [43] Dey R, Rieger AM, Stephens C, Ashbolt NJ. 2019. Interactions of Pseudomonas aeruginosa with Acanthamoeba polyphaga observed by imaging flow cytometry. Cytometry Part A 95:555−564 doi: 10.1002/cyto.a.23768

    CrossRef   Google Scholar

    [44] Sauer K, Cullen MC, Rickard AH, Zeef LAH, Davies DG, et al. 2004. Characterization of nutrient-induced dispersion in Pseudomonas aeruginosa PAO1 biofilm. Journal of Bacteriology 186:7312−7326 doi: 10.1128/jb.186.21.7312-7326.2004

    CrossRef   Google Scholar

    [45] Bédard E, Prévost M, Déziel E. 2016. Pseudomonas aeruginosa in premise plumbing of large buildings. MicrobiologyOpen 5:937−956 doi: 10.1002/mbo3.391

    CrossRef   Google Scholar

    [46] Haramoto E, Kitajima M, Hata A, Torrey JR, Masago Y, et al. 2018. A review on recent progress in the detection methods and prevalence of human enteric viruses in water. Water Research 135:168−186 doi: 10.1016/j.watres.2018.02.004

    CrossRef   Google Scholar

    [47] Elahi A, Shumway D, Kowalcyk M, Shrestha A, Gautam N, et al. 2024. Predicting surface water bacteria levels using transfer learning and domain adaptation. 2024 IEEE International Conference on Big Data (BigData), Washington, DC, USA, 2024. LOS ALAMITOS: IEEE. pp. 1−10 doi: 10.1109/bigdata62323.2024.10966835
    [48] Kadoya SS, Zhu Y, Chen R, Rong C, Li Y, et al. 2024. A soft-sensor approach for predicting an indicator virus removal efficiency of a pilot-scale anaerobic membrane bioreactor (AnMBR). Journal of Water and Health 22:967−977 doi: 10.2166/wh.2024.251

    CrossRef   Google Scholar

    [49] Shayanfar S, Shayanfar A. 2022. Comparison of various methods for validity evaluation of QSAR models. BMC Chemistry 16:63 doi: 10.1186/s13065-022-00856-4

    CrossRef   Google Scholar

    [50] Stocker MD, Pachepsky YA, Hill RL. 2021. Prediction of E. coli concentrations in agricultural pond waters: application and comparison of machine learning algorithms. Frontiers in Artificial Intelligence 4:768650 doi: 10.3389/frai.2021.768650

    CrossRef   Google Scholar

    [51] Hong SM, Morgan BJ, Stocker MD, Smith JE, Kim MS, et al. 2024. Using machine learning models to estimate Escherichia coli concentration in an irrigation pond from water quality and drone-based RGB imagery data. Water Research 260:121861 doi: 10.1016/j.watres.2024.121861

    CrossRef   Google Scholar

    [52] Rasheduzzaman M, Singh R, Haas CN, Tolofari D, Yassaghi H, et al. 2019. Reverse QMRA as a decision support tool: setting acceptable concentration limits for Pseudomonas aeruginosa and Naegleria fowleri. Water 11:1850 doi: 10.3390/w11122523

    CrossRef   Google Scholar

    [53] Roser DJ, van den Akker B, Boase S, Haas CN, Ashbolt NJ, et al. 2014. Pseudomonas aeruginosa dose response and bathing water infection. Epidemiology and Infection 142:449−462 doi: 10.1017/s0950268813002690

    CrossRef   Google Scholar

    [54] Soller JA, Eftim SE, Nappier SP. 2018. Direct potable reuse microbial risk assessment methodology: sensitivity analysis and application to State log credit allocations. Water Research 128:286−292 doi: 10.1016/j.watres.2017.10.034

    CrossRef   Google Scholar

    [55] de Brito Cruz D, Schmidt PJ, Emelko MB. 2024. Drinking water QMRA and decision-making: sensitivity of risk to common independence assumptions about model inputs. Water Research 259:121877 doi: 10.1016/j.watres.2024.121877

    CrossRef   Google Scholar

    [56] Li L, Qiao J, Yu G, Wang L, Li H, et al. 2022. Interpretable tree-based ensemble model for predicting beach water quality. Water Research 211:118078 doi: 10.1016/j.watres.2022.118078

    CrossRef   Google Scholar

    [57] Cho KH, Cha SM, Kang JH, Lee SW, Park Y, et al. 2010. Meteorological effects on the levels of fecal indicator bacteria in an urban stream: a modeling approach. Water Research 44:2189−2202 doi: 10.1016/j.watres.2009.12.051

    CrossRef   Google Scholar

    [58] Liang C, Yao Z, Du S, Hong M, Wang K, et al. 2019. Sediment pH, not the bacterial diversity, determines Escherichia coli O157:H7 survival in estuarine sediments. Environmental Pollution 252:1078−1086 doi: 10.1016/j.envpol.2019.06.019

    CrossRef   Google Scholar

    [59] Smith TP, Thomas TJH, García-Carreras B, Sal S, Yvon-Durocher G, et al. 2019. Community-level respiration of prokaryotic microbes may rise with global warming. Nature Communications 10:5124 doi: 10.1038/s41467-019-13109-1

    CrossRef   Google Scholar

    [60] Nydahl A, Panigrahi S, Wikner J. 2013. Increased microbial activity in a warmer and wetter climate enhances the risk of coastal hypoxia. FEMS Microbiology Ecology 85:338−347 doi: 10.1111/1574-6941.12123

    CrossRef   Google Scholar

    [61] Li J, Zuo Q. 2020. Forms of nitrogen and phosphorus in suspended solids: a case study of Lihu Lake, China. Sustainability 12:5026 doi: 10.3390/su12125026

    CrossRef   Google Scholar

    [62] Gong Y, Liang X, Li X, Li J, Fang X, et al. 2016. Influence of rainfall characteristics on total suspended solids in urban runoff: a case study in Beijing, China. Water 8:278 doi: 10.3390/w8070278

    CrossRef   Google Scholar

    [63] Heisler J, Glibert PM, Burkholder JM, Anderson DM, Cochlan W, et al. 2008. Eutrophication and harmful algal blooms: a scientific consensus. Harmful Algae 8:3−13 doi: 10.1016/j.hal.2008.08.006

    CrossRef   Google Scholar

    [64] Korajkic A, Wanjugi P, Brooks L, Cao Y, Harwood VJ. 2019. Persistence and decay of fecal microbiota in aquatic habitats. Microbiology and Molecular Biology Reviews 83:e00005-19 doi: 10.1128/mmbr.00005-19

    CrossRef   Google Scholar

    [65] Yates AG, Brua RB, Friesen A, Reedyk S, Benoy G. 2022. Nutrient and suspended solid concentrations, loads, and yields in rivers across the Lake Winnipeg Basin: a twenty year trend assessment. Journal of Hydrology: Regional Studies 44:101249 doi: 10.1016/j.ejrh.2022.101249

    CrossRef   Google Scholar

    [66] Aas K, Jullum M, Løland A. 2021. Explaining individual predictions when features are dependent: more accurate approximations to Shapley values. Artificial Intelligence 298:103502 doi: 10.1016/j.artint.2021.103502

    CrossRef   Google Scholar

    [67] O'Mullan GD, Juhl AR, Reichert R, Schneider E, Martinez N. 2019. Patterns of sediment-associated fecal indicator bacteria in an urban estuary: Benthic-pelagic coupling and implications for shoreline water quality. Science of the Total Environment 656:1168−1177 doi: 10.1016/j.scitotenv.2018.11.405

    CrossRef   Google Scholar

    [68] Chinfak N, Charoenpong C, Sompongchaiyakul P, Wu Y, Supcharoen R, et al. 2023. Environmental factors influencing the distribution of fecal coliform bacteria in Bandon Bay, Thailand. Regional Studies in Marine Science 68:103277 doi: 10.1016/j.rsma.2023.103277

    CrossRef   Google Scholar

  • Cite this article

    Guo B, Wang J, Yan C, Tang C, Yin K, et al. 2026. A machine learning-quantitative microbial risk assessment (ML-QMRA) framework for predicting potential health risks from pathogens in drinking water sources. Biocontaminant 2: e012 doi: 10.48130/biocontam-0026-0009
    Guo B, Wang J, Yan C, Tang C, Yin K, et al. 2026. A machine learning-quantitative microbial risk assessment (ML-QMRA) framework for predicting potential health risks from pathogens in drinking water sources. Biocontaminant 2: e012 doi: 10.48130/biocontam-0026-0009

Figures(7)  /  Tables(1)

Article Metrics

Article views(121) PDF downloads(19)

Original Research   Open Access    

A machine learning-quantitative microbial risk assessment (ML-QMRA) framework for predicting potential health risks from pathogens in drinking water sources

Biocontaminant  2 Article number: e012  (2026)  |  Cite this article

Abstract: Pathogens in drinking water sources are diverse and pose potential health risks, yet rapid monitoring and risk assessment remain challenging. This study established detection methods for three indicator bacteria and six pathogens, and compared six machine learning models to develop a machine learning-quantitative microbial risk assessment (ML-QMRA) framework for assessing the potential health risks of microbial contamination. The framework provided a feasible data-driven approach for predicting the potential health risks posed by pathogens using routine water quality indicators. Water samples were collected monthly from May 2024 to December 2025, with pathogen concentrations typically ranging from 103 to 106 copies/L. Correlation analysis revealed weak associations between pathogens and indicator bacteria (p > 0.05). Among the six machine learning models, Random Forest and Decision Tree showed better performance. Overall, the predictive models achieved good agreement with the observed data for all pathogens (R2 > 0.75). Notably, the Decision Tree model demonstrated excellent predictive performance for Pseudomonas aeruginosa (P. aeruginosa, R2 > 0.90). SHapley Additive exPlanations (SHAP) analysis was applied to interpret the influence of variables on model predictions, revealing that models for indicator bacteria were primarily influenced by water temperature and turbidity, while TDS and electrical conductivity were the most influential predictors of adenovirus. The findings indicate that conventional water quality parameters show useful predictive potential for estimating pathogen levels and associated potential health risks.

    • The emergence and re-emergence of pathogens pose a substantial challenge to global public health[1]. Waterborne pathogen contamination in ambient water bodies and related diseases is a major water quality concern throughout the world[2]. According to the WHO[3], approximately 2 billion people worldwide use drinking water sources contaminated with microbial pathogens, and an estimated 485,000 deaths occur annually due to waterborne diseases. In most countries, the microbiological quality of water is assessed primarily using fecal indicator bacteria (FIB) such as Escherichia coli (E. coli), Enterococcus faecalis (E. faecalis), and fecal coliforms[4]. However, recent studies have shown that FIB concentrations often do not correlate well with the presence of specific pathogenic organisms[5,6]. This discrepancy underscores the urgent need for direct pathogen detection and advanced risk assessment frameworks to address microbial hazards comprehensively.

      Common pathogens in drinking water sources include pathogenic bacteria such as Pseudomonas aeruginosa, Salmonella spp., and Shigella spp., and viruses including Adenovirus, Norovirus, and Enterovirus. These pathogens can enter the human body through the respiratory tract, gastrointestinal system, or skin, causing illnesses such as typhoid fever, diarrhea, and dysentery[710]. These pathogens have been detected to varying degrees in drinking water sources[11], rivers[1215], lakes[16], oceans[17], and sewage[18].

      Traditional culture-based methods for microorganism detection (e.g., membrane filtration and dilution plating) typically require 24–72 h of incubation to obtain detection results[19]. To overcome these limitations, molecular techniques such as quantitative polymerase chain reaction (qPCR) have been increasingly adopted for their high sensitivity and specificity in detecting a broad range of microbial pathogens. While molecular approaches provide rapid and precise results, they often require sophisticated equipment and trained personnel, which may limit their application in low-resource settings.

      Conventional linear models have limited capacity to capture the complex, non-linear, and interactive relationships between water quality parameters and microbial contamination. In recent years, machine learning (ML) approaches have shown considerable potential for modeling such relationships and enabling more accurate prediction of microbial contamination levels from routinely monitored indicators[2022]. Mohammed et al.[23] developed various machine learning models based on water quality and environmental variables to predict the real-time concentrations of FIB in raw source water. Panidhapu et al.[24] proposed an empirical modeling approach based on machine learning algorithms such as Random Forest (RF) and Naïve Bayes, which integrates water quality, environmental, and meteorological variables to enable real-time prediction of FIB levels. However, most studies have focused primarily on FIB, whereas relatively few have explored the use of ML for the direct prediction of waterborne pathogens, despite its potential to support public health risk assessment. If pathogen concentrations can be reliably predicted from routinely monitored environmental and water-quality variables, these predictions could be further incorporated into quantitative microbial risk assessment (QMRA) to estimate infection risks and associated health burdens in a more timely and scalable manner. Such integration would provide a more practical and dynamic framework for assessing waterborne health risks under real conditions.

      This study investigated the contamination levels of three fecal indicator bacteria (fecal coliforms, E. coli, E. faecalis) and six pathogens (P. aeruginosa, Salmonella spp., Shigella spp., Adenovirus, Norovirus, and Enterovirus) in surface water samples collected from a major city in Eastern China. Six machine learning algorithms, Multiple Linear Regression (MLR), Least Squares Boosting (LSBoost), Decision Tree (DT), Support Vector Machine (SVM), RF, and Multilayer Perceptron (MLP), were employed to develop predictive models using water quality indicators. The optimal model was integrated with QMRA to form a framework for estimating disability-adjusted life years (DALYs). Additionally, SHapley Additive exPlanations (SHAP) analysis was conducted to interpret feature contributions to model predictions. This integrated framework offers a reliable and transparent solution for microbial water quality management.

    • Surface water samples (n = 95) were collected in a major city in Eastern China from May 2024 to December 2025, with three to five sampling campaigns conducted in each season. During each sampling campaign, samples were collected from five fixed sites across the two drinking water sources (DWS1 and DWS2) within the same sampling period to reduce temporal mismatch among sites. At each site, 2–3 L of water was collected using sterilized glass bottles. All samples were stored at 4 °C and transported to the laboratory for processing within 4 h[25]. On-site measurements of water temperature (WT), pH, conductivity, total dissolved solids (TDS), dissolved oxygen (DO), turbidity (NTU), and residual chlorine (Cl) were conducted using a portable water quality analyzer (DZB-712F, Leici, China), a turbidimeter (2100Q, HACH, USA), and a portable spectrophotometer (PCII, HACH, USA). Meteorological data, including air temperature (T), humidity (RH), solar radiation (SR), wind speed, 4-h (R4h), and 24-h (R24h) cumulative rainfall prior to sampling were obtained from the European Centre for Medium-Range Weather Forecasts (ECMWF). The physicochemical characteristics of surface water samples collected from DWS1 and DWS2 are presented in Table 1.

      Table 1.  Physicochemical characteristics of surface water samples collected from two drinking water sources (DWS1 and DWS2)

      DWS1-1DWS1-2DWS2-1DWS2-2DWS2-3
      Water temperature (WT, °C)23.17 ± 8.5623.70 ± 8.8625.10 ± 7.3723.48 ± 7.3023.67 ± 7.50
      pH7.62 ± 0.438.01 ± 0.607.77 ± 0.398.05 ± 0.268.16 ± 0.34
      Conductivity (EC, μS/cm)454.61 ± 100.61491.19 ± 91.31663.96 ± 375.93446.95 ± 119.20403.13 ± 94.32
      Chlorine residual (Cl, mg/L)0.045 ± 0.0140.035 ± 0.0190.034 ± 0.0230.040 ± 0.0130.0325 ± 0.016
      Total dissolved solids (TDS, mg/L)227.5 ± 50.48220.34 ± 88.67332.09 ± 187.87216.79 ± 52.68201.55 ± 47.07
      Turbidity (NTU)38.71 ± 12.4127.55 ± 10.6877.2 ± 73.2539.39 ± 54.6915.45 ± 4.24
      Dissolved oxygen (DO, mg/L)6.26 ± 2.606.93 ± 1.315.96 ± 1.697.18 ± 1.946.46 ± 1.90
      Air temperature (T, °C)23.20 ± 8.5023.14 ± 8.6822.15 ± 8.3521.86 ± 8.3722.54 ± 7.80
      Relative humidity (RH, %)57.58 ± 12.6756.95 ± 11.7072.68 ± 14.7070.79 ± 16.2970.81 ± 15.46
      Rainfall 4 h before sampling (R4h, mm)0.028 ± 0.0750.027 ± 0.0750.066 ± 0.0810.050 ± 0.0580.069 ± 0.081
      Rainfall 24 h before sampling (R24h, mm)0.026 ± 0.0380.026 ± 0.0390.15 ± 0.310.145 ± 0.3230.149 ± 0.307
      Wind speed (m/s)3.90 ± 1.843.76 ± 1.693.56 ± 1.994.02 ± 1.613.35 ± 1.96
      Solar radiation (W/m2)644.68 ± 217.49622.12 ± 251.81514.82 ± 183.96524.33 ± 197.59504.85 ± 193.10
      Values are presented as mean ± standard deviation.
    • According to the Chinese National Standard: Standard Examination Methods for Drinking Water – Part 12: Microbiological indicators (GB/T 5750.12-2023), culturable bacteria in water samples were quantified using a membrane filtration method. Each water sample was filtered through a 0.45-μm mixed cellulose ester (MCE) membrane (Titan, Shanghai, China). All analyses were performed in triplicate, and the results are expressed as colony-forming units (CFU).

    • The water samples were concentrated following the method previously established by our group[26]. Viral RNA was extracted using the QIAamp® Viral RNA Mini Kit (Qiagen, Germany), followed by reverse transcription to synthesize complementary DNA (cDNA). DNA was extracted using the FastDNA SPIN Kit for Soil (MP Biomedicals, USA) according to the manufacturer's protocol.

    • qPCR assays were established, based on protocols previously developed by our research group[25,26], to detect P. aeruginosa, Salmonella, Shigella, Adenovirus, Norovirus, and Enterovirus. Specific primers and TaqMan probes were designed targeting conserved gene regions, as listed in Supplementary Table S1. Details of the reaction system are provided in Supplementary Table S2. The reaction was performed in a real-time quantitative PCR (qPCR) instrument (LightCycler 480 II, Roche, Switzerland) under the following conditions: 95 °C for 30 s, followed by 40 cycles of 95 °C for 30 s and 60 °C for 1 min[25]. All assays included positive and negative controls and were run in triplicate. Quantification was performed using standard curves generated from serial dilutions of target DNA or RNA, as shown in Supplementary Table S3.

    • Hazard Identification is the process of determining whether exposure to a stressor can cause an increase in the incidence of specific adverse health effects[27]. Contaminated water containing enteric pathogens can cause gastroenteritis and respiratory infections[28].

    • In this study, drinking is the sole pathway to exposure. The exposure dose (D) is calculated as shown in Eq. (1):

      $ D=C\times V $ (1)

      where C = C0 × Re, with C0 representing the initial concentration of the pathogen and the residual rate (Re) denoting the removal efficiency of the drinking water treatment plant, Re = 1.9 log10; V = V0 × 10.7%, where 10.7% represents the probability of direct consumption[29], and V0 is the volume of drinking water intake, ranging from 0.8 to 3 L/d, following a triangular distribution, based on the 'Exposure Factors Handbook of Chinese Population' issued by the Ministry of Ecology and Environment of China.

    • The virus dose-response models were originally established using different dose units[30]. We followed the dose-coordination rules proposed by McBride et al.[31]. The conversion information is shown in Supplementary Table S4. The dose–response models for the various pathogens are shown in Eqs (2) and (3), and the corresponding parameters are summarized in Supplementary Table S5.

      $ {P}_{\text{inf, daily}}=1-{\text{EXP}}(-kD) $ (2)
      $ {P}_{\text{inf, daily}}=1 +{\left(1 +\frac{D}{\beta }\right)}^{-\alpha} $ (3)
    • This study adopted the DALYs-based evaluation approach recommended by the WHO, with a benchmark limit of 10−6 DALYs per person per year (pppy), as shown in Eqs (4)–(6). The relevant parameter information is shown in Supplementary Table S5.

      $ P_{\text{inf, annua}\mathrm{l}}=1-(1-P_{\text{inf, daily}})^{365} $ (4)
      $ {P}_{\text{ill,annual}}={P}_{i\text{nf,annual}}\times{P}_{\text{ill}|\text{inf}} $ (5)
      $ \text{DALY}=P\mathrm{_{ill,annual}}\times S\times\text{DALY/case} $ (6)
    • Thirteen feature variables were used to develop machine learning models for predicting concentrations of nine pathogens (fecal coliforms, E. coli, E. faecalis, P. aeruginosa, Salmonella spp., Shigella spp., Adenovirus, Norovirus, and Enterovirus). Parallel measurements were averaged. Non-detects (< LOD) were treated as left-censored data and handled by multiple imputation. To account for within-batch dependence (five sites per batch), data were split at the batch level into training (70%) and test (30%) sets[23,32]. Z-score standardization was fitted on the training set and applied to the test set, and predictions were inverse-transformed to the original scale.

    • In this study, six representative machine learning models were selected to develop predictive models for pathogen concentrations: MLR, LSBoost, DT, RF, SVM, and MLP. These models cover a range of linear, ensemble, tree-based, kernel-based, and neural network approaches, providing a diverse framework for performance comparison. During model optimization, algorithm-specific strategies were adopted. For the MLP, hyperparameters were tuned mainly by adjusting the number of hidden neurons and network architecture. For the remaining models, L1-regularised embedded feature selection was performed within the training set, and performance was compared across different feature-set sizes to reduce overfitting and improve model stability. A grouped five-fold cross-validation scheme was used during optimization to ensure that samples from the same group were not split across folds, thereby avoiding optimistic performance estimates driven by within-group dependence.

    • Model performance for microbial concentration prediction was evaluated using three common regression metrics: the coefficient of determination (R2), mean absolute error (MAE), and root mean squared error (RMSE). Final performance was assessed primarily based on R2, MAE, and RMSE on the independent test set, as defined in Eqs (7)–(9). These indicators were used to quantify the accuracy and goodness of fit between predicted and observed values.

      After the optimal model for each microorganism was determined, data collected in January and February 2026, which were not used for model training, hyperparameter tuning, model selection, or test-set evaluation, were used for independent temporal validation.

      $ {\text{MAE}}=\frac{1}{n}\sum\limits_{i=1}^{n}\left| {y}_{i}-{\hat{y}}_{i}\right| $ (7)
      $ {\text{RMSE}}=\sqrt{\frac{1}{n}\sum\limits_{i=1}^{n}{({{y}_{i}}-{{\hat{\text{y}}}_{i}})}^{2}} $ (8)
      $ {R}^{2}=1-\frac{\displaystyle\sum\limits_{i=1}^{n}{({{y}_{i}}-{{\hat{y}}_{i}})}^{2}}{\displaystyle\sum\limits_{i=1}^{n}{({{y}_{i}}-{{\overline{y}}_{i}})}^{2}} $ (9)
    • An integrated framework combining ML models and QMRA was developed in this study. The best-performing model, identified according to model evaluation metrics, was applied to predict the concentrations of pathogens under varying environmental and water-quality conditions. The predicted pathogen concentrations were then incorporated into the QMRA to estimate health risks in accordance with WHO guidelines. The model construction framework is shown in Fig. 1.

      Figure 1. 

      Flowchart of data processing and model development.

    • SHAP values were computed for the top-performing model to identify the most influential variables driving predicted pathogen concentrations[33]. For each explanatory variable, the SHAP value considers the difference in a ML model's predictions made by including and excluding the explanatory variable for all combinations of variables.

      $ {\phi }_{\text{i}}=\sum \limits_{S\in F\backslash \left\{i\right\}}\frac{\left| S\right| !\left(F-\left| S\right| -1\right)!}{F!}\left[{f}_{S\cup \left\{i\right\}}\left({x}_{S\cup \left\{i\right\}}\right)-{f}_{S}\left({x}_{S}\right)\right] $ (10)
    • All statistical analyses and model construction were carried out using MATLAB R2024a. Model interpretability was assessed through SHAP analysis implemented in Python within a Jupyter Notebook environment. Data visualization was conducted primarily with Origin 2024. Uncertainty analysis was conducted through a Monte Carlo simulation with 10,000 iterations, supported by probabilistic simulations, using Microsoft Excel in conjunction with Oracle Crystal Ball.

    • The contamination levels of indicator bacteria, pathogenic bacteria, and viruses in the water samples are illustrated in Fig. 2. Indicator bacteria concentrations varied markedly across samples (Fig. 2a). The concentration of fecal coliforms ranged from 4 × 101 to 8.90 × 103 CFU/L. The concentration of E. coli was in the range of n.d.–2.43 × 103 CFU/L, with a detection rate of 91.40%. The concentration of E. faecalis was in the range of n.d.–1.80 × 103 CFU/L, with a detection rate of 93.55%. These values are comparable to those reported in a study of surface water sources in Turkey, where fecal coliforms and E. coli concentrations ranged from n.d. to 3.47 × 104 CFU/L and from n.d. to 5.62 × 103 CFU/L, respectively[34]. The similarity in magnitude suggests that bacterial contamination in the present study is within the range commonly observed in urbanized regions, implying comparable anthropogenic inputs and environmental conditions.

      Figure 2. 

      Microbial distributions at DWS1 and DWS2. (a) Indicator bacteria: fecal coliforms, E. coli, and E. faecalis. (b) Pathogenic bacteria: P. aeruginosa, Salmonella spp., Shigella spp. (c) Viruses: Adenovirus, Norovirus, Enterovirus; and (d) detection frequency (%).

      The contamination levels of pathogenic bacteria were shown in Fig. 2b. P. aeruginosa exhibited an 87.10% detection frequency, with concentrations ranging from n.d. to 8.97 × 106 copies/L. Salmonella spp. was detected in 83.87% of samples, with concentrations from n.d. to 4.69 × 106 copies/L, while Shigella spp. appeared in 73.12% of samples, ranging from n.d. to 1.88 × 107 copies/L. In comparison, drinking water reservoirs in Singapore showed lower concentrations of P. aeruginosa (1.2 × 102–8.5 × 104 copies/L) and Salmonella spp. (1.2 × 102–8.6 × 102 copies/L) than the present study[35]. These high detection frequencies indicate widespread inputs and persistence of multiple bacterial pathogens in raw source waters. In urbanized areas and catchments characterized by mixed land use, rainfall and stormwater runoff mobilize human and animal fecal wastes from sewer overflows, leaking septic systems, and agricultural manures into receiving waters, producing event-driven peaks in microbial loads.

      The detection characteristics of viruses at DWS1 and DWS2 are shown in Fig. 2c. Adenovirus exhibited a 100% detection rate, with concentrations ranging from 2.56 × 102 to 1.06 × 106 copies/L. Norovirus ranged from 2.68 × 103 to 1.29 × 107 copies/L. Enterovirus concentrations ranged from n.d. to 7.59 × 106 copies/L, with a detection frequency of 39.78%. These results indicated a substantial viral load in the studied water sources. In comparison, Adenovirus was detected in 100% of samples from the Han and Yangtze Rivers, with concentrations ranging from 2.8 × 103 to 1.1 × 106 copies/L[36]. The detection frequencies of adenovirus, enterovirus, and norovirus in drinking water sources in Japan's Kanto region were 65.0%, 45.0%, and 45.0%, respectively, with concentrations ranging from 6.3 × 101 to 1.3 × 106 copies/L, 4.0 × 102 to 2.0 × 104 copies/L, and 6.3 × 102 to 6.3 × 104 copies/L[37]. The frequent co-occurrence of bacterial and viral pathogens poses a notable threat to public health. Moreover, such co-occurrence suggests the potential for synergistic health consequences, thereby constituting a critical public health concern.

    • The correlation analysis among microbial concentrations is presented in Supplementary Fig. S1. There were significant correlations among fecal coliforms, E. coli, and E. faecalis (r = 0.45–0.67, p < 0.001), reflecting their common role as indicators of fecal contamination in water[38]. A notably strong correlation was also observed between P. aeruginosa and Salmonella spp. (r = 0.43, p < 0.01), suggesting potential co-occurrence or similar environmental origins. Goh et al.[35] reported a detectable correlation between Salmonella spp. and P. aeruginosa based on qPCR analysis (r = 0.313). In addition, significant correlations were observed between P. aeruginosa and adenovirus, norovirus, and enterovirus (r = 0.49, −0.36, and −0.67, respectively; all p < 0.01). Overall, the three FIB were mutually correlated, whereas their associations with viruses were generally weak or inconsistent, except for a few significant pairwise correlations. These results suggest that bacterial indicators may not serve as reliable universal surrogates for viral contamination. Previous studies have also shown that associations between pathogens, especially viruses, and FIB are often weak or inconsistent across watersheds and seasons[39,40]. Therefore, bacterial-only measurements may underestimate or mischaracterize viral contamination and the associated health risk.

      P. aeruginosa is widespread in soils and freshwaters, where it can persistently colonize aquatic biofilms, sediments, and protozoan hosts[4143]. However, under elevated organic and particulate loads, it may be released intermittently into the bulk water[44]. Consequently, concurrent increases with FIB during periods of heightened pollution are ecologically plausible. Importantly, P. aeruginosa is not strictly fecal in origin, but its environmental resilience and public-health relevance in water systems warrant consideration in risk discussions[45]. In contrast, viruses differ markedly from bacteria in environmental persistence, transport, and removal, resulting in asynchrony between viral and bacterial contamination indicators[46]. Therefore, monitoring and assessment should incorporate viral indicators or direct viral assays alongside bacterial measures to provide a more comprehensive and actionable appraisal of drinking-water health risks.

    • The study first established six baseline machine learning models for each microorganism using the monitoring data. Their predictive performance was compared using R2, MAE, and RMSE, as summarized in Supplementary Tables S6S14. The comparison of R2, MAE, and RMSE values for six predictive models of different indicator bacteria and pathogens on the test sets is shown in Fig. 3. RF achieved the best performance for fecal coliforms, E. coli, E. faecalis, norovirus, and enterovirus, whereas DT performed best for P. aeruginosa and Salmonella spp., and MLP yielded the best results for Shigella spp. The best-performing model for each target was then selected and further optimised, with optimisation results reported in Supplementary Tables S15S23. Tree-based models (DT and RF) achieved the best or near-best results for most targets, as indicated by higher R2 and lower RMSE and MAE. Elahi et al.[47] developed RF, gradient boosting regression, and other models to predict fecal indicator bacteria levels in water, and indicated that the RF model was the most promising solution for predicting fecal indicator bacteria levels. Kadoya et al.[48] developed a predictive model for viral removal efficiency in an anaerobic membrane bioreactor, and the results showed that the RF model outperformed the artificial neural network model, with better fitting performance and model stability.

      Figure 3. 

      Performance comparison of six machine learning models on test sets using bubble charts. (a) Fecal coliforms, (b) E. coli, (c) E. faecalis, (d) P. aeruginosa, (e) Salmonella spp., (f) Shigella spp., (g) Adenovirus, (h) Norovirus, and (i) Enterovirus. (Higher R2 and lower MAE/RMSE indicate better performance).

      The cross-validation outcomes, as well as the training and testing results for each optimal model, are presented in Supplementary Figs S2S19. The performance of the best-performing models for each microbial target across the training, validation, and test sets was summarized in Fig. 4 to provide a clearer comparison. According to Shayanfar & Shayanfar[49], a model with an R2 value greater than 0.6 is considered to have acceptable predictive ability, while models with R2 less than 0.6 are classified as 'bad models'. All models achieved R2 values above 0.75, and the scatter plots aligned closely with the 1:1 line, indicating that the models effectively capture variability in microbial concentrations and exhibit good model fit and strong generalization performance. DT demonstrated excellent predictive performance for P. aeruginosa (R2 > 0.90). Viral endpoints yielded slightly lower accuracy, particularly for enterovirus, likely due to lower ambient concentrations, more complex environmental fate, and greater measurement noise[20]. Despite the exclusion of socioeconomic and pollution emission indicators from the input feature set, the machine learning models applied in this study achieved reasonable accuracy in predicting microbial levels at DWS1 and DWS2 over short time scales, suggesting that water quality parameters alone can provide substantial predictive value.

      Figure 4. 

      Performance of optimal predictive models for each pathogen on the training and test sets. (a) RF-Fecal coliforms. (b) RF-E. coli. (c) RF-E. faecalis. (d) DT-P. aeruginosa. (e) DT-Salmonella spp. (f) MLP-Shigella spp. (g) DT-Adenovirus. (h) RF-Norovirus. (i) RF-Enterovirus.

      Tree-based models (DT and RF) offer superior robustness and generalization for microbial concentration prediction on small-to-moderate datasets. Their advantage likely derives from aggregating weak learners to reduce variance and bias while capturing nonlinear relationships, thereby improving generalization. By contrast, the traditional MLR performed markedly worse across all targets, underscoring that relationships between microbial concentrations and environmental covariates are not well represented by simple linear forms[50]. Despite strong overall performance, several methodological considerations warrant discussion. Microbial–environment relationships likely involve threshold effects and interactions (e.g., rainfall-turbidity coupling), which are better captured by nonlinear ensembles[24,51]. This indicates that the models captured relatively stable relationships between routine water-quality covariates and microbial levels rather than site-specific noise, which is valuable for extending predictions to locations with limited monitoring. Because the models were developed and tested within the same monitoring framework, the present results should be interpreted as preliminary evidence of cross-site applicability rather than established transferability. Independent external validation using datasets from different watersheds, seasons, treatment contexts, and land-use settings is still required.

      To further evaluate model generalizability, an independent temporal validation was conducted using data collected from January to February 2026, which were not used for model training, hyperparameter tuning, or test-set evaluation. As shown in Supplementary Fig. S20, most predicted values were close to the x = y reference line and fell within the ±1 log accuracy range, indicating good agreement on the independent dataset. The indicator bacteria models showed the most stable performance, with ±1 log accuracy values of 100%, 100%, and 90% for fecal coliforms, E. coli, and E. faecalis, respectively. Model performance varied among pathogens and viruses, with better prediction for Salmonella spp., P. aeruginosa, and enterovirus, but greater uncertainty for Shigella spp., adenovirus, and norovirus. Overall, the independent validation supports the cross-period generalizability of the models for most microorganisms, while further optimization is needed for pathogens with low detection rates or strong spatiotemporal variability.

    • The directly calculated DALYs and sensitivity analysis for the six pathogens are summarized in Fig. 5. The potential health risks associated with different pathogens were shown in Fig. 5a. In the QMRA, exposure was assumed to occur exclusively via drinking-water ingestion, and the DALYs attributable to P. aeruginosa, Salmonella spp., and Shigella spp. ranged from 3.39 × 10−12 to 1.42 × 10−10, 9.27 × 10−8 to 2.73 × 10−6, and 2.50 × 10−7 to 7.82 × 10−6 DALYs pppy, respectively. For adenovirus, norovirus, and enterovirus, the estimated DALYs ranged from 5.51 × 10−9 to 1.77 × 10−7, 7.19 × 10−9 to 2.29 × 10−7, and 5.80 × 10−8 to 2.21 × 10−6 DALYs pppy, respectively. Overall, DALYs for most pathogens were below the WHO tolerable risk benchmark (≤ 10−6 DALYs pppy). However, Salmonella spp., Shigella spp., and enterovirus showed probabilities of 31.68%, 59.70%, and 20.86% of exceeding the WHO benchmark, indicating that non-negligible health risks may still occur under unfavorable exposure conditions. Among the assessed pathogens, P. aeruginosa posed the lowest potential health risk (10−10 DALYs pppy). This may be because P. aeruginosa is an opportunistic pathogen, and its health risk tends to increase substantially only under specific conditions in certain settings (e.g., drinking-water distribution systems), such as biofilm development and insufficient disinfectant residual[52,53]. The pronounced dispersion in boxplots for Salmonella spp., Shigella spp., and norovirus highlights uncertainties driven by environmental variability and model parameters. To improve assessment robustness, future research should employ high-frequency monitoring and scenario-specific modeling to account for spatiotemporal heterogeneity.

      Figure 5. 

      (a) Risk assessment, and (b) sensitivity analysis of pathogens in drinking water sources.

      The sensitivity contributions of key QMRA input parameters are presented in Fig. 5b. Disinfection efficiency was the predominant driver of risk for all pathogens, indicating that treatment performance dictates the variance in health risk. This underscores that maintaining disinfection stability is critical for risk control[54,55]. Key factors include optimizing contact time and managing operational fluctuations. While drinking water volume also influences risk levels due to individual behavior, the contributions of infection fraction and microbial content remain minimal. The latter's limited impact likely results from the dominance of the disinfection factor within the current data range. However, its importance may rise significantly if extreme events, such as runoff-induced pollution spikes, are integrated into the analysis.

      The directly calculated and ML-QMRA-predicted DALY distributions were further compared (Fig. 6). Overall, the predicted distributions showed good agreement with the directly calculated distributions, indicating that the proposed framework can translate predicted pathogen concentrations into risk estimates with reasonable consistency. For P. aeruginosa, both curves almost completely overlapped and remained far below the WHO benchmark (10−6 DALYs pppy), confirming consistently low risk under the ingestion-only scenario. In contrast, Salmonella spp., Shigella spp., and enterovirus showed distributions closer to the benchmark, where small deviations between fitted and true curves around the steep transition region may translate into uncertainty in exceedance probabilities. Viral endpoints generally exhibited good agreement but with slightly more sensitivity around the inflection region, consistent with multi-factor control of viral variability. This pattern suggests that viral risk estimates may be more sensitive to combined environmental and model-related variability. The ML-QMRA framework provided a feasible data-driven approach for translating predicted pathogen concentrations into potential health risk estimates using routine water quality indicators. However, the increased uncertainty near the WHO benchmark, particularly for Salmonella spp., Shigella spp., and norovirus under high-risk scenarios, indicates that broader data coverage and targeted model refinement are needed to better constrain tail-risk estimates.

      Figure 6. 

      Comparison of directly calculated and predicted disability-adjusted life years (DALYs) for six pathogens via drinking water exposure using Monte Carlo simulation. (a) P. aeruginosa, (b) Salmonella spp., (c) Shigella spp., (d) Adenovirus, (e) Norovirus, and (f) Enterovirus.

      It should be noted that the QMRA results were based on pathogen concentration data derived from nucleic-acid-based detection and simplified exposure assumptions. In the dose-response assessment, the conversion relationships between genome copies and the dose units used in clinical dose-response models were considered, as summarized in Supplementary Table S4. Nevertheless, nucleic acid-based detection quantifies genetic signals and may not fully distinguish infectious organisms from non-infectious or inactivated ones. In addition, drinking-water ingestion was considered as the sole exposure pathway to provide a simplified and comparable assessment scenario, while other potential exposure routes were not included. Therefore, future studies should incorporate infectivity-based measurements and more comprehensive exposure scenarios to further improve the accuracy of microbial risk estimation.

    • The ranking of feature contributions in microbial prediction models based on SHAP analysis is displayed in Fig. 7. In the models for fecal coliforms, E. coli, and E. faecalis, turbidity consistently ranked among the most important predictors (41.6%–62.1%), with a particularly pronounced contribution in the E. coli and E. faecalis models, indicating that turbidity was an influential predictor for indicator-bacteria prediction. Li et al.[56] developed E. coli prediction models based on LightGBM and XGBoost, and both models indicated that lake turbidity was the most important predictor. In contrast, the predictor structures of the pathogenic bacterial models differed more markedly. For P. aeruginosa, temperature showed the highest predictive contribution, consistent with previous studies suggesting that warm water conditions may favor its survival and proliferation[57]. Whereas the Salmonella spp. model showed combined contributions from dissolved oxygen, relative humidity, rainfall, and water-chemistry variables. The Shigella spp. model showed a more complex nonlinear contribution pattern, consistent with the selection of MLP as its best-performing model. For viruses, adenovirus predictions were mainly associated with water temperature, while norovirus and enterovirus predictions were mainly associated with turbidity, temperature, and other water-quality-related variables. Feature contributions in the viral models were more dispersed, suggesting that viral predictions were influenced by multiple predictors and that the explanatory contribution of any single variable was relatively limited.

      Figure 7. 

      SHAP value ranking of optimal predictive models for different pathogens. (a) Fecal coliforms, (b) E. coli, (c) E. faecalis, (d) P. aeruginosa, (e) Salmonella spp., (f) Shigella spp., (g) Adenovirus, (h) Norovirus, and (i) Enterovirus.

      Although the salient features vary among models, water-quality variables generally dominate in predictive importance[57,58]. This pattern likely reflects the direct role of physicochemical parameters such as pH, turbidity, and dissolved oxygen in shaping the aquatic environment. For example, temperature is a primary regulator of microbial metabolism and enzyme activity[59]. Water temperature also influences the biodegradation of organic matter, which supplies substrates for FIB and modulates their growth rates[60]. Suspended solids may leach nutrient constituents that promote bacterial proliferation[61]. Increases in particulate matter can then stimulate bacterial growth[62,63]. By contrast, meteorological variables such as air temperature, precipitation, wind speed, and solar radiation tend to affect microbes more indirectly and at broader scales. Although higher air temperatures can accelerate microbial metabolism and reproduction[64] and precipitation can alter influent composition by changing loads of suspended solids and particle-associated nutrients[65], these effects typically manifest through modifications of in situ water conditions rather than acting directly on microorganisms.

      It should be noted that SHAP quantifies feature contributions within the learned predictive mapping and does not imply causality. Correlated covariates (e.g., EC and TDS) may share or shift importance across models[66]. Moreover, several 'water-quality' predictors likely act as proxies for source inputs and transport processes (e.g., runoff-driven loading or sediment resuspension) rather than directly regulating microbial physiology[67,68]. Future work could examine SHAP dependence/interaction patterns and test the stability of feature rankings via resampling or site-grouped validation to strengthen the mechanistic interpretation and generalizability.

    • This study collected systematic monitoring data on indicator bacteria and pathogens, based on which a framework integrating machine learning with QMRA was successfully developed. This framework offered a scalable and interpretable predictive approach for assessing the potential health risks in drinking water sources, allowing predicted microbial concentrations to be translated into understandable health risk outcomes. The study found that among the six machine learning models tested, DT and RF models were more suitable for predicting microbial contamination levels, highlighting the advantages of ensemble learning algorithms in handling complex, non-linear environmental data. Further SHAP interpretability analysis showed that predictions for indicator bacteria were predominantly driven by turbidity, while pathogen predictions were primarily influenced by factors such as temperature and dissolved oxygen. In future research, the models still require external validation across broader spatiotemporal scales and on independent datasets. Embedding this framework into real-time monitoring platforms, combining scenario-based QMRA with threshold-driven intervention strategies, will support refined water safety management.

      • The authors confirm their contributions to the paper as follows: Bingbing Guo: writing − original draft, data curation, methodology, visualization; Jing Wang: methodology, visualization; Chicheng Yan: methodology, visualization; Chao Tang: methodology; Kun Yin: visualization; Lei Jiang: resources; Changzheng Cui: resources, writing − review and editing. All authors reviewed the results and approved the final version of the manuscript.

      • The datasets used or analyzed during the current study are available from the corresponding author on reasonable requests.

      • This study was funded by the National Key Research and Development Program of China (Grant No. 2023YFC3205800) and the Fundamental Research Funds for the Central Universities.

      • The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

      • Full list of author information is available at the end of the article.

      • Copyright: © 2026 by the author(s). Published by Maximum Academic Press, Fayetteville, GA. This article is an open access article distributed under Creative Commons Attribution License (CC BY 4.0), visit https://creativecommons.org/licenses/by/4.0/.
    Figure (7)  Table (1) References (68)
  • About this article
    Cite this article
    Guo B, Wang J, Yan C, Tang C, Yin K, et al. 2026. A machine learning-quantitative microbial risk assessment (ML-QMRA) framework for predicting potential health risks from pathogens in drinking water sources. Biocontaminant 2: e012 doi: 10.48130/biocontam-0026-0009
    Guo B, Wang J, Yan C, Tang C, Yin K, et al. 2026. A machine learning-quantitative microbial risk assessment (ML-QMRA) framework for predicting potential health risks from pathogens in drinking water sources. Biocontaminant 2: e012 doi: 10.48130/biocontam-0026-0009

Catalog

    /

    DownLoad:  Full-Size Img  PowerPoint
    Return
    Return