Multi-Scenario Evaluation of an Enhanced YOLOv8s-cls Model for Food Image Classification
Abstract
As the demand for intelligent dietary management continues to grow, food recognition technology shows great application prospects of areas like mobile platforms. In tackling the essential challenge of food image classification, the You Only Look Once (YOLO)v8s-cls architecture is augmented with the Focal Loss function in this paper, aiming to improve its discrimination capability for challenging or minority-class samples. The model is trained on a large food dataset containing 288 classes, and is optimized using data augmentation strategies such as MixUp and CutMix. It was evaluated in multiple application scenarios, including normal images, occluded images, blurred images, and high/low-frequency classes subsets. On normal images, the enhanced model attained 80.64% in Top-1 accuracy and 95.73% in Top-5 accuracy, outperforming the original model in robustness under challenging conditions. Overall, the results indicate that the Focal Loss function has improved the model’s capability to classify diverse food images, supporting the practical implementation of intelligent dietary systems.
References
- VijayaKumari, G., Vutkur, P., & Vishwanath, P. (2022). Food classification using transfer learning technique. Global transitions proceedings, 3(1), 225-229.
- Shimoda, W., & Yanai, K. (2015). CNN-Based Food Image Segmentation Without Pixel-Wise Annotation. International Conference on Image Analysis and Processing. Springer International Publishing.
- Kagaya, H., Aizawa, K., & Ogawa, M. (2014, November). Food detection and recognition using convolutional neural network. In Proceedings of the 22nd ACM international conference on Multimedia (pp. 1085-1088).
- Kawano, Y., & Yanai, K. (2014, September). Food image recognition with deep convolutional features. In Proceedings of the 2014 ACM International Joint Conference on Pervasive and Ubiquitous Computing: Adjunct Publication (pp. 589-593).
- Matsuda, Y., Hoashi, H., & Yanai, K. (2012, July). Recognition of multiple-food images by detecting candidate regions. In 2012 IEEE international conference on multimedia and expo (pp. 25-30). IEEE.
- Srigurulekha, K., & Ramachandran, V. (2020, January). Food image recognition using CNN. In 2020 International Conference on Computer Communication and Informatics (ICCCI) (pp. 1-7). IEEE.
- Elbassuoni, S., Ghattas, H., El Ati, J., Shmayssani, Z., Katerji, S., Zoughbi, Y., ... & Sassi, S. (2022). DeepNOVA: A Deep learning NOVA classifier for food images. IEEE Access, 10, 128523-128535.
- Jiang, P., Ergu, D., Liu, F., Cai, Y., & Ma, B. (2022). A Review of Yolo algorithm developments. Procedia computer science, 199, 1066-1073.
- Saha, U., Ahamed, I. U., Imran, M. A., Ahamed, I. U., Hossain, A. A., & Gupta, U. D. (2024, November). Yolov8-based deep learning approach for real-time skin lesion classification using the ham10000 dataset. In 2024 IEEE International Conference on E-health Networking, Application & Services (HealthCom) (pp. 1-4). IEEE.
- Dave, B., Mori, M., Bathani, A., & Goel, P. (2023). Wild animal detection using YOLOv8. Procedia Computer Science, 230, 100-111.
- Mo, H., Qu, Y., Li, X., & Wang, Z. (2024, December). Classification of Liver Tumors Based on YOLOv8s-cls. In 2024 7th International Conference on Algorithms, Computing and Artificial Intelligence (ACAI) (pp. 1-5). IEEE.