A dual-branch qualitative-quantitative combined inversion method and system for btx infrared spectrum under multi-source interference

By constructing a dual-branch joint inversion model, the challenges of component discrimination and concentration separation in BTEX six-component infrared detection were solved, enabling the simultaneous output of component presence state and concentration values ​​under multi-source interference conditions, thus improving the stability and interpretability of the detection.

CN123155474APending Publication Date: 2026-11-24NANJING UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611352545.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-02
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing technologies face challenges in component discrimination and concentration separation in BTEX six-component infrared detection, especially under multi-source interference conditions. Traditional methods struggle to simultaneously output the presence state and concentration of components, and deep learning methods lack stability under complex conditions.

Method used

A dual-branch joint inversion model is constructed, including a task discrimination branch and a physical purification branch. Task discrimination and physical characteristics are extracted from the same mixed infrared absorbance spectrum. The existence state and concentration values ​​of components are output through feature fusion. The model is trained with multi-source interference spectral samples to improve stability.

Benefits of technology

It enables the simultaneous output of the presence state and concentration values ​​of the six BTEX components under multi-source interference, improving the stability and interpretability of component identification and concentration inversion, and reducing the interpretive ambiguity of concentration output in low-concentration or undetected samples.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123155474A_ABST
    Figure CN123155474A_ABST
Patent Text Reader

Abstract

This invention discloses a dual-branch qualitative-quantitative joint inversion method and system for BTEX infrared spectroscopy under multi-source interference. The method includes: acquiring the infrared absorbance spectrum of the gas sample to be tested; inputting a pre-trained dual-branch joint inversion model, which includes a task discrimination branch and a physical purification branch; extracting task discrimination characteristics related to the presence state of BTEX components through the task discrimination branch, and extracting physical characteristics related to the absorption characteristics of BTEX target components through the physical purification branch; fusing the two types of characteristics, and simultaneously outputting the presence state identification results and concentration quantitative inversion results of six BTEX target components through a readout network. This invention, through dual-branch feature extraction and CI / CR joint output, enables the simultaneous determination of the presence and concentration values ​​of benzene, toluene, ethylbenzene, o-xylene, m-xylene, and para-xylene from the same mixed infrared spectrum, improving the analytical stability under conditions of target peak overlap and multi-source interference.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of ambient air monitoring, volatile organic compound detection, infrared absorption spectroscopy analysis, and artificial intelligence spectral inversion technology, specifically to a dual-branch qualitative-quantitative joint inversion method and system for BTEX infrared spectroscopy under multi-source interference. Background Technology

[0002] BTEX includes six aromatic hydrocarbon volatile organic compounds: benzene, toluene, ethylbenzene, o-xylene, m-xylene, and p-xylene. These are common pollutant components in ambient air and industrial emission monitoring. Infrared absorption spectroscopy provides molecular vibrational absorption information and is characterized by its speed, non-destructive nature, and ability to simultaneously detect multiple components. It has been used for gaseous pollutant identification and concentration analysis. Traditional infrared spectroscopy analysis methods typically include quantitative calibration methods based on characteristic absorption peaks, as well as chemometric regression methods such as partial least squares regression, principal component regression, and support vector regression. These methods can provide concentration estimates when the target component set is well-defined, the types of interference are limited, and the instrument conditions are relatively stable. In recent years, machine learning and deep learning methods have been increasingly used for gas infrared spectral identification and concentration inversion. Data-driven models can learn nonlinear spectral characteristics from overlapping absorption spectra of multiple components and are used for gas component identification or concentration prediction.

[0003] However, existing technologies for the six-component infrared detection of BTEX still have the following shortcomings: BTEX compounds are all aromatic hydrocarbons with similar molecular structures, resulting in overlapping infrared absorption characteristics. The spectral differences between ethylbenzene and the three xylene isomers are even more subtle, increasing the difficulty of component identification and concentration separation. Actual infrared monitoring samples may also be affected by multi-source interference, including background gas absorption such as H2O and CO2, as well as absorption contributions from other organic or inorganic gases that may coexist with BTEX but are not explicitly modeled by the target model. Additionally, instrument measurement effects such as baseline drift, random noise, optical path fluctuations, wavenumber shifts, instrument response variations, and resolution differences also contribute. These factors increase the uncertainty of target component identification and concentration inversion. When unmodeled non-target absorptions, background changes, or severe peak overlap exist in the sample, traditional methods may misinterpret interfering absorptions or baseline changes as changes in target component concentration, leading to concentration bias or misjudgment. Furthermore, many quantitative inversion methods primarily output concentration results, lacking explicit component presence assessments; in low-concentration or undetectable samples, a single concentration output can easily lead to ambiguous interpretations of near-zero results. Furthermore, existing deep learning methods still have room for improvement in BTEX six-component infrared analysis: First, some methods focus on a single task in classification or regression, making it difficult to simultaneously output the presence and concentration of target components; second, the spectral similarity among the six BTEX target analytes is high, especially the subtle differences between ethylbenzene and xylene isomers, which places higher demands on the model's component resolution capability; third, non-target gaseous interference components and instrument measurement effects may jointly affect the model input, and the stability of existing methods for simultaneous qualitative-quantitative analysis of BTEX under multi-source interference conditions still needs to be improved. Summary of the Invention

[0004] Purpose of the Invention: The purpose of this invention is to provide a dual-branch qualitative-quantitative joint inversion method and system for BTEX infrared spectroscopy under multi-source interference. By constructing a dual-branch joint inversion model that includes a task discrimination branch and a physical purification branch, the existence state and concentration values ​​of six target components—benzene, toluene, ethylbenzene, o-xylene, m-xylene, and p-xylene—are simultaneously output from the same mixed infrared absorbance spectrum. This solves the problem of how to achieve synchronous and stable inversion of the existence state and concentration values ​​of the six BTEX components based on the same mixed infrared spectrum under multi-source interference conditions such as non-target gaseous interference components and instrument measurement effects.

[0005] Technical solution: The dual-branch qualitative-quantitative joint inversion method for BTEX infrared spectroscopy under multi-source interference described in this invention includes: Obtain the infrared absorbance spectrum of the gas sample to be tested; The infrared absorbance spectrum is input into a pre-trained dual-branch joint inversion model, which includes a task discrimination branch and a physical purification branch. The task discrimination branch extracts task discrimination characteristics related to the existence state of BTEX target components, component combination patterns, and differentiation of similar components; the physical purification branch extracts physical characteristics related to the absorption characteristics of BTEX target components. The task discrimination representation and the physical representation are fused to obtain the fused representation; Based on the fusion characterization, the readout network simultaneously outputs the component presence state identification results and concentration quantification inversion results of the BTEX target components.

