Exploring the Application of K-means Machine Learning Algorithm in Fruit Classification
DOI:
https://doi.org/10.62051/gr86br34Keywords:
K-means; Machine Learning; Fruit Classification.Abstract
Fruits are very popular in people's lives because they contain vitamins and dietary fiber, making them an important source of human diet. According to fruit production statistics, global fruit production reaches millions of metric tons, so it is necessary for people to establish an advanced fruit recognition system. However, traditional methods, including physical inspect, are inefficient, labor-intensive, and have a high probability of errors. Based on these facts, developing more efficient classification algorithms is worth exploring, as they can help people classify fruits quickly and effectively. This paper describes an experiment using K-means machine learning algorithm in Python, aiming to classify different types of fruits using image datasets containing various types of fruit images. The K-means algorithm will cluster the fruit image data input from three apple images and three banana images samples as an efficient clustering algorithm. The conclusion that the success rate for apple is 33.3% and the same rate for banana is 66.7% can get from the experiment. Nevertheless, this does not mean K-means will classify banana better than apple absolutely, since many other factors like the fruit color ,image pixel, the unique feature of randomly assigning labels to clusters in the k-means algorithm can also lead to the success or failure of the experiments.
Downloads
References
Maskar, V., Chouhan, K., Bhandare, P., & Pawar, M. (2021, May). Clustering of Fruits Image Based on Color and Shape Using K-Means Algorithm. In Techno-Societal 2020: Proceedings of the 3rd International Conference on Advanced Technologies for Societal Applications—Volume 1 (pp. 639-650). Cham: Springer International Publishing.
Yu, Y., Velastin, S. A., & Yin, F. (2020). Automatic grading of apples based on multi-features and weighted K-means clustering algorithm. Information Processing in Agriculture, 7(4), 556-565.
Pham, V. H., & Lee, B. R. (2015). An image segmentation approach for fruit defect detection using k-means clustering and graph-based algorithm. Vietnam Journal of Computer Science, 2, 25-33
Chithra, P. L., & Henila, M. (2017). DEFECT IDENTIFICATION IN THE FRUIT APPLE USING K-MEANS COLOR IMAGE SEGMENTATION ALGORITHM. International Journal of Advanced Research in Computer Science, 8(8).
Kahfi, A. H., Hasan, M., & Hasanah, R. L. (2023). Classification of Banana Ripeness Based on Color and Texture Characteristics. Journal of Computer Networks, Architecture and High Performance Computing, 5(1), 10-17.
Aherwadi, N. A. G. N. A. T. H., & Mittal, U. S. H. A. (2022). Fruit quality identification using image processing, machine learning, and deep learning: A review. Adv. Appl. Math. Sci, 21(5), 2645-2660.
Zhang, C., Zou, K., & Pan, Y. (2020). A method of apple image segmentation based on color-texture fusion feature and machine learning. Agronomy, 10(7), 972.
Worasawate, D., Sakunasinha, P., & Chiangga, S. (2022). Automatic classification of the ripeness stage of mango fruit using a machine learning approach. AgriEngineering, 4(1), 32-47.
Patil, P. U., Lande, S. B., Nagalkar, V. J., Nikam, S. B., & Wakchaure, G. C. (2021). Grading and sorting technique of dragon fruits using machine learning algorithms. Journal of Agriculture and Food Research, 4, 100118
Kutyrev, A., Kiktev, N. A., Kalivoshko, O., & Rakhmedov, R. S. (2022, November). Recognition and Classification Apple Fruits Based on a Convolutional Neural Network Model. In IT&I (pp. 90-101).
Akpolat, O., & Ertürk, G. An Application of Data Mining Problem by Python: A Case Study on Fruit Classification.
Downloads
Published
Conference Proceedings Volume
Section
License
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.