Determining the classification of dry beans using WEKA

Paper Details

Research Paper 08/07/2023
Views (823) Download (113)

Determining the classification of dry beans using WEKA


The significant variety in bean shape and size makes dry bean classification a difficult task. Traditional categorization procedures, such as hand sorting, are time-consuming and labor-intensive. Machine learning approaches appear to be a potential option for dry bean classification. A machine learning classification approach for dry beans using WEKA was offered in this research. The approach employs Multilayer Perceptron (MLP), Support Vector Machine (SVM), k-Nearest Neighbors (kNN), and Decision Tree (DT) machine learning algorithms. The method was evaluated on a dataset of 13,611 dry beans from seven different varieties shared by Koklu, M. and Ozkan, I.A., (2020) extracted from the UCI machine learning repository. The approaches attained an accuracy of 90.30%, 90.83%, 92.23% and 92.49% for k-nearest neighbor, decision tree, support vector machine and multilayer perceptron respectively. The multilayer perceptron has the highest accuracy while the k-nearest neighbor has the lowest accuracy performance. The suggested method offers various advantages over conventional dry bean classification methods. It is more accurate, faster, and requires less labor. The method can also be used to classify dry beans that are difficult to identify visually. According to the findings of this study, machine learning approaches provide a potential strategy for dry bean classification. The proposed method can be utilized to automate the dry bean classification process, which could result in considerable efficiency and accuracy gains and the algorithm that performs the best accuracy may be used for classifications of Dry Beans in the Philippines.


Beltrán NH, Duarte-Mermoud MA, Vicencio VS, Salah S, Bustos M. 2008. Chilean Wine Classification Using Volatile Organic Compounds Data Obtained With a Fast GC Analyzer. IEEE Transactions on Instrumentation and Measurement 57(11), 2421-2436. /tim.200

Cortez P, Cerderia A, Almeida F, Matos T, Reis J. “Modelling wine preferences by data mining from physicochemical properties,” In Decision Support Systems, Elsevier 47(4), 547-553. ISSN: 0167-9236.

Kenyhercz MW, Passalacqua NV. 2016. Missing Data Imputation Methods and Their Performance With Biodistance Analyses. In Elsevier eBooks (pp. 181-194).

Khalafyan AAATZ, Akin’shina VA, Yakuba YF. 2021. Data on the sensory evaluation of the dry red and white wines quality obtained by traditional technologies from European and hybrid grape varieties in the Krasnodar Territory, Russia. Data in Brief 36, 106992 /j.dib. 2021.106992

Kılıc K, Boyaci IH, Koksel H, Kusmenoglu I. 2007. A classification system for beans using computer vision system and artificial neu- ral networks. J Food Eng 78, 897-904. /10.1016/j. jfoodeng.2005.11.030

Koklu M, Ozkan IA. 2020. Multiclass classification of dry beans using computer vision and machine learning techniques. Computers and Electronics in Agriculture 174, 105507. /10.1016 /j.compag.2020.105507

Moreno, Gonzalez-Weller, Gutierrez, Marino, Camean, Gonzalez, Hardisson. 2007. Differentiation of two Canary DO red wines according to their metal content from inductively coupled plasma optical emission spectrometry and graphite furnace atomic absorption spectrometry by using Probabilistic Neural Networks”. Talanta 72, 263-268.

Ooi MP, Sok HK, Kuang YC, Demidenko S. 2017. Alternating Decision Trees. In Elsevier eBooks (pp. 345-371).

Pisner D, Schnyer DM. 2020. Support vector machine. In Elsevier eBooks (pp. 101-121). https://

Sun J, Jiang S, Mao H, Wu X, Li Q. 2016. Classification of black beans using visible and near infrared hyperspectral imaging. Int J Food Prop 19, 1687-1695. 2015.1055760

Teye E, Huang X, Han F, Botchway F. 2014. Discrimination of cocoa beans according to geographical origin by electronic tongue and multivariate algorithms. Food Anal Methods 7, 360-365.  https://

Tien JM. 2017. Internet of Things, Real-Time Decision Making, and Artificial Intelligence. Annals of Data Science 4(2), 149-178. /s40745-017-0112-5

Witten IH, Frank E, Hall MA, Pal CJ. 2016. The WEKA Workbench. /ml/weka/Witten_et_al_2016_appendix.pdf