基于PSO–BP–GRU算法的激光CO2分析仪气压补偿及浓度演化研究

Pressure compensation and concentration dynamic evolution prediction for infrared trace CO2 gas based on a PSO–BP–GRU Algorithm

  • 摘要: 激光光谱分析法是工业环境气体定量分析的重要手段之一,但当前激光气体检测仪的测量精度受环境压力变化影响较大,导致检测数据在不同压力条件下偏离实际气体浓度。通过搭建工业环境气体压力补偿实验平台,在60~140 kPa范围内进行多组重复实验,发现CO2气体传感器在负压条件下测量值大于标气浓度,正压条件下测量值小于标气浓度。为提高激光气体传感器的精度,选择了反向传播神经网络算法(Back Propagation,BP)和粒子群算法(Particle Swarm Optimization,PSO)相结合的压力补偿算法,并结合门控循环单元(Gated Recurrent Unit,GRU)对补偿后的数据进行预测,提出了一种改进并结合的PSO–BP–GRU优化算法,BP用于静态非线性映射,PSO用于优化BP神经网络的权重和阈值,PSO–BP用于提升全局搜索与补偿精度,使用PSO–BP算法对原始信号(如受扰动的浓度或压力值)进行非线性补偿或特征增强处理,将其作为预处理模块接入GRU,使GRU接收到的是质量更高的输入提高GRU的学习效率和预测精度,三者协同构建了适应CO2浓度多压力段测量的多层次补偿与预测模型。使用反向传播神经网络降低传感器数据误差,初步补偿后的CO2误差降至2.6×10−5,但由于参数可移植性较差,个别数据误差较大。进一步使用粒子群算法优化反向传播神经网络的参数后,补偿效果显著提升,4种真实值与测量值最大绝对误差2.288×10−6,最小绝对误差1.2×10−8。最终结合GRU进行气体浓度预测,预测值与实际值之间的归一化均方根误差(RMSE)均小于0.014,归一化平均绝对误差(MAE)均小于0.020,实验结果表明,PSO–BP–GRU算法能够有效提高激光气体传感器的测量精度,成功消除环境压力对测量结果的影响。同时,基于PSO–BP–GRU算法的补偿及预测模型研发了TZX–7000A系列的大气工业环境气体在线分析系统,实现了CO2、SO2、NO2、NO、CO、CH4、NH3、H2S等10种气体的原位定量分析,提出了可用于化工园区、煤炭开采、燃气运输等领域的应用模型及方法,为工业环境气体监测预警提供了更为可靠和精准的解决方案。

     

    Abstract: Laser spectroscopic analysis is one of the most important techniques for quantitative gas analysis in industrial environments. However, the measurement accuracy of current laser-based gas analyzers is strongly affected by variations in ambient pressure, leading to deviations of the detected data from the true gas concentration under different pressure conditions. To address this issue, an industrial gas pressure-compensation experimental platform was constructed, and multiple repeated experiments were conducted within the pressure range of 60–140 kPa. The results revealed that the measured CO2 concentrations were higher than the standard gas concentration under negative pressure and lower under positive pressure. To improve the accuracy of laser gas sensors, a pressure compensation algorithm combining the Back Propagation (BP) neural network and Particle Swarm Optimization (PSO) is selected, and the Gated Recurrent Unit (GRU) is adopted to predict the compensated data. On this basis, an improved integrated PSO–BP–GRU optimization algorithm is proposed. The BP network is utilized for static nonlinear mapping, while PSO is applied to optimize the weights and thresholds of the BP neural network; the PSO–BP hybrid algorithm thus enhances global search performance and compensation accuracy. The PSO–BP algorithm is employed to conduct nonlinear compensation and feature enhancement on raw signals (such as disturbed concentration or pressure values), acting as a preprocessing module connected to the GRU network. This provides the GRU with higher-quality input data, further improving its learning efficiency and prediction accuracy. Through the collaborative integration of the three algorithms, a multi-level compensation and prediction model adaptable to multi-pressure segment measurement of CO2 concentration is constructed. The BP neural network was first employed to reduce the raw sensor errors, lowering the CO2 measurement deviation to 2.6×10−5 after initial compensation. However, due to limited parameter generalization, some data points still exhibited large deviations. Subsequently, the PSO algorithm was introduced to optimize the BP network parameters, resulting in a significant improvement in compensation performance: the maximum absolute error between the measured and true concentrations among four datasets decreased to 2.288×10−6, and the minimum absolute error reached 1.2×10−8. Finally, by integrating GRU for gas concentration prediction, the normalized root mean square error (RMSE) and normalized mean absolute error (MAE) between the predicted and actual values were both less than 0.014 and 0.020, respectively. Experimental results demonstrate that the PSO–BP–GRU algorithm effectively enhances the measurement accuracy of laser gas sensors and successfully eliminates the influence of ambient pressure on detection results. Based on this compensation and prediction model, an industrial online gas analysis system (TZX−7000A series) was developed, enabling in-situ quantitative detection of ten gases including CO2, SO2, NO2, NO, CO, CH4, NH3, and H2S. The proposed model and method can be applied to chemical industrial parks, coal mining, and gas transportation.

     

/

返回文章
返回