Classification of Segmented Milkfish Eyes using Cosine K-Nearest Neighbor
Eko Agus Prasetyo, Raden Dimas Adityo, Rani Purbaningtyas · 2019
The classification of milkfish freshness based on the eyes is supported by the results of correct fish eye segmentation. Generally, the problems faced by segmentation results are many objects with similar characters and similar gray intensity. Segmentation with K-Means produces K layers of binary image according to the selected K cluster. As a result, many objects appear as the result of segmentation. Among all objects appear, the fish eye has a special character, where it is round black. The problem faced by classic K-Nearest Neighbor (KNN) in classification is sensitive to noise when using low K while using high K the classification performance falls to the most class that shouldn't as the result. We propose Cosine KNN (CosKNN) to solve the classic KNN problem where the classification results aren't taken from the most class of nearest neighbor. CosKNN gives soft value that represents the belonging level of each class to the testing data. To evaluate the performance of CosKNN, we use precision and recall. The experiment result shows that the CosKNN achieves performance both precision and recall of 97.93% and 91.15%, respectively, all with shape features. Especially on precision performance, CosKNN achieves the highest performance compared to other methods, CosKNN, classic KNN and K-SVNN achieve 97.93%, 96.20%, and 95.77%. While in recall performance, KNN achieves the highest performance compared to other methods, CosKNN, classic KNN and K-SVNN achieve 91.15%, 92.10%, and 90.76%, respectively, all with shape features.