Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
Review
. 2025 Jul 30;14(15):2679.
doi: 10.3390/foods14152679.

Spectroscopic and Imaging Technologies Combined with Machine Learning for Intelligent Perception of Pesticide Residues in Fruits and Vegetables

Affiliations
Review

Spectroscopic and Imaging Technologies Combined with Machine Learning for Intelligent Perception of Pesticide Residues in Fruits and Vegetables

Haiyan He et al. Foods. .

Abstract

Pesticide residues in fruits and vegetables pose a serious threat to food safety. Traditional detection methods have defects such as complex operation, high cost, and long detection time. Therefore, it is of great significance to develop rapid, non-destructive, and efficient detection technologies and equipment. In recent years, the combination of spectroscopic techniques and imaging technologies with machine learning algorithms has developed rapidly, providing a new attempt to solve this problem. This review focuses on the research progress of the combination of spectroscopic techniques (near-infrared spectroscopy (NIRS), hyperspectral imaging technology (HSI), surface-enhanced Raman scattering (SERS), laser-induced breakdown spectroscopy (LIBS), and imaging techniques (visible light (VIS) imaging, NIRS imaging, HSI technology, terahertz imaging) with machine learning algorithms in the detection of pesticide residues in fruits and vegetables. It also explores the huge challenges faced by the application of spectroscopic and imaging technologies combined with machine learning algorithms in the intelligent perception of pesticide residues in fruits and vegetables: the performance of machine learning models requires further enhancement, the fusion of imaging and spectral data presents technical difficulties, and the commercialization of hardware devices remains underdeveloped. This review has proposed an innovative method that integrates spectral and image data, enhancing the accuracy of pesticide residue detection through the construction of interpretable machine learning algorithms, and providing support for the intelligent sensing and analysis of agricultural and food products.

Keywords: deep learning; imaging; machine learning; pesticide residue; spectral technology.

PubMed Disclaimer

Conflict of interest statement

Mr. Sheng Cai was employed by the company (Fujian Putian Sea 100 Food Co., Ltd., Putian 351111, China). He participated in Conceptualization, writing-review and editing, supervision in the study. The role of the company was the affiliations of Mr. Cai. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Figures

Figure 6
Figure 6
The operation of the HSI imaging sensor [56].
Figure 1
Figure 1
Scheme of the spectral analysis system (VIS imaging, NIRS imaging, HSI imaging, terahertz time-domain imaging) for the detection of agricultural and food products with spectral data and imaging data.
Figure 2
Figure 2
A typical flow chart of spectroscopy technology combined with machine learning for pesticide residue detection [16]. (A) Scheme of spectrometer; (B) The architecture of generative adversarial networks to obtain the spectral datasets; (C) The improved generator; (D) The spectrum generated by improved generative adversarial networks (a) and visualization of generated spectra (b); (E) The confusion matrix of classification results on spectral dataset.
Figure 3
Figure 3
(A) Spectral analysis of pesticide residues in Chinese cabbage by VIS/NIR spectroscopy [22]; (B) Identification of chlorpyrifos residues on Chinese cabbage by combining NIRS with PLS-DA, SVM, ANNs, and principal component ANNs [24].
Figure 4
Figure 4
(A) The binding mechanism of detection materials and carrier materials for the identification of pesticide residues in fruits and vegetables using SERS [31]; (B) (a) The MC-CNNs-GRU discrimination model for pesticide/fungicide residues; (b) The t-SNE analysis results of the MC-CNNs-GRU model; (c) The confusion matrix of the training set and (d) the test set [32].
Figure 5
Figure 5
Scheme of processing for food hyperspectral image datasets [40].
Figure 7
Figure 7
The flowchart of detecting multiple benzimidazole pesticide residues in Toona sinensis leaves using terahertz imaging and deep learning [59].
Figure 8
Figure 8
The integration of spectral and image data with machine learning algorithms for pesticide residue identification in fruits and vegetables: challenges and future prospects.

Similar articles

  • Short-Term Memory Impairment.
    Cascella M, Al Khalili Y. Cascella M, et al. 2024 Jun 8. In: StatPearls [Internet]. Treasure Island (FL): StatPearls Publishing; 2025 Jan–. 2024 Jun 8. In: StatPearls [Internet]. Treasure Island (FL): StatPearls Publishing; 2025 Jan–. PMID: 31424720 Free Books & Documents.
  • Prescription of Controlled Substances: Benefits and Risks.
    Preuss CV, Kalava A, King KC. Preuss CV, et al. 2025 Jul 6. In: StatPearls [Internet]. Treasure Island (FL): StatPearls Publishing; 2025 Jan–. 2025 Jul 6. In: StatPearls [Internet]. Treasure Island (FL): StatPearls Publishing; 2025 Jan–. PMID: 30726003 Free Books & Documents.
  • Non-destructive spectroscopy-based technologies for meat and meat product discrimination - A review.
    León-Ecay S, Insausti K, López-Maestresalas A, Prieto N. León-Ecay S, et al. Meat Sci. 2025 Oct;228:109893. doi: 10.1016/j.meatsci.2025.109893. Epub 2025 Jun 19. Meat Sci. 2025. PMID: 40570613 Review.
  • Management of urinary stones by experts in stone disease (ESD 2025).
    Papatsoris A, Geavlete B, Radavoi GD, Alameedee M, Almusafer M, Ather MH, Budia A, Cumpanas AA, Kiremi MC, Dellis A, Elhowairis M, Galán-Llopis JA, Geavlete P, Guimerà Garcia J, Isern B, Jinga V, Lopez JM, Mainez JA, Mitsogiannis I, Mora Christian J, Moussa M, Multescu R, Oguz Acar Y, Petkova K, Piñero A, Popov E, Ramos Cebrian M, Rascu S, Siener R, Sountoulides P, Stamatelou K, Syed J, Trinchieri A. Papatsoris A, et al. Arch Ital Urol Androl. 2025 Jun 30;97(2):14085. doi: 10.4081/aiua.2025.14085. Epub 2025 Jun 30. Arch Ital Urol Androl. 2025. PMID: 40583613 Review.
  • Terahertz Spectroscopy for Food Quality Assessment: A Comprehensive Review.
    Yang J, Bai X, Wei M, Jiang H, Xu L. Yang J, et al. Foods. 2025 Jun 23;14(13):2199. doi: 10.3390/foods14132199. Foods. 2025. PMID: 40646950 Free PMC article. Review.

References

    1. Jia Q., Liao G., Chen L., Qian Y., Yan X., Qiu J. Pesticide residues in animal-derived food: Current state and perspectives. Food Chem. 2024;438:137974. doi: 10.1016/j.foodchem.2023.137974. - DOI - PubMed
    1. Jeyabalan S., Mahesh P., Shanthala M., Devarajan T., Suraj Shashikant D., Ravichandra H., Muniswamy D., Saher I., Akhil S., Supriya M., et al. Mass Spectrometry in Food Analysis. CRC Press; Boca Raton, FL, USA: 2022. Pesticide analysis in food samples by GC-MS, LC-MS, and tandem mass spectrometry; pp. 211–230. - DOI
    1. Elmastas A., Umaz A., Pirinc V., Aydin F. Quantitative determination and removal of pesticide residues in fresh vegetables and fruit products by LC–MS/MS and GC–MS/MS. Environ. Monit. Assess. 2023;195:227. doi: 10.1007/s10661-022-10910-2. - DOI - PubMed
    1. Yu Y., Chai Y., Li Z., Li Z., Ren Z., Dong H., Chen L. Quantitative predictions of protein and total flavonoids content in Tartary and common buckwheat using near-infrared spectroscopy and chemometrics. Food Chem. 2025;462:141033. doi: 10.1016/j.foodchem.2024.141033. - DOI - PubMed
    1. Yu Y., Chai Y., Yan Y., Li Z., Huang Y., Chen L., Dong H. Near-infrared spectroscopy combined with support vector machine for the identification of Tartary buckwheat (Fagopyrum tataricum (L.) Gaertn) adulteration using wavelength selection algorithms. Food Chem. 2025;463:141548. doi: 10.1016/j.foodchem.2024.141548. - DOI - PubMed

LinkOut - more resources