Bias Mitigation in Ensemble-Based Meat Freshness Classification Using Grad-CAM
Öz
Visual biases in deep learning models, such as focusing on packaging trays instead of meat texture, reduce the reliability of computer vision systems in food safety applications. This study proposes a Grad-CAM-guided bias mitigation framework for multiclass meat freshness classification that combines explainable AI with a lightweight hybrid ensemble design. A MiniCAM attention module is integrated into MobileNetV2 to redirect model focus toward meat-specific visual cues, and its features are fused with complementary embeddings extracted from Xception. The final decision is obtained by combining the predictions of MobileNetV2 with classical classifiers (SVM and XGBoost) using test-time augmentation and grid-optimized weighted ensembling. The proposed framework achieves 99.78% accuracy on the held-out test set and 99.66% ± 0.23 average accuracy under 5-fold cross-validation, while maintaining real-time efficiency (4.3M parameters, 16.5 MB model size, and 825.1 FPS on a single GPU), and effectively suppresses non-informative background elements (e.g., packaging trays) as confirmed by Grad-CAM visualizations. These results demonstrate that integrating explainable bias mitigation with lightweight ensemble learning enables reliable and deployable meat freshness assessment for real-world food safety inspection.
Anahtar Kelimeler
Destekleyen Kurum
Etik Beyan
Teşekkür
Kaynakça
- [1] Karanth, S., Feng, S., Patra, D., & Pradhan, A. K. (2023). Linking microbial contamination to food spoilage and food waste: The role of smart packaging, spoilage risk assessments, and date labeling. Frontiers in Microbiology, 14, 1198124. https://doi.org/10.3389/fmicb.2023.1198124
- [2] Shi, Y., Wang, X., Borhan, M. S., Young, J., Newman, D., Berg, E., & Sun, X. (2021). A review on meat quality evaluation methods based on non-destructive computer vision and artificial intelligence technologies. Food Science of Animal Resources, 41(4), 563. https://doi.org/10.5851/kosfa.2021.e25
- [3] Shanawad, V. (2025, November 3). Meat freshness image dataset. Kaggle. https://www.kaggle.com/datasets/vinayakshanawad/meat-freshness-image-dataset
- [4] Büyükarıkan, B. (2024). ConvColor DL: Concatenated convolutional and handcrafted color features fusion for beef quality identification. Food Chemistry, 460, 140795. https://doi.org/10.1016/j.foodchem.2024.140795
- [5] Abd Elfattah, M., Ewees, A. A., Darwish, A., & Hassanien, A. E. (2025). Detection and classification of meat freshness using an optimized deep learning method. Food Chemistry, 489, 144783. https://doi.org/10.1016/j.foodchem.2025.144783
- [6] Hidalgo, M. M., Lima, R. C., De Nadai Fernandes, E. A., Bacchi, M. A., & Sarriés, G. A. (2025). Leveraging pre-trained computer vision models for accurate classification of meat freshness. Food Chemistry, 495, 146430. https://doi.org/10.1016/j.foodchem.2025.146430
- [7] Elangovan, P., Dhurairajan, V., Nath, M. K., Yogarajah, P., & Condell, J. (2024). A novel approach for meat quality assessment using an ensemble of compact convolutional neural networks. Applied Sciences, 14(14), 5979. https://doi.org/10.3390/app14145979
- [8] Zhou, C., Pi, J., Chen, X., Wang, D., & Liu, J. (2025). Identification and analysis of pork freshness quality based on improved MobileNetV3. Applied Engineering in Agriculture, 41(1), 57–66. https://doi.org/10.13031/aea.16131
Ayrıntılar
Birincil Dil
İngilizce
Konular
Bilgisayar Yazılımı
Bölüm
Araştırma Makalesi
Yazarlar
Sercan Külcü
*
0000-0002-4871-709X
Türkiye
Yayımlanma Tarihi
28 Mart 2026
Gönderilme Tarihi
5 Kasım 2025
Kabul Tarihi
10 Mart 2026
Yayımlandığı Sayı
Yıl 2026 Cilt: 14