大气与环境光学学报 ›› 2026, Vol. 21 ›› Issue (2): 343-352.doi: 10.3969/j.issn.1673-6141.2026.02.013

• 光电技术 • 上一篇    

非相干宽带腔增强吸收光谱装置软件系统设计

汪晨峰 1,2, 司福祺 2*, 赵敏杰 2, 江宇 2, 沈晓东 2   

  1. 1 安徽大学物质科学与信息技术研究院, 安徽 合肥 230601; 2 中国科学院合肥物质科学研究院安徽光学精密机械研究所, 中国科学院环境光学与技术重点实验室, 安徽 合肥 230031
  • 收稿日期:2023-01-10 修回日期:2023-02-19 出版日期:2026-03-28 发布日期:2026-03-27
  • 通讯作者: E-mail: sifuqi@aiofm.ac.cn E-mail:sifuqi@aiofm.ac.cn
  • 作者简介:汪晨峰 (1997- ), 安徽合肥人, 硕士研究生, 主要从事非相干宽带腔增强软件系统方面的研究。E-mail: cfwang@aiofm.ac.cn
  • 基金资助:
    国家重点研发计划 (2019YFC0214702)

Software design for incoherent broadband cavity-enhanced absorption spectroscopy system

WANG Chenfeng 1,2, SI Fuqi 2*, ZHAO Minjie 2, JIANG Yu 2, SHEN Xiaodong 2   

  1. 1 Institutes of Physical Science and Information Technology, Anhui University, Hefei 230601, China; 2 Key Laboratory of Environment Optics and Technology, Anhui Institute of Optics and Fine Mechanics, HFIPS, Chinese Academy of Sciences, Hefei 230031, China
  • Received:2023-01-10 Revised:2023-02-19 Online:2026-03-28 Published:2026-03-27
  • Supported by:
    National Key Research and Development Program

摘要: 非相干宽带腔增强吸收光谱 (IBBCEAS) 技术具有灵敏度高、响应速度快、实时监测能力强等优势,是环境监 测和预警领域的一项非常重要的技术, 但其定标反演过程复杂。本文基于Python 语言的PyQt5 与Django 框架, 设计 了基于IBBCEAS技术的甲醛质量浓度测量装置的软件系统 (SOAFIBBCEAS), 将定标和反演流程整合在一套软件系 统中, 为快速定标IBBCEAS系统参数、实时检测与可视化提供软件支持。该软件系统中的镜面反射率标定算法采用 瑞利散射差异法, 并针对弱光环境进行了光谱预处理, 以获得更准确的光谱数据, 因此该软件在弱光环境下也能获得 平滑的镜面反射率; 软件中的质量浓度反演算法基于奇异值分解 (SVD),反演得到的质量浓度值与配气系统稀释比例 的R2达到0.9991; 软件中的检测限分析算法基于Allan 方差分析, 基于算法原理, 软件可自动采集光谱数据并对数据 进行分组, 对分组得到的数据计算Allan 方差与标准差, 通过与开源数据集进行对比, 开源数据集提供的检测限为 0.0246 μg/m³, 软件计算结果为0.0245 μg/m³, 两者具有较高的一致性。测试结果表明该软件能够采集光谱仪数据, 并 能准确完成非相干宽带腔增强吸收光谱系统的定标、反演、检测限分析等功能。

关键词: 非相干宽带腔增强吸收光谱技术, 软件系统, 瑞利散射差异法, 奇异值分解

