• HOME
  • NEWS
  • EXPLORE
    • CAREER
      • Companies
      • Jobs
    • EVENTS
    • iGEM
      • News
      • Team
    • PHOTOS
    • VIDEO
    • WIKI
  • BLOG
  • COMMUNITY
    • FACEBOOK
    • INSTAGRAM
    • TWITTER
Wednesday, November 25, 2026
BIOENGINEER.ORG
No Result
View All Result
  • Login
  • HOME
  • NEWS
  • EXPLORE
    • CAREER
      • Companies
      • Jobs
        • Lecturer
        • PhD Studentship
        • Postdoc
        • Research Assistant
    • EVENTS
    • iGEM
      • News
      • Team
    • PHOTOS
    • VIDEO
    • WIKI
  • BLOG
  • COMMUNITY
    • FACEBOOK
    • INSTAGRAM
    • TWITTER
  • HOME
  • NEWS
  • EXPLORE
    • CAREER
      • Companies
      • Jobs
        • Lecturer
        • PhD Studentship
        • Postdoc
        • Research Assistant
    • EVENTS
    • iGEM
      • News
      • Team
    • PHOTOS
    • VIDEO
    • WIKI
  • BLOG
  • COMMUNITY
    • FACEBOOK
    • INSTAGRAM
    • TWITTER
No Result
View All Result
Bioengineer.org
No Result
View All Result
Home NEWS Science News Technology

Machine Learning for River Hardness Shows Vulnerability to Data Duplication and Domain Shifts

by
November 25, 2026
in Technology
Reading Time: 6 mins read
0
Machine Learning for River Hardness Shows Vulnerability to Data Duplication and Domain Shifts

Machine Learning for River Hardness Shows Vulnerability to Data Duplication and Domain Shifts

Share on FacebookShare on TwitterShare on LinkedinShare on RedditShare on Telegram

Predictive machine learning models designed to estimate total hardness in river systems depend overwhelmingly on direct calcium and magnesium measurements, and their apparent accuracy diminishes sharply when evaluated under rigorous validation frameworks or transferred across distinct hydrochemical domains. A study published in Cleaner Water demonstrates that algorithms frequently celebrated for mapping environmental metrics often reflect standard chemical relationships rather than novel computational discoveries. By benchmarking statistical and ensemble algorithms against deterministic hydrochemical conversions, researchers established that data-driven predictions are highly sensitive to hidden duplicate profiles, predictor selection, and cross-domain data shifts. The investigation cautions water management authorities against treating machine learning pipelines as plug-and-play replacements for direct laboratory measurements. Instead, the findings show that while non-linear models can approximate recorded total hardness within specific river datasets, their performance is closely tethered to the presence of primary divalent cations and degrades when applied to secondary chemical indicators or independent groundwater environments.

Total water hardness represents an essential parameter in catchment-scale monitoring, influencing industrial infrastructure, domestic utility, agricultural efficiency, and aquatic ecosystem health. Hard water, primarily governed by dissolved calcium and magnesium ions, induces scaling in piping systems, industrial boilers, and heating units, which elevates operating costs and degrades machinery over time. While moderate ionic hardness does not inherently threaten human health, extreme concentrations have been correlated in prior clinical studies with cardiovascular strain, kidney stones, and skin irritation when paired with confounding environmental risk factors. Traditionally, environmental agencies monitor water hardness through wet-chemical laboratory techniques, complexometric ethylenediaminetetraacetic acid titrations, or direct calculation from measured elemental cation concentrations. Although standard analytical methods provide high precision, they require skilled laboratory personnel, substantial chemical reagent inventories, and considerable processing time. Consequently, environmental scientists have turned toward machine learning architectures to infer hardness from routinely measured parameters like pH and electrical conductivity, aiming to reduce monitoring costs across remote river networks.

Despite widespread enthusiasm for artificial intelligence in water resource management, the study highlights critical methodological gaps in existing hydrochemical modelling literature. Prior investigations frequently reported high predictive accuracy for total hardness using algorithms such as Support Vector Machines, Artificial Neural Networks, and gradient boosting frameworks without systematically assessing whether models genuinely inferred complex environmental interactions or merely mirrored the established stoichiometric contribution of calcium and magnesium. Total hardness is chemically defined by the concentrations of these two divalent cations, meaning any predictive model utilizing them benefits from an explicit physical relationship rather than advanced algorithmic feature extraction. Furthermore, published water quality models frequently overlook dataset structure, relying on standard row-wise data splitting that allows identical water profiles to appear simultaneously in training and validation sets. Such practices inflate performance metrics, mask model instability, and create an illusion of generalizability that rapidly collapses when models encounter shifted environmental domains.

