Next Article in Journal
Protein-Based Fat Replacers: A Focus on Fabrication Methods and Fat-Mimic Mechanisms
Previous Article in Journal
A Narrative Mini Review on Current Status of Hypoallergenic Wheat Development for IgE-Mediated Wheat Allergy, Wheat-Dependent Exercise-Induced Anaphylaxis
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Nondestructive Detection of Pesticide Residue (Chlorpyrifos) on Bok Choi (Brassica rapa subsp. Chinensis) Using a Portable NIR Spectrometer Coupled with a Machine Learning Approach

by
Ravipat Lapcharoensuk
1,*,
Chawisa Fhaykamta
1,
Watcharaporn Anurak
1,
Wasita Chadwut
1 and
Agustami Sitorus
1,2
1
Department of Agricultural Engineering, School of Engineering, King Mongkut’s Institute of Technology, Ladkrabang, Bangkok 10520, Thailand
2
Research Center for Appropriate Technology, National Research and Innovation Agency (BRIN), Subang 41213, Indonesia
*
Author to whom correspondence should be addressed.
Foods 2023, 12(5), 955; https://doi.org/10.3390/foods12050955
Submission received: 11 January 2023 / Revised: 19 February 2023 / Accepted: 21 February 2023 / Published: 23 February 2023
(This article belongs to the Section Food Analytical Methods)

Abstract

:
The contamination of agricultural products, such as vegetables, by pesticide residues has received considerable attention worldwide. Pesticide residue on vegetables constitutes a potential risk to human health. In this study, we combined near infrared (NIR) spectroscopy with machine learning algorithms, including partial least-squares discrimination analysis (PLS-DA), support vector machine (SVM), artificial neural network (ANN), and principal component artificial neural network (PC-ANN), to identify pesticide residue (chlorpyrifos) on bok choi. The experimental set comprised 120 bok choi samples obtained from two small greenhouses that were cultivated separately. We performed pesticide and pesticide-free treatments with 60 samples in each group. The vegetables for pesticide treatment were fortified with 2 mL/L of chlorpyrifos 40% EC residue. We connected a commercial portable NIR spectrometer with a wavelength range of 908–1676 nm to a small single-board computer. We analyzed the pesticide residue on bok choi using UV spectrophotometry. The most accurate model correctly classified 100% of the samples used in the calibration set in terms of the content of chlorpyrifos residue on samples using SVM and PC-ANN with raw data spectra. Thus, we tested the model using an unknown dataset of 40 samples to verify the robustness of the model, which produced a satisfactory F1-score (100%). We concluded that the proposed portable NIR spectrometer coupled with machine learning approaches (PLS-DA, SVM, and PC-ANN) is appropriate for the detection of chlorpyrifos residue on bok choi.

Graphical Abstract

1. Introduction

Bok choi (Brassica rapa subsp. Chinensis) is a horticultural product; both its stems and leaves are consumed, with or without cooking. Pesticides are often used to control insect attacks during cultivation, as well as to maintain productivity. However, the pesticides used to protect plants during cultivation cannot be removed and thus become residuals. Therefore, the detection of pesticide residue on agricultural products is important as a modern food safety issue to prevent such residue from entering the body [1]. In addition, pesticide residue can cause serious environmental pollution and pose risks to human health if consumed. The Ministry of Public Health of Thailand reported that the most commonly detected pesticide residue in bok choi is chlorpyrifos [2] and that bok choi had the highest prevalence of pesticide residues in products on the market. Many researchers have also discovered chlorpyrifos residues in vegetable and fruit samples from local markets and supermarkets in Thailand [3,4,5,6]. According to the National Food Safety Standard (GB 2763-2016), the maximum residue limit (MRL) for chlorpyrifos in vegetables is set to 0.1 mg/kg [7]. The Ministry of Public Health of Thailand published the Notification on Food Containing Pesticide Residues in the Royal Gazette to ban chlorpyrifos residues in food products, stating that the MRL of chlorpyrifos should be zero for all products [8]. Sankorn et al. [1] reported that the Thai Department of Agriculture discovered excessive use of pesticides during agricultural cultivation and tried to reduce their use through various mitigation campaigns. A warning should be placed on the consumption of bok choi due to safety concerns. Although policies have been implemented with support from regulations, infrastructure, such as the technology needed to rapidly detect and simultaneously screen for residue on agricultural products, must be applied.
Generally, pesticide residue is detected on agricultural products through a variety of complex methods and instruments. The methods involved in measuring the concentration of pesticide residue include gas chromatography (GC), which was used to detect pesticide residue in green tea leaves [9]; high-performance liquid chromatography (HPLC), which was used to detect insecticides in cucumber and eggplant [10]; and GC-LC mass spectrometry (GC-LC-MS), which was used for several agricultural products [11]. However, these techniques are destructive, involve complicated sample preparation, and must be performed in an advanced laboratory. As such, these techniques cannot be used for the rapid and real-time screening of agricultural production. Therefore, a detection approach that is nondestructive, simple to prepare, and reliable for detecting pesticide residue on agricultural products needs to be developed to independently monitor products.
Currently, one of the most popular nondestructive measurement technologies used to monitor agricultural products is near infrared (NIR) spectroscopy (NIRS) [12,13]. This method works based on the absorption or reflectance of radiation in the near-infrared region of the electromagnetic spectrum in the range of 780–2500 nm toward organic functional groups, including single bonds of CH, OH, and NH, and the double bond of CO [14]. This method has been successfully applied for qualitative and quantitative analyses, especially to detect pesticide residue in agricultural products, including vegetables and fruits. Several studies on the feasibility of NIRS in detecting pesticide residue on fruit and vegetable products are listed in Table 1.
Although pesticide residue (chlorpyrifos) has been reported in agricultural products in several studies [24,25,26], to the best of our knowledge, the nondestructive detection of chlorpyrifos residue in leafy vegetables that are consumed fresh has not been reported. Only research by Ngo et al. [15], investigated the application of a handheld spectrometer to estimate pesticide residues on leafy vegetables, including lettuce, Oriental mustard, and bok choi. Hence, in this study, we aimed to classify the absence or presence of chlorpyrifos on bok choi (Brassica rapa subsp. Chinensis) using a portable NIR spectrometer combined with a machine learning approach.

2. Materials and Methods

2.1. Sample Preparation

