Water Potability Classification System: Regular Water Monitoring Computational Cost Reduction by Utilizing Recursive Feature Elimination with Cross-Validation and SelectKBest for Feature Reduction
Drinking water treatment process requires periodic measurements every hour to meet drinkable water standards. This study aims to classify water potability in Gowa and perform feature selection to identify the most optimal parameters. The research uses the SVM and XGBoost for classification and employs RFECV and SelectKBest for feature selection. The results show that most correlations between parameters and the target are weak, indicating that each parameter operates independently and has unique value in determining drinking water potability. The study achieves high model accuracy, with 95.8% for SVM and 97.8% for XGBoost. After feature selection, the final accuracy for the SVM model is 95.8% using the SelectKBest with 3 selected features: turbidity, free chlorine, and temperature. Using the RFECV, the accuracy is 96% with 5 selected features: turbidity, temperature, free chlorine, alkalinity, and TDS. For XGBoost, the final accuracy after feature selection is 97.8% using the SelectKBest with 5 selected features: turbidity, free chlorine, temperature, pH, and alkalinity. The RFECV feature selection for XGBoost also maintains the same accuracy of 97.8%. Based on the results, XGBoost performs slightly better than SVM, but RFECV improves SVM accuracy while maintaining XGBoost accuracy. The SelectKBest method also maintains the accuracy for both models.
Authors
- Mohamed Sultan Mohamed Ali (ORCID: https://orcid.org/0000-0002-4692-2954)
- Herlina Abdul Rahim (ORCID: https://orcid.org/0000-0002-4657-4443)
- Indrabayu Indrabayu
- Syahidah Nurani Zulkifli (ORCID: https://orcid.org/0000-0002-4322-5977)
- Nurhalisa
- Fahruddin
Institutions
- University of Technology Malaysia (MY)
- Hasanuddin University (ID)
Publication Details
- Journal
- Journal of Ecohumanism
- Published
- 2025-01-29
- DOI
- https://doi.org/10.62754/joe.v4i1.6103
- Primary Topic
- Water Quality Monitoring Technologies
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Universiti Teknologi Malaysia
- Universitas Hasanuddin