To evaluate these operational dynamics under controlled conditions, the research team analyzed a development dataset consisting of 171 river water samples retrieved from the Mendeley Data Repository. The hydrochemical profiles comprised eight predictor variables, specifically pH, total dissolved solids, chloride, sulfate, sodium, potassium, calcium, and magnesium, with recorded total hardness serving as the continuous response variable. Comprehensive exploratory data analysis revealed significant distributional skewness and heavy-tailed properties across several ionic constituents, such as sulfate and chloride, which spanned wide concentration gradients. Calcium concentrations ranged from 8 to 773 milligrams per liter with an average of 123.24 milligrams per liter, whereas magnesium displayed a narrower spread from 20 to 108 milligrams per liter with a mean of 43.93 milligrams per liter. Total hardness ranged between 100 and 670 milligrams per liter, showing a bimodal distribution with peaks near 300 to 400 milligrams per liter and 500 to 600 milligrams per liter.

A critical initial audit of the 171 development records uncovered that the dataset contained only 120 unique hydrochemical profiles, meaning that 51 entries represented exact duplicates beyond their initial occurrence, with 86 total records belonging to repeated profiles. When standard row-wise cross-validation was applied, identical profiles were partitioned into both training and assessment subsets, producing artificially optimistic performance estimates. To correct for this structural dependence, the researchers implemented a nested five-fold group-aware cross-validation design that forced all matching predictor-outcome profiles into the same cross-validation fold, complemented by inner four-fold group-aware hyperparameter optimization. Data preprocessing steps, including numeric conversions, median imputation derived exclusively from training partitions, and scale standardization for distance-sensitive algorithms, were strictly nested within the cross-validation loops to prevent subtle data leakage. The team benchmarked four supervised algorithms under this architecture: baseline Multiple Linear Regression, Random Forest, XGBoost, and Support Vector Regression using a radial basis function kernel.

The researchers also benchmarked the recorded total hardness values against the deterministic physicochemical Ca–Mg equation, calculated as total hardness equaling 2.497 multiplied by calcium plus 4.118 multiplied by magnesium under elemental milligram per liter assumptions. Strikingly, this classical chemical formulation failed to align with the reported hardness values in the repository dataset, yielding a negative coefficient of determination of minus 2.966 across all 171 records and minus 2.193 across the 120 unique profiles. Root mean squared errors reached 315.89 milligrams per liter with an average positive bias of 88.96 milligrams per liter. Because metadata regarding digestive filtration, analytical titration protocols, or unit conversions were absent from the public archive, the discrepancy could not be reconciled. Consequently, the authors framed their machine learning pipelines strictly as models predicting the recorded numerical target of the repository rather than independently verified actual physical hardness, demonstrating how unresolved analytical discrepancies can complicate data-driven environmental studies.

Under full-input group-aware cross-validation containing all eight hydrochemical parameters, non-linear machine learning architectures achieved respectable predictive agreement with the recorded target, substantially outperforming Multiple Linear Regression. XGBoost achieved the highest coefficient of determination at 0.710, accompanied by a root mean squared error of 85.46 milligrams per liter, a mean absolute error of 61.75 milligrams per liter, and a bias of plus 5.07 milligrams per liter. Random Forest yielded an R-squared of 0.700 with a root mean squared error of 86.87 milligrams per liter, while Support Vector Regression reached an R-squared of 0.697 with the lowest mean absolute error at 55.72 milligrams per liter. Paired statistical comparisons using bootstrap confidence intervals and Holm-adjusted Wilcoxon signed-rank tests confirmed that all non-linear algorithms produced lower absolute errors than linear regression. However, differences among XGBoost, Random Forest, and Support Vector Regression were narrow and statistically inconclusive, demonstrating that no single non-linear model exhibited definitive superiority over the others.

To evaluate whether machine learning could accurately predict water hardness when primary divalent cations are unmeasured, the authors introduced a reduced-input configuration that omitted calcium and magnesium entirely, leaving only secondary parameters such as pH, total dissolved solids, sulfate, chloride, sodium, and potassium. Excluding the direct hardness-forming ions precipitated an immediate decline in predictive power across all evaluated models. XGBoost remained the top-performing reduced-input model but saw its R-squared drop to 0.514, with a root mean squared error of 110.54 milligrams per liter and a mean absolute error of 85.07 milligrams per liter. Support Vector Regression and Random Forest fell to identical R-squared values of 0.493, while linear regression dropped to 0.481. The substantial error margins in the reduced-input models demonstrate that secondary hydrochemical parameters retain only coarse indirect associations with hardness, proving inadequate for fine-grained environmental compliance monitoring, regulatory enforcement, or precise industrial water treatment design.

Model interpretability was rigorously probed using Shapley Additive Explanations applied to the full-input XGBoost model to unpack how individual hydrochemical features influenced final hardness estimations. The resulting SHAP summary plots confirmed that calcium and magnesium dominated model attribution, followed by total dissolved solids, while secondary ions like chloride, sulfate, potassium, and sodium exerted only minor conditional modulations. Dependence plots indicated non-linear attribution shifts and an apparent flattening of total dissolved solids influence at extreme concentrations. However, the researchers cautioned that these visual curves reflect mathematical properties of the fitted tree ensemble across sparse data regions rather than physical ion saturation thresholds. Furthermore, when the team evaluated model sensitivity against data structure, complete deduplication down to the 120 unique profiles dropped the best full-input R-squared from 0.710 to 0.607, illustrating that repeating identical environmental profiles artificially bolsters perceived algorithmic accuracy.

