Evaluation of Various Error Metrics in K-NN Image Classification: A Case Study on Egg Image Processing

  • Naibaho F
  • Khowarizmi A
N/ACitations
Citations of this article
6Readers
Mendeley users who have this article in their library.

Abstract

Image processing is a technique to create an image that appears and can be converted into light that describes 2 dimensions. The K-Nearest Neighbor (K-NN) algorithm is known for its efficiency and effectiveness in classification. Although K-NN is often used, a deep understanding of Mean Squared Error (MSE), Mean Absolute Percentage Error (MAPE), and Mean Absolute Deviation (MAD) especially in the context of image classification, still requires further exploration. This study aims to emphasize and measure the behavior of MSE, MAPE, and MAD when applied to K-NN classification results. In this study, calculating statistical features such as mean, standard deviation, skewness, and kurtosis are extracted from the histogram of chicken egg images. These features are then normalized and used as input for the K-NN algorithm. Classification performance is evaluated using MSE, MAPE, and MAD. The results show that K-NN is able to classify chicken egg images with performance measured by MSE of 0.35114462, MAPE of 0.14237803%, and MAD of 0.52930142. The differences in these values, especially the much smaller MAPE value and in percentage units, underscore the importance of selecting the right metrics according to the needs of interpretation and practical applications. This study provides a clearer understanding of how different error metrics characterize the performance of K-NN in image classification, while also highlighting the need for comparative metric considerations in future research.

Cite

CITATION STYLE

APA

Naibaho, F. R., & Khowarizmi, A.-. (2025). Evaluation of Various Error Metrics in K-NN Image Classification: A Case Study on Egg Image Processing. CogITo Smart Journal, 11(1), 91–100. https://doi.org/10.31154/cogito.v11i1.859.91-100

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free