A total of 120 bok choi (Brassica rapa subsp. Chinensis) samples were cultivated separately in 2 small greenhouses. In the first greenhouse, we planted 60 samples, which were not sprayed with any pesticide from the beginning of cultivation to the harvest stage. These samples were used as the chlorpyrifos-free group (CF). In the second greenhouse, samples were inoculated with commercial liquid chlorpyrifos 40% EC (C9H11Cl3NO3PS). The pesticide was diluted with distilled water, for a final chlorpyrifos concentration in the spray of 2 mL/L. Every 7 days during cultivation, we sprayed the plants with dosage rates of approximately 300 mL/m2 using a backpack pressure sprayer (OLD-8L-04, FONTE, Bangkok, Thailand). The concentration and rate of spraying were in accordance with the instructions of the pesticide manufacturer, which were specified on the product label. The spraying was stopped 3 days before harvesting. We called this group the chlorpyrifos residue (CR) group. All samples were harvested 45 days after cultivation. Prior to each NIR spectrum collection, samples were left to reach an equilibrium temperature of 25 °C in a laboratory environment.

2.2. NIR Spectra Data Collection

In this study, we connected a commercial portable NIR spectrometer (MicroNIRTM spectrometer) (Viavi Solutions Inc., Santa Rosa, CA, USA) to a small single-board computer (DFR0419, LattePanda, Shanghai, China). The dispersing element used by this portable NIR was a linear variable filter (LVF). A multitouch screen monitor was used as the assembly of both the input (touch panel) and output (display) device. The internal heat of the portable meter was ventilated with a small fan that was controlled. Figure 1 shows a schematic of the portable NIR spectrometer. Each sample was placed between the window of the MicroNIRTM spectrometer and the aluminum plate lid. The reason for using an aluminum plate lid behind each sample was to return the signal to the spectrometer, specifically to improve the signal-to-noise ratio [27]. The NIR spectra of the bok choi samples were acquired in a wavelength range of 908–1676 nm in diffuse reflection mode with an interval of 6.2 nm. Data acquisition was performed using MicroNIRTM Pro v2.2 software (Viavi Solutions Inc., Santa Rosa, CA, USA). NIR spectral data were collected from 3 positions: the head, middle, and tail on the leaves of each vegetable sample. The scanning was performed in triplicate at each position, and we averaged the results. Therefore, we obtained data on the NIR spectrum from both the CF and CR groups, totaling 360 (i.e., 180 spectra of CF and 180 spectra of CR) for training the models.

2.3. Determination of the Real Value of Pesticide Residue

For the determination of pesticide residue in the bok choi, all samples were analyzed for chlorpyrifos using the UV spectrophotometric method, following Harshit et al. [28], with the required modifications. The purified chlorpyrifos (98.5% purity and 10 mg) was weighed with an electrical balance and then transferred to a 100 mL volumetric flask. We poured ethyl acetate (99.8% purity) into a 100 mL volumetric flask to create a 0.1 mg/mL solvent for the stock solution of chlorpyrifos. Working standard solutions of different concentrations were prepared (i.e., 0.2–3.0 μg/mL) by diluting the stock solution with ethyl acetate. A UV spectrophotometer (GENESYS 10S UV-VIS, Thermo Fisher Scientific, Waltham, MA, USA) and quartz cuvettes were used for absorbance measurements at 277 nm. Each experiment was performed in three replicates. A calibration curve was created by plotting the absorbance versus the concentration of the working standard solutions.
To extract the chlorpyrifos from the vegetables, we finely cut and chopped the leaves of each vegetable from the NIR spectrum collection. Twenty grams of bok choi and 50 mL of ethyl acetate were transferred to a conical flask and then blended by shaking. Sodium bicarbonate (5 g) was placed in a conical flask, and the mixture was shaken for 5 min. After that, we added magnesium sulfate (15 g) and shook the mixture on a mechanical flask shaker for 1 h. The mixture was filtered with Whatman paper (No. 40), and the filtrate was centrifuged at 1500 rpm for 5 min. The sample was evaporated at 80 °C up to 2 mL with a rotary evaporator. Ethyl acetate and cyclohexane were mixed with a ratio of 1:1 to obtain 20 mL of mixture. Finally, the solution was poured into a 10 mL volumetric flask, and ethyl acetate was used for dilution up to the mark. The absorbance value of the sample was measured with 5 replications following the same procedure described in the section above. Chlorpyrifos residue was determined using a calibration curve and a regression equation of the linearity graph.

2.4. Machine Learning Process

2.4.1. Data Preprocessing

Normally, NIR spectra are influenced by weather, environment, humidity, temperature, instrument, and human factors [29,30]. Many types of external interference and noise might be reflected in the NIR spectra, which consist of 125 waveband points. Therefore, the NIR spectra were preprocessed to solve these issues and improve the performance of the predictive model before modeling [31,32,33]. NIR spectral data were preprocessed via 7 techniques: Savitzky–Golay smoothing (SGS), mean normalization (MN), standard normal variate and detrending (SNV&D), baseline collection (BC), multiplicative scatter correction (MSC), and Savitzky–Golay first (D1) and second (D2) derivatives [30,34,35]. We used the un-preprocessed spectra (RS) and each preprocessed spectrum via the above techniques to train the calibration models.
Principal component analysis (PCA) is a classical unsupervised learning algorithm used for dimensionality reduction [36]. The original spectrum is transformed into a smaller number of uncorrelated variables or principal components (PCs). In our study, PCA was performed to reduce the dimensionality of the NIR spectral data, and new variables (i.e., the first 20 PCs) were applied to the input layer of the neural network for the hybrid principal component–artificial neural network (PC-ANN). Software for multivariate analysis (Unscrambler X Version 10.5.1, Camo, Norway) was used for spectral preprocessing and the PCA procedure.

2.4.2. Modeling and Evaluation of Model Performance

