非色散红外吸收CO2传感器的SSA-BP神经网络温度补偿算法

Sparrow Search Algorithm–Back Propagation Neural Network Temperature Compensation Algorithm for Non-dispersive Infrared Absorption CO2 Sensor

  • 摘要: 针对传统的非色散红外吸收CO2传感器测量精度低、易受温度影响等问题,文中结合麻雀搜索算法优化反向传播(Sparrow Search Algorithm-Back Propagation, SSA-BP)神经网络模型,进行传感器的温度补偿算法研究。采用低成本的光源和热释电探测器,以Teensy4.0开源硬软件为开发平台,基于双通道差分技术和数字锁相研制了非色散红外吸收CO2传感器。为弥补全量程(0~10000 μmol·mol-1)检测范围的非线性拟合误差,采用高、低浓度分段拟合方法,拟合结果表明,其高、低浓度拟合相关系数分别为0.99983和0.99979,最大检测误差分别为0.86%和4.3%;并对1100 μmol·mol-1的CO2标气进行长达1 h稳定性实验,其相对误差为1.2%。最后,基于反向传播神经网络与SSA-BP混合神经网络模型,进行了两种温度补偿模型对比验证,结果表明,基于SSA-BP混合神经网络的温度补偿模型全量程最大误差为2.3%,可以满足植被的固碳检测要求。

     

    Abstract: To address the issues of low measurement accuracy and susceptibility to temperature effects in traditional non-dispersive infrared absorption CO2 sensors, the temperature compensation algorithm of the sensor was investigated by combining it with the sparrow search algorithm–back propagation (SSA-BP) neural network model. Using a low-cost light source and pyroelectric detector and employing Teensy 4.0 open source hardware and software as the development platform, non-dispersive infrared absorption CO2 sensors were developed based on dual-channel differential technology and a digital phase-locked method. To compensate for the nonlinear fitting error in the full-scale (0-10000 μmol·mol-1) detection range, the high and low concentration segmented fitting method was adopted. The fitting results showed that the correlation coefficients for high and low concentrations were 0.99983 and 0.99979, and the corresponding maximum detection errors were 0.86% and 4.3%, respectively. A stability experiment was carried out on a 1100 μmol·mol-1 CO2 standard gas for 1 h, yielding a relative error of 1.2%. Finally, based on the back propagation neural network and SSA-BP hybrid neural network model, a comparative verification of the two temperature compensation models was carried out. The results showed that the maximum error of the temperature compensation model based on the SSA-BP hybrid neural network was 2.3% over the full range, which satisfied the requirements of vegetation carbon fixation detection.

     

/

返回文章
返回