Deep Learning-Based System for Adulteration Detection in Black Pepper Powder

Deep Learning-Based System for Adulteration Detection in Black Pepper Powder

Authors

  • Caje Francis Pinto, Chinmai Gurudas Valvoikar, Satyawan Arun Palyekar, Vegan Costa

Keywords:

Black pepper powder, convolutional neural network, image analysis, Raspberry Pi 5, TensorFlow Lite, spice adulteration.

Abstract

Food quality and safety are critical for protecting consumer health, particularly in India, where spices are consumed daily. Powdered spices are highly susceptible to adulteration because substances such as brick powder, sawdust, and papaya seed powder closely resemble genuine spice powders and are difficult to detect through visual inspection alone. Although conventional laboratory methods provide accurate results, they are costly, time-consuming, and impractical for rapid screening. To address these limitations, this study proposes a deep learning-based embedded system for detecting adulteration in black pepper powder using digital image analysis. A custom dataset was developed using samples representing five adulteration levels (0%, 25%, 50%, 75%, and 100%) and preprocessed via resizing, min-max normalization, and illumination correction. A custom 3-block Convolutional Neural Network (CNN) was trained under 5-fold cross-validation to classify adulteration levels, achieving a mean cross-validation accuracy of 97.8%. The trained model was converted into TensorFlow Lite format and deployed on a Raspberry Pi 5, achieving an edge inference latency of ~48 ms per frame without cloud dependency. The proposed system combines high accuracy with affordability, offering a practical screening solution for households, local vendors, and regulatory screening points.

Downloads

Published

2026-11-23

Issue

Section

Articles

Citation Check

Loading...