{"title":"Effect of optimisations on CNN performance in identifying adulteration of red chilli powder","authors":"Dilpreet Singh Brar , Birmohan Singh , Vikas Nanda","doi":"10.1016/j.microc.2025.114231","DOIUrl":null,"url":null,"abstract":"<div><div>This study presents a deep learning framework for the detection and classification of adulteration in Red Chilli Powder using image-based analysis. Besides the aim is to analyse the effect of various optimisation techniques to balance the classification performance of the DenseNet models. Hence, two architectures, DenseNet-121 and DenseNet-169, were optimised using three optimisers (namely AdamClr, RMSprop, and AdamW) across three batch sizes (i.e., 16, 32, 64) over 150 epochs. Further, the performance of the models was analysed on two custom datasets: one for binary classification (pure vs. adulterated RcP) and the second for multiclass classification, identifying six natural adulterants at concentration levels 5%, 10% and 15%. The performance was evaluated using standard metrics derived from confusion matrices, while Gradient-weighted Class Activation Mapping visualisations enhanced model interpretability. The DenseNet-169 combined with AdamClr optimizer at batch size 32 achieved the highest binary classification accuracy (98.92 %) and robust convergence. In multiclass classification, the same configuration demonstrated superior generalisation (accuracy: 96.73%). AdamClr consistently outperformed RMSprop and AdamW, offering stability, rapid convergence, and resilience across datasets. RMSprop exhibited batch size sensitivity and instability, while AdamW, delivered occasional competitive results but lacked robustness without meticulous hyperparameter tuning. Overall, the results highlight the critical role of dynamic learning rate strategies and model depth in optimising convolution neural networks performance for food adulteration detection. This framework demonstrates strong potential for real-world applications in spice authentication and food quality assurance.</div></div>","PeriodicalId":391,"journal":{"name":"Microchemical Journal","volume":"215 ","pages":"Article 114231"},"PeriodicalIF":4.9000,"publicationDate":"2025-06-08","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Microchemical Journal","FirstCategoryId":"92","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0026265X25015851","RegionNum":2,"RegionCategory":"化学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"CHEMISTRY, ANALYTICAL","Score":null,"Total":0}
引用次数: 0
Abstract
This study presents a deep learning framework for the detection and classification of adulteration in Red Chilli Powder using image-based analysis. Besides the aim is to analyse the effect of various optimisation techniques to balance the classification performance of the DenseNet models. Hence, two architectures, DenseNet-121 and DenseNet-169, were optimised using three optimisers (namely AdamClr, RMSprop, and AdamW) across three batch sizes (i.e., 16, 32, 64) over 150 epochs. Further, the performance of the models was analysed on two custom datasets: one for binary classification (pure vs. adulterated RcP) and the second for multiclass classification, identifying six natural adulterants at concentration levels 5%, 10% and 15%. The performance was evaluated using standard metrics derived from confusion matrices, while Gradient-weighted Class Activation Mapping visualisations enhanced model interpretability. The DenseNet-169 combined with AdamClr optimizer at batch size 32 achieved the highest binary classification accuracy (98.92 %) and robust convergence. In multiclass classification, the same configuration demonstrated superior generalisation (accuracy: 96.73%). AdamClr consistently outperformed RMSprop and AdamW, offering stability, rapid convergence, and resilience across datasets. RMSprop exhibited batch size sensitivity and instability, while AdamW, delivered occasional competitive results but lacked robustness without meticulous hyperparameter tuning. Overall, the results highlight the critical role of dynamic learning rate strategies and model depth in optimising convolution neural networks performance for food adulteration detection. This framework demonstrates strong potential for real-world applications in spice authentication and food quality assurance.
期刊介绍:
The Microchemical Journal is a peer reviewed journal devoted to all aspects and phases of analytical chemistry and chemical analysis. The Microchemical Journal publishes articles which are at the forefront of modern analytical chemistry and cover innovations in the techniques to the finest possible limits. This includes fundamental aspects, instrumentation, new developments, innovative and novel methods and applications including environmental and clinical field.
Traditional classical analytical methods such as spectrophotometry and titrimetry as well as established instrumentation methods such as flame and graphite furnace atomic absorption spectrometry, gas chromatography, and modified glassy or carbon electrode electrochemical methods will be considered, provided they show significant improvements and novelty compared to the established methods.