Abstract: Objective Formaldehyde, a key Group 1 carcinogenic pollutant, is the core driver of atmospheric photochemical pollution. With the increasing severity of global atmospheric environmental pollution and the growing public concern about air quality and health risks, the demand for high-precision real-time monitoring of atmospheric formaldehyde continues to significantly increase. Incoherent broadband cavity-enhanced absorption spectroscopy (IBBCEAS) has prominent advantages of high sensitivity and fast response in trace formaldehyde detection, but its practical engineering application is severely limited by the complex calibration and inversion workflow, as well as the long-term lack of a dedicated full-process integrated software systems. This study aims to develop a special software system for IBBCEAS-based formaldehyde mass concentration measurement device, to integrate the full core workflow of IBBCEAS measurement, realize rapid calibration of system parameters, real-time accurate formaldehyde detection, automated system performance evaluation and intuitive data visualization, and provide stable, reliable and efficient software support for the popularization and practical application of IBBCEAS technology in environmental formaldehyde monitoring. Methods We focus on the formaldehyde mass concentration measurement device based on IBBCEAS, and present a dedicated full-process software system spectral optimization and analysis of formaldehyde using IBBCEAS (SOAFIBBCEAS) for IBBCEAS data processing and analysis. Firstly, based on the spectral characteristics of IBBCEAS in the ultraviolet band and the requirement for high-precision mirror reflectance calibration, the Rayleigh scattering differential method is employed to design a specular reflectance calibration module, and at the same time, spectral preprocessing including automatic dark spectrum subtraction and multi-time spectral averaging is introduced, thereby improving the accuracy of spectral data in low-light environments and realizing smooth and reliable calibration of the reflectances of highreflection mirrors. Secondly, by adopting the singular value decomposition (SVD) algorithm, a non-homogeneous linear equation set for concentration inversion is constructed based on the least square fitting principle of gas absorption crosssection and measured absorption coefficient, thus realizing efficient and high-precision inversion of formaldehyde mass concentration without relying on initial iteration parameters. Finally, based on the Allan variance analysis principle usually used for system performance evaluation, an automated detection limit analysis module is established utilizing automatic spectral data acquisition, grouping statistics and variance calculation. Meanwhile, based on Python language, PyQt5 and Django frameworks, the upper computer data acquisition software and data processing system are developed with Python- Seabreeze library for spectrometer communication and MySQL database for efficient data storage, completing the integration of all core functions of IBBCEAS measurement, and achieving full-process automated processing, real-time detection and visual display of formaldehyde spectral data. Results and Discussion We conduct systematic validation and comparative analysis for the functional integrity, algorithm accuracy and operational performance of the proposed SOAFIBBCEAS software system, by adopting measured data from Maya2000Pro spectrometer, gradient concentration experimental data from standard gas distribution system, and public opensource dataset. Regarding data storage performance, a comparison is made between the MySQL-based storage scheme and traditional file storage schemes. For 1000 simulated storage operations, the proposed scheme reduces the total processing time from 66 s of the traditional approach to 39 s, achieving a 40.9% improvement in storage efficiency, and effectively eliminating the latency caused by frequent file operations. In terms of algorithm accuracy, the correlation coefficient R² between the formaldehyde mass concentration values inverted by the SVD-based algorithm and the dilution ratio of the gas distribution system is 0.9991, showing excellent linearity and inversion precision. For the detection limit analysis module, the calculation result of the proposed SOAFIBBCEAS software for the open-source dataset is 0.0245 μg/m³, which is highly consistent with the reference value of 0.0246 μg/m³, with a relative deviation within 0.41%. Furthermore, the proposed SOAFIBBCEAS software realizes smooth specular reflectance calibration in low-light ultraviolet environments, and stably completes the full workflow of spectrometer data acquisition, calibration, inversion and detection limit analysis, fully meeting the practical application requirements of IBBCEAS-based formaldehyde environmental monitoring. Conclusions To address the complex calibration and inversion workflows, as well as the long-term lack of a dedicated fullprocess integrated software system for IBBCEAS-based atmospheric formaldehyde monitoring, this study developes a specialized SOAFIBBCEAS software system based on PyQt5 and Django frameworks. Key achievements of this study include: accurate and smooth mirror reflectivity calibration under low-light ultraviolet conditions by combining Rayleigh scattering differential method with targeted spectral preprocessing; high-accuracy formaldehyde mass concentration inversion with a correlation coefficient R² of 0.9991 using the SVD-based algorithm; reliable detection limit analysis with results highly consistent with the open-source reference dataset; and 40.9% improved data storage efficiency with the optimized MySQL-based storage scheme. The system adopts a modular architecture to separate upper computer acquisition from data processing, and a multi-thread design to ensure stable and continuous spectral acquisition without interface jams. The validation results confirm that SOAFIBBCEAS runs stably and completes the full IBBCEAS measurement workflow accurately, fully meeting the practical application requirements of environmental formaldehyde monitoring. In the future, this system can be extended to IBBCEAS detection of other atmospheric trace gases, providing a universal software solution for trace gas monitoring based on this technology.

Key words: incoherent broadband cavity-enhanced absorption spectroscopy, software system, Rayleigh scattering difference approach, singular value decomposition

中图分类号: