Research Article

SPICE: Detecting Pepper Adulteration Using Impedance Sensors and Machine Learning Techniques

Zhaonan Sun*
School of Electrical Engineering and Electronics, University of Liverpool, Liverpool, United Kingdom, L69 3BX

* Corresponding author: [email protected]

Abstract

Food adulteration in commodities such as pepper poses significant economic and public health risks, necessitating robust detection technologies. This study presents an approach combining electrical impedance spectroscopy (EIS) and advanced machine learning techniques for detecting black pepper adulteration. Electrical impedance measurements were performed on pepper samples with varying adulteration levels (60%–100% purity) across frequencies of 1–50 kHz using a custom-designed impedance sensor. Distinct impedance response patterns correlated to adulteration levels were observed. A specialized neural network model, named Adulteration Detection Machine Intelligence Network (ADMiNet), was developed, employing Principal Component Analysis (PCA) for dimensionality reduction and data augmentation techniques for robustness enhancement. The model was trained using Mean Squared Error (MSE) loss and the Adam optimizer with early stopping. Evaluation using Root Mean Square Error (RMSE = 5.84), Mean Absolute Error (MAE = 4.25), and coefficient of determination (R2 = 0.943) indicated high predictive accuracy, demonstrating the effectiveness of EIS combined with machine learning to detect adulteration. This research provides a cost-effective and accurate solution, offering significant potential applications in food safety monitoring and food fraud detection.

Keywords: Electrical Impedance Spectroscopy; Food Adulteration; Black Pepper; Machine Learning; Neural Networks.
Published: September 24, 2025
DOI: 10.54254/2755-2721/2025.BJ27175
Volume: ACE Vol.183
pp. 126-134
Download PDF

References

  1. M. S. Khan, R. Singh, A. Jain, and S. Ahmad, “Food adulteration: Causes, risks, and detection techniques—review, ” Public Health Rev., vol. 9, pp. 1–12, 2024.
  2. C. HitiHiamillage, Food Recognition and Ingredient Detection Using Electrical Impedance Spectroscopy With Deep Learning Techniques, M.S. thesis, Univ. of Maine, ME, USA, Aug. 2022.
  3. A. Soley, R. Dias, and G. Turner, “Electroanalytical approaches to combatting food adulteration, ” Molecules, vol. 30, no. 4, p. 876, 2024.
  4. L. Mayo, R. Gutiérrez, and J. Ortega, “Electrical impedance spectroscopy applied to quality control in the food industry, ” SciELO, vol. 21, no. 1, pp. 5–15, 2020.
  5. F. L. Longlong, Y. Qingsheng, and C. Bin, “Assessment of rice seed vigour using selected frequencies of electrical impedance spectroscopy, ” Biosyst. Eng., vol. 209, pp. 53–63, 2021.
  6. M. Cheng, Y. Guo, and H. Li, “Application status and prospect of impedance spectroscopy in agricultural product quality detection, ” Agriculture, vol. 12, no. 10, p. 1525, 2022.
  7. S. Zhu, W. Zhao, and Z. Wang, “Equivalent circuit model recognition of electrochemical impedance spectroscopy via machine learning, ” arXiv preprint, arXiv: 1907.06598, Jul. 2019.
  8. C. HitiHiamillage, Food Recognition and Ingredient Detection Using Electrical Impedance Spectroscopy With Deep Learning Techniques, M.S. thesis, Univ. of Maine, ME, USA, Aug. 2022.
  9. M. H. Khan, T. Islam, and L. Wu, “Unsupervised adulterated red‑chili pepper content transformation for hyperspectral classification, ” arXiv preprint, arXiv: 1911.02276, 2019.
  10. S. Natarajan and V. Ponnusamy, “Development of a smart sensor array for adulteration detection in black pepper seeds, ” Int. J. Adv. Comput. Sci. Appl. (IJACSA), vol. 14, no. 3, pp. 110–115, 2023.