Klasifikasi Kualitas Air Layak Minum menggunakan Algoritma Random Forest Classifier dan GridsearchCV

  • Gusti Agung Diah Sri Ari Ningsih Universitas Udayana
  • Cokorda Pramartha Universitas Udayana

Abstract

Drinkable water is water that is healthy for humans to drink and does not pose significant health risks. To determine whether water has a quality that meets health standards can be determined through the substances or minerals contained in it. Conventional methods require quite a long time to evaluate and classify water quality as suitable for consumption or not. One approach that can be used to overcome this problem is to utilize machine learning. This research uses a random forest to carry out classification. Using random forest by default cannot produce optimal performance because the parameters used are not necessarily the best. Therefore, this research also uses GridsearchCV to find optimal hyperparameter values in the Random Forest Classifier. After hyperparameter tuning, an optimal model was obtained with each parameter n_estimators 100, max_depth 9, max_features 4, and min_samples_split 2. The performance of Random Forest after hyperparameter tuning increased accuracy, which was initially 76% increase  to 84%, precision which was initially 76.19% increase to 81.70%, recall which was initially 74.89% increase to 85.53%, and f1-score which was initially 75.53%, increase to 83.57%.  


Keywords: Classification, Drinking Water Quality, Random Forest, Optimal Hyperparameters, Hyperparameter Tuning, GridSearchCV

Downloads

Download data is not yet available.
Published
2024-09-17
How to Cite
SRI ARI NINGSIH, Gusti Agung Diah; PRAMARTHA, Cokorda. Klasifikasi Kualitas Air Layak Minum menggunakan Algoritma Random Forest Classifier dan GridsearchCV. JELIKU (Jurnal Elektronik Ilmu Komputer Udayana), [S.l.], v. 13, n. 1, p. 1197-1206, sep. 2024. ISSN 2654-5101. Available at: <https://ojs.unud.ac.id/index.php/jlk/article/view/117940>. Date accessed: 19 oct. 2024.

Most read articles by the same author(s)