k-Nearest Neighbor and Feature Extraction on Detection of Pest and
Diseases of Cocoa
Dublin Core
Title
k-Nearest Neighbor and Feature Extraction on Detection of Pest and
Diseases of Cocoa
Diseases of Cocoa
Subject
Cocoa pods, Detection of pests, and diseases of cocoa pods, HSV, KNN, Confusion Matrix, K-Fold CrossValidation
Description
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%
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%
Creator
Mohammad Yazdi Pusadan1
, Syahrullah2
, Merry3
, Ahmad Imam Abdullah4
, Syahrullah2
, Merry3
, Ahmad Imam Abdullah4
Publisher
University of Tadulako
Date
30-06-2022
Contributor
Fajar Bagus W
Format
PDF
Language
Indonesia
Type
Text
Files
Collection
Citation
Mohammad Yazdi Pusadan1
, Syahrullah2
, Merry3
, Ahmad Imam Abdullah4, “k-Nearest Neighbor and Feature Extraction on Detection of Pest and
Diseases of Cocoa,” Repository Horizon University Indonesia, accessed June 4, 2025, https://repository.horizon.ac.id/items/show/9183.
Diseases of Cocoa,” Repository Horizon University Indonesia, accessed June 4, 2025, https://repository.horizon.ac.id/items/show/9183.