A decision tree-based approach is projected to predict surface water quality and is a good tool to assess the quality and guarantee the safe use of water for drinking. Modeling surface water quality using artificial intelligence-based models is essential in projecting suitable mitigation measures; however, it remains a challenge and requires further research to enhance the modeling accuracy. Because of the serious effects of low water quality, a faster and less expensive solution is required. With this motivation, this research explores a series of supervised machine learning algorithms to estimate the water quality. The objective of this study is to assess the surface water quality of the Daya watercourse to determine the optimal procedure to measure quality of drinking water. Samples were collected from designated locations throughout different seasons (winter, summer, rainy) over a period of five years (2016, 2017, 2018, 2019, and 2020). Total dissolved solids, pH, alkalinity, chloride, nitrate, total hardness, calcium, magnesium, iron, fluoride, were all tested, as well as total coliform, fecal coliform, and E. coli. Through this decision tree regression model, accuracy of prediction is 93.77%. This is a significant result, indicating that the decision tree-based approach has the potential to be a useful tool for surface water quality prediction. However, it is important to note that there may be limitations and uncertainties in the model, and further research and validation may be required to improve the accuracy and dependability of forecasts. The catastrophic consequences of poor water quality, as well as the need for faster and less expensive technologies for testing water quality, are the driving factors in this study. The study's findings can help to improve knowledge of water quality in the Daya watercourse and enhance the decision-making processes to ensure safe drinking water.