The Effect of Lighting Variations on the Accuracy of Formalin Detection in Milkfish Using HSV Color Space and k-Nearest Neighbors (kNN) Algorithm

Authors

  • Noor Falih Universitas Pembangunan Nasional Veteran Jakarta
  • Ruth Mariana Bunga Wadu Universitas Pembangunan Nasional Veteran Jakarta
  • Andhika Octa Indarso Universitas Pembangunan Nasional Veteran Jakarta
  • Hastie Audytra Universitas Nahdlatul Ulama Sunan Giri, Bojonegoro, Indonesia
  • Ahmad Ali Hakam Dani Universitas Andi Djemma Palopo, Palopo, Indonesia

DOI:

https://doi.org/10.37396/jsc.v8i3.564

Keywords:

Milkfish, Formalin detection, HSV, knn, Illumination variation, Image processing, Feature extraction, Real-time classification

Abstract

Milkfish (Chanos chanos) is a widely consumed fish commodity in Indonesia, often subject to preservation using formalin, a chemical with serious health risks when misused. This study proposes a non-destructive formalin detection method using HSV (Hue, Saturation, Value) color features extracted from eye images of milkfish, classified via the k-Nearest Neighbor (kNN) algorithm. The research investigates the impact of varying illumination levels low, medium, and high on the consistency of HSV features and the accuracy of kNN classification. Results show that medium lighting conditions yield the highest classification accuracy, suggesting an optimal illumination range for field deployment. The system's simplicity and potential for real-time implementation on mobile or embedded platforms make it suitable for use by non-technical personnel in traditional markets. Challenges such as environmental temperature, image angle, and surface reflectivity are addressed through calibration strategies and operational guidelines. This study contributes practical insights into lighting control and feature stability, enhancing the reliability of image-based formalin detection systems.

Downloads

Download data is not yet available.

Downloads

Published

2025-12-24

Issue

Section

Articles

How to Cite

The Effect of Lighting Variations on the Accuracy of Formalin Detection in Milkfish Using HSV Color Space and k-Nearest Neighbors (kNN) Algorithm. (2025). Jurnal Sistem Cerdas, 8(3), 306-316. https://doi.org/10.37396/jsc.v8i3.564

Most read articles by the same author(s)