[0006] Preferably, the BTEX is benzene, toluene, ethylbenzene, o-xylene, m-xylene, and p-xylene.

[0007] Preferably, the component presence status identification result is the probability of the BTEX target component being present, and the concentration quantification inversion result is the normalized concentration inversion value.

[0008] Preferably, the method further includes: renormalizing the normalized concentration inversion value by the concentration range of the corresponding component to obtain a concentration value in ppm; comparing the probability with a preset threshold to determine whether the BTEX target component exists, and post-processing the concentration value according to the determination result.

[0009] Preferably, the wavenumber range of the infrared absorbance spectrum is 640 cm⁻¹. -1 Up to 840 cm -1 .

[0010] Preferably, the task discrimination branch adopts any one of a one-dimensional convolutional network, a one-dimensional U-Net, or a residual network; the physical cleansing branch adopts any one of a one-dimensional U-Net, an autoencoder, or a denoising network.

[0011] Preferably, the dual-branch joint inversion model is trained using multi-source interference spectral samples, which include paired mixed absorbance spectra, BTEX target component net absorption spectra, component presence state labels, and concentration labels. The mixed absorbance spectra serve as input to the dual-branch joint inversion model, and the BTEX target component net absorption spectra are used for pre-training, spectral reconstruction constraints, and / or target absorption fidelity constraints of the physical purification branch, enabling the physical purification branch to learn physical characteristics related to the absorption peak shape, absorption area, and concentration changes of the BTEX target component.

[0012] Preferably, the readout network is a multilayer perceptron or a fully connected neural network.

[0013] The method uses infrared absorbance spectroscopy as model input, and the model output includes CI and CR results for six target components. CI represents component presence identification, used to determine the presence of the corresponding target component; CR represents quantitative concentration inversion, with the model's internal output being a normalized concentration inversion result. After inverse normalization to the corresponding component concentration range, the concentration value in ppm is obtained.

[0014] The method includes steps such as constructing multi-source interference spectral samples, spectral preprocessing, dual-branch feature extraction, feature fusion, CI / CR joint output, model training, and result generation. In the training phase, a joint inversion model is trained using multi-source interference spectral samples with CI and CR tags. In the application phase, the mixed infrared absorbance spectrum of the gas sample to be tested is input into the trained model, which outputs the presence state and concentration values ​​of six BTEX target components.

[0015] As one possible approach, the method includes: S1 Multi-Source Interference Spectral Sample Construction Multi-source interference spectral sample construction is used to generate labeled mixed spectral samples required for model training. This sample construction process is based on single-component absorption coefficient templates of six BTEX target components, while introducing background gas absorption, unknown or unmodeled absorption interference, and instrument measurement effects to simulate mixed absorption spectra under complex infrared monitoring conditions.

[0016] Specifically, the single-component absorption coefficient spectra of six target components—benzene, toluene, ethylbenzene, o-xylene, m-xylene, and p-xylene—within a selected wavenumber range are first obtained and then standardized to the same wavenumber grid. For each training sample, the presence and concentration of the six BTEX target components are determined based on the preset combination and concentration range of target components. For existing target components, their single-component absorption coefficients, concentrations, and optical path lengths are used to generate corresponding absorbance contributions; for non-existent target components, their concentrations are set to zero. The absorbance contributions of each target component are then superimposed to form the target component absorbance spectrum.

[0017] Based on the absorbance spectrum of the target component, background gas absorption and unknown or unmodeled absorption interference are further superimposed. H2O and CO2, as explicitly introduced background gas absorption components, can be represented by corresponding absorption coefficient templates. Background absorbance contributions are generated according to a set concentration range and optical path length, and then superimposed on the absorbance spectrum of the target component. For other organic or inorganic gas absorption contributions that may coexist with BTEX but are not individually modeled, random broad peaks, skewed peaks, Lorentz peaks, etc., can be simulated as unknown or unmodeled absorption interference.

[0018] Meanwhile, to reflect the instrument measurement effects during the infrared measurement process, this invention introduces perturbations such as optical path fluctuations, instrument line broadening, slight wavenumber axis drift, random noise, and baseline drift during sample construction. These perturbations can affect the absorbance spectra of the target component, the absorbance spectra of the background component, or a superposition of the two. After superposition of the target component, background gas absorption and unknown or unmodeled absorption interference, and perturbation by instrument measurement effects, a mixed absorbance spectrum for model input is obtained.

[0019] This results in paired samples comprising a mixed absorbance spectrum, a target net absorption spectrum, a background interference spectrum, a CI label, and a CR label. The mixed absorbance spectrum is used as input to the CI / CR joint inversion model; the target net absorption spectrum X_clean can be used for pre-training of the physical cleansing branch or as a target absorption reconstruction constraint. Optionally, in other embodiments, the background interference spectrum X_mask can also be used for auxiliary supervision of the non-target interference estimation process.

[0020] Through the above sample construction method, the training data simultaneously includes factors such as peak overlap between BTEX target components, H2O and CO2 background gas absorption, unknown or unmodeled absorption interference, baseline drift, random noise, optical path fluctuation, instrument line broadening and wavenumber drift, so that the model can learn the correspondence between BTEX component identification and concentration inversion under multi-source interference conditions during the training phase.

[0021] S2 Spectral Preprocessing Spectral preprocessing is used to organize the spectra of training samples and test samples into a unified model input format. The preprocessing process includes selecting a wavenumber range containing BTEX characteristic absorption information, unifying the wavenumber axes, interpolating, or resampling spectra from different sources, and uniformly representing the spectra as absorbance spectra. For spectra that have already undergone absorbance conversion, wavenumber range truncation, normalization, or standardization can be performed directly. For spectra with outliers, missing points, or obvious measurement anomalies, outlier handling or removal can be performed.

[0022] The training and inference phases employ the same preprocessing method to ensure that the spectra of the test samples are at the same input scale and wavenumber grid as the training samples. Each preprocessed spectrum forms a fixed-length one-dimensional spectral vector, which serves as the input to the subsequent model.

