Improving food safety: Synthetic data augmentation for accurate mushroom species identification in complex environments
• Diffusion models create photorealistic mushroom images for food safety training. • Synthetic data improves the accuracy of toxic and edible species identification. • Enhanced recognition model aids food safety professionals in species verification. • Synthetic data method enlarges mushroom dataset for better food safety control. Growing global demand for mushrooms in the agricultural, pharmaceutical, and food sectors raises pressing concerns for food safety, as inadequate identification can lead to the inadvertent inclusion of toxic species. Although deep learning offers promising solutions for large-scale classification and quality control, its effectiveness is often limited by the scarcity of high-quality training datasets and the inherently complex morphological traits of mushrooms. To address these challenges, this study proposes a diffusion-model-based synthetic augmentation strategy that preserves essential morphological features while diversifying training samples. By generating realistic images, this approach significantly improves classification accuracy, especially for underrepresented species, and achieves superior results across various image quality indicators. Furthermore, a Top-k recommendation mechanism ranks the most likely classifications, bolstering recognition of rarer species and reducing food safety risks linked to misidentification. Experiments on 110 mushroom species demonstrated a 13.51% increase in mean recall rate across eight deep learning models, with Top-3 and Top-5 recall rates further improved by 7.56% and 6.79%, respectively. These findings highlight the practical utility of diffusion-based augmentation in enhancing model robustness, ensuring more reliable monitoring of mushroom cultivation processes, and mitigating the likelihood of toxic mushrooms entering the food chain. Overall, this study underscores the critical importance of leveraging synthetic data generation to advance mushroom recognition, supporting safer and more sustainable food systems.
Authors
- Xuping Feng (ORCID: https://orcid.org/0000-0003-4018-4038)
- Yong He (ORCID: https://orcid.org/0009-0009-5057-1147)
- Meng‐Ze Du
- Yuwei Wang (ORCID: https://orcid.org/0000-0003-4282-9821)
- Jie Guo (ORCID: https://orcid.org/0000-0003-0951-5126)
- Weibing Yan
- Lu Liu (ORCID: https://orcid.org/0009-0000-5753-3383)
- Ping Lv
- Fei Wang (ORCID: https://orcid.org/0000-0001-9961-0543)
Institutions
- Anhui Agricultural University (CN)
- Hefei University of Technology (CN)
- Zhejiang Province Institute of Architectural Design and Research (CN)
- The First People's Hospital of Wenling (CN)
- Zhejiang University (CN)
Publication Details
- Journal
- Applied Food Research
- Published
- 2025-05-30
- DOI
- https://doi.org/10.1016/j.afres.2025.101039
- Citations
- 1
- Primary Topic
- Advanced Chemical Sensor Technologies
- Type
- article
- Field-Weighted Citation Impact
- 0.67