The study concluded with a transportability stress test, applying the frozen models directly to an independent published dataset of 100 groundwater samples collected from boreholes and tube wells in Jashore, Bangladesh. The cross-domain transfer failed completely, with the frozen Random Forest model achieving a complete-data R-squared of only 0.060, while XGBoost and Support Vector Regression yielded negative R-squared values of minus 0.018 and minus 0.042. Even after excluding 14 anomalous external samples with recorded hardness values of zero, the maximum R-squared reached only 0.171. The researchers emphasized that this failure stems from compound geographic, hydrogeological, and analytical shifts, as subsurface groundwater undergoes distinct mineral weathering and residence times compared to surface rivers. The findings demonstrate that machine learning models trained on localized river chemistry cannot be generalized across catchments or water source domains without comprehensive local retraining, verified analytical standardization, and explicit accounting for environmental clustering.

Subject of Research: Evaluation of machine learning models and validation designs for predicting river water total hardness

Article Title: Interpretable machine learning for river-water hardness: Benchmarking direct and reduced-input models in a watershed context

Article References: Hridoy, A. A. M., Bordin, C., Akter, R., Islam, M. S., Jannat, F., Shajib, M. M., Hossain, I., Shadhin, S. M., & Goliatt, L. (2026). Interpretable machine learning for river-water hardness: Benchmarking direct and reduced-input models in a watershed context. Cleaner Water, 8, Article 100347. https://doi.org/10.1016/j.clwat.2026.100347

Image Credits: AI Generated

DOI: 10.1016/j.clwat.2026.100347

Keywords: river water hardness, machine learning, water quality monitoring, total hardness, calcium and magnesium, hydrochemistry, group aware validation, XGBoost, Random Forest, support vector regression, multiple linear regression, SHAP analysis, physicochemical benchmarking, domain shift, groundwater stress test, environmental data science, data leakage

News Source: Blake Davidson. (November 25, 2026). Machine Learning for River Hardness Shows Vulnerability to Data Duplication and Domain Shifts. Scienmag.

Tags: calcium and magnesiumdata leakagedomain shiftEnvironmental Data Sciencegroundwater stress testgroup-aware validationhydrochemistryMachine Learningmultiple linear regressionphysicochemical benchmarkingRandom Forestriver water hardnessSHAP analysissupport vector regressiontotal hardnesswater quality monitoringXGBoost
Share12Tweet7Share2ShareShareShare1

Related Posts

Chatbot Emotional Intimacy Linked to Higher Loneliness in Comparative Relationship Survey

Chatbot Emotional Intimacy Linked to Higher Loneliness in Comparative Relationship Survey

November 25, 2026
Review Assesses Deep Learning Transformer Variants for Photovoltaic Power Forecasting

Review Assesses Deep Learning Transformer Variants for Photovoltaic Power Forecasting

November 25, 2026

Semantic Alignment Framework Improves APT Technique Recognition Using Large Language Models

November 25, 2026

Sequencing Depth Limits Nanopore Analysis of Forensic Age Associated Methylation Markers

November 25, 2026

POPULAR NEWS

  • Pull-Through Liposuction Cut Gynecomastia Complications Compared to Arthroscopic Shaver Excision

    Pull-Through Liposuction Cut Gynecomastia Complications Compared to Arthroscopic Shaver Excision

    29 shares
    Share 12 Tweet 7
  • Oesophagectomy Patient Symptoms Divide into Distinct Psychosocial and Somatic Recovery Networks

    29 shares
    Share 12 Tweet 7
  • European Blue Bioeconomy Practitioners Prioritize Food While Sidelining Cultural Ecosystem Services

    29 shares
    Share 12 Tweet 7
  • Wilms Tumor Protein 1 Promotes Visceral Beige Fat Formation in Mice

    29 shares
    Share 12 Tweet 7

About

We bring you the latest biotechnology news from best research centers and universities around the world. Check our website.

Follow us

Recent News

Brandt’s Voles Deploy Dual Photorefractoriness as a Seasonal Bet Hedging Strategy

Vitamin D Supplements Fail to Meaningfully Improve Muscle Health in Meta-Analysis

Sole Ulcers in Dairy Cows Disrupt Hoof Keratinization and Gene Expression

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 89 other subscribers
  • Contact Us

Bioengineer.org © Copyright 2023 All Rights Reserved.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • Homepages
    • Home Page 1
    • Home Page 2
  • News
  • National
  • Business
  • Health
  • Lifestyle
  • Science

Bioengineer.org © Copyright 2023 All Rights Reserved.