Abstract

The purpose of this work was to detect carbendazim mixtures wrapped in paper. Unlike previous reports of THz-TDS for detecting pesticide residue, this work focused on detecting pesticide residue in packaged foods. Different weight ratios of carbendazim in polyethylene and in rice powder were detected qualitatively and quantitatively. Results show that pure carbendazim, polyethylene, and rice powder can be easily distinguished from each other. However, when the weight ratio was low, the absorbance of the mixture was similar with that of pure polyethylene and rice powder. With the help of SVM, carbendazim could be qualitatively detected in low weight ratio mixture successfully. Moreover, PLS and SVR were selected to quantitatively detect carbendazim mixtures. SVR has higher R and lower RMSECV, RMSEC, and RMSEP than PLS model. Lasty, the results also indicate that THz-TDS is a potential tool to detect pesticide residue in packaged foods qualitatively and quantitatively.

1. Introduction

Pesticide has been widely used in agriculture due to its broad spectrum activity and low production costs. However, overusing pesticide has cased residue of this drug in food product, which is detrimental to the health of consumers. Thus, detecting pesticide residue has become more and more important in the modern world. Traditional methods of pesticide residue detection include gas chromatography, liquid chromatography, and high-performance liquid chromatography. Nevertheless, these methods are time consuming and require tedious sample preparation procedures and cannot offer fast pesticide detection [13]. Other rapid detection methods based on immunology assays, such as immunochemistry and biosensors are time saving, sensitive, and highly selective, but they are difficult to establish and usually yield false-positive results [4].

In recent years, spectroscopic methods, such as ultraviolet spectroscopy, near-infrared spectroscopy, and infrared spectroscopy, are applied to detect pesticide residue because of their nondestructive and simple sample pretreatment. But there are limitations to these methods. Ultraviolet spectroscopy is harmful to the active ingredients in food and the human body [5]. Near-infrared spectroscopy is only suitable for the quantitative analysis rather than the qualitative analysis, owing to its complex spectra for intramolecular overtone and combination bands of chemicals [6]. In contrast, infrared spectroscopy is used for a qualitative tool rather than as a quantitative tool as a result of its sensitivity to the scattering effect in the sample and less stable radiation source [7]. Therefore, there is an increasing demand to exploit new techniques for rapid, sensitive, and nondestructive detection of pesticide residue in routine assays.

Terahertz (THz) refers to the electromagnetic wave in the frequency range of 0.1 to 10 THz between microwave and infrared. Comparing with other spectroscopic methods, THz has little damage to the target material because of its low photon energy and is less sensitive to noise that comes from thermal background radiation [8]. Moreover, it can give the amplitude and phase information of the sample simultaneously. So, THz has been qualitatively and quantitatively applied in many fields, for example chemistry, biology, medical science, and homeland security [913].

In the field of pesticide detection, Bing-Hua et al. analyzed dimethoate using density functional theory and experimental investigations [14]. Hua et al. quantitatively studied cyfluthrin n-hexane solutions based on partial least squares (PLS) and principal component regression (PCR) methods [15]. Qiang et al. used partial least squares (PLS), interval PLS (iPLS), moving window PLS (mwPLS), and backward interval PLS (biPLS) methods to quantify nitrofen [16]. However, few papers are concerned for detecting pesticide residue in packaged foods. It will be a meaningful progress.

In this work, we mixed carbendazim with polyethylene and rice powder, separately, and then employed terahertz time-domain spectroscopy (THz-TDS) to analyze these mixtures wrapped in paper. Firstly, we observed the absorbency of carbendazim in THz range. Secondly, we analyzed the absorbency of mixtures wrapped in paper. And then, the absorbency of the THz spectrum was used as input of support vector machine (SVM), partial least squares regression (PLSR), and support vector regression (SVR) for qualitative and quantitative analysis. The results indicate that pesticide can be qualitatively and quantitatively detected in mixtures and give evidence of a potential of applying THz-TDS to detect the presence of pesticide in packaged foods.

2. Materials and Methods

