Implementasi K-Nearest Neighbor untuk Klasifikasi Bunga Dengan Ekstraksi Fitur Warna RGB

Penulis

DOI:

https://doi.org/10.25126/jtiik.2020722608

Abstrak

Era computer vision merupakan era dimana komputer dilatih untuk bisa melihat, mengidentifikasi dan mengklasifikasi seperti kecerdasan manusia. Algoritma klasifikasi berkembang dari yang paling sederhana seperti K-Nearest Neighbor (KNN) sampai Convolutional Neural Networks. KNN merupakan algoritma klasifikasi yang paling sederhana dalam mengklasifikasikan sebuah gambar kedalam sebuah label. Metode ini mudah dipahami dibandingkan metode lain karena mengklasifikasikan berdasarkan jarak terdekat dengan objek lain (tetangga). Tujuan penelitian ini untuk membuktikan kelemahan metode KNN dan ekstraksi fitur warna RGB dengan karakteristik tertentu. Percobaan pertama dilakukan terhadap dua objek dengan kemiripan bentuk tetapi dengan  warna yang  mencolok di salah satu sisi objek. Percobaan kedua terhadap dua objek yang memiliki perbedaan karakteristik bentuk meskipun memiliki kemiripan warna. Empat objek tersebut adalah bunga coltsfoot, daisy, dandelion dan matahari. Total data dalam dataset adalah 360 data. Dataset memiliki tantangan variasi sudut pandang, penerangan, dan  gangguan dalam latar. Hasil menunjukkan bahwa kolaborasi metode klasifikasi KNN dengan ekstraksi fitur warna RGB memiliki kelemahan terhadap percobaan pertama dengan akurasi 50-60% pada K=5. Percobaan kedua memiliki akurasi sekitar 90-100% pada K=5. Peningkatan akurasi, precision dan recall terjadi ketika menaikkan jumlah K yaitu dari K=1menjadi K=3 dan K=5.

Kata kunci: k-nearest neighbour, RGB, kelemahan, kemiripan, bunga

 

 

IMPLEMENTATION OF K-NEAREST NEIGHBOR FOR FLOWER CLASSIFICATION WITH EXTRACTION OF RGB COLOR FEATURES

The era of computer vision is an era where computers are trained to be able to see, identify and classify as human intelligence. Classification algorithms develop from the simplest such as K-Nearest Neighbor (KNN) to Convolutional Neural Networks. KNN is the simplest classification algorithm in classifying an image into a label. This method is easier to understand than other methods because it classifies based on the closest distance to other objects (neighbors). The purpose of this research is to prove the weakness of the KNN method and the extraction of RGB color features for specific characteristics. The first  experiment on two objects with similar shape but with sharp color on one side of the object. The second experiment is done on two objects that have different shape characteristics even having a similar colors. The four objects are coltsfoot, daisy, dandelion and sunflower. Total data in the dataset is 360 data. The dataset has the challenge of varying viewpoints, lighting and background noise. The results show that the collaboration of the KNN classification method with RGB color feature extraction has weakness in the first experiment with the level of accuracy about 50-60% at K = 5. The second experiment has an accuracy of around 90-100% at K = 5. Increased accuracy, precision and recall occur when increasing the amount of K, from K = 1 to K = 3 and K = 5.

 

 

Keywords: k-nearest neighbour, RGB, weakness, similar, flower

Downloads

Download data is not yet available.

Biografi Penulis

  • Lia Farokhah, STMIK Asia Malang
    Informatika

Referensi

DARMA, P. 2010. Pengolahan Citra Digital. Yogyakarta: Andi Publisher.

FADHLILLAH, A. N. 2015. Analisis Dan Implementasi Klasifikasi K-Nearest Neighbor Telapak Kaki Manusia. In e-Proceeding of Engineering (Vol. 2, pp. 2876–2883). Universitas Telkom.

ISMAIL, A. M. 2018. Cara Kerja Algoritma k-Nearest Neighbor (k-NN) [online] (diterbitkan 2018) Tersedia di: Retrieved <https://medium.com/bee-solution-partners/cara-kerja-algoritma-k-nearest-neighbor-k-nn-389297de543e> [diakses 2 Agustus 2019]

MANIK, F. Y., & SARAGIH, K. S. 2017. Klasifikasi Belimbing Menggunakan Naïve Bayes Berdasarkan Fitur Warna RGB. IJCCS, 11(1).

MANJUNATH, S. 2010. Texture Features and KNN in Classification of Flower Images D S Guru. International Journal of Computer Applications, (Special Issue on “Recent Trends in Image Processing and Pattern Recognition”).

MATTHEW, N. 2012. Data Mining for Masses. Washington, USA.

MUJAHIDIN, S. 2015. Klasifikasi Warna Kulit bedasarkan Ruang Warna RGB. In Seminar Nasional Aplikasi Teknologi Informasi (SNATI) (pp. 17–19). Yogyakarta: Universitas Islam Indonesia.

NILSBACK, M. E. AND ZISSERMAN, A. 2006. A Visual Vocabulary for flower Classification. In the Proceedings of Computer Vision and Pattern Recognition, Vol. 2, pp.1447-1454.

PARAMITA, C., RACHMAWANTO, E. H., SARI, C. A., IGNATIUS, D. R., & SETIADI, M. 2019. Klasifikasi Jeruk Nipis Terhadap Tingkat Kematangan Buah Berdasarkan Fitur Warna Menggunakan K-Nearest Neighbor. Jurnal Pengembangan IT (JPIT), 04(1), 1–6

PRIYANTO, H. 2017. Pengolahan Citra Digital Teori dan Aplikasi Nyata. Bandung: Informatika.

RESEBROCK, A. 2018. Deep Learning For Computer Vision. United States of America: Pyimagesearch

SHAPARIA, R. H., PATEL, N. M., & SHAH, P. Z. H. 2017. Flower Classification using Texture and Color Features. In International Conference on Research and Innovations in Science, Engineering&Technology (Vol. 2, pp. 113–118). Kalpa.

SOKOLOVA, M., & LAPALME, G. 2009. A systematic analysis of performance measures for classification tasks. Information Processing and Management, 45(4), 427–437. Elvesier Ltd

SUBAIRI. 2018. Implementasi Metode k-Nearest Neighbor pada Pengenalan Pola Tekstur Citra Saliva untuk Deteksi Ovulasi. EECCIS, 12(1), 9–14.

SURYANI, E., PALGUNADI, S., & PUTRA, Y. R. 2017. Cells Identification of Acute Myeloid Leukemia AML M0 and AML M1 using k-Nearest Neighbour Based on Morphological Images. In International Conference on Data and Software Engineering (ICoDSE). IEEE.

Diterbitkan

02-12-2020

Terbitan

Bagian

Ilmu Komputer

Cara Mengutip

Implementasi K-Nearest Neighbor untuk Klasifikasi Bunga Dengan Ekstraksi Fitur Warna RGB. (2020). Jurnal Teknologi Informasi Dan Ilmu Komputer, 7(6), 1129-1136. https://doi.org/10.25126/jtiik.2020722608