After data preprocessing, we applied four machine learning (ML) algorithms for classification: partial least-squares discrimination analysis (PLS-DA), support vector machine (SVM), artificial neural network (ANN), and PC-ANN to develop the calibration models. Modeling was performed using the Python programming language with the Scikit-learn (Version 1.0.2) packages [37]. For PC-ANN, the first 20 principal component scores (PCs) were used as the input layer of the neural network instead of the original NIR spectra. The optimal number of PCs was determined with a 5-fold cross-validation of PC-ANN in which the error of classification did not increase after adding one more PCs. Using PCs as the input nodes for the ANN reduced both training time and redundancy in the original NIR spectra. In recent years, PC-ANN has been successful in modeling NIR spectroscopy [38,39,40,41,42]. The samples were split into 288 for training (80%) and 72 for testing (20%). The hyperparameters of each ML method were defined to train the calibration models. We found the optimal hyperparameters by performing 5-fold cross-validation experiments on the training dataset. The effective models were selected when the appropriate model provided the best maximized accuracy for the classification of CF and CR. Optimization of the hyperparameters was performed using the GridSearchCV command of the Scikit-learn module [37]. Table 2 presents the predefined parameters for performing the GridSearchCV of PLS-DA, SVM, ANN, and PC-ANN. The performance of the classification models was evaluated by assessing the accuracy, precision, recall, and F1-score, which we calculated using Equations (1)–(4).
accuracy = TP + TN TP + TN + FP + FN
precision = TP TP + FP
recall = TP TP + FN
F 1 - score = 2   × precision × recall precision + recall
Here, TP and TN represent the numbers of true positives and negatives, respectively; FP and FN are the numbers of false positives and negatives, respectively. In machine learning, accuracy, precision, recall, and F1-score are the common metrics used to evaluate the performance of classification models, especially for binary problems [43,44]. These parameters have long been used in the evaluation of scientific models and engineering applications [45] and in the evaluation of the performance of NIR spectroscopy combined with machine learning [46,47,48,49]. Accuracy is the ratio between the correctly classified samples and the total number of samples in the evaluated dataset [50]. Precision is the probability of the correct detection of positive values, and recall indicates the ability to discriminate between classes [44]. The F1-score is the harmonic mean of precision and recall; thus, the F1-score maintains a balance between precision and recall for classifiers [44].

2.4.3. Validation of Model with Unknown Sample

To evaluate the performance of the model in the real world and in an overfitting test, we used the calibrated models to classify unknown samples of bok choi. A total of 40 unknown samples were purchased from local markets in Bangkok province (Thailand), and the NIR spectra of these samples were collected using the portable NIR spectrometer. Then, the pesticide residue levels on the vegetables were analyzed using the UV spectrophotometric method. The candidate models from the four algorithms were applied to predict the pesticide residue on the unknown samples, and the prediction performance was evaluated in terms of accuracy, precision, recall, and F1-score.

3. Results and Discussion

3.1. Spectra of Samples

The average NIR spectra from the CF and CR groups are shown in Figure 2a. The spectra of both sample groups had a similar shape but differed in absorbance intensity across the spectral region. A total of 125 waveband points were acquired in one wavelength from 908 to 1676 nm. The wavebands at 970 and 1450 nm are the second and first overtones of O-H stretching of water, respectively; the absorption observed at 1152 nm is the C-H stretching of the second overtone of CH3 [51,52]. Figure 2b shows the spectra processed by the Savitzky–Golay second derivative, with a five-point window and second-order polynomial. New absorbance peaks were revealed at 1410 nm in the second-derivative spectra, which were hidden in the raw spectra. The apparent peak at 1410 nm corresponded to the combination of the C-H stretching of methylene [53,54].

3.2. Results of Real Chlorpyrifos Residue Value

The statistical results for chlorpyrifos residue on samples from analysis with the UV spectrometric method are shown in Table 3. For the calibration stages, chlorpyrifos residues were not detected on the CF group samples. For the CR group, the concentration of chlorpyrifos was between 0.011 and 2.184 mg/kg, and the mean was 1.120 ± 0.532 mg/kg. We applied the developed model to 40 unknown samples from local markets and supermarkets and detected the absence (CF group) and presence (CR group) of chlorpyrifos residues on 15 and 25 samples, respectively. For the CR group, the concentration of chlorpyrifos was between 0.022 and 1.596 mg/kg, and the mean was 1.25 ± 0.37 mg/kg. The chlorpyrifos residues on some of the samples from the local markets and supermarkets were above the MRL of the National Food Safety Standard (GB 2763-2016) (0.1 mg/kg) [7].

3.3. Principal Componant Analysis

We employed PCA to extract the hidden information inside the NIR spectrum and reduce the dimensionality of the spectral data from 125 to 20. The first 20 PCs accounted for 99.99% of the total variance in the NIR spectra. Figure 3 shows the PCA results for the CF and CR groups. Figure 3a shows plots of the first two PCs, where PC-1 and PC-2 explain 98.4% and 1.5% of the total variance in the NIR spectra, respectively. The distribution of the CF group significantly overlapped that of the CR group, which created difficulties in distinguishing the CR and CF groups with PCA. This phenomenon has occurred in many previous studies, although high-performance NIR models with machine learning algorithms have been developed to address this issue [55,56]. Therefore, more PCs were necessary for training the PC-ANN [55]. Figure 3b displays a line plot of the explained variance rates and the cumulative explained variance rates of the first 20 PCs. The explained variance of the 20 PCs was approximately 0.00004%, and the cumulative explained variance rate was 99.99931%. This indicated that these 20 PCs covered all the NIR spectral information, and the PC-ANN model could be developed with the first 20 PCs.

3.4. Classification of Vegetables with Machine Learning

Table 4 shows the results of the CF and CR classification from the calibration stage of the samples using several machine learning algorithms. The F1-score of the classification of the presence or absence of pesticides in the samples using the PLS-DA algorithm was between 0.94 and 0.99. The most accurate identification using the PLS-DA algorithm with various preprocessing methods achieved an F1-score of 0.99 in the training and testing stages. We obtained a similar value by applying raw data and baseline correction preprocessing with the PLS-DA algorithm. The results of this study are in line with those of Jamshidi, Mohajerani, and Jamshidi [21], who reported that the PLS-DA algorithm performed well in measuring and detecting diazinon residues in cucumbers using Vis/NIR in the range of 450–1000 nm. Employing the SVM algorithm, the best F1-score was obtained when using raw spectral data rather than preprocessing (1.0 at the training and testing stages). The SVM algorithm also correctly predicted three classes of chlorpyrifos residue contents on filter paper (<100, 100–300, and >300 mg/kg) with 89.29% accuracy [57]. The ANN algorithm with the full wavelength (125 nm) produced the best F1-score by preprocessing the first derivative: 0.83 for the training stage and 0.92 for the testing stage. Finally, the application of the ANN algorithm that used 20 PC inputs produced the best F1-score (100%) without preprocessing in the training and testing stages. The optimal hyperparameters used for machine learning are presented in Table 5.
The results showed that the most accurate machine learning algorithms were SVM and PC-ANN using raw spectral data to identify pesticide residues on bok choi. The classification of the presence or absence of pesticides on samples using the SVM and PC-ANN algorithms achieved 100% accuracy, precision, and recall in the training and testing stages. Thus, the integration of a portable NIR spectrometer with a machine learning approach (SVM or PC-ANN) could be effectively used to classify the absence or presence of pesticide residues on bok choi. In this study, the SVM algorithms and the PC-ANN classifier could accurately discriminate pesticide residue down to a minimum concentration of 0.01 mg/L.

3.5. X-Loading and Regression Coefficient

Figure 4 shows the X-loading plot of the first three PCs from PCA and the regression coefficient plot from the best PLS-DA model. The peaks and valleys with high absolute values of the X-loading weights and regression coefficients represent the vibration of the band at a particular wavelength that influenced the classification of the presence or absence of pesticides in bok choi. High X-loading peaks were obtained at 1152, 1360, 1410, 1450, 1471, and 1481 nm (Figure 4a). Table 6 shows the corresponding absorption bands from the X-loading and regression coefficients. These peaks also occurred in the regression coefficient plot (Figure 4b). We observed high regression coefficient peaks at 970, 1152, 1360, 1410, 1450, 1471, 1481, 1540, and 1570 nm, which corresponded to the vibration bands of H2O (970 and 1450 nm), CH3 (1152, 1360, and 1410 nm), CONHR (1471 nm), CONH2 (1481 nm), C=H (1533 nm), and -CONH- (1570 nm) [51]. The wavelength of 1410 nm correlates with the combination of a single bond of the CH stretching of methylene [53,54]. In addition, 1360 and 1471 nm are associated with methyl and NH primary amides, respectively. According to Rodriguez et al. (2020), these wavelengths (1360, 1410, 1450, 1471, 1540, and 1570 nm) contribute to the detection of chlorpyrifos-methyl [54]. In addition, Sánchez et al. (2010) suggested that absorption in the 1360 and 1480 nm wavelength regions correlates with CH and NH absorption, both of which can indicate the presence or absence of pesticide residues of organophosphates, organochlorides, carbamates, pyrethroids, pyrimidine compounds, dicarboximides, thiazoles, and natural residues on peppers [23].

3.6. Validation of Model with Unknown Samples

Table 7 presents the results of the validation of the model on unknown samples. The PLS-DA, SVM, and PC-ANN models performed better than the ANN model in detecting the presence or absence of pesticides in bok choi. The PLS-DA, SVM, and PC-ANN algorithms showed satisfactory performance, with an accuracy rate of 100%. In addition, the F1-score, representing the average harmonic of precision and recall for the three models (PLS-DA, SVM, and PC-ANN), was superior (100%). The qualitative results of the independent validation testing obtained in this study showed the ability of this method to differentiate samples with different levels of pesticide residue, from 0.02 to 1.44 mg/L. Accordingly, these results prove that this model has robustness that has been scientifically shown to be directly applicable at the industrial level because of the satisfactory results.
In contrast, the performance of the ANN algorithm generated from the full spectrum was inferior. When using an independent dataset, it could only detect the presence or absence of pesticide residue in 38% of the sample. The performance of this ANN model in distinguishing positive samples was poor, but its sensitivity was high (100%), so the F1-score was 50%. This showed that the ANN model with a full spectrum was unable to satisfactorily distinguish false positives and false negatives in the sample data. This may have been due to overfitting in the model calibration stage, which caused inconsistent model performance when testing on an independent dataset. Janik et al. [58] reported a similar finding when using full-spectrum Vis/NIR to predict the total anthocyanin concentration in red grape homogenates. The ANN algorithm that uses the full spectrum tends to experience overfitting because it uses excessive input scores as inputs.

4. Conclusions

We investigated the detection of a residual pesticide (chlorpyrifos) on bok choi (Brassica rapa subsp. Chinensis) using a portable NIR spectrometer with a machine learning approach. The results showed that the combination of NIR spectroscopy and machine learning is useful for effectively classifying the absence or presence of pesticide residues. All machine learning algorithms (i.e., PLS-DA, SVM, ANN, and PC-ANN) achieved an accuracy of between 0.92 and 1.00 in the calibration stage. For the in-field operation of the model, we evaluated the performance of the calibration models of the PLS-DA, SVM, and PC-ANN algorithms on an unknown dataset using accuracy, precision, recall, and F1-scores, with each reaching 100%. Finally, we recommend using the PLS-DA, SVM, and PC-ANN classification algorithms with the full spectrum and raw data to detect the presence or absence of chlorpyrifos residues on bok choi before consumption.

Author Contributions

Conceptualization, R.L., C.F., W.A. and W.C.; methodology, R.L., C.F., W.A. and W.C.; software, R.L.; validation, R.L. and A.S.; formal analysis, R.L. and A.S.; investigation, R.L., C.F., W.A. and W.C.; resources, R.L.; data curation, C.F., W.A. and W.C.; writing—original draft preparation, R.L. and A.S.; writing—review and editing, R.L. and A.S.; visualization, R.L. and A.S.; supervision, R.L.; project administration, R.L.; funding acquisition, R.L. All authors have read and agreed to the published version of the manuscript.

Funding

This study is part of the project entitled An Integrated Technology for Sustainable Development on Agricultural Industry by King Mongkut’s Institute of Technology Ladkrabang (KMITL). Research funding (funding number: FRB650028/0258) was supported by the National Science, Research and Innovation Fund (NSRF).

Data Availability Statement

The data are available from the corresponding author.

Acknowledgments