2.1. Experimental System

The experimental apparatus of the terahertz time-domain spectroscopy (THz-TDS) system, shown in Figure 1, is composed of two parts: a terahertz time-domain spectrometer Z-3 (Zomega Terahertz Corp., USA) and an ultrafast fiber laser FemtoFiber pro NIR (TOPTICA Photonics Inc., Germany). The ultrafast fiber laser generates a laser beam, with a pulse width of about 100 fs, the wavelength centered around 780 nm, the repetition rate of about 80 MHz, and the average power of nearly 100 mW. The laser beam is split into a pump beam and a probe beam by a cubic beam splitter (CBS) for THz generation and detection, respectively. The pump beam elicits the terahertz beam at the emitter, which is composed of a photoconductive antenna. Then, the generated THz beam is focused onto the sample, carries sample characteristics, and meets the probe beam at the ZnTe detector, where the probe beam is modulated by THz radiation through the electro-optic effect. After transmitting through a quater-wave-plate (QWP) and a Wollaston prism (WP), the modulated probe beam is then detected by a set of balanced photodiodes (PD).

In the experiment, we utilized the THz-TDS system in transmission mode. In order to reduce absorption of THz spectra by atmospheric water vapor, the THz beam path was enclosed in a box and dry air was injected into the box. During experiment, the relative humidity within the box was less than 4%, and the temperature was kept at room temperature (about 295 K).

2.2. Sample Preparation

Carbendazim powder with a purity of 98% was purchased from Adamas Company. High-density polyethylene powder was supplied by the Sigma-Aldrich company. Rice powder was obtained from a local market. To remove the water, all the powder-form samples were dried in a vacuum-drying oven for one hour at 323 K.

A series of mixtures with weight ratios ranging from 0% to 100% were prepared by mixing appropriate amounts of carbendazim in polyethylene and rice powder. And 25 replicates were prepared for each weight ratio. All the mixtures were mixed and ground by using a pestle and mortar, filtrated by a 200-mesh sieve, and then pressed into a 1–1.4 mm thick disk by a tablet press.

2.3. Data Acquisition

THz waveform was measured directly by THz-TDS system. Both reference and sample THz time-domain spectra were obtained from free path and sample measurement. To avoid echoing influence, the time-domain waveform was truncated firstly. And then, a fast Fourier transform was applied to obtain the spectral distribution in a frequency domain from time-domain THz waveform. After that, the absorbance spectrum could be acquired as follows [17]: where and were the amplitude of the sample and reference signal in a frequency domain, respectively.

In the experiment, we obtained the absorbance spectrum of pure carbendazim firstly. After that, the absorbance spectrums of mixtures, pure carbendazim, pure rice powder, and pure polyethylene, which were wrapped in paper, were gained.

2.4. Qualitative Modeling and Evaluation

With qualitative detection, SVM was employed. It is a supervised learning model with associated learning algorithms that analyze data used for classification. The SVM model maps the instances into a space, in which the instances of the categories are separated by a distinct gap that is as wide as possible. And then, new instances are mapped into the same space and predicted to belong to a category based on which side of the gap they fall [18, 19]. In addition, SVM can efficiently perform a nonlinear classification using the kernel trick.

Accuracy of cross validation (ACCCV) set was applied to optimize the model parameters. Accuracy of training (ACCTR) set was applied to evaluate the qualitative model. Accuracy of testing (ACCTE) set was used to evaluate generalization ability of the qualitative model. Accuracy is calculated using

Generally, a good model should have higher ACCCV, ACCTR, and ACCTE.

2.5. Quantitative Modeling and Evaluation

PLS is a linear regression method, able to deal with collinear variables and accepting a large number of variables. It linearly projects both input data and output data into the subspace, to find a feature matrix that can best represent the input data with as much variance as possible while correlating to the output to the maximum extent [20, 21]. Thus, the feature matrix carries the most useful information of input data, which are correlated to output data.

