A Recognition and Classification of Fruit Images Using Texture Feature Extraction and Machine Learning Algorithms

Authors

  • Nohadra Behnam Israel Energy Engineering Department, Technical College of Engineering, Duhok Polytechnic University, Duhok, Kurdistan Region-Iraq.
  • Adnan Ismail Al-Sulaifanie Electrical & Computer Engineering Department, College of Engineering, University of Duhok, Duhok, Kurdistan Region-Iraq.
  • Ahmed Khorsheed Al-Sulaifanie Electrical & Computer Engineering Department, College of Engineering, University of Duhok, Duhok, Kurdistan Region-Iraq.

DOI:

https://doi.org/10.25007/ajnu.v13n1a1514

Abstract

Fruits classification is demanded in some fields, such as industrial agriculture. Automatic fruit classification from their digital image plays a vital role in those fields. The classification encounters several challenges due to capturing fruits’ images from different viewing angle, rotation, and illumination pose. In this paper a framework for recognition and classification of fruits from their images have been proposed depending on texture features, the proposed system rely on three phases; firstly, pre-processing, as images need to be resized, filtered, color convert,  and threshold in order to create a fruit mask which is used for fruit’s region of interest segmentation; followed by two methods for texture features extraction, first method utilize Local Binary Pattern (LBP), while the second method uses Principal Component Analysis (PCA) to generate features vector for each fruit image. Classification is the last phase; two supervised machine learning algorithms; K-Nearest Neighbor (K-NN) and Support Vector Machine (SVM) are utilized to identity and recognize the fruits images classes. Both methods are tested using 1200 fruits images, from 12 classes acquired from Fruits-360 database. The results show that combining LBP with K-NN, and SVM yields the best accuracy up to 100% and 89.44% respectively, while the accuracy of applying PCA with K-NN and SVM reached to 86.38 % and 85.83% respectively.

Downloads

Download data is not yet available.

References

Abdi, H., & Williams, L. J. (2010). Principal component analysis. Wiley interdisciplinary reviews: computational statistics, 2(4), 433-459.

Ahonen, T., Hadid, A., & Pietikäinen, M. (2004). Face recognition with local binary patterns. Paper presented at the European conference on computer vision.

Al-falluji, R. A. A. (2016). Color, shape and texture based fruit recognition system. International Journal of Advanced Research in Computer Engineering & Technology (IJARCET), 5(7).

Anraeni, S., Indra, D., Adirahmadi, D., & Pomalingo, S. (2021). Strawberry Ripeness Identification Using Feature Extraction of RGB and K-Nearest Neighbor. Paper presented at the 2021 3rd East Indonesia Conference on Computer and Information Technology (EIConCIT).

Behera, S. K., Rath, A. K., Mahapatra, A., & Sethy, P. K. (2020). Identification, classification & grading of fruits using machine learning & computer intelligence: a review. Journal of Ambient Intelligence and Humanized Computing, 1-11.

Bhargava, A., & Bansal, A. (2021). Fruits and vegetables quality evaluation using computer vision: A review. Journal of King Saud University-Computer and Information Sciences, 33(3), 243-257.

Ghazal, S., Qureshi, W. S., Khan, U. S., Iqbal, J., Rashid, N., & Tiwana, M. I. (2021). Analysis of visual features and classifiers for Fruit classification problem. Computers and Electronics in Agriculture, 187, 106267.

Gill, H. S., & Khehra, B. S. (2021). Hybrid classifier model for fruit classification. Multimedia Tools and Applications, 80(18), 27495-27530.

Indriani, O. R., Kusuma, E. J., Sari, C. A., & Rachmawanto, E. H. (2017). Tomatoes classification using K-NN based on GLCM and HSV color space. Paper presented at the 2017 international conference on innovative and creative information technology (ICITech).

Jana, S., & Parekh, R. (2017). Shape-based fruit recognition and classification. Paper presented at the International Conference on Computational Intelligence, Communications, and Business Analytics.

Kaur, R., & Himanshi, E. (2015). Face recognition using principal component analysis. Paper presented at the 2015 IEEE international advance computing conference (IACC).

Nosseir, A., & Ahmed, S. E. A. (2018). Automatic identification and classifications for fruits using k-NN. Paper presented at the Proceedings of the 7th International Conference on Software and Information Engineering.

Ojala, T., Pietikäinen, M., & Harwood, D. (1996). A comparative study of texture measures with classification based on featured distributions. Pattern recognition, 29(1), 51-59.

Oltean, M. (2018). Fruits 360 dataset on kaggle. Retrieved from https://www.kaggle.com/moltean/fruits.

Otsu, N. (1979). A threshold selection method from gray-level histograms. IEEE transactions on systems, man, and cybernetics, 9(1), 62-66.

Rajasekar, L., & Sharmila, D. (2019). Performance analysis of soft computing techniques for the automatic classification of fruits dataset. Soft Computing, 23(8), 2773-2788.

San, M., Aung, M. M., & Khaing, P. P. (2019). Fruit Recognition Using Color and Morphological Features Fusion. International Journal of Image, Graphics and Signal Processing, 10(10), 8.

Saranya, N., Srinivasan, K., Pravin Kumar, S., Rukkumani, V., & Ramya, R. (2019). Fruit classification using traditional machine learning and deep learning approach. Paper presented at the International Conference on Computational Vision and Bio Inspired Computing.

Shukla, D., & Desai, A. (2016). Recognition of fruits using hybrid features and machine learning. Paper presented at the 2016 International Conference on Computing, Analytics and Security Trends (CAST).

Taunk, K., De, S., Verma, S., & Swetapadma, A. (2019). A brief review of nearest neighbor algorithm for learning and classification. Paper presented at the 2019 International Conference on Intelligent Computing and Control Systems (ICCS).

Wang, Z., & Xue, X. (2014). Multi-class support vector machine Support vector machines applications (pp. 23-48): Springer.

Zebari, R., Abdulazeez, A., Zeebaree, D., Zebari, D., & Saeed, J. (2020). A comprehensive review of dimensionality reduction techniques for feature selection and feature extraction. Journal of Applied Science and Technology Trends, 1(2), 56-70.

Zeeshan, M., Prabhu, A., Arun, C., & Rani, N. S. (2020). Fruit Classification System Using Multiclass Support Vector Machine Classifier. Paper presented at the 2020 International Conference on Electronics and Sustainable Communication Systems (ICESC).

Published

2024-02-08

How to Cite

Behnam Israel, N., Ismail Al-Sulaifanie, A., & Khorsheed Al-Sulaifanie, A. (2024). A Recognition and Classification of Fruit Images Using Texture Feature Extraction and Machine Learning Algorithms. Academic Journal of Nawroz University, 13(1), 92–104. https://doi.org/10.25007/ajnu.v13n1a1514

Issue

Section

Articles