Skip to content

Archives › Volume 2023 (2023)

Commun. Math. Biol. Neurosci. 2023 (2023), Article ID 118

Beans classification using decision tree and random forest with randomized search hyperparameter tuning

Meidya Koeshardianto, Kurniawan Eka Permana, Dhian Satria Yudha Kartika, Wahyudi Setiawan

Abstract

Dry-beans are a food with high protein. Dry-beans can be used as processed food products for emergency conditions such as famine, natural disasters, and war. Dry-beans can be used as a long-lasting product. To identify types of beans, manual work certainly requires a lot of time and effort. Therefore, creating a system that can classify beans in a computerized system is necessary. In this study, we classified beans using public data from Koklu. The data consists of sixteen features, seven classes with 13,611 rows. The data for each class of bean is unbalanced, so it is necessary to carry out a balanced dataset using random oversampling. Machine learning for classification using Decision Tree and Random Forest. Apart from that, hyperparameter tuning with randomize search for the number of trees 50, 75, 150, 200, and 300. The test results show that the Random Forest’s accuracy, precision, recall, and f1-score reach 0.9658 respectively. The best parameter number of trees is 300.

Published
6 November 2023
Volume
2023 (2023)
License
CC BY 3.0

Copyright © 2023 Meidya Koeshardianto, Kurniawan Eka Permana, Dhian Satria Yudha Kartika, Wahyudi Setiawan. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

Cite this article

M. Koeshardianto, K. E. Permana, D. S. Y. Kartika, W. Setiawan, Beans classification using decision tree and random forest with randomized search hyperparameter tuning, Commun. Math. Biol. Neurosci. 2023 (2023), 118. https://doi.org/10.28919/cmbn/8225

BibTeX
@article{Koeshardianto2023,
  author  = {Koeshardianto, Meidya and Permana, Kurniawan Eka and Kartika, Dhian Satria Yudha and Setiawan, Wahyudi},
  title   = {Beans classification using decision tree and random forest with randomized search hyperparameter tuning},
  journal = {Commun. Math. Biol. Neurosci.},
  volume  = {2023},
  year    = {2023},
  pages   = {118},
  doi     = {10.28919/cmbn/8225}
}