[0023] S3 Dual-branch Feature Extraction The dual-branch feature extraction module is used to extract two complementary features from the same mixed absorbance spectrum. This module includes a task discrimination branch and a physical purification branch.

[0024] The task discrimination branch takes mixed absorbance spectra as input and extracts task discrimination features related to the presence state of BTEX components, component combination patterns, and differentiation of similar components. This branch can employ one-dimensional convolutional networks, one-dimensional U-Nets, residual networks, or other feature extraction networks suitable for one-dimensional spectral sequences.

[0025] The physical cleansing branch also takes the mixed absorbance spectrum as input to extract physical characteristics related to the absorption features and concentration changes of the target component. This branch is preferably pre-trained using the target net absorption spectrum X_clean or constrained by target absorption reconstruction, enabling it to learn to retain target absorption features from the mixed spectrum and reduce the influence of non-target interference. Alternatively, in other embodiments, the interference background spectrum X_mask or relevant physical constraints can be used to assist in supervising the non-target interference estimation process. The physical cleansing branch can employ a one-dimensional U-Net, an autoencoder, a denoising network, or other network structures suitable for spectral cleansing.

[0026] The task discrimination branch focuses on learning characterizations that facilitate component identification and differentiation of similar components, while the physical purification branch focuses on learning characterizations related to changes in target absorption spectra and concentration. These two types of characterizations describe the same mixed spectrum from both task discrimination and target absorption perspectives, providing complementary information for subsequent joint inversion.

[0027] S4 Feature Fusion and CI / CR Joint Output The feature fusion module is used to fuse the representations output by the task discrimination branch and the physical cleanup branch. The fusion method can be concatenation fusion, weighted fusion, gated fusion, or attention fusion. The fused representation is input into the readout network, which simultaneously outputs the CI and CR results for the six BTEX target components.

[0028] In a preferred embodiment, twelve values ​​are read from the network output. Six of these values ​​are CI (Concentration Indicators), corresponding to the presence probabilities of benzene, toluene, ethylbenzene, o-xylene, m-xylene, and p-xylene, respectively. The other six values ​​are CR (Concentration Retrieval Indicators), corresponding to the normalized concentration inversion values ​​of the six target components. After inversion of the corresponding component concentration range, the concentration value in ppm is obtained. For each target component, the system determines its presence based on the CI output and provides a ppm concentration value based on the inversion-normalized CR result. If the CI output of a target component is lower than a set threshold, the component can be marked as undetectable, low confidence, or requiring verification; if its CI output reaches the set threshold, the corresponding inversion-normalized concentration value of the component is output.

[0029] By combining CI / CR outputs, this invention enables the model to simultaneously provide two types of results—"presence" and "concentration"—under the same mixed infrared spectral input. This avoids the problems of single classification methods being unable to quantify and single regression methods lacking existence judgment, and reduces the interpretative ambiguity of near-zero concentration outputs in low-concentration or undetected samples.

[0030] S5 model training The model training process utilizes mixed absorbance spectra, CI labels, and CR labels from multi-source interference spectral samples to train a joint inversion model. During training, the mixed absorbance spectra are input into the dual-branch model, which obtains two types of representations through a task discrimination branch and a physical cleansing branch. After feature fusion and readout, the model outputs six-dimensional CI results and six-dimensional CR results.

[0031] The model training loss includes component presence recognition loss and concentration inversion loss. Component presence recognition loss is used to constrain the CI output to be consistent with the CI label, while concentration inversion loss is used to constrain the CR output to be consistent with the normalized CR label. The two types of losses are combined according to a set weight to form a joint loss function. Optionally, if the physical purification branch outputs the target net absorption spectrum, a spectral reconstruction loss or a target absorption fidelity loss can be added to enhance the physical purification branch's ability to preserve the target absorption characteristics. In other embodiments, if the physical purification branch or auxiliary branch outputs interfering background spectra, an auxiliary supervision loss related to the interfering background spectra can also be added.

[0032] The training samples can be divided into a training set, a validation set, and a test set. The training set is used to update model parameters, the validation set is used to select the model training epochs, output thresholds, or model parameters, and the test set is used for final performance evaluation. After the model training is completed, the model parameters with the best validation set metrics are saved and used for inference on subsequent test samples.

[0033] S6 Verification of Bilateral Complementarity Optionally, after model training is completed, this invention can also verify the complementary effects of the task discrimination branch and the physical purification branch. Specifically, the task discrimination representation output by the task discrimination branch and the physical representation output by the physical purification branch are extracted. Through one or more of the following verification methods that can evaluate the contribution of different branches, the differences in the roles of the two types of representations in component presence state identification, concentration quantification inversion, differentiation of similar components, and low concentration boundary judgment can be evaluated.

[0034] The above-mentioned complementary effects demonstrate that the task discrimination branch primarily provides supplementary discrimination information related to the component's state of existence, component combination patterns, and boundaries of similar components, while the physical purification branch primarily provides physical characterization related to changes in the BTEX target absorption peak shape, absorption area, and concentration. These two types of characterization are fused and used together in the CI / CR joint output, thereby improving the stability, interpretability, and reliability of the qualitative-quantitative joint inversion of the six BTEX components under multi-source interference conditions.

[0035] S7 Reasoning and Result Generation In the application phase, the mixed infrared absorbance spectrum of the gas sample to be tested is acquired, and a model input spectral vector is formed using the same preprocessing method as in the training phase. This spectral vector is then input into the trained dual-branch joint inversion model, which outputs the CI and CR results for six BTEX target components. The system determines the presence state of each target component based on the CI results and performs inverse normalization and thresholding post-processing on the CR normalized output to generate the corresponding ppm unit concentration value.

[0036] The final results can include the presence status of the six BTEX target components, the denormalized ppm concentration values, low confidence alerts, and abnormal results requiring verification. Results can be output as tables, data files, monitoring reports, or interface data, and can be used in scenarios such as ambient air monitoring, industrial emission monitoring, industrial park or plant boundary screening, infrared rapid screening, and subsequent confirmatory analysis.

