Comparison of k-NN and Naive Bayes Algorithms for Classifying Mackerel Tuna Freshness For Real-Time Classification Using Gas Sensors
Abstract
The large production and consumption of mackerel tuna in Indonesia reflect its importance as a local staple and a valuable export product contributing to the nation's economy. Mackerel tuna is prized for its nutritional content and affordability, making it a crucial part of the diet for many Indonesians. Ensuring the freshness and quality of this high-demand product is essential. This study introduces a machine-learning approach to detect fish freshness by analyzing gases emitted during spoilage, utilizing MQ-2, MQ-9, and MQ-135 gas sensors. The data were processed using the k-Nearest Neighbors (k-NN) and Naive Bayes algorithms, both achieving accuracy rates near 100%. These findings highlight the system’s potential to enhance quality control in Indonesia’s fishery industry by offering an efficient and reliable method for assessing fish freshness.
Keywords—classification, machine learning, tuna, gas sensor
References
Ministry of Marine Affairs and Fisheries. (2024). Marine and Fisheries in Figures 2024 (Vol. 11). The Center for Data, Statistics, and Information, Indonesia.
Food and Agriculture Organization (FAO). (2022). The State of World Fisheries and Aquaculture. [Online].
Statista, "Fish consumption per capita in Indonesia 2014-2022," Statista, 2023. [Online]. Retrieved from https://www.statista.com/statistics/1225355/indonesia-fish-consumption-per-capita/.
Jakarta Globe. (2023). Indonesia Sets $7.6b Fishery Export Target for 2023. Retrieved from https://jakartaglobe.id/business/indonesia-sets-76b-fishery-export-target-for-2023
The Jakarta Post. (2024). Ministry blames outdated methods for disappointing 2023 fishery exports. Retrieved from https://www.thejakartapost.com/business/2024/01/11/ministry-blames-outdated-methods-for-disappointing-2023-fishery-exports.html
Y. Wu, Y. Duan, Y. Wei, D. An, & J. Liu, “Application of intelligent and unmanned equipment in aquaculture: A review,” Computers and Electronics in Agriculture, vol. 199, pp. 107201, 2022.
R. Baldwin, & R. Freeman, “Risks and global supply chains: What we know and need to know.” Annual Review of Economics, vol. 14, no. 1, pp. 153-180, 2022.
H. Anwar, T. Anwar, & S. Murtaza, “Review on food quality assessment using machine learning and electronic nose system,” Biosensors and Bioelectronics: X, vol. 14, pp. 100365, 2023.
R. Saeed, H. Feng, X. Wang, X. Zhang, and Z. Fu, "Fish quality evaluation by sensor and machine learning: A mechanistic review," Food Control, vol. 138, p. 108902, 2022.
L. Franceschelli, A. Berardinelli, S. Dabbou, L. Ragni, and M. Tartagni, "Sensing Technology for Fish Freshness and Safety: A Review," Sensors, vol. 21, no. 4, pp. 1373, 2021.
D. R. Wijaya, N. F. Syarwan, M. A. Nugraha, D. Ananda, T. Fahrudin and R. Handayani, "Seafood Quality Detection Using Electronic Nose and Machine Learning Algorithms With Hyperparameter Optimization," IEEE Access, vol. 11, pp. 62484-62