SVR is a nonlinear regression method, constructed by employing the -insensitive loss function, the penalty factor C, and the kernel function of radial basis function (RBF). The -insensitive loss function determines a deviation of . Instances, those prediction errors that exceed the given deviation of , would be penalized by the penalty factor C [22, 23]. In the experiment, was equal to 0.001. The kernel function is a nonlinear mapping function, which maps instances to a hyperdimensional feature space where the solution may become linear.

The root mean square error of cross validation (RMSECV) set was applied to optimize the model parameters. The root mean square error of training (RMSEC) set was used to evaluate the quantitative model. The root mean square error of testing (RMSEP) set and the correlation coefficient (R) were used to evaluate generalization ability of the quantitative model. RMSE and R are calculated using where is the sample size, is actual value of the ith sample, is the predicted value of the ith sample, is the average of the sample actual value, and is the average of the sample predicted value.

A good model had a great model precision and prediction precision with higher R and lower RMSECV, RMSEC, and RMSEP sets.

3. Results and Discussions

3.1. THz Spectra of Carbendazim Mixtures

Figure 2 shows the average absorbance spectrum of pure carbendazim. Carbendazim exhibited two relatively distinct absorption peaks at 1.15 and 1.35 THz. These absorption peaks can be regarded as the feature of carbendazim.

To detect carbendazim in mixtures, we mixed carbendazim with polyethylene and, later, rice powder. All the mixtures were wrapped in paper, when they were measured by THz-TDS. Figure 3(a) displays the absorption spectra of mixtures with different weight ratios from 0% to 100% w/w. The mixture 0% w/w is pure polyethylene, and the mixture 100% w/w is pure carbendazim. It shows that these absorbance spectra crossed together, and no obvious correlation between absorbance and weight ratio is observed, except for the region of 1.1–1.2 THz. In the region of 1.1–1.2 THz, the absorbance spectrum increases with the weight ratio increasing.

Figure 3(b) shows the absorption spectra of mixtures with different weight ratios from 0% to 100% w/w. The mixture 0% w/w is pure rice powder, and the mixture 100% w/w is pure carbendazim. The spectral features of mixture with weight ratios ranging from 0% to 25% w/w are dominated by the strong absorbance of rice powder, and no obvious absorption peak at 1.15 THz is observed. However, as the weight ratio is increasing to 30% w/w, the peak at 1.15 THz appears. In the region of 1.2–1.4 THz, the absorbance spectrum increases with the weight ratio decreasing. Furthermore, an additional absorption peak at 1.23 THz appears. It is caused by rice powder. Further comparing Figures 2, 3(a), and 3(b), whether wrapped in paper or not, the absorption spectra of pure carbendazim are the same. It indicates that THz could penetrate packaging material.

3.2. Qualitative Detection of Carbendazim Mixtures

In Figures 3(a) and 3(b), it illustrates that carbendazim can be easily detected in high weight ratio mixture by absorbance peaks. While as the weight ratio is low, the absorbance of the mixture is similar with pure polyethylene and rice powder. For example, the absorbance of mixture 2% w/w resembles polyethylene in Figure 3(a). The situation is similar in Figure 3(b). It is hard to detect carbendazim in mixtures when the weight ratio is low. To solve this problem, SVM with radial basis function was utilized. As mentioned above, the absorbance of the mixture was used as input of SVM. Grid search technique was selected to find optimal model parameter values, and 10-fold crossvalidation was implemented to prevent overfitting.

To qualitatively detect carbendazim in low weight ratio mixture (mix carbendazim with polyethylene), we selected 50 samples (25 pure polyethylene and 25 mixture 2% w/w). These samples were divided into a training set and a testing set. In the training set, the number of pure polyethylene and mixture 2% w/w were 18 and 15, respectively. At the same time, in the testing set, the number of pure polyethylene and mixture 2% w/w were 7 and 10, respectively. Penalty factor C and kernel parameter g are of great effect on SVM after select RBF. The grid search is used to optimize the two parameters C and g based on synchronous optimization idea. The searching interval was and . Figure 4(a) displays the process of SVM parameter optimization. It shows that accuracy depends on penalty factor C and kernel parameter g. When the C is large, a higher possibility of high accuracy is achieved. However, it should be noticed that if C is too large, it will be likely to be overfitting. So, we make a tradeoff between C and accuracy. At last, C was equal to 0.03125 and g was equal to 2.

