Application of K-Nearest Neighbor Algorithm for Estimating Fishery Product Quality at BPPMHKP Pontianak
DOI:
https://doi.org/10.32664/j-intech.v13i02.2071Keywords:
Accuracy, Fishery Products, K-Nearest Neighbor, Prediction, Total Plate Count.Abstract
Microbiological quality is a key parameter in ensuring the safety and overall integrity of fishery products. One of the primary indicators in microbiological testing is the Total Plate Count (TPC), locally known in Indonesia as Angka Lempeng Total (ALT), which measures the concentration of aerobic microorganisms in a sample. This study aims to develop a predictive system for ALT values in fishery products using the K-Nearest Neighbor (KNN) algorithm as the main classification approach.
The dataset was derived from microbiological test results conducted at the BPPMHKP Laboratory in Pontianak between 2020 and 2024. Data preprocessing included converting ALT values from scientific text format to numeric values, applying Min-Max normalization, splitting the dataset into training and testing subsets, and implementing the KNN algorithm with K = 3. Predictions were generated by calculating the Euclidean distance between each test sample and the training set, selecting the three nearest neighbors, and averaging their ALT values.
The proposed system achieved a prediction accuracy of 98.66% compared to actual ALT measurements. Based on the microbiological threshold of 5.0 × 10ⵠcolony-forming units per gram (CFU/g) used by BPPMHKP, the system effectively estimated product quality according to safety standards. These findings indicate the potential of the system to be developed into an application-based decision-support tool for government laboratories and quality control agencies.
Keywords: Total Plate Count, K-Nearest Neighbor, Prediction, Fishery Products, Accuracy
References
[1] T. M. Mitchell, Machine Learning. New York: McGraw-Hill, 1997.
[2] C. M. Bishop, Pattern Recognition and Machine Learning. Berlin: Springer, 2006.
[3] Khairunnisa, Munawir, and N. Fadillah, “Pengenalan Kualitas Ikan Berdasarkan Warna Mata Menggunakan Metode K-Nearest Neighbor,” 2020.
[4] A. I. Arief and R. Rahmadewi, “Penerapan Algoritma KNN pada Kesegaran Ikan Menggunakan Citra Digital,” 2021.
[5] C. Y. Jerandu, P. Batarius, and A. A. J. Sinlae, “Identifikasi Kualitas Kesegaran Ikan Menggunakan Algoritma K-Nearest Neighbor Berdasarkan Ekstraksi Ciri Warna Hue, Saturation, dan Value (HSV),” Biosainstek, vol. 4, no. 3, 2022, doi: 10.47065/bits.v4i3.2613.
[6] D. Ramadhan and B. H. Prasetio, “Sistem Klasifikasi Kualitas Air Kolam Ikan Lele dengan Metode K-Nearest Neighbor,” 2023.
[7] M. Jadid, A. S. Adani, and P. H. Susilo, “Implementasi Metode K-Nearest Neighbor Sebagai Sistem Pendeteksi Kualitas Ikan Bandeng,” G-Tech Journal, vol. 8, no. 1, 2024, doi: 10.29407/gj.v8i1.21131.
[8] J. Han, J. Pei, and M. Kamber, Data Mining: Concepts and Techniques, 3rd ed. San Francisco: Morgan Kaufmann, 2011.
[9] T. Cover and P. Hart, “Nearest neighbor pattern classification,” IEEE Trans Inf Theory, vol. 13, no. 1, pp. 21–27, Jan. 1967, doi: 10.1109/TIT.1967.1053964.
[10] K. P. Murphy, Machine Learning: A Probabilistic Perspective. Cambridge, MA: MIT Press, 2012.
[11] D. Aha, D. Kibler, and M. Albert, “Instance-based learning algorithms,” Mach Learn, vol. 6, no. 1, pp. 37–66, 1991, doi: 10.1023/A:1022689900470.
[12] L. F. Cunningham, J. Gerlach, and M. D. Harper, “Perceived risk and e-banking services: An analysis from the perspective of the consumer,” Journal of Financial Services Marketing, vol. 10, no. 2, pp. 165–178, 2005, doi: 10.1057/palgrave.fsm.4770183.
[13] M. Mohri, A. Rostamizadeh, and A. Talwalkar, Foundations of Machine Learning, 2nd ed. Cambridge, MA: MIT Press, 2018.
[14] R. Kohavi, “A study of cross-validation and bootstrap for accuracy estimation and model selection,” in Proceedings of the 14th International Joint Conference on Artificial Intelligence (IJCAI), 1995, pp. 1137–1145.
Downloads
Published
Issue
Section
License
Copyright (c) 2025 J-INTECH

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

