Fujia Dong , Zhaoyang Ma , Ying Xu , Yingjie Feng , Yingkun Shi , Hui Li , Fukang Xing , Guangxian Wang , Zhongxiong Zhang , Weiguo Yi , Songlei Wang
{"title":"Monitoring of veterinary drug residues in mutton based on hyperspectral combined with explainable AI: A case study of OFX","authors":"Fujia Dong , Zhaoyang Ma , Ying Xu , Yingjie Feng , Yingkun Shi , Hui Li , Fukang Xing , Guangxian Wang , Zhongxiong Zhang , Weiguo Yi , Songlei Wang","doi":"10.1016/j.foodchem.2025.143087","DOIUrl":null,"url":null,"abstract":"<div><div>Veterinary drug residues in meat seriously harm human health. Rapid and accurate detection of veterinary drug residues is necessary to minimize contamination. Taking ofloxacin (OFX) residues in mutton as an example, the near-infrared hyperspectral imaging combined with explainable AI was used to evaluate the importance of feature wavelengths in the convolutional neural network-stacked sparse auto-encoder (CNN-SSAE) model for chemical properties. Based on this, the qualitative (residue identification-residue level identification) and quantitative detection of OFX residues in mutton was realized. The results showed that the accuracy of CNN-SSAE in identifying residue and residue level of OFX was 100% and 93.65%, respectively, and the correlation coefficients for validation (R<sup>2</sup><sub>P</sub>) in quantitative detection of OFX residue was 0.8980. In addition, SHapley Additive exPlanation (SHAP) values were used to identify feature wavelengths that contribute the most in the CNN-SSAE model, which effectively explained the quality attribute information that spectral and chemical values may improve the predicted results in the model decision process. The reliability of the CNN-SSAE model was evaluated by statistical validation methods (F-test and T-test). Finally, the visualization diagram of OFX content distribution was established. This study provides a method reference for explainability detection of veterinary drug residues.</div></div>","PeriodicalId":318,"journal":{"name":"Food Chemistry","volume":"474 ","pages":"Article 143087"},"PeriodicalIF":8.5000,"publicationDate":"2025-01-27","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Food Chemistry","FirstCategoryId":"97","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0308814625003371","RegionNum":1,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"CHEMISTRY, APPLIED","Score":null,"Total":0}
引用次数: 0
Abstract
Veterinary drug residues in meat seriously harm human health. Rapid and accurate detection of veterinary drug residues is necessary to minimize contamination. Taking ofloxacin (OFX) residues in mutton as an example, the near-infrared hyperspectral imaging combined with explainable AI was used to evaluate the importance of feature wavelengths in the convolutional neural network-stacked sparse auto-encoder (CNN-SSAE) model for chemical properties. Based on this, the qualitative (residue identification-residue level identification) and quantitative detection of OFX residues in mutton was realized. The results showed that the accuracy of CNN-SSAE in identifying residue and residue level of OFX was 100% and 93.65%, respectively, and the correlation coefficients for validation (R2P) in quantitative detection of OFX residue was 0.8980. In addition, SHapley Additive exPlanation (SHAP) values were used to identify feature wavelengths that contribute the most in the CNN-SSAE model, which effectively explained the quality attribute information that spectral and chemical values may improve the predicted results in the model decision process. The reliability of the CNN-SSAE model was evaluated by statistical validation methods (F-test and T-test). Finally, the visualization diagram of OFX content distribution was established. This study provides a method reference for explainability detection of veterinary drug residues.
期刊介绍:
Food Chemistry publishes original research papers dealing with the advancement of the chemistry and biochemistry of foods or the analytical methods/ approach used. All papers should focus on the novelty of the research carried out.