Benchmarking CNN and YOLO Models for Automated Classification of Fish Freshness

Authors

DOI:

https://doi.org/10.29408/edumatic.v10i2.35019

Keywords:

computer vision, convolutional neural network, fish freshness assessment, food quality inspection, yolov8 classification

Abstract

Fish freshness assessment is essential for ensuring food quality and consumer safety; however, conventional visual inspection remains subjective and inconsistent. Although deep learning has shown promising performance in image classification, standardized benchmarking of Convolutional Neural Networks (CNN) and YOLOv8 Classification under identical experimental settings for fine-grained fish freshness classification remains limited. This study compares both models using the same dataset, preprocessing pipeline, augmentation strategy, and training configuration to evaluate predictive performance and computational efficiency. The dataset comprised digital images of tongkol and slungsung fish categorized into four classes: Fresh Tongkol, Rotten Tongkol, Fresh Slungsung, and Rotten Slungsung. Model performance was evaluated using accuracy, precision, recall, F1-score, training time, and inference speed. CNN achieved superior predictive performance with 99.25% accuracy, 99.13% precision, 99.13% recall, and 99.13% F1-score, whereas YOLOv8 Classification achieved 89.88% accuracy, 89.96% precision, 89.88% recall, and 89.89% F1-score. Conversely, YOLOv8 required only 15 minutes for training and 9 ms per image for inference, compared with 23 minutes 20 seconds and 18 ms for CNN. These findings establish a robust benchmark for selecting deep learning architectures by balancing predictive accuracy and computational efficiency in automated fish freshness inspection systems.

References

Chen, B., Yu, J., Ma, Y., Fan, J., Zhang, Y., Gao, Y., Tarjan, L., & Zhang, X. (2026). Non‐Destructive Freshness Assessment of Oysters Using a Multimodal Deep Learning Approach: Visual and Acoustic Fusion. Journal of Food Process Engineering, 49(4), e70500. https://doi.org/10.1111/jfpe.70500

Chhetri, K. B. (2024). Applications of artificial intelligence and machine learning in food quality control and safety assessment. Food Engineering Reviews, 16(1), 1–21. https://doi.org/10.1007/s12393-023-09363-1

Dhal, S. B., & Kar, D. (2025). Leveraging artificial intelligence and advanced food processing techniques for enhanced food safety, quality, and security: a comprehensive review. Discover Applied Sciences, 7(1), 75. https://doi.org/10.1007/s42452-025-06472-w

Falahatnejad, S., Arabi, Z., Ghafari, S., & Sheikh-Akbari, A. (2025). Fish quality assessment using hyperspectral imaging and computer vision: a review. IEEE Sensors Journal, 25(14), 26255–26268. https://doi.org/10.1109/JSEN.2025.3573947

Gao, S., Wang, W., Lv, Y., Chen, C., & Xie, W. (2024). Intelligent classification and identification method for Conger myriaster freshness based on DWG‐YOLOv8 network model. Food Bioengineering, 3(3), 269–279. https://doi.org/10.1002/fbe2.12097

Hou, M., Zhong, X., Zheng, O., Sun, Q., Liu, S., & Liu, M. (2025). Innovations in seafood freshness quality: Non-destructive detection of freshness in Litopenaeus vannamei using the YOLO-shrimp model. Food Chemistry, 463, 141192. https://doi.org/10.1016/j.foodchem.2024.141192

Huang, X., Zhang, K., Liu, Y., Chen, H., Huang, F., & Wei, F. (2024). Research progress on machine learning and computer vision technology in food quality evaluation. Food Science, 45(12), 1–10.

Islam, M. R., Zamil, M. Z. H., Rayed, M. E., Kabir, M. M., Mridha, M. F., Nishimura, S., & Shin, J. (2024). Deep learning and computer vision techniques for enhanced quality control in manufacturing processes. IEEE Access, 12, 121449–121479. https://doi.org/10.1109/ACCESS.2024.3453664

Kaushal, S., Tammineni, D. K., Rana, P., Sharma, M., Sridhar, K., & Chen, H.-H. (2024). Computer vision and deep learning-based approaches for detection of food nutrients/nutrition: New insights and advances. Trends in Food Science & Technology, 146, 104408. https://doi.org/10.1016/j.tifs.2024.104408

Kumar, Y., Rahul, K., Arora, N., & Prasad Gupta, R. (2026). Computer Vision Technologies for Food Quality and Safety Assurance: Evaluating Trends and Analytical Results. Food Analytical Methods, 19(2), 106. https://doi.org/10.1007/s12161-026-03019-6

Liakos, K. G., Athanasiadis, V., Bozinou, E., & Lalas, S. I. (2025). Machine learning for quality control in the food industry: A review. Foods, 14(19), 3424. https://doi.org/10.3390/foods14193424

Liao, B., Wang, Y., Li, X., Cheng, Y., Zhao, G., & Zhou, Y. (2026). Deep Learning‐Based Image Recognition for Food Science and Technology: End‐to‐End Workflows and Domain‐Specific Solutions. Comprehensive Reviews in Food Science and Food Safety, 25(1), e70388. https://doi.org/10.1111/1541-4337.70388

Lin, Y., Ma, J., Wang, Q., & Sun, D.-W. (2023). Applications of machine learning techniques for enhancing nondestructive food quality and safety detection. Critical Reviews in Food Science and Nutrition, 63(12), 1649–1669. https://doi.org/10.1080/10408398.2022.2131725

Lun, Z., Wu, X., Dong, J., & Wu, B. (2025). Deep learning-enhanced spectroscopic technologies for food quality assessment: Convergence and emerging frontiers. Foods, 14(13), 2350. https://doi.org/10.3390/foods14132350

Madhubhashini, M. N., Liyanage, C. P., Alahakoon, A. U., & Liyanage, R. P. (2024). Current applications and future trends of artificial senses in fish freshness determination: A review. Journal of Food Science, 89(1), 33–50. https://doi.org/10.3390/s22218192

Mukhiddinov, M., Muminov, A., & Cho, J. (2022). Improved classification approach for fruits and vegetables freshness based on deep learning. Sensors, 22(21), 8192. https://doi.org/10.3390/s22218192

Ridwan, M. K., Irawan, Y., & Setiawan, R. R. (2026). Mapping Digital Sentiment Landscapes of Hotel Reviews: A Machine Learning-Based Cross-Platform Analysis. Edumatic: Jurnal Pendidikan Informatika, 10(1), 110–119. https://doi.org/10.29408/edumatic.v10i1.33701

Sattar, S., Abbas, T., Tabish, M., & Zhiqiang, G. (2025). Computer vision in aquaculture: transforming fish freshness monitoring. Critical Reviews in Food Science and Nutrition, 1–29. https://doi.org/10.1080/10408398.2025.2607533

Shen, C., Wang, R., Nawazish, H., Wang, B., Cai, K., & Xu, B. (2024). Machine vision combined with deep learning–based approaches for food authentication: An integrative review and new insights. Comprehensive Reviews in Food Science and Food Safety, 23(6), e70054. https://doi.org/10.1111/1541-4337.70054

Yildiz, M. B., Yasin, E. T., & Koklu, M. (2024). Fisheye freshness detection using common deep learning algorithms and machine learning methods with a developed mobile application. European Food Research and Technology, 250(7), 1919–1932. https://doi.org/10.1007/s00217-024-04493-0

Zhao, Z., Wang, R., Liu, M., Bai, L., & Sun, Y. (2025). Application of machine vision in food computing: A review. Food Chemistry, 463, 141238. https://doi.org/10.1016/j.foodchem.2024.141238

Zheng, Y., Yang, L., Zheng, H., Guo, Q., & Fang, H. (2026). Toward Intelligent and Deployable Seafood Quality Evaluation: A Review of Deep Learning‐Assisted Computer Vision. Comprehensive Reviews in Food Science and Food Safety, 25(4), e70551. https://doi.org/10.1111/1541-4337.70551

Downloads

Published

2026-07-29

How to Cite

Putra, I. G. A. D., Gunadi, I. G. A., & Sunarya, I. M. G. (2026). Benchmarking CNN and YOLO Models for Automated Classification of Fish Freshness. Edumatic: Jurnal Pendidikan Informatika, 10(2), 340–349. https://doi.org/10.29408/edumatic.v10i2.35019