Comparison of Discrete Adaptive Boosting Algorithms for Classification and Regression Tree and Naive Bayes in Pistachio Nut Classification
Abstract
Machine learning is an effective tool for identifying and classifying various conditions, such as predicting shoe sales, classifying raisin types, classifying fruit productivity, and so on. This technique is widely used in various sectors. One example is pistachio sorting. In some places, pistachio sorting is still done traditionally by humans. This is disadvantageous because the costs tend to be high, and the sorting process becomes inconsistent and less effective. The use of machine learning algorithms can be a breakthrough in overcoming this problem. Naive Bayes and Classification and Regression Tree (CART) are machine learning algorithms commonly used in the classification process. To improve classification accuracy, these two basic models are integrated with the Discrete Adaptive Boosting (Discrete AdaBoost) algorithm. This study aims to assess the effectiveness of machine learning algorithms in identifying the characteristics of pistachios. Algorithm testing was carried out using the k-fold cross-validation technique. The estimated average performance results of all classification models do not show significant differences. The Discrete AdaBoost CART model has the best accuracy, specificity, and f1-score, at 86.49%, 85.78%, and 88.32%, respectively. Therefore, the Discrete AdaBoost CART model is a suitable model for classifying pistachio types. This shows that ensemble approaches such as Discrete AdaBoost CART can make a significant contribution to improving the performance of classification systems, especially in the context of data with many relevant features. This study was limited to identifying binary classes of pistachios. In further research, it is recommended to explore machine learning algorithms for multiclass of pistachio nuts.
References
M. N. Raihen and S. Akter, “Prediction modeling using deep learning for the classification of grape-type dried fruits,” International Journal of Mathematics and Computer in Engineering, 2024. http://dx.doi.org/10.2478/ijmce-2024-0001
A. Z. M. S. Widodo, A. P. Kusuma, and W. D. Puspitasari, “Analisis algoritma naive bayes classifier (NBC) pada klasifikasi tingkat minat barang di toko violet cell,” Jati (Jurnal Mahasiswa Teknik Informatika), vol. 7, no. 1, pp. 87-94, 2023. https://doi.org/10.36040/jati.v7i1.5692
A. Aprihartha, Z. Putrawan, D. Zulhan, and F. A. Nurfaizal, “Klasifikasi Produktivitas Buah Nanas Menggunakan Algoritma Classification and Regression Tree (CART),” Diophantine Journal of Mathematics and Its Applications, pp. 64-70, 2024. https://doi.org/10.33369/diophantine.v3i1.34193
Attou, H., Guezzaz, A., Benkirane, S. et al. A New Secure Model for Cloud Environments Using RBFNN and AdaBoost. SN COMPUT. SCI. 6, 188 (2025). https://doi.org/10.1007/s42979-025-03691-1
F. Ramadhani, Al-Khowarizmi, and I. P. Sari, “Improving the Performance of Naïve Bayes Algorithm by Reducing the Attributes of Dataset Using Gain Ratio and Adaboost,” in 2021 International Conference on Computer Science and Engineering (IC2SE), IEEE, Nov. 2021, pp. 1–5. doi: 10.1109/IC2SE52832.2021.9792027.
B. O. U. M. A. R. A. F. Ibtissam, Automatic date fruit sorting system based on machine learning and visual features, Doctoral dissertation, University of Biskra, 2024. [Online]. Available: http://archives.univ-biskra.dz/handle/123456789/29324
I. A. Ozkan, M. Koklu, and R. Saraçoğlu, “Classification of pistachio species using improved k-NN classifier,” Health, vol. 23, p. e2021044, 2021. https://www.mattioli1885journals.com/index.php/progressinnutrition/article/view/9686
M. Omid, M. S. Firouz, H. Nouri-Ahmadabadi, and S. S. Mohtasebi, “Classification of peeled pistachio kernels using computer vision and color features,” Eng. Agric. Environ. Food, vol. 10, pp. 259–265, 2017. https://doi.org/10.1016/j.eaef.2017.04.002
D. Singh, Y. S. Taspinar, R. Kursun, I. Cinar, M. Koklu, I. A. Ozkan, and H. N. Lee, “Classification and analysis of pistachio species with pre-trained deep learning models,” Electronics, vol. 11, no. 7, p. 981, 2022. https://doi.org/10.3390/electronics11070981
M. G. bin Md Ghazi, L. C. Lee, A. S. B. Samsudin, and H. Sino, “Evaluation of ensemble data preprocessing strategy on forensic gasoline classification using untargeted GC–MS data and classification and regression tree (CART) algorithm,” Microchemical Journal, vol. 182, p. 107911, Nov. 2022, https://doi.org/10.1016/j.microc.2022.107911
M. Anjas Aprihartha, F. Astutik, and N. Sulistianingsih, “Comparison of Naïve Bayes, CART, dan CART Adaboost Methods in Predicting Tire Product Sales,” Jurnal Matematika, Statistika dan Komputasi, vol. 20, no. 3, pp. 596–605, May 2024, https://doi.org/10.20956/j.v20i3.33187
M. A. Aprihartha, J. Prasetya, and S. I. Fallo, “Implementasi CART-Real Adaboost dalam Memprediksi Minat Pelanggan Membeli Sepatu,” Jurnal EurekaMatika, vol. 12, no. 1, pp. 35-46, 2024., https://doi.org/10.17509/jem.v12i1.67808.
J. Prasetya, S. I. Fallo, and M. A. Aprihartha, “Stacking Machine Learning Model for Predict Hotel Booking Cancellations,” Jurnal Matematika, Statistika dan Komputasi, vol. 20, no. 3, pp. 525–537, May 2024, https://doi.org/10.20956/j.v20i3.32619
T. A. Munshi, L. N. Jahan, M. F. Howladar, and M. Hashan, “Prediction of gross calorific value from coal analysis using decision tree-based bagging and boosting techniques,” Heliyon, vol. 10, no. 1, p. e23395, Jan. 2024, https://doi.org/10.1016/j.heliyon.2023.e23395
Y. Freund and R. E. Schapire, “Experiments with a new boosting algorithm,” in Proc. ICML, vol. 96, pp. 148-156, July 1996. https://cseweb.ucsd.edu/~yfreund/papers/boostingexperiments.pdf
G. Hu, C. Yin, M. Wan, Y. Zhang, and Y. Fang, “Recognition of diseased Pinus trees in UAV images using deep learning and AdaBoost classifier,” Biosystems Engineering, vol. 194, pp. 138–151, Jun. 2020, https://doi.org/10.1016/j.biosystemseng.2020.03.021.
Q. Liu, X. Wang, X. Huang, and X. Yin, “Prediction model of rock mass class using classification and regression tree integrated AdaBoost algorithm based on TBM driving data,” Tunnelling and Underground Space Technology, vol. 106, p. 103595, Dec. 2020, https://doi.org/10.1016/j.tust.2020.103595.
M. A. Naji, S. el Filali, M. Bouhlal, E. H. Benlahmar, R. A. Abdelouhahid, and O. Debauche, “Breast Cancer Prediction and Diagnosis through a New Approach based on Majority Voting Ensemble Classifier,” Procedia Computer Science, vol. 191, pp. 481–486, 2021, https://doi.org/10.1016/j.procs.2021.07.061.
G. M. James, “Majority vote classifiers: theory and applications,” Stanford University, 1998. https://hastie.su.domains/THESES/gareth_james.pdf
R. Kumalasanti and N. M. Dina Aprilianti, “Sentiment Analysis of Bali Calendar Application Reviews using K-Nearest Neighbour,” International Journal of Engineering Technology and Natural Sciences, vol. 6, no. 1, pp. 67–74, Jul. 2024, https://dx.doi.org/10.46923/ijets.v6i1.339
T. Ait tchakoucht, B. Elkari, Y. Chaibi, and T. Kousksou, “Random forest with feature selection and K-fold cross validation for predicting the electrical and thermal efficiencies of air based photovoltaic-thermal systems,” Energy Reports, vol. 12, pp. 988–999, Dec. 2024, https://doi.org/10.1016/j.egyr.2024.07.002.
A. Aprihartha, “Penyelesaian Masalah Ketidakseimbangan Data Melalui Teknik Oversampling dan Undersampling pada Klasifikasi Siswa Tidak Naik Kelas,” Jurnal Teknik Ibnu Sina (JT-IBSI), vol. 9, no. 01, pp. 43-52, 2024. https://doi.org/10.36352/jt-ibsi.v9i01.807.
Moch. A. Aprihartha, M. Husniyadi, and T. N. Alam, “Implementasi Metode Random Forest Dalam Memprediksi Sinyal Pergerakan Saham,” E-Jurnal Matematika, vol. 14, no. 1, p. 43, Jan. 2025, https://doi.org/10.24843/MTK.2025.v14.i01.p477
M. anjas Aprihartha, Z. Putrawan, D. Zulhan, and F. A. Nurfaizal, “Study on Identification of Poisonous and Non-Toxic Mushrooms Using the Cart-Logitboost Algorithm,” Jurnal Matematika, Statistika dan Komputasi, vol. 21, no. 1, pp. 33–45, Sep. 2024, https://doi.org/10.20956/j.v21i1.35072.
M. A. Aprihartha, T. N. Alam, and M. Husniyadi, “Perbandingan Metrik Euclidean dan Metrik Manhattan untuk K-Nearest Neighbors dalam Klasifikasi Kismis,” Jurnal Ilmu Komputer dan Informatika, vol. 4, no. 1, pp. 21-30, 2024. https://doi.org/10.54082/jiki.126.
X. Li, X. Chen, and Z. Yuan, “Applicable model of liver disease detection based on the improved CART-AdaBoost algorithm,” in 2021 IEEE International Conference on Artificial Intelligence and Computer Applications (ICAICA), IEEE, Jun. 2021, pp. 1177–1181. https://doi.org/10.1109/ICAICA52286.2021.9498046.
Y. A. Nugroho, Implementasi metode Decision Tree CART dan Adaboost sebagai Ensemble Learning dalam penentuan klasifikasi diagnosis hipertensi, Doctoral dissertation, Universitas Islam Negeri Maulana Malik Ibrahim, 2025. [Online]. Available: http://etheses.uin-malang.ac.id/id/eprint/74780
Copyright (c) 2025 Anjas Aprihartha

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
Copyright Notice
The Authors submitting a manuscript do so on the understanding that if accepted for publication, copyright of the article shall be assigned to journal IJETS, University Of Technology Yogyakarta as publisher of the journal, and the author also holds the copyright without restriction.
Copyright encompasses exclusive rights to reproduce and deliver the article in all form and media, including reprints, photographs, microfilms and any other similar reproductions, as well as translations. The reproduction of any part of this journal, its storage in databases and its transmission by any form or media, such as electronic, electrostatic and mechanical copies, photocopies, recordings, magnetic media, etc. , are allowed with a written permission from journal IJETS, University Of Technology Yogyakarta.
Jurnal IJETS Board, University Of Technology Yogyakarta, the Editors and the Advisory International Editorial Board make every effort to ensure that no wrong or misleading data, opinions or statements be published in the journal. In any way, the contents of the articles and advertisements published in the journal IJETS, University Of Technology Yogyakarta are sole and exclusive responsibility of their respective authors and advertisers.
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0