Classification of Tangerine (Citrus Reticulata Blanco) Quality Using Combination of GLCM, HSV, and K-NN

Friska Ayu Listya(1*), Nur Rokhman(2)

(1) Master Program of Computer Science; FMIPA UGM, Yogyakarta
(2) Department of Computer Science and Electronics, FMIPA UGM, Yogyakarta, Indonesia
(*) Corresponding Author


 The quality of fruit production is very important because it is related to the value of sales. Data from the Directorate General of Horticulture at the Ministry of Agriculture in 2017 showed that 94,3% of the total yield of citrus fruits is a type of tangerine. In the classification of the quality, the visual observation process is strongly influenced by subjectivity so that in certain conditions such as tired eyes and the number of oranges that want to classify too many the process can be inconsistent and also take a long time. Therefore, a technology is needed to accelerate the classification process and make it more objective. This study combines the Gray level Co-occurrence Matrix (GLCM) method for texture, Hue, Saturation, Value (HSV) features for color features and the k-Nearest Neighbor (k-NN) classification method. The data used were 60 images of rotten tangerines and 60 images of not rotten tangerines divided using a 4-fold cross-validation method to find the best combination of data training and data testing. 3 main processes will be carried out, namely preprocessing, feature extraction and classification. This study produced the highest accuracy of 80% from the combined of GLCM and HSV features extraction with value k = 5 for k-NN .


Classification; GLCM; HSV; K-NN

Full Text:



[1] K. P. D. J. Hortikultura, Statistik Pertanian 2018. Jakarta: Pusat Data dan Sistem Informasi Pertanian, Kementrian Pertanian Republik Indonesia, 2018. [Online]. Available: [Accessed: 10-Aug-2019]

[2] R. Widodo, A. W. Widodo, and A. Supriyanto, “Pemanfaatan Ciri Gray Level Co-Occurrence Matrix ( GLCM ) Citra Buah Jeruk Keprok ( Citrus reticulata Blanco ) untuk Klasifikasi Mutu,” J. Pengemb. Teknol. Inf. dan Ilmu Komput., vol. 2, no. 11, pp. 5769–5776, 2018. [Online]. Available: [Accessed: 16-Jul-2019]

[3] C. Paramita, E. Hari Rachmawanto, C. Atika Sari, and M. S. Ignatius, “Klasifikasi Jeruk Nipis Terhadap Tingkat Kematangan Buah Berdasarkan Fitur Warna Menggunakan K-Nearest Neighbor,” J. Inform. J. Pengemb. IT, vol. 4, no. 1, pp. 1–6, 2019.

[4] O. R. Indriani, E. J. Kusuma, C. A. Sari, E. H. Rachmawanto, and D. R. Setiadi, “Tomatoes classification using K-NN based on GLCM and HSV color space,” Proc. - 2017 Int. Conf. Innov. Creat. Inf. Technol. Comput. Intell. IoT, ICITech 2017, vol. 2018-Janua, no. November, pp. 1–6, 2018. [Online]. Available: [Accessed: 16-Jul-2019]

[5] P. Rianto and A. Harjoko, “Penentuan Kematangan Buah Salak Pondoh Di Pohon Berbasis Pengolahan Citra Digital,” IJCCS (Indonesian J. Comput. Cybern. Syst., vol. 11, no. 2, p. 143, 2017. [Online]. Available: [Accessed: 16-Jul-2019]

[6] Karimah F.U., Klasifikasi Citra Batik Kain Besurek Dengan Speed Up Robust Features (Surf) Dan Gray Level Co-Occurrence Matrix (Glcm). Yogyakarta, 2017.

[7] R. A. Rasool, “Iris Feature Extraction and Recognition based on Gray Level Co-occurrence Matrix ( GLCM ) Technique,” Int. J. Comput. Appl. (0975 – 8887), vol. Volume 181, no. January, 2018. [Online]. Available: [Accessed: 17-Jul-2019]

[8] S. Kolkur, D. Kalbande, P. Shimpi, C. Bapat, and J. Jatakia, “Human Skin Detection Using RGB, HSV and YCbCr Color Models,” ICCASP/ICMMD-2016. Adv. Intell. Syst. Res., vol. 137, pp. 324–332, 2017. [Online]. Available: [Accessed: 17-Jul-2019]

[9] A. Z. Maula, C. Rahmad, and U. D. Rosiani, “Pengembangan Aplikasi Pemilihan Buah Tomat Untuk Bibit Unggul Berdasarkan Warna Dan Ukuran Menggunakan HSV Dan Thresholding,” J. Teknol. Inf., vol. 7, no. 2, pp. 127–138, 2016. [Online]. Available: [Accessed: 18-Jul-2019]

[10] A. Wada et al., “Differentiating Alzheimer’s Disease from Dementia with Lewy Bodies Using a Deep Learning Technique Based on Structural Brain Connectivity,” Magn. Reson. Med. Sci., vol. 18, no. 3, pp. 219–224, 2019. [Online]. Available: [Accessed: 18-Aug-2019]

[11] J. Aguilera, L. C. González, M. Montes-y-Gómez, and P. Rosso, “A new weighted k-nearest neighbor algorithm based on newton’s gravitational force,” Lect. Notes Comput. Sci. (including Subser. Lect. Notes Artif. Intell. Lect. Notes Bioinformatics), vol. 11401 LNCS, no. November, pp. 305–313, 2019. [Online]. Available:'s_Gravitational_Force [Accessed: 18-Jul-2019]

[12] Akhyar, R. Hidayat, and B. Hantono, “Identifikasi Fitur Wajah Dengan Menggunakan Facial Points Dan Euclidean Distance,” Citee, pp. 154–160, 2017.


Article Metrics

Abstract views : 5286 | views : 2433


  • There are currently no refbacks.

Copyright (c) 2019 IJCCS (Indonesian Journal of Computing and Cybernetics Systems)

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Copyright of :
IJCCS (Indonesian Journal of Computing and Cybernetics Systems)
ISSN 1978-1520 (print); ISSN 2460-7258 (online)
is a scientific journal the results of Computing
and Cybernetics Systems
A publication of IndoCEISS.
Gedung S1 Ruang 416 FMIPA UGM, Sekip Utara, Yogyakarta 55281
Fax: +62274 555133 |

View My Stats1
View My Stats2