An XAI-enabled 2D-CNN model for non-destructive detection of natural adulterants in the wonder hot variety of red chilli powder†

Dilpreet Singh Brar, Birmohan Singh and Vikas Nanda
{"title":"An XAI-enabled 2D-CNN model for non-destructive detection of natural adulterants in the wonder hot variety of red chilli powder†","authors":"Dilpreet Singh Brar, Birmohan Singh and Vikas Nanda","doi":"10.1039/D5FB00118H","DOIUrl":null,"url":null,"abstract":"<p >AI revolutionizes the food sector by improving production, supply chains, quality assurance, and consumer safety. Therefore, this work addresses the alarming issue of red chilli powder (RcP) adulteration, with the introduction of an AI-driven framework for RcP adulteration detection, leveraging an empirical evaluation of DenseNet-121 and 169. To optimize convergence and enhance the performance, the AdamClr optimizer was incorporated, in a learning rate range between 0.00005 and 0.01. Two datasets (DS I and DS II) were developed for evaluation of DenseNet models. DS I consists of two classes: Class 1 (Label = C1_PWH) representing pure RcP (variety = Wonder Hot (WH)) and Class 2 (Label = C2_AWH) containing samples adulterated with five natural adulterants (wheat bran (WB), rice hull (RB), wood saw (WS), and two low-grade RcP), whereas DS II comprises 16 classes, including one class of pure RcP and 15 classes representing adulterated RcP with varying concentrations of the five adulterants (each at 5%, 10%, and 15% concentration). For binary classification (for DS I), DenseNet-169 at batch size (BS) 16 delivered an accuracy of 99.99%, while, in multiclass classification (for DS II) for determination of the percentage of adulterant, DenseNet-169 at BS 64 produced the highest accuracy of 95.16%. Furthermore, Grad-CAM explains the DenseNet-169 predictions, amd the obtained heatmaps highlighting the critical regions influencing classification decisions. The proposed framework demonstrated high efficacy in detecting RcP adulteration in binary as well as multiclass classification. Overall, DenseNet-169 and XAI present a transformative approach for enhancing quality control and assurance in the spice industry.</p>","PeriodicalId":101198,"journal":{"name":"Sustainable Food Technology","volume":" 4","pages":" 1099-1113"},"PeriodicalIF":0.0000,"publicationDate":"2025-05-14","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://pubs.rsc.org/en/content/articlepdf/2025/fb/d5fb00118h?page=search","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Sustainable Food Technology","FirstCategoryId":"1085","ListUrlMain":"https://pubs.rsc.org/en/content/articlelanding/2025/fb/d5fb00118h","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

AI revolutionizes the food sector by improving production, supply chains, quality assurance, and consumer safety. Therefore, this work addresses the alarming issue of red chilli powder (RcP) adulteration, with the introduction of an AI-driven framework for RcP adulteration detection, leveraging an empirical evaluation of DenseNet-121 and 169. To optimize convergence and enhance the performance, the AdamClr optimizer was incorporated, in a learning rate range between 0.00005 and 0.01. Two datasets (DS I and DS II) were developed for evaluation of DenseNet models. DS I consists of two classes: Class 1 (Label = C1_PWH) representing pure RcP (variety = Wonder Hot (WH)) and Class 2 (Label = C2_AWH) containing samples adulterated with five natural adulterants (wheat bran (WB), rice hull (RB), wood saw (WS), and two low-grade RcP), whereas DS II comprises 16 classes, including one class of pure RcP and 15 classes representing adulterated RcP with varying concentrations of the five adulterants (each at 5%, 10%, and 15% concentration). For binary classification (for DS I), DenseNet-169 at batch size (BS) 16 delivered an accuracy of 99.99%, while, in multiclass classification (for DS II) for determination of the percentage of adulterant, DenseNet-169 at BS 64 produced the highest accuracy of 95.16%. Furthermore, Grad-CAM explains the DenseNet-169 predictions, amd the obtained heatmaps highlighting the critical regions influencing classification decisions. The proposed framework demonstrated high efficacy in detecting RcP adulteration in binary as well as multiclass classification. Overall, DenseNet-169 and XAI present a transformative approach for enhancing quality control and assurance in the spice industry.

Abstract Image

一个xai支持的2D-CNN模型,用于无损检测红辣椒粉中的天然掺假物
人工智能通过改善生产、供应链、质量保证和消费者安全,彻底改变了食品行业。因此,这项工作解决了令人担忧的红辣椒粉(RcP)掺假问题,引入了人工智能驱动的RcP掺假检测框架,利用DenseNet-121和169的经验评估。为了优化收敛性和提高性能,在0.00005 ~ 0.01的学习率范围内加入了AdamClr优化器。开发了两个数据集(DS I和DS II)用于评估DenseNet模型。DS I由两类组成:1类(标签= C1_PWH)代表纯RcP(品种= Wonder Hot (WH)), 2类(标签= C2_AWH)包含掺入五种天然搀杂物(麦麸(WB)、稻壳(RB)、木锯(WS)和两种低级RcP)的样品,而DS II包括16类,包括1类纯RcP和15类掺入不同浓度的五种搀杂物(分别为5%、10%和15%浓度)的掺假RcP。对于二元分类(用于DS I),批量大小(BS) 16的DenseNet-169提供了99.99%的准确率,而在多类别分类(用于DS II)中,用于确定掺假百分比的DenseNet-169在BS 64产生了95.16%的最高准确率。此外,Grad-CAM解释了DenseNet-169预测,以及获得的热图,突出了影响分类决策的关键区域。该框架在二分类和多分类中均具有较高的检测RcP掺假的效率。总的来说,DenseNet-169和XAI提出了一种变革性的方法来加强香料行业的质量控制和保证。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
CiteScore
1.00
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信