• Spectroscopy and Spectral Analysis
  • Vol. 42, Issue 4, 1235 (2022)
Xiao-hong ZHANG1、*, Xue-song JIANG1、1; *;, Fei SHEN2、2; *;, Hong-zhe JIANG1、1;, Hong-ping ZHOU1、1;, Xue-ming HE2、2;, Dian-cheng JIANG1、1;, and Yi ZHANG3、3;
Author Affiliations
  • 11. School of Mechanical and Electronic Engineering, Nanjing Forestry University, Nanjing 210037, China
  • 22. College of Food Science & Engineering of Nanjing University of Finance and Economics, Nanjing 210023, China
  • 33. Jiangsu Grain and Oil Quality Inspection Center, Nanjing 210031, China
  • show less
    DOI: 10.3964/j.issn.1000-0593(2022)04-1235-08 Cite this Article
    Xiao-hong ZHANG, Xue-song JIANG, Fei SHEN, Hong-zhe JIANG, Hong-ping ZHOU, Xue-ming HE, Dian-cheng JIANG, Yi ZHANG. Design of Portable Flour Quality Safety Detector Based on Diffuse Transmission Near-Infrared Spectroscopy[J]. Spectroscopy and Spectral Analysis, 2022, 42(4): 1235 Copy Citation Text show less
    Working principle of detection system
    Fig. 1. Working principle of detection system
    Schematic diagram of device hardware(a): Instrument strumcture diagram; (b): Physical drawing of instrument 1: Shell; 2: Vent; 3: Micro spectrometer; 4: Grip; 5: Upper cover and touch screen; 6: Raspberry Pi 4B; 7: Lug boss; 8: Light source control circuit board; 9: Card slot; 10: Testing accessories; 11: Power Supply
    Fig. 2. Schematic diagram of device hardware
    (a): Instrument strumcture diagram; (b): Physical drawing of instrument 1: Shell; 2: Vent; 3: Micro spectrometer; 4: Grip; 5: Upper cover and touch screen; 6: Raspberry Pi 4B; 7: Lug boss; 8: Light source control circuit board; 9: Card slot; 10: Testing accessories; 11: Power Supply
    Test accessories1: Objective table; 2: Copper stud; 3: Light source seat; 4: Light source cover; 5: Sample pool; 6: Reflective cover; 7: Optical fiber collimating mirror; 8: Adjusting rod; 9: Swallowtail guide slide block; 10: Dovetail guide rail; 11: Support
    Fig. 3. Test accessories
    1: Objective table; 2: Copper stud; 3: Light source seat; 4: Light source cover; 5: Sample pool; 6: Reflective cover; 7: Optical fiber collimating mirror; 8: Adjusting rod; 9: Swallowtail guide slide block; 10: Dovetail guide rail; 11: Support
    Spectra of flour samples with different quantities
    Fig. 4. Spectra of flour samples with different quantities
    Light source control module1: Circuit board; 2: Raspberry Pi 4B; 3: Lithium battery;4: 1 kΩ pull-up resistor; 5: Halogen lamp bead;6: TIP120 Darlington transistor
    Fig. 5. Light source control module
    1: Circuit board; 2: Raspberry Pi 4B; 3: Lithium battery;4: 1 kΩ pull-up resistor; 5: Halogen lamp bead;6: TIP120 Darlington transistor
    Original spectra of flour
    Fig. 6. Original spectra of flour
    Box plot graphics depicting the outliers in original spectra
    Fig. 7. Box plot graphics depicting the outliers in original spectra
    Box plot graphics depicting the outliers removed
    Fig. 8. Box plot graphics depicting the outliers removed
    Savitzky-Golay smoothing
    Fig. 9. Savitzky-Golay smoothing
    Score plot of PCA
    Fig. 10. Score plot of PCA
    PCA of modeling set samples
    Fig. 11. PCA of modeling set samples
    Decision boundary
    Fig. 12. Decision boundary
    Confusion matrix of LR prediction result
    Fig. 13. Confusion matrix of LR prediction result
    LR ROC curves
    Fig. 14. LR ROC curves
    Testing system interface
    Fig. 15. Testing system interface
    Work flow chart
    Fig. 16. Work flow chart
    Test results of flour moisture
    Fig. 17. Test results of flour moisture
    Yellow sample setMin/%Max/%Average/%Standard deviation/%
    Calibrationset11.4914.8613.180.61
    Predictionset12.0215.3113.530.52
    Table 1. Moisture measurement results of flour
    Blue sample setMin/(mg·kg-1)Max/(mg·kg-1)Average/(mg·kg-1)Standard deviation /(mg·kg-1)
    Calibration set0.005 18.455 60.873 41.339 6
    Prediction set0.021 28.999 60.856 11.518 6
    Table 2. Measurement results of DON content in flour
    Pre-
    treatment
    Calibration setPrediction setRPD
    Rc2RMSEC/%Rp2RMSEC/%
    None0.8830.3820.8530.2862.5
    MSC0.8260.3930.8030.3162.2
    SG0.8720.3510.7940.2642.4
    SNV0.7830.4100.7220.3232.0
    Table 3. PLSR prediction models after different pretreatment
    NumberPredict resultTrue result
    0111
    0200
    0300
    0400
    0511
    0600
    0711
    0800
    0910
    1000
    1100
    1211
    1311
    1400
    1500
    1600
    1710
    1800
    1900
    2000
    Table 4. Detection result of samples in external verification set
    Xiao-hong ZHANG, Xue-song JIANG, Fei SHEN, Hong-zhe JIANG, Hong-ping ZHOU, Xue-ming HE, Dian-cheng JIANG, Yi ZHANG. Design of Portable Flour Quality Safety Detector Based on Diffuse Transmission Near-Infrared Spectroscopy[J]. Spectroscopy and Spectral Analysis, 2022, 42(4): 1235
    Download Citation