This study was supported by the Near-Infrared Spectroscopy Research Center for Agricultural Product and Food (www.nirsresearch.com (accessed on 10 January 2023)) and the School of Engineering, King Mongkut’s Institute of Technology Ladkrabang (KMITL), Bangkok, Thailand.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Sankom, A.; Mahakarnchanakul, W.; Rittiron, R.; Sajjaanantakul, T.; Thongket, T. Detection of Profenofos in Chinese Kale, Cabbage, and Chili Spur Pepper Using Fourier Transform Near-Infrared and Fourier Transform Mid-Infrared Spectroscopies. ACS Omega 2021, 6, 26404–26415. [Google Scholar] [CrossRef] [PubMed]
  2. Ministry of Public Health Food Safety. Available online: http://bqsf.dmsc.moph.go.th/bqsfWeb/wp-content/uploads/2021/09/Food-safety-report-63.pdf (accessed on 10 January 2023).
  3. Naksen, W.; Surat, H.; Zhen-Lin, X.; Natthapol, K.; Tanyaporn, K.; Tippawan, P.; Vanvimol, P. Health Risk Assessment from Organophosphate Insecticides Residues in Commonly Consumed Vegetables of Local Markets, Northern Thailand. J. Health Res. 2023, 37, 153–162. [Google Scholar] [CrossRef]
  4. Sapbamrer, R.; Hongsibsong, S. Organophosphorus pesticide residues in vegetables from farms, markets, and a supermarket around Kwan Phayao Lake of Northern Thailand. Arch. Environ. Contam. Toxicol. 2014, 67, 60–67. [Google Scholar] [CrossRef] [PubMed]
  5. Wanwimolruk, S.; Phopin, K.; Boonpangrak, S.; Prachayasittikul, V. Food safety in Thailand 4: Comparison of pesticide residues found in three commonly consumed vegetables purchased from local markets and supermarkets in Thailand. PeerJ 2016, 4, e2432. [Google Scholar] [CrossRef] [Green Version]
  6. Silipunyo, T.; Hongsibsong, S.; Phalaraksh, C.; Laoyang, S.; Kerdnoi, T.; Patarasiriwong, V.; Prapamontol, T. Determination of organophosphate pesticides residues in fruits, vegetables and health risk assessment among consumers in Chiang Mai Province, Northern Thailand. Res. J. Environ. Toxicol. 2017, 11, 20–27. [Google Scholar] [CrossRef] [Green Version]
  7. Lu, Y.; Li, X.; Li, W.; Shen, T.; He, Z.; Zhang, M.; Zhang, H.; Sun, Y.; Liu, F. Detection of chlorpyrifos and carbendazim residues in the cabbage using visible/near-infrared spectroscopy combined with chemometrics. Spectrochim. Acta Part A Mol. Biomol. Spectrosc. 2021, 257, 119759. [Google Scholar] [CrossRef]
  8. USDA. Thai FDA Announced Ban of Paraquat and Chlorpyrifos on Imported Food Products. Available online: https://www.fas.usda.gov/data/thailand-thai-fda-announced-ban-paraquat-and-chlorpyrifos-imported-food-products (accessed on 10 January 2023).
  9. Cho, S.K.; Abd El-Aty, A.M.; Rahman, M.M.; Choi, J.H.; Shim, J.H. Simultaneous multi-determination and transfer of eight pesticide residues from green tea leaves to infusion using gas chromatography. Food Chem. 2014, 165, 532–539. [Google Scholar] [CrossRef]
  10. Watanabe, E.; Kobara, Y.; Baba, K.; Eun, H. Determination of Seven Neonicotinoid Insecticides in Cucumber and Eggplant by Water-Based Extraction and High-Performance Liquid Chromatography. Anal. Lett. 2015, 48, 213–220. [Google Scholar] [CrossRef]
  11. Li, W.; Sun, M.; Li, M. A survey of determination for organophosphorus pesticide residue in agricultural products. Adv. J. Food Sci. Technol. 2013, 5, 381–386. [Google Scholar] [CrossRef]
  12. Cattaneo, T.M.P.; Stellari, A. Review: NIR Spectroscopy as a Suitable Tool for the Investigation of the Horticultural Field. Agronomy 2019, 9, 503. [Google Scholar] [CrossRef] [Green Version]
  13. López, A.; Arazuri, S.; García, I.; Mangado, J.; Jarén, C. A review of the application of near-infrared spectroscopy for the analysis of potatoes. J. Agric. Food Chem. 2013, 61, 5413–5424. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  14. Reich, G. Mid and near infrared spectroscopy. In Analytical Techniques in the Pharmaceutical Sciences; Springer: Cham, Switzerland, 2016; pp. 61–138. [Google Scholar]
  15. Ngo, V.D.; Hoang, L.T.A.; Pham, V.C.; Ngo, V.H.; Tran, P.H. Estimation of pesticide residues on leafy vegetables using a developed handheld spectrometer. Biointerface Res. Appl. Chem. 2022, 12, 8163–8173. [Google Scholar] [CrossRef]
  16. Nazarloo, A.S.; Sharabiani, V.R.; Gilandeh, Y.A.; Taghinezhad, E.; Szymanek, M. Evaluation of different models for non-destructive detection of tomato pesticide residues based on near-infrared spectroscopy. Sensors 2021, 21, 3032. [Google Scholar] [CrossRef] [PubMed]
  17. Nazarloo, A.S.; Sharabiani, V.R.; Gilandeh, Y.A.; Taghinezhad, E.; Szymanek, M.; Sprawka, M. Feasibility of using VIS/NIR spectroscopy and multivariate analysis for pesticide residue detection in tomatoes. Processes 2021, 9, 196. [Google Scholar] [CrossRef]
  18. Yu, G.; Ma, B.; Chen, J.; Li, X.; Li, Y.; Li, C. Nondestructive identification of pesticide residues on the Hami melon surface using deep feature fusion by Vis/NIR spectroscopy and 1D-CNN. J. Food Process Eng. 2021, 44, e13602. [Google Scholar] [CrossRef]
  19. Sun, J.; Ge, X.; Wu, X.; Dai, C.; Yang, N. Identification of pesticide residues in lettuce leaves based on near infrared transmission spectroscopy. J. Food Process Eng. 2018, 41, e12816. [Google Scholar] [CrossRef]
  20. Jamshidi, B.; Mohajerani, E.; Jamshidi, J.; Minaei, S.; Sharifi, A. Non-destructive detection of pesticide residues in cucumber using visible/near-infrared spectroscopy. Food Addit. Contam. Part A Chem. Anal. Control Exposure Risk Assess. 2015, 32, 857–863. [Google Scholar] [CrossRef]
  21. Jamshidi, B.; Mohajerani, E.; Jamshidi, J. Developing a Vis/NIR spectroscopic system for fast and non-destructive pesticide residue monitoring in agricultural product. Measurement 2016, 89, 1–6. [Google Scholar] [CrossRef] [Green Version]
  22. Xue, L.; Cai, J.; Li, J.; Liu, M. Application of particle swarm optimization (PSO) algorithm to determine dichlorvos residue on the surface of navel orange with Vis-NIR spectroscopy. Procedia Eng. 2012, 29, 4124–4128. [Google Scholar] [CrossRef] [Green Version]
  23. Sánchez, M.T.; Flores-Rojas, K.; Guerrero, J.E.; Garrido-Varo, A.; Pérez-Marín, D. Measurement of pesticide residues in peppers by near-infrared reflectance spectroscopy. Pest Manag. Sci. 2010, 66, 580–586. [Google Scholar] [CrossRef]
  24. Ling, Y.; Wang, H.; Yong, W.; Zhang, F.; Sun, L.; Yang, M.-L.; Wu, Y.-N.; Chu, X.-G. The effects of washing and cooking on chlorpyrifos and its toxic metabolites in vegetables. Food Control 2011, 22, 54–58. [Google Scholar] [CrossRef]
  25. Hongsibsong, S.; Prapamontol, T.; Xu, T.; Hammock, B.D.; Wang, H.; Chen, Z.-J.; Xu, Z.-L. Monitoring of the organophosphate pesticide chlorpyrifos in vegetable samples from local markets in Northern Thailand by developed immunoassay. Int. J. Environ. Res. Public Health. 2020, 17, 4723. [Google Scholar] [CrossRef] [PubMed]
  26. Foong, S.Y.; Ma, N.L.; Lam, S.S.; Peng, W.; Low, F.; Lee, B.H.; Alstrup, A.K.; Sonne, C. A recent global review of hazardous chlorpyrifos pesticide in fruit and vegetables: Prevalence, remediation and actions needed. J. Hazard. Mater. 2020, 400, 123006. [Google Scholar] [CrossRef] [PubMed]
  27. Sun, L.; Hsiung, C.; Smith, V. Investigation of Direct Model Transferability Using Miniature Near-Infrared Spectrometers. Molecules 2019, 24, 1997. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  28. Harshit, D.; Charmy, K.; Nrupesh, P. Organophosphorus pesticides determination by novel HPLC and spectrophotometric method. Food Chem. 2017, 230, 448–453. [Google Scholar] [CrossRef]
  29. Xu, X.; Xie, L.; Ying, Y. Factors influencing near infrared spectroscopy analysis of agro-products: A review. Front. Agric. Sci. Eng. 2019, 6, 105–115. [Google Scholar] [CrossRef] [Green Version]
  30. Rinnan, Å.; Van Den Berg, F.; Engelsen, S.B. Review of the most common pre-processing techniques for near-infrared spectra. TrAC, Trends Anal. Chem. 2009, 28, 1201–1222. [Google Scholar] [CrossRef]
  31. Pornchaloempong, P.; Sharma, S.; Phanomsophon, T.; Srisawat, K.; Inta, W.; Sirisomboon, P.; Prinyawiwatkul, W.; Nakawajana, N.; Lapcharoensuk, R.; Teerachaichayut, S. Non-Destructive Quality Evaluation of Tropical Fruit (Mango and Mangosteen) Purée Using Near-Infrared Spectroscopy Combined with Partial Least Squares Regression. Agriculture 2022, 12, 2060. [Google Scholar] [CrossRef]
  32. Saechua, W.; Sharma, S.; Nakawajana, N.; Leepaitoon, K.; Chunsri, R.; Posom, J.; Roeksukrungrueang, C.; Siritechavong, T.; Phanomsophon, T.; Sirisomboon, P.; et al. Integrating vis-swnir spectrometer in a conveyor system for in-line measurement of dry matter content and soluble solids content of durian pulp. Postharvest Biol. Technol. 2021, 181, 111640. [Google Scholar] [CrossRef]
  33. Lapcharoensuk, R.; Sirisomboon, P. Eating quality of cooked rice determination using Fourier transform near infrared spectroscopy. J. Innov. Opt. Health Sci. 2014, 7, 1450003. [Google Scholar] [CrossRef]
  34. Mishra, P.; Rutledge, D.N.; Roger, J.-M.; Wali, K.; Khan, H.A. Chemometric pre-processing can negatively affect the performance of near-infrared spectroscopy models for fruit quality prediction. Talanta 2021, 229, 122303. [Google Scholar] [CrossRef] [PubMed]
  35. Bi, Y.; Yuan, K.; Xiao, W.; Wu, J.; Shi, C.; Xia, J.; Chu, G.; Zhang, G.; Zhou, G. A local pre-processing method for near-infrared spectra, combined with spectral segmentation and standard normal variate transformation. Anal. Chim. Acta 2016, 909, 30–40. [Google Scholar] [CrossRef] [PubMed]
  36. Lasisi, A.; Attoh-Okine, N. Principal components analysis and track quality index: A machine learning approach. Transp. Res. Part C Emerg. Technol. 2018, 91, 230–248. [Google Scholar] [CrossRef]
  37. Pedregosa, F.; Varoquaux, G.; Gramfort, A.; Michel, V.; Thirion, B.; Grisel, O.; Blondel, M.; Prettenhofer, P.; Weiss, R.; Dubourg, V. Scikit-learn: Machine learning in Python. J. Mach. Learn. Res. 2011, 12, 2825–2830. [Google Scholar] [CrossRef]
  38. Dou, Y.; Qu, N.; Wang, B.; Chi, Y.Z.; Ren, Y.L. Simultaneous determination of two active components in compound aspirin tablets using principal component artificial neural networks (PC-ANNs) on NIR spectroscopy. Eur. J. Pharm. Sci. 2007, 32, 193–199. [Google Scholar] [CrossRef]
  39. Khanmohammadi, M.; Garmarudi, A.B.; Ghasemi, K.; Garrigues, S.; de la Guardia, M. Artificial neural network for quantitative determination of total protein in yogurt by infrared spectrometry. Microchem. J. 2009, 91, 47–52. [Google Scholar] [CrossRef]
  40. Yoplac, I.; Avila-George, H.; Vargas, L.; Robert, P.; Castro, W. Determination of the superficial citral content on microparticles: An application of NIR spectroscopy coupled with chemometric tools. Heliyon 2019, 5, e02122. [Google Scholar] [CrossRef] [Green Version]
  41. Zhao, J.; Tian, G.; Qiu, Y.; Qu, H. Rapid quantification of active pharmaceutical ingredient for sugar-free Yangwei granules in commercial production using FT-NIR spectroscopy based on machine learning techniques. Spectrochim. Acta A Mol. Biomol. Spectrosc. 2021, 245, 118878. [Google Scholar] [CrossRef]
  42. Jurinjak Tušek, A.; Jurina, T.; Čulo, I.; Valinger, D.; Gajdoš Kljusurić, J.; Benković, M. Application of NIRs coupled with PLS and ANN modelling to predict average droplet size in oil-in-water emulsions prepared with different microfluidic devices. Spectrochim. Acta A Mol. Biomol. Spectrosc. 2022, 270, 120860. [Google Scholar] [CrossRef]
  43. Sun, Y.; Liu, N.; Kang, X.; Zhao, Y.; Cao, R.; Ning, J.; Ding, H.; Sheng, X.; Zhou, D. Rapid identification of geographical origin of sea cucumbers Apostichopus japonicus using FT-NIR coupled with light gradient boosting machine. Food Control 2021, 124, 107883. [Google Scholar] [CrossRef]
  44. Seo, S.; Kim, Y.; Han, H.-J.; Son, W.C.; Hong, Z.-Y.; Sohn, I.; Shim, J.; Hwang, C. Predicting Successes and Failures of Clinical Trials With Outer Product–Based Convolutional Neural Network. Front. Pharmacol. 2021, 12, 670670. [Google Scholar] [CrossRef] [PubMed]
  45. Krstinić, D.; Braović, M.; Šerić, L.; Božić-Štulić, D. Multi-label classifier performance evaluation with confusion matrix. Comput. Sci. Inf. Syst. 2020, 10, 8. [Google Scholar] [CrossRef]
  46. Lapcharoensuk, R.; Nakawajana, N. Identification of syrup type using fourier transform-near infrared spectroscopy with multivariate classification methods. J. Innov. Opt. Health Sci. 2018, 11, 1750019. [Google Scholar] [CrossRef] [Green Version]
  47. Zhang, M.; Zhang, B.; Li, H.; Shen, M.; Tian, S.; Zhang, H.; Ren, X.; Xing, L.; Zhao, J. Determination of bagged ‘Fuji’apple maturity by visible and near-infrared spectroscopy combined with a machine learning algorithm. Infrared Phys. Technol. 2020, 111, 103529. [Google Scholar] [CrossRef]
  48. Kabir, M.H.; Guindo, M.L.; Chen, R.; Liu, F. Geographic origin discrimination of millet using Vis-NIR spectroscopy combined with machine learning techniques. Foods 2021, 10, 2767. [Google Scholar] [CrossRef]
  49. Morellos, A.; Tziotzios, G.; Orfanidou, C.; Pantazi, X.E.; Sarantaris, C.; Maliogka, V.; Alexandridis, T.K.; Moshou, D. Non-destructive early detection and quantitative severity stage classification of Tomato Chlorosis Virus (ToCV) infection in young tomato plants using vis–NIR Spectroscopy. Remote Sens. 2020, 12, 1920. [Google Scholar] [CrossRef]
  50. Hicks, S.A.; Strümke, I.; Thambawita, V.; Hammou, M.; Riegler, M.A.; Halvorsen, P.; Parasa, S. On evaluation metrics for medical applications of artificial intelligence. Sci. Rep. 2022, 12, 5979. [Google Scholar] [CrossRef]
  51. Osborne, B.G.; Fearn, T.; Hindle, P.H. Practical NIR Spectroscopy with Applications in Food and Beverage Analysis; Longman Scientific and Technical: London, UK, 1993. [Google Scholar]
  52. Conzen, J. Multivariate Calibration: A Practical Guide for Developing Methods in the Quantitative Analytical Chemistry; BrukerOptik GmbH: Ettlingen, Germany, 2006. [Google Scholar] [CrossRef]
  53. Kumagai, M.; Suyama, H.; Sato, T.; Amano, T.; Ogawa, N. Discrimination of Plastics Using a Portable near Infrared Spectrometer. J. Near Infrared Spectrosc. 2002, 10, 247–255. [Google Scholar] [CrossRef]
  54. Rodriguez, F.S.; Armstrong, P.R.; Maghirang, E.B.; Yaptenco, K.F.; Scully, E.D.; Arthur, F.H.; Brabec, D.L.; Adviento-Borbe, A.D.; Suministrado, D.C. NIR Spectroscopy Detects Chlorpyrifos-Methyl Pesticide Residue in Rough, Brown, and Milled Rice. Appl. Eng. Agric. 2020, 36, 983–993. [Google Scholar] [CrossRef]
  55. Fan, Y.; Ma, S.; Wu, T. Individual wheat kernels vigor assessment based on NIR spectroscopy coupled with machine learning methodologies. Infrared Phys. Technol. 2020, 105, 103213. [Google Scholar] [CrossRef]
  56. Richter, B.; Rurik, M.; Gurk, S.; Kohlbacher, O.; Fischer, M. Food monitoring: Screening of the geographical origin of white asparagus using FT-NIR and machine learning. Food Control 2019, 104, 318–325. [Google Scholar] [CrossRef]
  57. Chen, J.; Peng, Y.; Li, Y.; Wang, W.; Wu, J. A Method for Determining Organophosphorus Pesticide Concentration Based on Near-Infrared Spectroscopy. Trans. ASABE 2011, 54, 1025–1030. [Google Scholar] [CrossRef]
  58. Janik, L.J.; Cozzolino, D.; Dambergs, R.; Cynkar, W.; Gishen, M. The prediction of total anthocyanin concentration in red-grape homogenates using visible-near-infrared spectroscopy and artificial neural networks. Anal. Chim. Acta 2007, 594, 107–118. [Google Scholar] [CrossRef] [PubMed]
