欢迎您访问《智慧农业(中英文)》官方网站! English

Smart Agriculture ›› 2024, Vol. 6 ›› Issue (1): 36-45.doi: 10.12133/j.smartag.SA202309028

• 专题--智能农业传感器技术 • 上一篇    下一篇

非接触电导检测土壤养分离子的谱峰自动识别方法

唐超礼1(), 李浩1,3(), 王儒敬2,3(), 王乐1,3, 黄青2,3,4, 王大朋2,3, 张家宝3, 陈翔宇2,3()   

  1. 1. 安徽理工大学 电气与信息工程学院,安徽 淮南 232001,中国
    2. 中国科学院合肥物质科学研究院,智能机械研究所,安徽省智慧农业工程实验室,安徽 合肥 230031,中国
    3. 中科合肥智慧农业协同创新研究院,农业传感器与智能感知安徽省技术创新中心,安徽 合肥 231131,中国
    4. 中国科学技术大学,安徽 合肥 230026,中国
  • 收稿日期:2023-09-27 出版日期:2024-01-30
  • 作者简介:
    唐超礼,研究方向为信号与信息处理。E-mail:

    TANG C

  • 通信作者:
    1. 王儒敬,博士,研究员,研究方向为农业传感器与智能感知。E-mail:;2
    陈翔宇,博士,副研究员,研究方向为农业传感器与现场快检装备。E-mail:

Automatic Identification Method for Spectral Peaks of Soil Nutrient Ions Using Contactless Conductivity Detection

TANG Chaoli1(), LI Hao1,3(), WANG Rujing2,3(), WANG Le1,3, HUANG Qing2,3,4, WANG Dapeng2,3, ZHANG Jiabao3, CHEN Xiangyu2,3()   

  1. 1. School of Electrical and Information Engineering, Anhui University of Science and Technology, Huainan 232001, China
    2. Hefei Institutes of Physical Science, Chinese Academy of Sciences, Institute of Intelligent Machines, Intelligent Agriculture Engineering Laboratory of Anhui Province, Hefei 230031, China
    3. Agricultural Sensors and Intelligent Perception Technology Innovation Center of Anhui Province, Zhongke Hefei Institutes of Collaborative Research and Innovation for Intelligent Agriculture, Hefei 231131, China
    4. University of Science and Technology of China, Hefei 230026, China
  • Received:2023-09-27 Online:2024-01-30
  • corresponding author:
    1. WANG Rujing, E-mail: ; 2
    CHEN Xiangyu, E-mail:
  • Supported by:
    National Key Research and Development Program of China(2023YFD1702104); National Natural Science Foundation of China(32301688); Anhui Provincial Natural Science Foundation(1908085QE202); Scientific and Technological Resources in Anhui Province(S2022t06010123); The Dean Foundation of Hefei Institutes of Physical Science, Chinese Academy of Sciences(YZJJ2024QN38)

摘要:

目的/意义 电容耦合非接触式电导检测(Capacitively Coupled Contactless Conductivity Detection, C4D)在农业土壤养分离子检测方面发挥着重要作用。对C4D信号中离子特征峰的有效识别,有利于后续对离子特征峰的定性和定量分析,为加强农业土壤养分管理提供依据。然而,C4D信号的特征峰检测仍然存在无法自动精准识别、人工操作复杂、效率低等缺点。 方法 提出一种基于连续小波变换结合粒子群优化(Particle Swarm Optimization, PSO)和最大类间方差法(Otsu)的谱峰自动识别算法,旨在实现准确、高效、自动化的C4D信号峰识别。采用C4D检测样品溶液,得到离子谱图信号,对谱图信号进行连续小波变换,得到小波变换系数矩阵。通过搜索小波系数变换系数矩阵极值,识别出脊线和谷线。将小波系数矩阵转换为灰度图像,结合PSO和Otsu寻找最佳阈值,进一步对灰度图像的背景和目标分割,再结合原始谱图中的脊谷线识别谱图中的特征峰。[结果与讨论]测试含有41、61和102个峰的数据集,以受试者工作特性(Receiver Operating Characteristic, ROC)曲线和度量值作为评估峰值检测算法性能的准则。与其他方法相比,基于连续小波变换结合粒子群优化的最大类间方差法分割图像(Continuous Wavelet Transform Combined with Particle Swarm Optimization of Otsu to Segment Image, CWTSPSO)的谱峰自动识别算法的ROC曲线均保持在0.9以上,度量值分别为0.976、0.915和0.969。CWTSPSO能够有效检测出更多弱峰和重叠峰,同时检测出更少的假峰,有利于提升C4D信号的谱峰识别率和精准性。 结论 本研究提出的CWTSPSO能为非接触式电导检测农业土壤养分离子信号分析提供有力支持。

