Food Item Recognition and Calories Estimation Using YOLOv5
摘要
This paper explores the application of the YOLOv5 algorithm for food recognition and calorie estimation. The study focuses on the specific context of Egyptian cuisine, utilizing a dataset dedicated to detecting Egyptian food. The paper outlines the data collection process, including techniques for labeling food items in images and data preprocessing steps. It provides a detailed explanation of the YOLOv5 architecture and its components, along with insights into the training process, transfer learning, and model tuning. The segmentation of the dataset into training and validation sets is discussed, along with the importance of selecting appropriate evaluation metrics for food detection. A step-by-step guide for training YOLOv5 on the Egyptian food dataset is presented, along with strategies for monitoring and improving the training process. Various metrics, such as accuracy, recall, and the interpretation of the confusion matrix, were used in the study for evaluating the performance of the trained model. The paper discusses the obtained results, identifies limitations and challenges encountered during the training and evaluation process, and suggests future improvements and areas for further research. Real-world applications of food detection using YOLOv5, including nutritional analysis and personalized nutrition tracking, are highlighted. The chapter concludes by summarizing the main points discussed and emphasizing the importance of food disclosure and the potential impact of YOLOv5 training on specific culinary traditions. Additionally, the paper introduces a separate chapter focused on calorie estimation. It covers the methodology for estimating calorie intake based on individual characteristics, such as age, gender, height, weight, and activity level. The integration of food recognition using YOLOv5 for adjusting calories is explained, emphasizing the creation of a comprehensive calorie database. This research contributes to the field of food recognition and calorie estimation, showcasing the potential of YOLOv5 and its applicability in various real-world scenarios.