Jurnal RESTI (Rekayasa Sistem dan Teknologi Informasi) (Jul 2022)

k-Nearest Neighbor and Feature Extraction on Detection of Pest and Diseases of Cocoa

  • Mohammad Yazdi Pusadan,
  • Syahrullah,
  • Merry,
  • Ahmad Imam Abdullah

DOI
https://doi.org/10.29207/resti.v6i3.4064
Journal volume & issue
Vol. 6, no. 3
pp. 471 – 480

Abstract

Read online

Knowledge and utilization of digital images are growing rapidly not only in the fields of medicine and industry but also in the field of agriculture. This knowledge can apply it to a computer-based program that is used to detect agricultural products more effectively and efficiently. this research aims to build a system to detect the types of pests and diseases of cocoa pods because in general, an inspection of pests and diseases of cocoa pods is still manual based on the visual analysis of the color of the pods visually by the human eye which has limitations, which requires more energy to sort, the level of human consistency. In terms of assessing the symptoms of pests and fruit diseases, it is not guaranteed, because humans can experience fatigue, and humans also assess symptoms of pests and fruit diseases, sometimes it is subjective. This study utilizes digital image processing techniques to extract the color features of digital images of cocoa pods, the method used to extract the color features of Hue, Saturation, Value (HSV), and the classification algorithm used by K-Nearest Neighbor. The data used as many as 150 images divided into 70% training data and 30% testing data. Based on the results of trials using k values ​​of 5,7,11 and 13 in the holdout method, the best accuracy is 84.44% with a value of k = 5. And in the k-5 cross-validation test, the best accuracy is also found at k = 5 with a value accuracy of 99.33%.

Keywords