Using the same method, we identify mixture 2% w/w and rice powder. The searching interval was and . The process of SVM parameter optimization is illustrated in Figure 4(b). As the result, C was equal to 0.125 and g was equal to 2. Table 1 shows the performance of detecting carbendazim in low weight ratio mixture. It indicates that carbendazim in low weight ratio mixture can be qualitatively detected successfully with the help of SVM.

3.3. Quantitative Detection of Carbendazim Mixtures

Two kinds of mixtures were, respectively, divided into training set and testing set, and the detail was given in Table 2. PLS and SVR were used for quantificationally detecting carbendazim in mixtures. The absorbance of the mixture was used as input of PLS and SVR. In PLS, 10-fold crossvalidation was implemented to prevent overfitting and select the number of components. In SVR, RBF was utilized, 10-fold crossvalidation was applied to prevent overfitting, and grid search technique was selected to find the optimal model parameter values.

Figures 5(a) and 5(b) display the correlation between the number of components and RMSECV for PLS. It turned out that MSECV decreased at the beginning and then became worse with increasing the number of components, which are due to introduced noise. In these two kinds of mixtures, the minimum value of MSECV was and , and the corresponding components were 41 and 11, accounting for 46.1% and 11.6% of the full spectral data of 89 and 95 wavelengths. As the result, the number of components was selected 41 and 11, respectively.

Figures 6(a) and 6(b) show the scattered plot of the predicted weight ratio in PLS against the actual values. Figures 7(a) and 7(b) show the scattered plot of the predicted weight ratio in SVR against the actual values. The reference line represents zero residuals between the predicted and actual values. The closer the scattered points go to the reference line, the better the performance will be.

Comparing Figures 6 and 7, all the predicted points of SVR are closer to the reference line than PLS. It intuitively depicts that SVR is preferable to PLS in the experiment. Tables 3 and 4 display the performance of PLS and SVR. The result on mixtures constituted carbendazim and rice powder shows better performance than the corresponding result on mixtures constituted carbendazim and polyethylene. Comparing the two results, SVR proves to be better than PLS, with relatively larger R and lower RMSEC, RMSECV, and RMSEP sets.

4. Conclusions

The applicability of THz-TDS to detect carbendazim in the mixture was present in this study. Unlike previous reports of THz-TDS for detecting pesticide, this work focused on detecting pesticide residue in packaged foods. All the mixtures were wrapped in paper, when they were measured. Carbendazim and rice powder revealed their own distinct absorption peaks, while polyethylene had no distinct absorption peaks. Pure carbendazim, polyethylene, and rice powder could be directly identified by their absorption spectra. But, when the weight ratio was low, the absorbance of the mixture is similar with pure polyethylene and rice powder. With the help of SVM, carbendazim could be qualitatively detected in low weight ratio mixture successfully. Moreover, carbendazim was quantificationally detected with PLS and SVR. The results showed that the performance of SVR was better than that of PLS. The best result of SVR is that R, RMSECV set, RMSEC set, and RMSEP set were 0.9978, 2.24%, 1.3%, and 1.8%, respectively.

Despite the limited sensitivity of the current technique, the current work demonstrates its ability to qualitatively and quantitatively detect pesticide residue in packaged foods. Further study will be undertaken to improve the precision and robustness of the prediction model. At last, we expect that THz-TDS become a rapid detection tool for commercial applications in food quality control.

Conflicts of Interest

The authors declare that there is no conflict of interest regarding the publication of this paper.

Acknowledgments

This work was supported by the Yulin Normal University Research Grant (Grant no. 2016YJKY06), National Natural Science Foundation of China (Grant no. 21565028), and Guangxi Colleges and Universities Program of Innovative Research Team and Outstanding Talent.