{"title":"From ensemble to knowledge distillation: Improving large-scale food recognition","authors":"Liming Nong , Guohao Peng , Tianyang Xu , Jinlin Zhu","doi":"10.1016/j.engappai.2025.110727","DOIUrl":null,"url":null,"abstract":"<div><div>Food recognition on a large scale presents significant challenges due to high intra-category similarity and inter-category variability. Addressing these challenges is crucial for developing robust and accurate food recognition systems, which have applications in health monitoring, dietary assessment, and automated food logging. This study aims to tackle these issues by employing ensemble learning and knowledge distillation. We use ensemble learning to effectively combine the local perception capability of convolutional neural networks (CNNs) and the global modeling capability of Vision Transformers. The synergistic ensemble enhances the model's ability to discern subtle differences within categories and capture a spectrum of diverse patterns across various categories. To reduce the number of base models in an ensemble, we employed a method combining knowledge distillation and re-ensembling. Specifically, we used the collective knowledge of four base models to guide the re-learning process of student models. Subsequently, we re-ensembled these distilled models, significantly enhancing the recognition performance of the ensemble while maintaining the same computational efficiency. Finally, we fine-tuned the optimal ensemble weights to further boost the recognition performance of the ensemble model. We conducted extensive experiments on the large-scale food datasets Food2k and CNFood241, achieving state-of-the-art performance. Specifically, on the Food2k dataset, our method achieved a top-1 accuracy of 86.22 % with 131.56M parameters, outperforming the state-of-the-art algorithms by 2.1 %, demonstrating its effectiveness.</div></div>","PeriodicalId":50523,"journal":{"name":"Engineering Applications of Artificial Intelligence","volume":"151 ","pages":"Article 110727"},"PeriodicalIF":7.5000,"publicationDate":"2025-04-02","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Engineering Applications of Artificial Intelligence","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0952197625007274","RegionNum":2,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"AUTOMATION & CONTROL SYSTEMS","Score":null,"Total":0}
引用次数: 0
Abstract
Food recognition on a large scale presents significant challenges due to high intra-category similarity and inter-category variability. Addressing these challenges is crucial for developing robust and accurate food recognition systems, which have applications in health monitoring, dietary assessment, and automated food logging. This study aims to tackle these issues by employing ensemble learning and knowledge distillation. We use ensemble learning to effectively combine the local perception capability of convolutional neural networks (CNNs) and the global modeling capability of Vision Transformers. The synergistic ensemble enhances the model's ability to discern subtle differences within categories and capture a spectrum of diverse patterns across various categories. To reduce the number of base models in an ensemble, we employed a method combining knowledge distillation and re-ensembling. Specifically, we used the collective knowledge of four base models to guide the re-learning process of student models. Subsequently, we re-ensembled these distilled models, significantly enhancing the recognition performance of the ensemble while maintaining the same computational efficiency. Finally, we fine-tuned the optimal ensemble weights to further boost the recognition performance of the ensemble model. We conducted extensive experiments on the large-scale food datasets Food2k and CNFood241, achieving state-of-the-art performance. Specifically, on the Food2k dataset, our method achieved a top-1 accuracy of 86.22 % with 131.56M parameters, outperforming the state-of-the-art algorithms by 2.1 %, demonstrating its effectiveness.
期刊介绍:
Artificial Intelligence (AI) is pivotal in driving the fourth industrial revolution, witnessing remarkable advancements across various machine learning methodologies. AI techniques have become indispensable tools for practicing engineers, enabling them to tackle previously insurmountable challenges. Engineering Applications of Artificial Intelligence serves as a global platform for the swift dissemination of research elucidating the practical application of AI methods across all engineering disciplines. Submitted papers are expected to present novel aspects of AI utilized in real-world engineering applications, validated using publicly available datasets to ensure the replicability of research outcomes. Join us in exploring the transformative potential of AI in engineering.