彭望,王前,廖庆喜,等. 基于近红外光谱的便携式油菜籽品质检测装置研制[J]. 农业工程学报,2024,40(18):13-22. DOI: 10.11975/j.issn.1002-6819.202402106
    引用本文: 彭望,王前,廖庆喜,等. 基于近红外光谱的便携式油菜籽品质检测装置研制[J]. 农业工程学报,2024,40(18):13-22. DOI: 10.11975/j.issn.1002-6819.202402106
    PENG Wang, WANG Qian, LIAO Qingxi, et al. Development of the portable device for rapeseed quality detection based on near-infrared spectroscopy[J]. Transactions of the Chinese Society of Agricultural Engineering (Transactions of the CSAE), 2024, 40(18): 13-22. DOI: 10.11975/j.issn.1002-6819.202402106
    Citation: PENG Wang, WANG Qian, LIAO Qingxi, et al. Development of the portable device for rapeseed quality detection based on near-infrared spectroscopy[J]. Transactions of the Chinese Society of Agricultural Engineering (Transactions of the CSAE), 2024, 40(18): 13-22. DOI: 10.11975/j.issn.1002-6819.202402106

    基于近红外光谱的便携式油菜籽品质检测装置研制

    Development of the portable device for rapeseed quality detection based on near-infrared spectroscopy

    • 摘要: 为解决油菜籽收获、运输、存储、销售等过程中对含油量、蛋白质、硫苷等内部品质的检测需求,实现油菜籽多指标、便携式、快速无损的检测目标,设计了一种基于近红外光谱的便携式油菜籽内部品质检测装置,集成微型光谱仪、LCD触摸屏、树莓派处理器、箱体、样品杯和电源,装置尺寸为246 mm×128 mm×127 mm,可在户外环境稳定工作6 h。以不同产区的65个油菜籽品种为研究对象,采集900~1633 nm的近红外漫反射光谱,使用竞争性自适应重加权、最小角回归、无信息变量消除等降维算法与偏最小二乘、极限学习机、支持向量等回归算法,建立了含油量、蛋白质、硫苷、含水率和芥酸高精度预测模型,决定系数R2分别为0.949、0.861、0.730、0.976、0.862,均方根误差RMSE分别为1.39、1.46、20.7、0.36、3.63。使用 QT Creator 作为集成开发环境, PyTorch 作为框架,实现了模型的嵌入式部署与应用,实现了油菜籽的多品质参数一键式无损检测。使用Flask、MQTT等技术,开发了APP端、网页端和小程序端软件,实现了预测数据的多端同步和实时监控。经检验测试,含油量、蛋白质、硫苷、含水率和芥酸的预测决定系数R2分别为0.932、0.855、0.734、0.968、0.761,均方根误差RMSE分别为1.35、1.67、19.6、0.34、2.96,检测过程为13 s,在相对湿度40%~70%、温度15~35 ℃的环境下,装置对含杂量不大于2%、质量3~7 g的成熟期油菜籽具有数据采集稳定性;该仪器可用于对油菜籽的快速无损检测。

       

      Abstract: Oil content, protein, glucosinolates, and internal qualities are required to be detected during harvesting, transportation, storage, and sale of rapeseed. In this study, a portable device was designed to detect the rapeseed internal quality using near-infrared spectroscopy, in order to realize the multi-index, portable, and rapid non-destructive testing. The hardware was integrated with the dimensions of 246 mm × 128 mm × 127 mm, such as a mini spectrometer, an LCD touchscreen, and a Raspberry Pi processor. The device was operated stably outdoors for 6 hours. The 65 varieties of rapeseed were sampled from different production areas. Diffuse reflectance spectra were then collected from 900 to 1700nm. The wavelength stability tests were carried out to determine a stable spectral region from 900 to 1633nm. Data was divided using KS, SPXY, and Random number. The dataset division was obtained with R2 as the index, where the KS was used for the oil content and protein, while the random numbers were for the glucosinolates, erucic acid, and moisture content. Various methods of data smoothing were evaluated with data smoothness as the index, such as SNV, SG, MSC, D1, and D2. SG smoothing (5-window, and 3rd order) was determined as the best preprocessing. Cars, Pca, GA, Lars, Uve, and Spa were used as data reduction to explore the best dimension reduction for each physicochemical index. Cars reduced the dimensions of the oil content model by 73%. Pca reduced the dimensions of the protein and erucic acid models by 98%. Thus the predictive accuracy of erucic acid was improved by 31.49%, whereas, the predictive error was reduced by 40.78%. PLS, ANN, CNN, SVR, and ELM models were used with RMSE, R2, and MAE as the indices. The calibration model was determined for the oil content using KS+SG+Cars+PLS, for the protein using SPXY+SG+Pca+PLS, for the glucosinolates using Random+SG+PLS, for the moisture content using Random+SG+ELM, and the for erucic acid using Random+SG+Pca+PLS. Model indices were as follows: RMSE, R2, and MAE for the oil content were 1.40, 0.95, 1.16; for the protein 1.46, 0.86, 1.24; for the glucosinolates 20.70, 0.73, 15.73; for the erucic acid 3.63, 0.86, 3.28; for the moisture content 0.36, 0.98, 0.24, respectively. The device was used to collect the spectra from 1 to 7g of rapeseed seven times for the light transmission. Results showed that the absorption error for 3 to 7g was within ±5%. Electronic scales were then removed for direct sample testing during field tests. Five stability tests were conducted at temperatures from 15℃ to 35℃, all of which were within reliable ranges; Stability tests were set as the relative humidity from 40% to 80% and found condensation at 70% relative humidity, which was corrected to maintain stability from 40% to 70% relative humidity. Accuracy tests on the device showed the correlation coefficients (R2) for oil content, protein content, glucosinolates, moisture content, and erucic acid between predicted and real sets at 0.932, 0.855, 0.734, 0.968, and 0.761, respectively; RMSE values were 1.35, 1.67, 19.6, 0.34, and 2.96, respectively. Therefore, the device can be expected to perform real-time non-destructive testing of oil content, protein, glucosinolates, moisture content, and erucic acid in rapeseed after safe storage.

       

    /

    返回文章
    返回