[0037] The dual-branch qualitative-quantitative joint inversion system for BTEX infrared spectroscopy under multi-source interference described in this invention includes: The spectrum acquisition module is used to acquire the infrared absorbance spectrum of the gas sample to be tested; A dual-branch joint inversion model, comprising a task discrimination branch and a physical purification branch, wherein the task discrimination branch is used to extract task discrimination characteristics related to the existence state of BTEX target components, component combination patterns, and differentiation of similar components, and the physical purification branch is used to extract physical characteristics related to the absorption characteristics of BTEX target components. A feature fusion module is used to fuse the task discrimination representation and the physical representation to obtain a fused representation; The readout module is used to simultaneously output the component presence state identification result and concentration quantification inversion result of the BTEX target component based on the fusion characterization.

[0038] The computer-readable storage medium of the present invention stores a computer program on which a processor executes the dual-branch qualitative-quantitative joint inversion method for BTEX infrared spectroscopy under multi-source interference.

[0039] The device of the present invention includes an instruction memory for storing instructions and an operation processor for executing the dual-branch qualitative-quantitative joint inversion method for BTEX infrared spectroscopy under multi-source interference.

[0040] This invention can be used in infrared spectral data analysis scenarios where there is a need for BTEX monitoring or screening, including ambient air monitoring, industrial emission monitoring, petrochemical parks and oil storage and transportation areas monitoring, solvent use-related scenario monitoring, and environmental emergency screening.

[0041] Beneficial effects: Compared with the prior art, the present invention has the following significant advantages: First, this invention employs a combined CI / CR output method, integrating component presence state identification and concentration quantification into the same model framework. For the same mixed infrared spectrum, the system can simultaneously output the presence state and concentration results of the six target components in BTEX. Compared to methods that only perform component identification, this invention can further provide quantitative concentration information; compared to methods that only perform concentration regression, this invention can simultaneously provide a determination of the component presence state. For samples with low concentrations or no detection, the system can also process the corresponding components as undetectable or have their concentrations set to zero based on the CI output, thereby reducing the risk of interpretation ambiguity at near-zero outputs in single concentration quantification methods.

[0042] Second, this invention constructs a multi-source interference spectral sample that includes target components, background gas absorption, unknown or unmodeled absorption interference, and instrument measurement effects. This sample construction method allows the model to be exposed to complex variations during the training phase, such as BTEX target peak overlap, H2O and CO2 background absorption, random peak interference, baseline drift, random noise, optical path fluctuations, instrument line shape changes, and wavenumber drift, thereby improving the model's adaptability to complex infrared monitoring conditions.

[0043] Third, this invention integrates task discrimination characterization with target absorption correlation characterization, enabling the model to simultaneously utilize component combination discrimination information and target absorption intensity information for joint inversion. This technical feature helps alleviate the analytical difficulties caused by the similarity of the six BTEX components, the overlap of target absorption peaks, and the subtle differences between ethylbenzene and xylene isomers, thereby improving the ability to distinguish similar aromatic hydrocarbon components and the stability of concentration inversion.

[0044] Fourth, this invention establishes a complete data analysis process from infrared absorbance spectrum input, multi-source interference sample training, dual-branch joint inversion to result output. This process does not rely on manual peak selection or single characteristic peak fitting, and can automatically analyze multi-component mixed infrared spectra, which is beneficial to improving the automation level of BTEX infrared spectral data processing and facilitates integration with infrared detection equipment, environmental monitoring platforms, or laboratory data management systems.

[0045] Fifth, this invention can verify the complementary effects of the task discrimination branch and the physical purification branch, improving the interpretability and reliability of the joint inversion model. In a preferred embodiment, the differences in the roles of task discrimination representation and physical purification representation in component presence state identification, quantitative concentration inversion, differentiation of similar components, and low-concentration boundary judgment can be evaluated through model variant comparison, branch masking verification, output sensitivity analysis, characterization spatial relationship analysis, spectral concept decoding analysis, or other methods that can evaluate the contribution of different branches. This verification process demonstrates that the two types of branches are not simply repetitive, but rather provide task discrimination information and target absorption-related physical information respectively, thus providing a characterization-level interpretive basis for the output results of the dual-branch fusion model. Therefore, this invention can not only output qualitative and quantitative results for the six BTEX components, but also enhance the interpretability, verifiability, and reliability of the model in complex infrared monitoring scenarios. Attached Figure Description

[0046] Figure 1 This is a schematic diagram of the overall process of qualitative and quantitative joint inversion of BTEX infrared spectroscopy under multi-source interference in this invention.

[0047] Figure 2 This is a schematic diagram of the process for constructing multi-source interference spectral samples.

[0048] Figure 3 This is a schematic diagram of the dual-branch CI / CR joint inversion model structure.

[0049] Figure 4 This is a confusion matrix diagram of each component of the BTEX for the two-branch joint inversion model on the test set.

[0050] Figure 5 This is a scatter plot of the concentration predictions and actual values ​​of the two-branch joint inversion model on the test set. Detailed Implementation

[0051] The preferred embodiments of the present invention will be further described below with reference to the accompanying drawings. It should be understood that the following embodiments are only for illustrating the technical solutions of the present invention and are not intended to limit the scope of protection of the present invention. Without departing from the technical concept of the present invention, those skilled in the art can adaptively adjust the relevant parameters according to the type of infrared instrument, spectral resolution, target concentration range, application scenario, and data scale.

[0052] Please see Figure 1This invention provides a BTEX infrared spectroscopy qualitative-quantitative joint inversion system and method under multi-source interference. The method takes the mixed infrared absorbance spectrum of the gas sample as input, and after spectral input preprocessing, inputs it into a trained dual-branch joint inversion model. The model output includes CI and CR results for six BTEX target components, where CI indicates the presence of benzene, toluene, ethylbenzene, o-xylene, m-xylene, and p-xylene, and CR indicates the concentration inversion values ​​of the above six components. The system determines the presence status of the components based on the CI results and generates the concentration output of the six BTEX target components by combining the CR results.

[0053] This invention includes a training phase and an application phase. In the training phase, multi-source interference spectral samples are constructed to obtain mixed absorbance spectra, target net absorption spectra, interference background spectra, and corresponding CI and CR tags. These samples are then used to train a dual-branch joint inversion model. In the application phase, the mixed infrared absorbance spectrum of the sample to be tested is input into the trained model, which outputs the presence and concentration results of the six BTEX components.

[0054] Example 1: Construction of Multi-Source Interference Spectral Samples Please see Figure 2 This embodiment constructs multi-source interference infrared spectral samples for training, verification, and testing of the dual-branch joint inversion model. The samples are based on the single-component absorption spectra of six BTEX target components: benzene, toluene, ethylbenzene, o-xylene, m-xylene, and p-xylene. Background gas absorption, unknown or unmodeled absorption interference, and instrument measurement effects are also introduced to form mixed absorbance spectral samples with CI and CR tags.

[0055] In this embodiment, the absorption coefficient templates for the six target components—benzene, toluene, ethylbenzene, o-xylene, m-xylene, and p-xylene—were taken from the PNNL gas-phase quantitative infrared spectroscopy database; the background gas absorption data for H2O and CO2 were taken from the HITRAN database, and the absorption cross-sections under specified temperature and pressure conditions were obtained using HAPI or equivalent spectral calculation tools. Spectral data from different sources were unified to the same wavenumber grid after unit conversion, wavenumber range truncation, interpolation, or resampling.

[0056] This embodiment selects 640-840 cm. -1 The infrared fingerprint area was used as the analysis window, with a sampling interval of 0.25 cm. -1 A total of 801 equally spaced wavenumber points were formed. This band contains characteristic absorption information related to the BTEX aromatic ring substitution mode and is suitable for infrared spectral analysis of benzene, toluene, ethylbenzene, and three xylene isomers.

[0057] To cover the coexistence of different BTEX target components, this embodiment uses all 63 non-empty combinations of six BTEX target components, including all non-empty combinations where single, two, three, and even six components coexist. For each training sample, the presence status of the six BTEX target components is first determined. For present target components, the corresponding concentration is sampled within a preset concentration range; for non-present target components, their concentration is set to zero. In this embodiment, the concentration ranges of benzene, toluene, ethylbenzene, o-xylene, m-xylene, and para-xylene can be set to 0-1 ppm, 0-10 ppm, 0-2 ppm, 0-5 ppm, 0-5 ppm, and 0-5 ppm, respectively. These concentration ranges can be adjusted according to the target monitoring scenario, instrument sensitivity, or standard gas conditions. Each non-empty combination generates 2000 multi-source interference spectral samples, and the 63 non-empty combinations form a total of 126,000 samples.

[0058] After determining the concentration of the target components, the absorbance contribution of each target component is calculated according to the Beer-Lambert relation. Specifically, the absorbance coefficient template, concentration value, and optical path of the target component are multiplied to obtain the absorbance contribution of that component at each wavenumber point. When multiple target components are present simultaneously, the absorbance contributions of each target component are superimposed point by point along the wavenumber points to form the absorbance spectrum of the target component. In this embodiment, the nominal optical path is set to 100 m, but it can also be adjusted according to the actual optical path of the open optical path, gas cell, or other infrared measurement system.

[0059] Based on the absorbance spectrum of the target component, the absorption of a clearly modeled background gas is further superimposed. In this embodiment, H2O and CO2 are used as background gas absorbing components, and their absorbance contributions are generated according to the corresponding absorption template, set concentration, and optical path, and are superimposed with the absorbance spectrum of the target component. In one specific embodiment, the concentration ranges of H2O and CO2 can be set to 0-1000 ppm and 0-20 ppm, respectively, to simulate residual fluctuations in background gas or changes in background absorption under different environmental conditions.

[0060] In addition to the background gases explicitly modeled above, this embodiment also superimposes unknown or unmodeled absorption interferences onto the spectrum to simulate the absorption contributions of other organic or inorganic gases that may appear in actual infrared monitoring but are not modeled individually. These unknown or unmodeled absorption interferences can be simulated by Gaussian peaks, skewed Gaussian peaks, Lorentz peaks, or other absorption peak shapes. The peak position, peak width, intensity, and skewness of these random peak shapes can be randomly varied within a preset range to simulate other gaseous absorptions or broad peak interferences not included in the target component set. To avoid random interference completely masking the target absorption characteristics, an upper limit can be set on the total peak intensity of the unknown interferences.

[0061] Meanwhile, to simulate instrument measurement effects and disturbances during infrared measurement, this embodiment also introduces optical path fluctuations, instrument line broadening, slight wavenumber axis drift, baseline drift, and random noise. Optical path fluctuations can be achieved by changing the effective optical path; instrument line broadening can be achieved by convolving or smoothing the absorbance spectrum; slight wavenumber axis drift can be achieved by interpolating and shifting the spectral sampling axis; baseline drift can be achieved using a polynomial baseline or other low-frequency variation functions; and random noise can be achieved using additive noise.

[0062] After the above processing, each sample generates three corresponding types of spectral data. The first type is the target net absorption spectrum X_clean, which mainly includes the absorption contribution of the BTEX target components; the second type is the background interference spectrum X_mask, which mainly includes non-target contributions such as background gas absorption, unknown or unmodeled absorption interference, baseline perturbation, and random noise; the third type is the mixed absorbance spectrum X_mixed, which is composed of the target net absorption spectrum and the background interference spectrum, and is the actual input spectrum of the model. Each sample also generates two types of labels: CI label is a six-dimensional binary vector used to indicate the presence of the six BTEX target components; CR label is a six-dimensional concentration vector used to indicate the true concentration of the six BTEX target components. During training, the six-dimensional CR label is normalized according to the upper limit of the concentration corresponding to each target component, serving as the supervision label for the concentration quantification inversion task; the normalized CR result output by the model is inversely normalized by the upper limit of the concentration of the corresponding component to obtain the concentration value in ppm.

[0063] In this embodiment, X_mixed is used as the input to the two-branch joint inversion model; X_clean is used for the pre-training of the physical cleansing branch, enabling the branch to learn to retain BTEX target-related absorption information from the mixed spectrum; in other embodiments, X_mask can also be used for auxiliary supervision of non-target interference estimation or interference background separation.

[0064] Example 2: Two-branch joint inversion model Please see Figure 3 In this embodiment, a dual-branch joint inversion model is used to analyze the mixed infrared absorbance spectrum. The dual-branch joint inversion model includes a task discrimination branch, a physical purification branch, a feature fusion module, and a readout network. The model input is a mixed absorbance spectrum X_mixed with a length of 801, and the model output includes the component presence status identification results and concentration quantification inversion results of the six BTEX target components.

[0065] In this embodiment, both the task discrimination branch and the physical cleanup branch adopt a one-dimensional U-Net structure. Each one-dimensional U-Net has an input length of 801, an initial number of channels of 32, and the number of channels in the encoding stage is 32, 64, 128, and 256 respectively, with a convolutional kernel size of 11. The encoding stage uses three levels of max pooling, with a stride of 2 for each level. The decoding stage uses an upsampling structure corresponding to the encoding stage and fuses encoded features at corresponding scales through skip connections. A channel attention module is also included to enhance the model's ability to select and represent different spectral features.

[0066] The task discrimination branch takes the mixed absorbance spectrum X_mixed as input and extracts spectral information related to the presence state of BTEX components, component combination patterns, and differentiation of similar components using a one-dimensional U-Net. It then obtains a task discrimination representation T of length 801 through residual mapping. This branch participates in parameter updates during the dual-branch joint training process to form task-related representations beneficial for component presence state identification and differentiation of similar components. The physical cleansing branch also takes the mixed absorbance spectrum X_mixed as input. This branch is first pre-trained using the target net absorption spectrum X_clean obtained in Example 1, allowing it to learn the correspondence between the mixed spectrum and the BTEX target net absorption spectrum. After pre-training, the obtained pre-trained parameters are loaded during the dual-branch joint inversion model training process, while keeping the physical cleansing branch parameters fixed, thus obtaining a target net absorption-related physical representation P of length 801. The task discrimination representation T and the physical representation P describe the same mixed infrared absorbance spectrum from different perspectives. Among them, the task discrimination characterization focuses on retaining information related to the state of component existence, component combination pattern, and differentiation of similar components; the physical characterization focuses on retaining information related to the BTEX target absorption peak shape, absorption intensity, and concentration changes.

[0067] This embodiment uses a splicing method to fuse the two types of representations mentioned above, that is, connecting the 801-dimensional task discrimination representation T and the 801-dimensional physical representation P along the feature dimension to form a 1602-dimensional fused representation F. The fused representation F is input into the multilayer perceptron readout network, and the layer widths of the readout network are set sequentially as follows: 1602→832→384→160→12 Dropout is set to 0.

[0068] The readout network ultimately outputs a 12-dimensional result. The first six dimensions are CI outputs, representing the presence probabilities of benzene, toluene, ethylbenzene, o-xylene, m-xylene, and p-xylene, respectively. The last six dimensions are CR outputs, representing the normalized concentration inversion values ​​of the six target components. For any target component, the CI output is used to determine its presence, and the CR output is denormalized according to the upper limit of the target component's concentration to obtain the concentration value in ppm. Through the above dual-branch feature extraction and splicing fusion structure, the model can simultaneously utilize information related to component discrimination and information related to target absorption intensity to achieve the joint inversion of the presence status and concentration of the six BTEX target components.

[0069] Example 3: Model Training and Testing Based on the dual-branch joint inversion model described in Example 2, this example uses the multi-source interference infrared spectral samples constructed in Example 1 for model training. Before training, the physical purification branch is pre-trained using the target net absorption spectrum X_clean. During the dual-branch joint training phase, the pre-trained physical purification branch parameters are loaded and kept fixed, while the task discrimination branch and readout network participate in parameter updates. For each training sample, the mixed absorbance spectrum X_mixed is input into the dual-branch joint inversion model. The task discrimination branch and physical purification branch respectively form the task discrimination representation T and physical representation P. After fusion, they are input into the readout network to obtain the six-dimensional CI output and the six-dimensional normalized CR output. The CI output and the six-dimensional component existence state label are constrained by a binary cross-entropy loss, and the CR output and the normalized six-dimensional concentration label are constrained by a mean squared error loss. This example uses the following joint loss function: L = 1.0L BCE + 150.0L MSE Among them, L BCE This indicates that the six BTEX target components exhibit state-binary cross-entropy loss; L MSE This represents the mean squared error loss between the predicted normalized concentrations of the six BTEX target components and the normalized concentration labels.

[0070] To make the specific training method of this embodiment clearer, the model training and deployment configuration used in this embodiment is shown in the table below.

[0071] Table 1. Model Training and Deployment Configuration Table for This Embodiment

[0072] The model was trained according to the configuration shown in Table 1. During training, the learning rate was dynamically adjusted based on the validation set metrics, and an early stopping strategy was used to prevent overfitting. Training was stopped when the validation set monitoring metrics did not improve further for 20 consecutive training epochs, and the model parameters saved when the validation set metrics were optimal were restored.

[0073] In this embodiment, 126,000 samples are divided into a training set, a validation set, and an independent test set. Of these, 102,060 samples are used for model parameter training, 11,340 samples are used for early stopping and model selection during training, and 12,600 samples serve as the independent test set. The independent test set does not participate in network parameter updates, early stopping decisions, or model selection; it is only used for performance evaluation after training. After model training is complete, the mixed infrared absorbance spectra from the independent test set are input into the trained two-branch joint inversion model. In this embodiment, the CI threshold is set to 0.5. For any target component, when the CI output is below 0.5, the target component is determined as undetected, and the corresponding post-processing concentration is set to 0; when the CI output reaches or exceeds 0.5, the corresponding CR output is inversely normalized according to the upper limit of the component's concentration to obtain the concentration inversion result in ppm units.

[0074] On the independent test set, the model's CI set overlap rate was 0.975149, CI macro-average precision was 0.991110, CI macro-average recall was 0.981308, and CI macro-average F1 score was 0.986173. The mean absolute error of concentration retrieval after CI thresholding was 0.021422 ppm, the root mean square error was 0.045909 ppm, and the mean coefficient of determination for the six target components was 0.998466. Figure 4 shows the confusion matrix for each BTEX component; Figure 5 shows the correspondence between the predicted and actual concentrations of the six target components. These results demonstrate that the dual-branch joint retrieval model described in this embodiment can simultaneously identify the presence state and quantitatively retrieval the concentrations of the six BTEX target components under multi-source interference conditions, including background gas absorption, unknown or unmodeled absorption interference, and instrument measurement effects.

[0075] Example 4: Verification of Bi-branched Complementarity To further illustrate the functional division and complementary roles of the task discrimination branch and the physical purification branch in the dual-branch joint inversion model of this invention, this embodiment verifies the complementary role of the trained dual-branch joint inversion model. It should be understood that this embodiment is only used to illustrate the technical effects produced by the dual-branch structure of this invention and is not intended to limit the scope of protection of this invention; in other embodiments, the verification method and evaluation indicators can be adjusted according to the model structure, training data scale, evaluation indicators, or application scenarios.

[0076] The dual-branch joint inversion model comprises a task discrimination branch and a physical purification branch. The task discrimination branch extracts characterizations related to the presence state, component combination patterns, boundaries of similar components, and low-concentration presence information of the BTEX target components from the mixed infrared absorbance spectra. The physical purification branch extracts physical characterizations related to the peak shape, absorption area, and concentration changes of the BTEX target components under constraints of target net absorption spectrum reconstruction or target absorption fidelity. Because there is peak overlap among the six BTEX target components, and the spectral differences between ethylbenzene, o-xylene, m-xylene, and p-xylene are subtle, the information emphasis relied upon for component presence state identification and concentration quantitative inversion is not entirely the same under multi-source interference conditions. Component presence state identification relies more on the differences in spectral shape between different components, absorption peak combination relationships, coexistence state boundaries, and low-concentration presence information; concentration quantitative inversion relies more on the changes in target component absorption intensity, absorption area, and their continuous response with concentration changes. If only a single feature extraction path is used, the model needs to serve both component discrimination and concentration regression objectives simultaneously in the same characterization, which can easily lead to competition between discriminative information and quantitative amplitude information. This invention sets up a task discrimination branch and a physical purification branch, enabling the model to describe the same mixed spectrum from the perspectives of task discrimination and target absorption fidelity, respectively, and forming complementary representations in the feature fusion module.

[0077] To evaluate the dependence of the complete fusion model on the representations of different branches, in this embodiment, based on the model trained in Example 3, the two branches are masked while keeping the parameters of the task discrimination branch, the physical cleansing branch, and the fusion readout network unchanged. When verifying the information provided by the physical representation alone, the task discrimination representation T output by the task discrimination branch is replaced with the mean representation of the corresponding branch, while keeping the physical representation P unchanged; when verifying the information provided by the task discrimination representation alone, the physical representation P output by the physical cleansing branch is replaced with the mean representation of the corresponding branch, while keeping the task discrimination representation T unchanged. The fusion readout network is not retrained during the masking process, thus enabling the evaluation of the actual dependence of the trained fusion model on the output representations of the two branches. The concentration inversion mean absolute error after CI thresholding, the CI set overlap rate, and the CI macro-average F1 score are used to evaluate the model performance under different states, and the results are shown in the table below.

[0078] Table 2. Validation results of branch shading in bibranch complementarity.

[0079] As shown in Table 2, the complete fusion model achieves good overall performance in terms of concentration inversion error and component presence state identification index. When the task discrimination branch is masked and only the physical purification branch representation is retained, the average absolute error of concentration inversion increases from 0.021422 ppm to 0.053618 ppm, the CI set overlap rate decreases from 0.975149 to 0.726758, and the CI macro-average F1 value decreases from 0.986173 to 0.858763. These results indicate that physical representation can better preserve information related to target absorption intensity and concentration changes, but task discrimination representation still has a significant supplementary role in the coexistence state of complex components, the differentiation of similar components, and the identification of component presence states. When the physical purification branch is masked and only the task discrimination branch is retained, the mean absolute error of concentration inversion increases from 0.021422 ppm to 1.195108 ppm, indicating a significant increase in concentration inversion error. Simultaneously, the CI set overlap rate and the CI macro-average F1 value decrease to 0.529573 and 0.692826, respectively. These results demonstrate that quantitative concentration inversion relies on the target absorption intensity and absorption area information provided by the physical purification branch, and that the physical purification branch also supports the identification of the component's state of existence.

[0080] Therefore, the task discrimination branch and the physical purification branch are not simply duplicates in the dual-branch joint inversion model. The physical purification branch focuses on providing information related to changes in the target absorption intensity, absorption pattern, and concentration of BTEX, while the task discrimination branch further provides discrimination information related to the component's state of existence, component combination pattern, and differentiation of similar components. After fusion, the two types of characterization jointly serve the identification of the component's state of existence and the quantitative inversion of concentration, thereby improving the stability of the joint inversion of the six components of BTEX under multi-source interference conditions. In other specific verification methods, the complementary role of the two types of branches can be further verified through characterization spatial relationship analysis and spectral concept decoding analysis. Characterization spatial relationship analysis can pair and compare the task discrimination characterization and physical purification characterization corresponding to the same sample, and compare them with the random pairing results. If the actual pairing results are higher than the random pairing results, it indicates that the two branches form a stable correspondence under the same sample input; if the local neighborhood organization of the two types of characterizations does not completely overlap, it indicates that the task discrimination characterization and physical purification characterization are related but not redundant. Spectral concept decoding analysis can use task-discrimination characterization and physical purification characterization as inputs to decode spectral-related concepts such as target net absorption area, total concentration, component quantity, or component combination state. If the physical purification characterization has higher decodeability for continuous physical concepts such as target net absorption area and total concentration, it indicates that the physical purification branch focuses more on retaining information related to changes in BTEX target absorption intensity, absorption area, and concentration. If the task-discrimination characterization has higher decodeability for task-related concepts such as component quantity, component combination state, or existence state boundaries, it indicates that the task-discrimination branch focuses more on encoding information related to component identification and differentiation of similar components.

[0081] Example 5: Sample Inference and Result Output In the application phase, the infrared absorbance spectrum of the gas sample to be tested is first acquired. This spectrum can be obtained from a Fourier transform infrared spectrometer, a mid-infrared absorption spectroscopy system, an open-path infrared system, a portable infrared detection device, or other equipment with infrared absorption measurement capabilities. The spectrum to be tested undergoes wavenumber range truncation, wavenumber axis unification, interpolation or resampling, absorbance representation standardization, and normalization processing in a manner consistent with the training phase, forming a fixed-length one-dimensional spectral vector.

[0082] Subsequently, the spectral vector is input into the trained dual-branch joint inversion model to obtain six-dimensional CI and six-dimensional CR outputs. For each BTEX target component, the system compares the CI output with a set threshold to determine whether the target component exists. In this embodiment, the CI threshold is set to 0.5. If the CI output of a target component is lower than 0.5, the component is marked as undetected, and the post-processed concentration output of the corresponding component is set to zero; if the CI output reaches or exceeds 0.5, the CR output corresponding to the component is inversely normalized to obtain the concentration value in ppm units. Through the above post-processing, the system simultaneously outputs the presence status and concentration value of the target component, avoiding near-zero result interpretation ambiguity in low-concentration or undetected samples when only the concentration is output. Finally, the system outputs the detection results of six target components: benzene, toluene, ethylbenzene, o-xylene, m-xylene, and para-xylene. The output includes the presence status, concentration value, and low-confidence or verification prompts for each target component. The output can be in the form of tables, data files, monitoring reports, or interface data, and can be transmitted to infrared detection equipment, environmental monitoring platforms, or laboratory data management systems for ambient air monitoring, industrial emission monitoring, park or factory boundary screening, rapid infrared screening, and subsequent confirmatory analysis.

[0083] Example 6: Verification of Implementation Results To further illustrate the implementation effect of the CI / CR joint output and threshold post-processing method described in this invention, this embodiment provides a BTEX six-component joint inversion result of a mixed infrared absorbance spectrum. This example is only used to illustrate the output form and result interpretation method of the method of this invention and is not intended to limit the scope of protection of this invention.

[0084] In this embodiment, the mixed infrared absorbance spectrum is preprocessed according to the method described in Example 5 and then input into the trained dual-branch joint inversion model to obtain the CI and CR outputs of the six BTEX target components. The CI output is used to determine whether the corresponding target component exists; the CR output is denormalized to obtain the concentration value in ppm after denormalization of the corresponding component concentration range. For target components with a CI output below 0.5, they are determined to be undetectable, and the corresponding post-processed concentration is set to 0; for target components with a CI output of 0.5 or higher, they are determined to be present, and the corresponding denormalized concentration value is output.

[0085] The specific results of this embodiment are shown in the table below.

[0086] Table 3. Example of BTEX six-component CI / CR output for a mixed spectral sample.

[0087] As shown in Table 3, in this embodiment, the model can simultaneously output the presence status and concentration values ​​of six BTEX target components. For benzene, ethylbenzene, o-xylene, and m-xylene, which are actually present, the model provides corresponding presence status judgments and concentration inversion results close to the actual concentrations. For toluene and para-xylene, which are not actually present, the model determines them as undetectable and sets the corresponding post-processed concentration output to 0. This example illustrates that the CI / CR joint output method of the present invention can simultaneously provide component identification information and concentration quantification information, and can perform post-processing on undetected components.

Claims

1. A dual-branch qualitative-quantitative joint inversion method for BTEX infrared spectroscopy under multi-source interference, characterized in that, include: Obtain the infrared absorbance spectrum of the gas sample to be tested; The infrared absorbance spectrum is input into a pre-trained dual-branch joint inversion model, which includes a task discrimination branch and a physical purification branch. The task discrimination branch extracts task discrimination characteristics related to the existence state of BTEX target components, component combination patterns, and differentiation of similar components; the physical purification branch extracts physical characteristics related to the absorption characteristics of BTEX target components. The task discrimination representation and the physical representation are fused to obtain the fused representation; Based on the fusion characterization, the readout network simultaneously outputs the component presence state identification results and concentration quantification inversion results of the BTEX target components.

2. The dual-branch qualitative-quantitative joint inversion method for BTEX infrared spectroscopy under multi-source interference as described in claim 1, characterized in that, The BTEX is benzene, toluene, ethylbenzene, o-xylene, m-xylene, and p-xylene.

3. The dual-branch qualitative-quantitative joint inversion method for BTEX infrared spectroscopy under multi-source interference as described in claim 1, characterized in that, The component presence status identification result is the probability of the BTEX target component being present, and the concentration quantification inversion result is the normalized concentration inversion value.

4. The dual-branch qualitative-quantitative joint inversion method for BTEX infrared spectroscopy under multi-source interference as described in claim 3, characterized in that, The method further includes: inverting the normalized concentration inversion value by the concentration range of the corresponding component to obtain a concentration value in ppm; comparing the probability with a preset threshold to determine whether the BTEX target component exists, and performing post-processing on the concentration value based on the determination result.

5. The dual-branch qualitative-quantitative joint inversion method for BTEX infrared spectroscopy under multi-source interference as described in claim 1, characterized in that, The wavenumber range of the infrared absorbance spectrum is 640 cm⁻¹. -1 Up to 840 cm -1 .

6. The dual-branch qualitative-quantitative joint inversion method for BTEX infrared spectroscopy under multi-source interference as described in claim 1, characterized in that, The task discrimination branch adopts any one of a one-dimensional convolutional network, a one-dimensional U-Net, or a residual network; the physical cleansing branch adopts any one of a one-dimensional U-Net, an autoencoder, or a denoising network.

7. The dual-branch qualitative-quantitative joint inversion method for BTEX infrared spectroscopy under multi-source interference as described in claim 1, characterized in that, The dual-branch joint inversion model is trained using multi-source interference spectral samples, which include paired mixed absorbance spectra, BTEX target component net absorption spectra, component presence state labels, and concentration labels. The mixed absorbance spectra serve as input to the dual-branch joint inversion model, while the BTEX target component net absorption spectra are used for pre-training, spectral reconstruction constraints, and / or target absorption fidelity constraints of the physical purification branch, enabling the physical purification branch to learn physical characteristics related to the absorption peak shape, absorption area, and concentration changes of the BTEX target component.

8. A dual-branch qualitative-quantitative joint inversion system for BTEX infrared spectroscopy under multi-source interference, characterized in that, include: The spectrum acquisition module is used to acquire the infrared absorbance spectrum of the gas sample to be tested; A dual-branch joint inversion model, comprising a task discrimination branch and a physical purification branch, wherein the task discrimination branch is used to extract task discrimination characteristics related to the existence state of BTEX target components, component combination patterns, and differentiation of similar components, and the physical purification branch is used to extract physical characteristics related to the absorption characteristics of BTEX target components. A feature fusion module is used to fuse the task discrimination representation and the physical representation to obtain a fused representation; The readout module is used to simultaneously output the component presence state identification result and concentration quantification inversion result of the BTEX target component based on the fusion characterization.

9. A computer-readable storage medium, characterized in that, It stores a computer program, which, when executed by a processor, implements the dual-branch qualitative-quantitative joint inversion method for BTEX infrared spectroscopy under multi-source interference as described in any one of claims 1-7.

10. A device, characterized in that, It includes a memory and a processor, the memory being used to store a computer program and the processor being used to execute the computer program to implement the dual-branch qualitative-quantitative joint inversion method for BTEX infrared spectroscopy under multi-source interference as described in any one of claims 1-7.