高级检索+

基于特征优化和机器学习的水稻叶片氮素反演及检测仪设计

Design of nitrogen inversion and detector for rice leaves based on feature optimization and machine learning

  • 摘要: 叶片氮素含量是衡量水稻健康的重要指标,无损检测叶片氮素含量对于确保水稻的生长发育和产量至关重要。然而,现有的检测仪存在价格昂贵、体积大、操作环境要求高、无法大面积推广等问题。该研究基于氮素光谱特征的优化与组合,设计了便携式多光谱水稻氮素无损检测仪。该设备的硬件系统由主机和外部叶夹组成,主机包括光谱采集模块、控制与显示模块和外部电源模块,外部叶夹用于固定水稻叶片。在Python3.11.4开发环境下使用PyQt5框架设计了上位机操作界面,用以实现光谱数据的采集、保存以及水稻氮素结果的显示。利用所开发的检测设备采集了“沈农9816”水稻叶片的光谱反射率,以光谱特征为输入,氮素含量为输出,分别构建基于偏最小二乘回归(partial least square regression,PLSR)、极限学习机(extreme learning machine,ELM)、基于蝙蝠算法优化的极限学习机(extreme learning machine based on bat optimization algorithm,BA-ELM)的水稻氮素含量预测模型,其中以特征波段和氮素特征转移指数(nitrogen characteristic transfer index,NCTI)组合所构成的光谱特征为输入的BA-ELM反演精度最高,模型训练集R2为0.792,RMSE为0.423%,测试集R2为0.783,RMSE为0.423%。将预测模型导入到检测设备后对设备的准确性和稳定性进行验证,使用最大残差验证设备检测准确性,得到最大残差绝对值为0.737%,使用变异系数验证设备稳定性,得到最大变异系数为1.901%。结果表明,该研究研发的便携式水稻氮素检测设备具有良好的准确度和稳定性,可以满足水稻氮素含量实时检测需求。

     

    Abstract: Leaf nitrogen content is one of the most important indicators of rice health. Non-destructive detection of the leaf nitrogen content is crucial to ensure the growth, development, and yield of rice. However, the existing detectors are expensive and large in size. It is a high requirement for the operating environment. This study aims to fully meet the demand for the low-cost acquisition of the field crop nutrition, in order to reduce the application cost for the portability. Multispectral detectors were also designed using spectral features. Therefore, the experimental area was taken as the Precision Agriculture Aviation Research Base of Shenyang Agricultural University in Gengzhuang Town, Haicheng City, Anshan City, Liaoning Province, China. Ocean Optics HR2000+ was used to collect the spectral reflectance of "Shen Nong 9816" rice leaves. The nitrogen concentration of the leaves was measured using indoor experiments. Then, the competitive adaptive weighted sampling (CARS) was used to extract the characteristic bands. The nitrogen characteristic transfer index (NCTI) was also selected to extract the nitrogen spectral features of the rice leaves. According to the optimization and combination of the nitrogen spectral features, a suitable multispectral sensor was selected to design a portable non-destructive detector of the multispectral rice nitrogen. The hardware system of the device consisted of a host and an external leaf clamp. The host included a spectral acquisition, control, and display, as well as an external power module. The external leaf clamp was used to fix the rice leaves. The host interface of the computer operation was designed using the PyQt5 framework in the Python3.11.4 environment. The acquisition and storage of the spectral data were realized for the display of the rice nitrogen. The detection equipment was developed to collect the spectral reflectance of the rice leaves. The characteristic bands with the vegetation index were used as the inputs, while the nitrogen concentration was used as the output. The rice nitrogen concentration models were constructed using partial least squares regression (PLSR), extreme learning machine (ELM), and extreme learning machine using bat optimization algorithm (BA-ELM). Among them, the accuracy of the BA-ELM inversion was the highest with the spectral features, where the characteristic bands and NCTI were the inputs. The determination coefficient of the model on the training set was 0.792, and the root mean square error was 0.423%. While on the test set, the determination coefficient was 0.783, and the root mean square error was 0.423%. The prediction model was imported into the detection equipment. The accuracy and stability of the equipment were verified after prediction. According to the residual device accuracy of the true and predicted values, the maximum absolute residual value was 0.737%. The coefficient of variation was used to verify the stability of the equipment, and the maximum coefficient of variation was 1.901%. The portable detection equipment of the rice nitrogen was independently developed for high accuracy and stability. The finding can fully meet the requirement for the real-time detection of the rice nitrogen concentration.

     

/

返回文章
返回