关键词: 非接触式电导检测, 连续小波变换, 粒子群优化算法, 最大类间方差法, 谱峰识别

Abstract:

Objective Capacitive coupled contactless conductivity detection (C4D) plays an important role in agricultural soil nutrient ion detection. Effective identification of characteristic ion peaks in C4D signals is conducive to subsequent qualitative and quantitative analysis of characteristic ion peaks, which provides a basis for improving agricultural soil nutrient management. However, the detection of characteristic peaks in C4D signals still has shortcomings, such as the inability of automatic and accurate identification, complicated manual operation, and low efficiency. Methods In this study, an automatic spectral peak identification algorithm based on continuous wavelet transform combined with particle swarm optimization (PSO) and maximum interclass variance method (Otsu) was proposed to achieve accurate, efficient and automated identification of C4D signal peaks. Capillary electrophoresis (CE) combined with a C4D device (CE-C4D) was used to detect the standard ions and soil sample solutions to obtain the C4D ion signal spectra, which were simulated according to the characteristics of the real C4D signal spectra to obtain the C4D simulated signals containing single Gaussian peaks and multi-Gaussian peaks. The continuous wavelet transform was performed on the C4D spectrogram signal to obtain the wavelet transform coefficient matrix. The local maxima and local minima of the continuous wavelet transform coefficient matrix were searched by the staircase scanning method, and the local maxima and local minima were connected to form ridges and valleys. The wavelet coefficient matrix was converted to a gray-scale image by logistic mapping to visualize the data. The number of particle populations in PSO was set to 15, the gray scale threshold of 15 particles was set to a random integer within the gray scale level of 0~255, and the initial velocity of the particles was set to 5. The combination of PSO and Otsu calculated the fitness (variance value) of each particle, updated the individual best position and the global best position, further updated the velocities and positions of the particles to find the global best position (the maximum interclass variance), and defined the maximum interclass variance was defined as the optimal threshold value, used the optimal threshold value for background and target segmentation of the gray-scale image and extracted the ridges within the peak region segmented from the gray-scale image by the PSO-Otsu algorithm. A threshold was set according to the length of the ridge line; the ridge lines larger than the threshold were extracted; the valley lines on both sides of the ridge line were found according to the filtered ridge line; and the start and end points of the peak region were obtained from the valley lines. The filtered ridge lines were used to identify the peak location of the peak region, and the edge threshold was set to remove the false peaks due to continuous wavelet transform (CWT) located in the edge region of the C4D signal and to accurately identify the location of the true peak value. Results and Discussions The datasets containing 41, 61 and 102 peaks were tested, and the Receiver Operating Characteristic (ROC) curves and metric values were used as a guideline to evaluate the performance of the peak detection algorithms. Compared to the two methods, multi scale peak detection (MSPD) and CWT-based image segmentation (CWT-IS), the CWT combined with Particle Swarm Optimization based maximum spectral peaks automatic identification algorithm based on Continuous Wavelet Transform combined with Particle Swarm Optimization of Otsu to segment image (CWTSPSO) method of interclass variance segmentation (CWT-IS), the ROC curves of the three groups remained above 0.9. Testing the dataset containing 102 peaks, the ROC curves of MSPD and CWT-IS were also high only in the case of high false discovery rate. The highest metric values of CWTSPSO were 0.976, 0.915, and 0.969, respectively, and the highest metric values of 1 set of MSPD and CWT-IS were 0.754 and 0.505. The results showed that the ROC curves of CWTSPSO in the 3 sets of dataset were not high. Using ROC curves and metric values as a criterion comparison to evaluate the performance of peak detection algorithms, the characteristic peak recognition performance was outstanding, which could achieve a higher correct rate while maintaining a lower false discovery rate, effectively detected more weak and overlapping peaks while detecting fewer false peaks, which was conducive to the enhancement of the spectral peak recognition rate and accuracy of the C4D signals. Conclusions This study provided a fast and accurate method for the identification of characteristic peaks in the spectrograms of ion signals detected by contactless conductivity, CWTSPSO could accurately identify the weak and overlapping peaks in the spectrograms of ion signals detected by contactless conductivity. The automatic identification algorithm of the spectrogram peaks of CWTSPSO would provide powerful support for the characterization and quantification of the signals of nutrient ions detected by contactless conductivity in agricultural soils and would further strengthen the precision of soil fertilization and crop growth management fertilization and crop growth management.

Key words: contactless conductivity detection, continuous wavelet transform, particle swarm optimization algorithm, Otsu algorithm, peak identification

中图分类号: