Several bad traders have added industrial paraffin to rice in recent years to obtain more benefits. However, eating such adulterated rice poses a hazard to people's health, so the ability to detect the industrial paraffin contamination levels (IPCL) in rice is crucial. This study investigated the effects of spectral pretreatment combined with machine learning models on the qualitative and quantitative models of rice IPCL. Multiplicative scatter correction (MSC), standard normal variate (SNV), normalisation (NL), moving average smoothing (MAS), Savitzky-Golay smoothing (S-G-S), first derivative (FD) and second derivatives (SD) were used to preprocess the entire spectral range original spectral data. The data were then compared and analysed using PCA. The rice IPCL was detected using a qualitative model (SVM) and quantitative models (LSSVR, PSO-LSSVR, 1D-CNN). The results showed that NL-SVM (OA: 99.383%, Kappa: 0.993) and MAS-1D-CNN (R2: 0.964, RMSE: 0.033%) achieved the best detection results respectively. In addition, the NL-SVM (OA: 97.531%, Kappa: 0.970) and MAS-1D-CNN (R2: 0.926, RMSE: 0.040%) models after lightweight processing by CARS algorithm still showed good detection results. This study has a positive effect on the detection of rice IPCL, and contributed to the development of non-destructive testing technology for other agricultural and sideline products globally.
Read full abstract