Figure 1. Schematic of portable NIR spectrometer.
Figure 1. Schematic of portable NIR spectrometer.
Foods 12 00955 g001
Figure 2. Average NIR spectra fromchlorpyrifos-free (CF) and chlorpyrifos residue (CR) groups: (a) raw spectra; (b) Savitzky–Golay second derivative spectra.
Figure 2. Average NIR spectra fromchlorpyrifos-free (CF) and chlorpyrifos residue (CR) groups: (a) raw spectra; (b) Savitzky–Golay second derivative spectra.
Foods 12 00955 g002
Figure 3. PCA for the chlorpyrifos-free (CF) and chlorpyrifos residue (CR) groups. (a) Score plot of PC1 against PC2; (b) explained variance rates and cumulative explained variance rates of the first 20 PCs.
Figure 3. PCA for the chlorpyrifos-free (CF) and chlorpyrifos residue (CR) groups. (a) Score plot of PC1 against PC2; (b) explained variance rates and cumulative explained variance rates of the first 20 PCs.
Foods 12 00955 g003
Figure 4. X-loading (a) and regression coefficient (b) plots.
Figure 4. X-loading (a) and regression coefficient (b) plots.
Foods 12 00955 g004
Table 1. Summary of studies employing Vis and NIR spectroscopy to detect pesticide residue on horticultural products.
Table 1. Summary of studies employing Vis and NIR spectroscopy to detect pesticide residue on horticultural products.
Agro-Products (Source)Residue Wavelength (nm)Pesticide Residue Range (mg/kg)
Lettuce, Oriental mustard, Bok choy [15]Indoxacarb, chlorantraniliprole,
emamectin benzoate
340–840<0.01–0.56
Chinese kale, cabbage, green chili spur pepper [1]Profenofos800–25000.53–106.28
Cabbage [7]Chlorpyrifos, carbendazim350–25000.1–100
Tomato [16,17]Profenofos350–11000.0–42.9
Melon [18]Chlorothalonil, imidacloprid, pyraclostrobin348–11411.0
Lettuce leaves [19]Fenvalerate, chlorpyrifos950–16501.0–10
Cucumber [20,21]Diazinon450–10000.0–32
Oranges [22]Dichlorvos350–18001.0–1.25
Peppers [23]Mixed pesticides400–17000.01–1.05
Table 2. Predefined parameters for performing GridSearchCV command on 5-fold cross validation.
Table 2. Predefined parameters for performing GridSearchCV command on 5-fold cross validation.
ModelHyperparameterTuning Range
PLS-DAn_components1–20
SVMkernel
degree
gamma
linear, poly, rbf, sigmoid
2–7
0.001–0.09
ANNactivation
hidden layer sizes
learning rate
learning rate initial
identity, logistic, tanh, relu
100, 110, 120, (100, 100), (110, 110), (120, 120), (100, 110, 100), (110, 120, 110)
constant, invscaling, adaptive
0.001, 0.01, 0.1
PC-ANN
(PCs = 20)
activation
hidden layer sizes
learning rate
learning rate initial
identity, logistic, tanh, relu
10, 11, 12, (10, 10), (11, 11), (12, 12), (10, 11, 10), (11, 12, 11)
constant, invscaling, adaptive
0.001, 0.01, 0.1
Table 3. Concentration of chlorpyrifos residues on samples for calibration and prediction stages.
Table 3. Concentration of chlorpyrifos residues on samples for calibration and prediction stages.
SampleSample GroupMax (mg/kg)Min (mg/kg)Mean (mg/kg)SD (mg/kg)
Calibration Chlorpyrifos-free (CF) (n = 60)n.d. *n.d.n.d.n.d.
Chlorpyrifos residues (CR) (n = 60)2.1840.0111.1200.532
Unknown Chlorpyrifos-free (CF) (n = 15)n.d.n.d.n.d.n.d.
Chlorpyrifos residues (CR) (n = 25)1.5960.0221.3850.410
* Not detected.
Table 4. Comparison of results among classification models at the calibration stage.
Table 4. Comparison of results among classification models at the calibration stage.
ModelPreprocessingTrainingTesting
AccuracyPrecisionRecallF1-ScoreAccuracyPrecisionRecallF1-Score
PLS-DARS0.990.981.000.990.991.000.970.99
SGS0.970.970.970.970.971.000.950.97
MN1.000.991.001.000.971.000.950.97
SNV&D0.990.991.000.990.971.000.950.97
BC0.990.981.000.990.991.000.970.99
MSC0.990.991.000.990.971.000.950.97
D10.990.990.990.990.960.970.950.96
D20.990.990.990.990.930.900.970.94
SVMRS1.001.001.001.001.001.001.001.00
SGS0.991.000.990.990.991.000.970.99
MN1.001.001.001.000.970.970.970.97
SNV&D1.001.001.001.000.970.970.970.97
BC1.001.001.001.000.971.001.001.00
MSC1.001.001.001.000.970.970.970.97
D10.510.000.000.000.470.000.000.00
D20.510.000.000.000.470.000.000.00
ANNRS0.730.880.520.650.811.000.630.77
SGS0.610.630.500.560.610.710.450.55
MN0.541.000.070.130.501.000.050.10
SNV&D0.671.000.330.500.641.000.320.48
BC0.610.600.650.620.710.730.710.72
MSC0.691.000.300.460.661.000.240.46
D10.840.900.770.830.920.970.870.92
D20.870.810.960.880.880.850.960.88
PC-ANN
(PCs = 20)
RS1.001.001.001.001.001.001.001.00
SGS0.980.980.970.980.960.970.970.96
MN0.990.990.990.990.970.941.000.97
SNV&D0.970.950.990.970.940.891.000.94
BC1.001.001.001.000.970.970.970.97
MSC0.990.990.990.990.970.941.000.97
D10.510.511.000.670.470.471.000.64
D20.490.000.000.000.530.000.000.00
RS: raw spectral, SGS: Savitzky–Golay smoothing, MN: mean normalized, SNV&D: standard normal variate + 1st derivative, BC: baseline correction, MSC: multiplicative scattering correction, D1: 1st derivative, D2: 2nd derivative, PLS-DA: partial least-squares discriminant analysis, SVM: support vector machine, ANN: artificial neural network, PC: principal component.
Table 5. Optimal hyperparameters used for machine learning.
Table 5. Optimal hyperparameters used for machine learning.
ModelPreprocessingHyperparameter
PLS-DARSn_components = 11
SVMRSkernel = poly, degree = 6, gamma = 1
ANND1activation = identity, hidden layer sizes = 100, learning rate = invscaling, learning rate initial = 0.001
PC-ANN
(PCs = 20)
RSactivation = relu, hidden layer sizes = (11, 11), learning rate = adaptive, learning rate initial = 0.1
Table 6. Corresponding absorption bands from X-loading and regression coefficients.
Table 6. Corresponding absorption bands from X-loading and regression coefficients.
Wavelength (nm)Bond Vibration/Functional Group (Structure)Reference
970O-H str. second overtone (H2O)[51,52]
1152C-H str. second overtone (CH3)[51,52]
13602 × C-H str. + C-H def. (CH3)[51]
14102 × C-H str. + C-H def. (CH3)[51,53,54]
1450O-H str. first overtone (H2O)[51,52]
1471N-H str. first overtone (CONHR)[51]
1481N-H str. first overtone (CONH2)[51]
1533C-H str. first overtone (C=H)[51]
1570N-H str. first overtone (-CONH-)[51]
Table 7. Results of model validation on unknown sample.
Table 7. Results of model validation on unknown sample.
ModelProcessing SpectraIndependent Validation
AccuracyPrecisionRecallF1-Score
PLS-DARS1.01.01.01.0
SVMRS1.01.01.01.0
ANND10.380.381.00.5
PC-ANN
(PCs = 20)
RS1.01.01.01.0
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Lapcharoensuk, R.; Fhaykamta, C.; Anurak, W.; Chadwut, W.; Sitorus, A. Nondestructive Detection of Pesticide Residue (Chlorpyrifos) on Bok Choi (Brassica rapa subsp. Chinensis) Using a Portable NIR Spectrometer Coupled with a Machine Learning Approach. Foods 2023, 12, 955. https://doi.org/10.3390/foods12050955

AMA Style

Lapcharoensuk R, Fhaykamta C, Anurak W, Chadwut W, Sitorus A. Nondestructive Detection of Pesticide Residue (Chlorpyrifos) on Bok Choi (Brassica rapa subsp. Chinensis) Using a Portable NIR Spectrometer Coupled with a Machine Learning Approach. Foods. 2023; 12(5):955. https://doi.org/10.3390/foods12050955

Chicago/Turabian Style

Lapcharoensuk, Ravipat, Chawisa Fhaykamta, Watcharaporn Anurak, Wasita Chadwut, and Agustami Sitorus. 2023. "Nondestructive Detection of Pesticide Residue (Chlorpyrifos) on Bok Choi (Brassica rapa subsp. Chinensis) Using a Portable NIR Spectrometer Coupled with a Machine Learning Approach" Foods 12, no. 5: 955. https://doi.org/10.3390/foods12050955

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop