← Latest papers
💻 computer science

Evaluation of decision tree algorithms for predictive machine learning modelling of potable water quality

This study utilized the WEKA tool to evaluate seven decision tree-based machine learning algorithms on a Kaggle water quality dataset, finding that the Random Forest (RF) algorithm achieved the highest predictive performance with a 69.28% correct classification rate for distinguishing safe and unsafe potable water.

Original authors: Debabrata Roy, Abhiman Das, Soumendra Nath Talapatra, Subrata Sankar Bagchi

Published 2026-10-18
📖 4 min read☕ Coffee break read

Original authors: Debabrata Roy, Abhiman Das, Soumendra Nath Talapatra, Subrata Sankar Bagchi

Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). ✨ This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Clean water is the foundation of human health, a basic necessity that allows communities to thrive and economies to grow. Yet, the sources of this water—rivers, lakes, and underground aquifers—are increasingly vulnerable to the shifting patterns of our changing climate. As temperatures rise and weather becomes more extreme, the chemical balance of these water bodies can shift, introducing contaminants or altering the very properties that make water safe to drink. For decades, scientists have relied on physical testing and chemical analysis to monitor these changes, but the sheer volume of data and the complexity of environmental factors have made it difficult to predict future risks with speed and precision. In recent years, a new tool has emerged to help: machine learning. This approach uses computer algorithms to find hidden patterns in large sets of data, allowing researchers to make predictions about complex systems without needing to understand every single variable in real time. By teaching computers to recognize the signs of safe versus unsafe water, scientists hope to create early warning systems that can protect public health before a crisis occurs.

In a recent study, researchers set out to test which of these computer learning methods works best for predicting whether water is safe to drink. They focused on a specific set of chemical and physical measurements that define water quality, including acidity levels, mineral content, and the presence of specific byproducts created during water treatment. The team gathered a large collection of real-world water samples, each labeled as either safe or unsafe based on established health standards. They then fed this data into seven different types of decision-making algorithms, which are essentially computer programs designed to sort information into categories. These programs ranged from simple, single-decision models to complex systems that build hundreds of tiny decision trees to reach a final conclusion. The researchers used a specialized software tool to run these models against the water data, testing their ability to correctly identify safe and unsafe samples.

The results of this comparison were clear. While all the computer models offered some level of accuracy, one method stood out as the most reliable. The algorithm known as Random Forest, which works by combining the predictions of many smaller decision trees, achieved the highest overall success rate. It correctly classified nearly 70 percent of the water samples, a figure that was higher than any other model tested. When the researchers looked deeper into the performance of this top model, they found it was particularly good at distinguishing between safe water and water that posed a health risk. The model showed a strong ability to predict the safety of the water, with statistical measures indicating it was more consistent and accurate than the other methods, which included simpler tree-based models and other variations of decision-making software.

The study also highlighted the specific factors that the computer models used to make their judgments. The data included measurements for pH, hardness, dissolved solids, and various chemical compounds like chloramines and trihalomethanes, which can form when disinfectants react with organic matter in the water. The models learned that when certain combinations of these values appeared together, the water was likely unsafe. For instance, the presence of high levels of specific disinfection byproducts was a strong indicator that the water quality had degraded. By identifying these patterns, the Random Forest model demonstrated that it could act as a powerful filter, sorting through complex chemical data to provide a clear answer: safe or unsafe.

This research offers a practical path forward for water managers and public health officials. In regions where water resources are scarce or where traditional testing methods are too slow or expensive, a computer model like this could provide rapid assessments of water safety. The study suggests that by using the Random Forest approach, authorities could better monitor water supplies, especially in areas facing challenges like stagnant water or nutrient buildup. While the model is not perfect and still leaves some room for error, it represents a significant step toward using technology to safeguard a fundamental human right. The findings confirm that among the various tools available, this specific type of machine learning offers the most dependable way to predict water quality, providing a solid foundation for future efforts to ensure clean water for all.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →