The Role of Deep Learning and Hybrid Approaches in Food Quality Control: Automatic Classification of Fish Freshness
Abstract
Regular monitoring of fish freshness is critical to product reliability, consumer health, and compliance with food industry quality standards and quality control processes. In this study, fish were classified as fresh or non-fresh using image-based methods. To determine the model that best predicted fish freshness, eight models were compared: four deep learning (DL) architectures, three hybrid models, and one ensemble model. The dataset consisted of images of each fish taken from approximately 20 different angles. Data leakage, which emerged during initial tests, enabled the models to distinguish freshness classes more easily than expected. To address this issue, a group-based splitting method was applied. All models in the study were evaluated with a single, common training protocol under the same regularization, epoch, and optimization settings. Dropout, early stopping, and image enhancement (rotation, color jittering, and horizontal flipping) were used during training. According to the results, the ensemble model performed best with 98.44% accuracy. This was followed by ResNet50 (97.10%) and MobileNetV2 (94.31%) models. Grad-CAM and Layer-CAM analyses revealed that the models focused on regions that indicate freshness, such as the fish’s eyes, gills, and surface texture.
Keywords
- Deep learning
- Ensemble learning
- Explainable artificial intelligence
- Fish fresh-ness classification
- Transfer learning
Supporting Institution
References
- İsmail Yüksel Genç, R. Gürfidan, and T. Yiğit, “Quality prediction of seabream sparus aurata by deep learning algorithms and explainable artificial intelligence,” Food Chemistry, vol. 474, p. 143150, 5 2025.
- A. Taheri-Garavand, S. Fatahi, A. Banan, and Y. Makino, “Real-time nondestructive monitoring of common carp fish freshness using robust vision-based intelligent modeling approaches,” Computers and Electronics in Agriculture, vol. 159, pp. 16–27, 4 2019.
- M. B. Yildiz, E. T. Yasin, and M. Koklu, “Fisheye freshness detection using common deep learning algorithms and machine learning methods with a developed mobile application,” European Food Research and Technology, vol. 250, pp. 1919–1932, 7 2024.
- F. Kapute, “Sensory, microbiological, biochemical and physico-chemical assessment of freshness and quality of fresh lake malawi tilapia (chambo) stored in ice,” International Journal of Aquaculture, 2016.
- S. Kılıçarslan, M. M. H. Çiçekliyurt, and S. Kılıçarslan, “Fish freshness detection through artificial intelligence approaches: A comprehensive study,” Turkish Journal of Agriculture - Food Science and Technology, vol. 12, pp. 290–295, 2 2024.
- E. T. Yasin, I. A. Ozkan, and M. Koklu, “Detection of fish freshness using artificial intelligence methods,” European Food Research and Technology, vol. 249, pp. 1979–1990, 8 2023.
- R. Liu, Y. Sun, S. Wang, N. Liu, L. Zhao, Q. Liu, and R. Cao, “A deep learning-enhanced electrophoresis method for rapid freshness monitoring in cold-stored turbot (scophthalmus maximus),” Microchemical Journal, vol. 218, p. 115775, 11 2025.
- C. Balım, N. Olgun, and M. Çalışan, “Leveraging feature fusion of image features and laser reflectance for automated fish freshness classification,” Sensors 2025, Vol. 25, Page 4374, vol. 25, p. 4374, 7 2025.
Details
Primary Language
English
Subjects
Artificial Intelligence (Other)
Journal Section
Research Article
Early Pub Date
June 19, 2026
Publication Date
June 30, 2026
Submission Date
December 9, 2025
Acceptance Date
January 19, 2026
Published in Issue
Year 2026 Volume: 9 Number: 3
