An heterogeneous image fusion analysis method and device for monitoring dangerous chemical gas leakage amount of OGI
By employing a dual-stream multi-scale feature extraction and fusion method, combined with mid-wave infrared and visible light images, the problems of weak leak detection and low quantitative accuracy in OGI technology were solved, enabling accurate quantitative monitoring of hazardous chemical gas leaks.
Patent Information
- Application Number
- CN202611363706.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-04
- Publication Date
- 2026-11-24
AI Technical Summary
Existing OGI technology has problems such as insufficient weak leak detection capability, weak resistance to environmental interference, and low quantitative accuracy in hazardous gas leak monitoring. Furthermore, existing heterogeneous image fusion schemes cannot simultaneously meet the needs of leak visualization and precise quantification.
By employing a dual-stream multi-scale feature extraction and fusion method, combined with mid-wave infrared and visible light images, and through weak feature enhancement of the plume, a quantitatively guided fusion mechanism, and semantically deformable alignment, a binary mask of the effective area of the plume and a pixel-by-pixel concentration bar integral map after temperature correction are generated, thus achieving accurate quantification of the amount of hazardous chemical gas leakage.
It significantly improves the detection capability of micro-leakage scenarios, improves the fuzzy edge defect of gas plumes, enhances quantitative accuracy and resistance to environmental interference, and meets the metrological monitoring needs of industrial sites.
Smart Images

Figure CN123160359A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of inversion technology, specifically to a heterogeneous image fusion analysis method and device for monitoring hazardous chemical gas leaks using OGI (Optical Geometric Indicator). Background Technology
[0002] With the continuous upgrading of safety production control standards and VOCs fugitive emission supervision requirements in the petrochemical and chemical industries, rapid detection and accurate quantification of hazardous gas leaks have become core requirements for safety monitoring in chemical industrial parks, storage facilities, pipeline valve assemblies, and other scenarios. Optical Gas Imaging (OGI) technology, with its advantages of non-contact and wide-area visual monitoring, has replaced traditional point-type gas detectors and become the mainstream technology for leak inspection and routine monitoring. OGI devices based on mid-wave infrared imaging can intuitively present the spatial distribution and diffusion pattern of gas plumes, possessing significant advantages such as high leak location efficiency, wide coverage, and long detection distance, and are widely adaptable to various application scenarios such as fixed monitoring, handheld inspections, and drone inspections.
[0003] Currently, most mainstream quantitative optical gas imaging (QOGI) schemes are based on single-mode mid-wave infrared images, combined with Beer-Lambert's law to invert leakage. While these schemes can achieve basic quantitative calculations under ideal experimental conditions, they have significant technical limitations in complex industrial scenarios: First, hazardous gases appear semi-transparent and have low contrast in infrared images. In scenarios with small leaks, the grayscale difference between the gas plume and the background is minimal, easily masked by background temperature noise and radiation fluctuations, resulting in low detection rates for weak leaks and quantitative errors generally exceeding 30%. Second, single-mode infrared images lack scene structure references, leading to blurred gas plume edges and large boundary positioning deviations, directly causing the leakage calculation results from concentration space integration to deviate from the actual values. Third, changes in ambient temperature and uneven background radiation directly interfere with the grayscale characterization of gas absorption radiation. The lack of an effective physical correction mechanism further amplifies quantitative errors, making it difficult to meet the metrological accuracy requirements of industrial monitoring.
[0004] To improve the observation and detection performance of OGI images, the industry has introduced visible light-infrared heterogeneous image fusion technology. This technology leverages the scene texture and edge structure information of visible light images to assist in infrared plume analysis. Existing heterogeneous image fusion solutions mostly employ general pyramid fusion, Transformer fusion, and other visual enhancement algorithms, aiming only to improve the subjective visual clarity of the image. They are not adapted to the physical characteristics of gas infrared absorption in OGI scenarios. The fusion process disrupts the linear relationship between infrared grayscale values and gas concentration, resulting in fused images that are only suitable for manual inspection and observation, completely unsuitable for subsequent quantitative calculations of leaks.
[0005] Meanwhile, existing heterogeneous registration and fusion schemes generally adopt a whole-image registration strategy. Due to the fundamental differences in the imaging principles and spectral response ranges of infrared and visible light, there are local deformation deviations between the plume region and the visible light background. Whole-image registration cannot guarantee pixel-level alignment accuracy in the core region of the plume, and instead introduces additional spatial errors, further exacerbating the deviation in the calculation of leakage integral. In addition, existing technologies generally adopt a serial architecture of "fusion first, then inversion". The fusion feature extraction is not jointly optimized with the quantitative target, resulting in a technical contradiction of improved visual effects but no improvement or even a decrease in quantitative accuracy. This makes it impossible to simultaneously meet the dual industrial requirements of leakage visualization and precise quantification.
[0006] In summary, existing OGI hazardous gas leak monitoring technologies suffer from several drawbacks. Single-modal quantitative schemes lack sufficient leak detection capability, have weak resistance to environmental interference, and exhibit low quantitative accuracy. General heterogeneous image fusion schemes suffer from issues such as disrupting the quantitative physical basis, insufficient alignment accuracy of gas plume regions, and disconnect between fusion and quantitative processes, making them unsuitable for the high-precision leak monitoring requirements of complex industrial environments. Therefore, developing a dedicated heterogeneous image fusion analysis method for quantitative scenarios, which enhances gas plume characteristics while fully preserving concentration physical information to achieve end-to-end accurate leak measurement, has become a pressing technical challenge in this field. Summary of the Invention
[0007] The purpose of this invention is to provide a heterogeneous image fusion analysis method for monitoring hazardous gas leaks using OGI (Optical Gas Injection) to at least solve one of the aforementioned technical problems.
[0008] One aspect of the present invention provides a heterogeneous image fusion analysis method for monitoring hazardous gas leaks using the OGI (Oxygen Gel Injection System), the method comprising:
[0009] Step 1: Acquire the synchronously acquired mid-wave infrared OGI image and visible light RGB image;
[0010] Step 2: Generate a baseline-anchored normalized infrared image based on the mid-wave infrared OGI image;
[0011] Step 3: Generate a coarsely registered visible light image based on the visible light RGB image;
[0012] Step 4: Perform dual-stream multi-scale specific feature extraction on the baseline-anchored normalized infrared image and the coarsely registered visible light image to obtain infrared plume feature maps and visible light structure feature maps.
[0013] Step 5: Fuse the infrared plume feature map group and the visible light structure feature map group to obtain a multi-scale fused feature pyramid;
[0014] Step 6: Generate a binary mask of the effective region of the plume and a temperature-corrected pixel-by-pixel concentration column integral map based on the multi-scale fusion feature pyramid;
[0015] Step 7: Based on the binary mask of the effective area of the gas plume, combined with the real-time wind speed and pre-calibrated pixel spatial parameters, perform spatial integration and flow conversion processing on the pixel-by-pixel concentration bar graph after temperature correction, so as to obtain the quantitative result of the instantaneous leakage of hazardous gas.
[0016] Optionally, step 2 includes:
[0017] Step 21: Perform local minimum filtering on the mid-wave infrared OGI image to obtain the background baseline map;
[0018] Step 22: Perform grayscale histogram statistics and anchor point extraction on the background baseline map to obtain the lower baseline anchor point and the upper baseline anchor point;
[0019] Step 23: Based on the lower baseline anchor point and the upper baseline anchor point, perform linear normalization and numerical truncation processing on the mid-wave infrared OGI image to obtain the baseline-anchored normalized infrared image.
[0020] Optionally, step 3 includes:
[0021] Step 31: Perform weighted grayscale conversion on the visible light RGB image to obtain a single-channel visible light grayscale image;
[0022] Step 32: Perform grayscale interval anchoring and linear mapping processing on the single-channel visible light grayscale image to obtain a visible light matching image that is aligned with the grayscale distribution of the infrared image;
[0023] Step 33: Based on the pre-calibrated binocular camera internal and external distortion coefficients, perform homography affine transformation and size alignment cropping on the visible light matching image to obtain a coarsely registered visible light image.
[0024] Optionally, step 4 includes:
[0025] Step 41: Use a plume weak feature enhancement convolutional unit to perform three-layer cascaded downsampling processing on the baseline-anchored normalized infrared image to obtain an infrared plume feature map group containing features at three different scales.
[0026] Step 42: Use edge structure enhancement convolutional units to perform three-layer cascaded downsampling processing on the coarsely registered visible light image to obtain a group of visible light structural feature maps containing features at three different scales;
[0027] Step 43: Perform scale-by-scale matching and alignment processing on the infrared plume feature map group and the visible light structure feature map group to obtain the paired infrared plume feature map group and the visible light structure feature map group.
[0028] Optionally, step 5 includes:
[0029] Step 51: Perform plume semantic mask generation processing on the infrared features at each scale in the infrared plume feature map group to obtain the plume semantic mask group corresponding to each scale.
[0030] Step 52: Based on the plume semantic mask group, perform semantically constrained deformable resampling alignment processing on the paired visible light structural features at each scale to obtain the visible light feature map group aligned at each scale.
[0031] Step 53: Perform bidirectional gated attention fusion processing on the paired infrared plume features and aligned visible light features at each scale to obtain the single-scale fused feature map corresponding to each scale;
[0032] Step 54: Perform an arrangement and construction process on the single-scale fused feature maps of all scales according to the resolution hierarchy to obtain the multi-scale fused feature pyramid.
[0033] Optionally, step 6 includes:
[0034] Step 61: Perform multi-scale upsampling and channel compression aggregation on the multi-scale fusion feature pyramid to obtain global aggregated fusion features;
[0035] Step 62: Perform pixel-by-pixel concentration bar integral prediction on the global aggregation and fusion features, and perform temperature analysis correction processing in combination with the pre-calibrated gas absorption temperature sensitive parameters to obtain the temperature-corrected pixel-by-pixel concentration bar integral map.
[0036] Step 63: Perform plume confidence prediction and threshold binarization on the global aggregated and fused features to obtain the binary mask of the effective plume region.
[0037] Optionally, step 53 includes:
[0038] Step 531: Using the infrared plume features at the current scale as input, generate a plume spatial weight map through convolution and Sigmoid activation. Perform pixel-by-pixel multiplication on the plume spatial weight map and the visible light features aligned with the corresponding scale to obtain the weighted visible light features of the plume region.
[0039] Step 532: Perform gradient operation on the visible light features aligned to the current scale to extract edge features. Generate an edge weight map through convolution operation and Sigmoid activation. Perform pixel-by-pixel multiplication operation on the edge weight map and the infrared plume features of the corresponding scale to obtain the weighted infrared features with refined edges.
[0040] Step 533: The weighted visible light features and weighted infrared features are concatenated along the channel dimension, and channel compression is performed through convolution operation to obtain the single-scale fused feature map of the current scale.
[0041] Optionally, step 52 specifically includes:
[0042] Step 521: Perform 1×1 convolution operation and Sigmoid activation on the infrared plume features corresponding to each scale, and then perform binarization processing with a fixed confidence threshold to obtain the plume semantic mask corresponding to each scale.
[0043] Step 522: Concatenate the infrared plume features and visible light structure features at the same scale along the channel dimension, and perform a 3×3 convolution operation to obtain the initial offset matrix at that scale;
[0044] Step 523: Perform pixel-by-pixel masking correction on the initial offset matrix using the air plume semantic mask, force the offset corresponding to the invalid background area to zero, and perform bilinear deformable resampling processing on the visible light structural features based on the corrected offset matrix to obtain visible light feature maps aligned at each scale.
[0045] Optionally, step 41 includes:
[0046] Step 411: Input the input features of the current convolutional layer into the background suppression branch, extract low-frequency background features through 3×3 mean filtering, and perform pixel-by-pixel difference operation with the input features to obtain the background suppression features;
[0047] Step 412: Input the input features of the current convolutional layer into the multi-receptive field branch, process them through three parallel dilated convolutions with dilation rates of 1, 2 and 4 respectively, and then concatenate them along the channel dimension to obtain multi-scale receptive field plume features.
[0048] Step 413: The background suppression features and multi-scale receptive field plume features are concatenated along the channel dimension, and channel weighting is performed by the channel attention module to output the enhanced plume features as the output of the current convolutional layer.
[0049] This application also provides a heterogeneous image fusion analysis device for monitoring hazardous gas leaks using OGI (Oxygen Gel Injection System), the device comprising:
[0050] An image acquisition module is used to acquire synchronously acquired mid-wave infrared OGI images and visible light RGB images;
[0051] A baseline-anchored normalized infrared image acquisition module is used to generate a baseline-anchored normalized infrared image based on a mid-wave infrared OGI image.
[0052] A visible light image acquisition module after coarse registration, which is used to generate a coarsely registered visible light image based on a visible light RGB image;
[0053] A multi-scale plume feature alignment and fusion network is used to extract dual-stream multi-scale specific features from the baseline-anchored normalized infrared image and the coarsely registered visible light image, thereby obtaining an infrared plume feature map set and a visible light structural feature map set; the infrared plume feature map set and the visible light structural feature map set are fused to obtain a multi-scale fused feature pyramid; and a binary mask of the effective plume region and a temperature-corrected pixel-by-pixel concentration column integral map are generated based on the multi-scale fused feature pyramid.
[0054] The quantitative result acquisition module is used to perform spatial integration and flow conversion processing on the temperature-corrected pixel-by-pixel concentration bar graph based on the binary mask of the effective area of the gas plume, combined with real-time wind speed and pre-calibrated pixel spatial parameters, so as to obtain the quantitative result of the instantaneous leakage of hazardous gas.
[0055] This invention addresses the technical shortcomings of existing quantitative monitoring methods for OGI (Oxygen Gaseous Inhalation) hazardous gas leaks by proposing a heterogeneous image fusion analysis method for quantitative scenarios. Compared with existing technologies, this method offers the following theoretically derivable advantages:
[0056] This invention effectively enhances the feature response of weak plumes, improving the detection capability in scenarios involving minute leaks. Addressing the inherent characteristics of semi-transparent and low-contrast plumes in OGI images, this invention employs an original plume weak feature enhancement convolutional unit to construct an infrared feature extraction branch. A background suppression branch filters out static background radiation noise, and parallel convolution with multiple porosities covers plume morphologies of various sizes. Channel attention further enhances effective feature channels. Compared to conventional convolutional feature extraction schemes, this significantly improves the feature recognition of weak plumes, solving the technical problem of low detection rates in small leak plumes in industrial settings due to their susceptibility to background temperature fluctuations.
[0057] This invention constructs a quantitatively-oriented fusion mechanism that balances enhanced visualization with the integrity of quantitative information. Abandoning the design approach of general visual fusion, this invention employs a bidirectional gated attention fusion unit. On one hand, it constrains visible light features with semantic weights for infrared plumes, suppressing interference from irrelevant background textures; on the other hand, it corrects the outline of infrared plumes with visible light edge weights, improving the blurry edges of plumes in infrared images. This fusion mechanism enhances the visual clarity of plumes while fully preserving the linear correspondence between infrared grayscale and gas concentration, fundamentally avoiding the problem of general fusion algorithms destroying the quantitative physical basis. The fused features can be directly used for accurate leakage inversion, simultaneously meeting the dual needs of manual inspection visualization and machine quantitative analysis.
[0058] A semantically-level deformable alignment scheme achieves a balance between accuracy and efficiency, adapting to real-time deployment at edge devices. This invention addresses the problem of local deformation in the plume region of heterogeneous images by employing a semantically constrained deformable alignment strategy. Deformable offsets are generated only within the effective plume region, while background region offsets are forcibly set to zero. Compared to whole-image deformable registration schemes, this improves the alignment accuracy of the plume core region, eliminates leakage integral errors caused by heterogeneous local deformation, and reduces redundant calculations in invalid background regions. It balances registration accuracy and computational efficiency, adapting to the real-time processing needs of edge devices such as embedded GPUs.
[0059] The end-to-end architecture with embedded physical priors improves quantitative accuracy and adaptability to different operating conditions. This invention embeds the Beer-Lambert gas absorption law into the network inversion head design and adopts an end-to-end architecture that jointly optimizes fusion features and quantitative objectives. This eliminates the accumulated errors of the serial architecture of first fusion and then inversion, effectively improving the quantitative accuracy of leakage. At the same time, it introduces a temperature analysis correction mechanism based on gas spectral characteristics, which can correct the interference of ambient temperature on the gas absorption coefficient without additional fitting parameters, improving the stability of quantitative results under different temperature conditions and meeting the metrological monitoring needs of industrial scenarios.
[0060] The core reasoning process of this invention only requires a single frame to synchronize heterogeneous image pairs for complete execution, without multi-frame temporal dependencies. It can be directly adapted to various OGI application scenarios such as fixed park monitoring, handheld inspection, and drone aerial patrol. At the same time, the solution supports adapting to the monitoring needs of various hazardous gases by calibrating the spectral parameters of different gases, has strong engineering adaptability, and can quickly connect to existing OGI monitoring equipment to complete algorithm upgrades. Attached Figure Description
[0061] Figure 1 This is a flowchart illustrating a heterogeneous image fusion analysis method for monitoring hazardous gas leaks using OGI, according to an embodiment of this application. Detailed Implementation
[0062] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions in the embodiments of this application will be described in more detail below with reference to the accompanying drawings. In the drawings, the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The described embodiments are some, but not all, embodiments of this application. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application. The embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0063] like Figure 1 The heterogeneous image fusion analysis method shown for monitoring hazardous gas leaks using OGI includes:
[0064] Step 1: Acquire the synchronously acquired mid-wave infrared OGI image and visible light RGB image;
[0065] Step 2: Generate a baseline-anchored normalized infrared image based on the mid-wave infrared OGI image;
[0066] Step 3: Generate a coarsely registered visible light image based on the visible light RGB image;
[0067] Step 4: Perform dual-stream multi-scale specific feature extraction on the baseline-anchored normalized infrared image and the coarsely registered visible light image to obtain infrared plume feature maps and visible light structure feature maps.
[0068] Step 5: Fuse the infrared plume feature map group and the visible light structure feature map group to obtain a multi-scale fused feature pyramid;
[0069] Step 6: Generate a binary mask of the effective region of the plume and a temperature-corrected pixel-by-pixel concentration column integral map based on the multi-scale fusion feature pyramid;
[0070] Step 7: Based on the binary mask of the effective area of the gas plume, combined with the real-time wind speed and pre-calibrated pixel spatial parameters, perform spatial integration and flow conversion processing on the pixel-by-pixel concentration bar graph after temperature correction, so as to obtain the quantitative result of the instantaneous leakage of hazardous gas.
[0071] In this embodiment, step 1 is used to acquire paired heterogeneous images at the same time and in the same monitoring field of view, providing basic input for subsequent preprocessing, feature extraction, and quantitative fusion. The specific implementation process is as follows:
[0072] First, the deployment of the hardware synchronous acquisition architecture was completed. The OGI monitoring terminal used in this embodiment integrates one mid-wave infrared OGI camera and one visible light RGB camera. The two cameras are fixed to the same mounting bracket with their optical axes parallel. Before leaving the factory, the intrinsic and extrinsic parameters of the binocular cameras are calibrated and the field of view is calibrated to ensure that the overlap of their monitoring fields of view is no less than 95%, completely covering the same tank area leakage monitoring area. The trigger terminals of both cameras are connected to the same hardware external trigger module, and the exposure is controlled by the same pulse signal to achieve hardware-level synchronous acquisition. The synchronization time error is no more than 1ms, avoiding inter-frame spatial misalignment caused by gas plume drift. Among them, the mid-wave infrared OGI camera has a spectral response range of 3μm~5μm, matching the characteristic absorption bands of mainstream hazardous gases such as methane and VOCs. The raw output is a single-channel 16-bit grayscale image with a default resolution of 640×512 pixels, and the pixel grayscale value corresponds to the infrared radiation intensity of the scene. The visible light RGB camera's raw output is a three-channel 8-bit color image with a default resolution of 1920×1080 pixels, used to provide scene structure and edge texture information.
[0073] Secondly, synchronous acquisition is performed. When the monitoring terminal is in normal working condition, the external hardware trigger module periodically outputs trigger pulses according to the preset acquisition frame rate (25 frames / second in this embodiment). Each pulse is simultaneously transmitted to the trigger interfaces of the mid-wave infrared OGI camera and the visible light RGB camera. After receiving the trigger signal, the two cameras synchronously start exposure, and after exposure, they output the raw image data to the terminal's storage unit. The two images acquired in each synchronous set are bound to the same acquisition timestamp, forming a one-to-one heterogeneous image pair, ensuring that the two correspond to the same scene state at the same time.
[0074] Finally, the processing result of step 1 is output. After synchronous acquisition and timestamp pairing, a set of synchronous heterogeneous image pairs is obtained, including 1 frame of mid-wave infrared OGI image and 1 frame of corresponding synchronously acquired visible light RGB image.
[0075] In this embodiment, step 2 includes:
[0076] Step 21: Perform local minimum filtering on the mid-wave infrared OGI image to obtain the background baseline map;
[0077] Specifically, a rectangular sliding filter kernel with a fixed size of 5×5 is used to traverse all pixels of the original infrared image with a step size of 1. For each pixel location, the minimum gray value of all pixels in its 5×5 neighborhood is taken as the output gray value for that location. After pixel-by-pixel processing, a background baseline map is generated. .
[0078] The basis for selecting a 5×5 filter kernel in this embodiment is that this size is larger than the minimum continuous area size of most small leaking plumes in industrial scenarios, which can avoid misidentifying the dark area of the plume as the background extremum; at the same time, the size is small enough to retain the radiation distribution characteristics of background structures such as pipes and equipment, so as to achieve accurate extraction of the lower boundary of static background radiation and filter the interference of local dark areas of the plume on the baseline calculation.
[0079] The output of this sub-step is the background baseline map. The size is the same as the original infrared image, still 512×640, and the pixel value corresponds to the lower boundary gray level of the background radiation at each location.
[0080] Step 22: Perform grayscale histogram statistics and anchor point extraction on the background baseline map to obtain the lower baseline anchor point and the upper baseline anchor point;
[0081] The input for this sub-step is the background baseline map output from step 21. This is used to anchor the grayscale range of normal background radiation. The specific implementation process is as follows:
[0082] The first step is to calculate the grayscale histogram of the background baseline image: traverse all pixels of the background baseline image, count the number of pixels corresponding to each grayscale value, and form a grayscale distribution histogram covering all grayscale levels.
[0083] The second step is to calculate the cumulative grayscale distribution: starting from the lowest grayscale value, the number of pixels is accumulated for each grayscale level to obtain the cumulative pixel percentage corresponding to each grayscale value, with a value range of 0 to 100%.
[0084] The third step is to extract the upper and lower limit anchor points: take the gray value corresponding to the cumulative distribution ratio of 5% as the lower limit anchor point of the baseline. The gray value corresponding to a cumulative distribution ratio of 95% is taken as the upper limit anchor point of the baseline. .
[0085] In this embodiment, the 5% and 95% quantiles are selected as anchor points. This can eliminate 5% of extreme dark noise points and 5% of extreme high-temperature equipment bright spots in the background, and anchor the normal background radiation range of 90%, thus avoiding the compression of the contrast of the plume after normalization due to local extreme values.
[0086] Step 23: Based on the lower baseline anchor point and the upper baseline anchor point, perform linear normalization and numerical truncation processing on the mid-wave infrared OGI image to obtain the baseline-anchored normalized infrared image.
[0087] The input for this sub-step is the raw mid-wave infrared OGI image. Baseline lower limit anchor point anchor point of baseline upper limit This is used to standardize and normalize infrared images. The specific implementation process is as follows:
[0088] Pixel-wise linear normalization: For each pixel (x, y) of the original infrared image, substitute it into the following formula to calculate the normalized gray value:
[0089] ;
[0090] in, This represents the normalized grayscale value of pixel (x, y). This represents the grayscale value of the corresponding pixel in the original infrared image.
[0091] Numerical truncation processing: All pixels after linear operation are truncated, and pixel values with calculation results less than 0 are uniformly set to 0, and pixel values with calculation results greater than 1 are uniformly set to 1, thus eliminating the influence of extreme values that exceed the background range.
[0092] This step uses linear operations throughout, only shifting and scaling the grayscale range without changing the relative proportion of grayscale in the plume region. Therefore, it does not disrupt the linear correspondence between infrared grayscale and gas concentration column integrals, ensuring the physical basis for subsequent quantitative inversion.
[0093] The output of this sub-step is the baseline-anchored normalized infrared image. A single-channel grayscale image, with the same size as the original image (512×640), and a fixed pixel value range of [0,1].
[0094] In this embodiment, step 3 includes:
[0095] Step 31: Perform weighted grayscale conversion on the visible light RGB image to obtain a single-channel visible light grayscale image;
[0096] The input for this sub-step is the original visible light RGB image. In this embodiment, the image is a three-channel 8-bit color image with a size of [size missing]. × ,in =1080、 =1920, with three channels corresponding to the red, green, and blue components respectively, and pixel values ranging from 0 to 255. The specific implementation process is as follows:
[0097] A weighted grayscale conversion formula conforming to the visible light brightness perception standard is used to sum the three-channel components of each pixel and convert them into a single-channel grayscale value. The conversion formula is as follows:
[0098] ;
[0099] in, This represents the grayscale value of the converted pixel (x, y). , , These are the red, green, and blue channel component values of the corresponding pixels in the original RGB image.
[0100] The coefficients match the ITU-R BT.601 digital video brightness standard, conforming to the brightness response characteristics of the human eye to different wavelengths of visible light. This maximizes the preservation of scene edge contours and structural texture information. The converted grayscale image is more compatible with the representation of the infrared single-channel image, facilitating subsequent cross-modal feature alignment and fusion.
[0101] The output of this sub-step is a single-channel visible light grayscale image. The size is the same as the original visible light image, 1080×1920, with a pixel value range of 0~255.
[0102] Step 32: Perform grayscale interval anchoring and linear mapping processing on the single-channel visible light grayscale image to obtain a visible light matching image that is aligned with the grayscale distribution of the infrared image;
[0103] The input for this sub-step is a single-channel visible light grayscale image. This is used to map the dynamic range of visible light grayscale to the [0,1] interval consistent with the normalized infrared image, thereby achieving cross-modal grayscale distribution alignment. The specific implementation process is as follows:
[0104] Gray-level histogram statistics: Traverse all pixels of the visible light gray-level image, count the number of pixels corresponding to each gray value, and generate a complete gray-level distribution histogram;
[0105] Anchor point extraction: Calculate the cumulative grayscale distribution curve, and take the grayscale value corresponding to a cumulative pixel percentage of 5% as the visible light grayscale lower limit anchor point. The grayscale value corresponding to a cumulative pixel ratio of 95% is taken as the upper limit anchor point for visible light grayscale. ;
[0106] The third step, linear mapping matching: Perform a linear mapping operation on the grayscale value of each pixel, using the following formula:
[0107] ;
[0108] Numerical truncation: Pixel values less than 0 in the mapping result are truncated to 0, and pixel values greater than 1 are truncated to 1, eliminating interference from extreme bright and dark points.
[0109] In this embodiment, the 5% and 95% quantiles are selected as anchor points, which are consistent with the baseline anchor point quantiles of the infrared image in step 2. This can eliminate 5% of the dark noise and 5% of the overexposed bright areas in the visible light image, so that the effective dynamic range of the two is completely matched, avoiding feature fusion deviation caused by grayscale differences. At the same time, linear mapping is used throughout the process, which does not change the texture gradient and edge relative relationship of the visible light image, ensuring the integrity of structural features.
[0110] The output of this sub-step is a visible light matching image aligned with the grayscale distribution of the infrared image. A single-channel grayscale image, with the same size as the original visible light image (1080×1920), and a fixed pixel value range of [0,1].
[0111] Step 33: Based on the pre-calibrated binocular camera internal and external distortion coefficients, perform homography affine transformation and size alignment cropping on the visible light matching image to obtain a coarsely registered visible light image.
[0112] The input for this sub-step is a visible light matching image. The binocular camera intrinsic and extrinsic parameter matrices and lens distortion coefficients, pre-calibrated before the equipment leaves the factory, are used to map the visible light image to the infrared image coordinate system, completing the whole-image level spatial coarse registration. The specific implementation process is as follows:
[0113] Pre-calibration parameter description: The intrinsic and extrinsic distortion coefficients of the binocular cameras are fixed parameters pre-calibrated using the checkerboard stereo calibration method before the equipment leaves the factory, and remain unchanged throughout the inference phase. The calibration process is as follows: Using standard black and white checkerboard calibration boards in different poses, infrared and visible light checkerboard images are acquired simultaneously. Based on Zhang Zhengyou's calibration method, the intrinsic parameter matrices and radial and tangential distortion coefficients of the two cameras are solved respectively. Then, the rotation matrix R and translation vector t of the visible light camera relative to the infrared camera are solved through binocular stereo calibration. Combined with the camera intrinsic parameters, the fixed homography matrix H mapping the visible light coordinate system to the infrared coordinate system is derived.
[0114] Distortion Correction and Affine Transformation: Using the Homography Matrix H to Match Visible Light Images A global affine transformation is performed, and lens distortion is corrected simultaneously based on pre-calibrated distortion coefficients. Bilinear interpolation is used for resampling to ensure the smoothness of the transformed image edges and avoid jagged artifacts.
[0115] Size alignment and cropping: Take the central region of the transformed image that coincides with the infrared field of view, and crop it to a size H×W (512×640 in this embodiment) that is completely consistent with the normalized infrared image output in step 2, so as to eliminate the difference in field of view.
[0116] The coarse registration in this step is a fixed registration at the whole-image level, which can correct global spatial misalignment caused by the parallax of the binocular camera installation and lens distortion.
[0117] The output of this sub-step is a coarsely registered visible light image. The single-channel grayscale image has the same size as the normalized infrared image, 512×640, and the pixel value range is [0,1].
[0118] In this embodiment, step 4 includes:
[0119] Step 41: Use a plume weak feature enhancement convolutional unit to perform three-layer cascaded downsampling processing on the baseline-anchored normalized infrared image to obtain an infrared plume feature map group containing features at three different scales.
[0120] The input to this sub-step is the baseline-anchored normalized infrared image output from step 2. The image is a single-channel grayscale image with a size of 512×640 and a pixel value range of [0,1]. This sub-step uses a 3-layer cascaded plume weak feature enhancement convolutional unit (GWE-Conv) to complete downsampling feature extraction. The downsampling stride of each layer is fixed at 2, and the number of channels increases layer by layer. Finally, it outputs infrared plume features at 3 different scales. The parameters of all convolutional kernels and attention modules are fixed values that are solidified after offline training and will not be updated during the inference stage.
[0121] A single-layer GWE-Conv unit consists of three parts: a background suppression branch, a multi-receptive field branch, and a channel attention weighting module. The input features are processed by two parallel branches, concatenated, and then weighted by channel attention before being output. The overall stride of the unit is 2, and the output feature resolution is half that of the input. The specific computational logic is as follows:
[0122] 1. Background Suppression Branch: The input features are first smoothed in the neighborhood using a fixed-size 3×3 mean filter kernel (with all elements in the kernel having a weight of 1 / 9) to extract low-frequency background radiation features. Then, the input features are subtracted from the low-frequency background features pixel by pixel to filter out the overall radiation fluctuations of the static background, resulting in the background suppression features. The calculation formula is as follows:
[0123] ;
[0124] in, For the input features of the current GWE-Conv unit, (·) represents a 3×3 mean filtering operation. This is a background suppression feature.
[0125] Multi-receptive-field branch: Input features are fed in parallel into three dilated convolutional layers with dilation rates of 1, 2, and 4, respectively. The corresponding kernel size is 3×3, covering small, medium, and large receptive field ranges to adapt to different sizes of leaky plume morphologies. The outputs of the three convolutions are concatenated along the channel dimension to obtain multi-scale receptive-field plume features, as shown in the formula:
[0126] ;
[0127] in, (⋅) represents a 3×3 dilated convolution operation with dilation rates r (1, 2, 4), and Concat(⋅) represents a channel-division concatenation operation. This is to identify the characteristics of multi-scale sensing field plumes.
[0128] Channel attention weighting module: After concatenating the background suppression features and multi-receptor field features along the channel dimension, it first obtains channel-level global features through global average pooling, and then generates channel weight vectors through two cascaded fully connected layers (the number of channels in the first layer is reduced to 1 / 8 of the input, and the number of channels in the second layer is restored to the original number) and Sigmoid activation. The weight vectors are multiplied with the concatenated features channel by channel to enhance the effective plume feature channels and suppress redundant noise channels. Finally, the enhanced plume features are output as the output of the current GWE-Conv unit.
[0129] The specific implementation process of the three-layer cascaded operation is as follows: The three layers of GWE-Conv units are cascaded in descending order of resolution, and the input / output size and number of channels of each layer are fixed as follows:
[0130] Layer 1 GWE-Conv unit: Input is normalized infrared image Dimensions: 512×640×1; Unit output: First-scale infrared plume characteristics The dimensions are 256×320×32, the number of channels is 32, and the resolution is half that of the original image.
[0131] Layer 2 GWE-Conv unit: Input is the first-scale feature. Dimensions: 256×320×32; Unit outputs second-scale infrared plume characteristics. The dimensions are 128×160×64, the number of channels is 64, and the resolution is 1 / 4 of the original image.
[0132] Layer 3 GWE-Conv unit: Input is the second-scale feature. Dimensions: 128×160×64; Unit outputs third-scale infrared plume characteristics. The dimensions are 64×80×128, the number of channels is 128, and the resolution is 1 / 8 of the original image.
[0133] The output of this sub-step is a set of infrared plume feature maps, containing feature maps at three scales. , , It fully covers multi-scale plume features from detailed edges to global morphology.
[0134] Step 42: Use edge structure enhancement convolutional units to perform three-layer cascaded downsampling processing on the coarsely registered visible light image to obtain a group of visible light structural feature maps containing features at three different scales;
[0135] In this embodiment, the input to this sub-step is the coarsely registered visible light image. The image is a single-channel grayscale image with dimensions of 512×640 and pixel values ranging from [0,1]. This sub-step uses a 3-layer cascaded edge-strengthened convolutional unit (ESR-Conv) to extract downsampled features. The downsampling stride of each layer is fixed at 2, and the number of channels is completely consistent with the scale corresponding to the infrared branch. The final output is visible light structural features with 3 scales matched. The parameters of all convolutional kernels and attention modules are fixed values that are solidified after offline training.
[0136] Edge structure enhances the fixed structure of convolutional units
[0137] A single-layer ESR-Conv unit consists of three parts: a gradient edge extraction module, a depthwise separable convolutional dimensionality reduction module, and a spatial attention enhancement module. The overall stride of the unit is 2, and the output feature resolution is half that of the input. The specific internal computation logic is as follows:
[0138] Gradient edge extraction module: Gradient features are extracted from the input features using 3×3 Sobel operators (horizontal and vertical) to calculate the gradient magnitude map. The gradient magnitude map is then concatenated with the original input features along the channel dimension, fusing the original texture information and edge structure information. The gradient magnitude calculation formula is:
[0139] ;
[0140] in, The horizontal gradient extracted by the horizontal Sobel operator. G(x,y) is the vertical gradient extracted by the Sobel operator, where G(x,y) is the gradient magnitude at pixel (x,y).
[0141] Depth-separable convolutional dimensionality reduction module: The concatenated features are first subjected to 3×3 depthwise convolution (each channel is convolved independently) for spatial feature extraction, and then subjected to 1×1 pointwise convolution for channel dimension compression. While reducing the number of parameters and computation, the edge structure features are preserved, and the intermediate features after dimensionality reduction are output.
[0142] Spatial attention enhancement module: Global max pooling and global average pooling are performed on the dimensionality-reduced features along the channel dimension to obtain two single-channel spatial feature maps; the two feature maps are concatenated and then activated by 1×1 convolution and Sigmoid to generate a spatial weight map; the spatial weight map is multiplied pixel by pixel with the input features to enhance the feature weights of structural regions such as edges and contours, suppress redundant information in flat background regions, and finally output the structure-enhanced features as the output of the current ESR-Conv unit.
[0143] The specific implementation process of the three-layer cascaded operation is as follows: The three-layer ESR-Conv units are cascaded in descending order of resolution. The output size and number of channels of each layer are perfectly matched with the scale of the infrared branch, as detailed below:
[0144] Layer 1 ESR-Conv unit: Input is a coarsely registered visible light image. Dimensions: 512×640×1; Unit output first-scale visible light structural features It measures 256×320×32, has 32 channels, and its resolution is completely consistent with the infrared characteristics of the first scale.
[0145] Layer 2 ESR-Conv unit: Input is the first-scale feature. Dimensions: 256×320×32; Unit output second-scale visible light structural features It measures 128×160×64 pixels, has 64 channels, and its resolution is completely consistent with the infrared characteristics of the second scale.
[0146] Layer 3 ESR-Conv unit: Input is the second-scale feature. Dimensions: 128×160×64; Unit output third-scale visible light structural features It measures 64×80×128 pixels, has 128 channels, and its resolution is completely consistent with the infrared characteristics of the third scale.
[0147] The output of this sub-step is a set of visible light structure feature maps, containing feature maps at three scales. , , It fully preserves multi-scale structural edge information from local textures to the global scene.
[0148] Step 43: Perform scale-by-scale matching and alignment processing on the infrared plume feature map group and the visible light structure feature map group to obtain the paired infrared plume feature map group and the visible light structure feature map group.
[0149] The inputs to this sub-step are the infrared plume feature map set output from step 41 and the visible light structure feature map set output from step 42. These are used to complete the scale pairing of the two sets of features, ensuring that the input dimensions of the subsequent scale-by-scale fusion are completely matched. The specific implementation process is as follows:
[0150] According to the one-to-one correspondence of downsampling levels, the first-scale infrared features Compared with the first-scale visible light characteristics Pairing, second-scale infrared features Compared with the second-scale visible light characteristics Pairing, 3rd-scale infrared signature Compared with the third-scale visible light characteristics Pairing; verify that the height, width, and number of channels of each pair of features are completely consistent, and there is no dimensional deviation.
[0151] Since the downsampling rate and number of channels of the two branches are set symmetrically, the spatial resolution and channel dimension of each pair of features are perfectly matched, and can be directly input into the subsequent scale-by-scale alignment and fusion module. The output of this sub-step is the paired infrared plume feature map set and the visible light structure feature map set, a total of 3 pairs of features.
[0152] In this embodiment, step 5 includes:
[0153] Step 51: Perform plume semantic mask generation processing on the infrared features at each scale in the infrared plume feature map group to obtain the plume semantic mask group corresponding to each scale.
[0154] In this embodiment, the input to this sub-step is the infrared plume features corresponding to each scale. Where s=1,2,3 correspond to the 1st, 2nd, and 3rd scale features, respectively, and the input dimensions for each scale are 256×320×32, 128×160×64, and 64×80×128, respectively. This sub-step generates a binary mask using infrared plume features as semantic anchors to limit the effective computational region for subsequent alignment and fusion. The specific implementation process is as follows:
[0155] Plume confidence heatmap generation: The infrared plume features at the current scale are compressed using a fixed 1×1 convolution kernel to map the multi-channel features into a single-channel plume confidence heatmap. The convolution kernel parameters are fixed values from offline training.
[0156] Activation normalization: Perform Sigmoid activation operation on each pixel of the heatmap to map all pixel values to the [0,1] interval. The closer the value is to 1, the higher the confidence that the pixel belongs to the plume region.
[0157] Threshold binarization: A fixed confidence threshold of 0.3 is used to binarize the confidence heatmap. Regions with a pixel confidence score ≥ 0.3 are marked as plume areas of interest and assigned a mask value of 1; regions with a pixel confidence score < 0.3 are marked as background invalid regions and assigned a mask value of 0, generating plume semantic masks at the corresponding scale. The formula is:
[0158] ;
[0159] in, Let be the semantic mask for the air plume at the s-th scale. (·) is an indicator function that takes the value 1 when the condition is met and 0 when the condition is not met. σ is the Sigmoid activation function, and Conv(·) is a 1×1 convolution operation.
[0160] In this embodiment, 0.3 is selected as the segmentation threshold. This threshold can cover low-concentration edge-diffusion plume regions, avoid weak leakage plumes being mistakenly classified as background, and filter out most background noise regions, balancing the recall and accuracy of the mask.
[0161] This sub-step performs calculations on infrared features at three scales respectively, outputting a plume semantic mask group that corresponds one-to-one with the feature size at each scale. All are single-channel binary images, with mask sizes of 256×320, 128×160, and 64×80 respectively.
[0162] Step 52: Based on the plume semantic mask group, perform semantically constrained deformable resampling alignment processing on the paired visible light structural features at each scale to obtain the visible light feature map group aligned at each scale.
[0163] In this embodiment, the input to this sub-step is the infrared plume feature at the same scale. Visible light structural features And the corresponding scale of the plume semantic mask. This sub-step performs deformable offset correction only within the plume's area of interest, resolving the issue of local deformation misalignment in the plume region of heterogeneous images and achieving pixel-level precise alignment of the plume's core region. The specific implementation process is as follows:
[0164] Initial offset prediction: Infrared plume features and visible light structure features at the same scale are concatenated along the channel dimension to obtain a concatenated feature with double the number of channels; a fixed 3×3 convolution kernel is used to process the concatenated feature to output the initial offset matrix. Each pixel corresponds to two offset parameters in the x and y directions, so the offset matrix has two channels and the spatial size is consistent with the current scale feature.
[0165] Semantic masking correction: Employing plume semantic masks of the corresponding scale. Perform a pixel-by-pixel masking operation on the initial offset matrix, forcibly setting the offsets corresponding to invalid background regions to zero, and retaining only the valid offset parameters within the plume region of interest. The formula is as follows:
[0166] ;
[0167] in, This represents the corrected offset matrix, and ⊙ represents the pixel-by-pixel multiplication operation. This operation avoids invalid offset interference from the background area and reduces unnecessary computation.
[0168] Bilinear deformable resampling: based on the corrected offset matrix, for visible light structural features Bilinear interpolation resampling is performed, adjusting the sampling position of each pixel according to its corresponding x and y offsets to achieve pixel-level precise alignment between visible light plume features and infrared plume features. Background regions, with zero offset, retain their sampling positions, maintaining the original coarse registration state. During backpropagation in the training phase, the offset gradients corresponding to invalid background regions are synchronously forced to zero, and only the offset prediction parameters within the plume interest area participate in network weight updates, ensuring that semantic constraint rules remain consistent between training and inference phases.
[0169] This sub-step performs calculations on feature pairs at three scales separately, outputting visible light feature maps aligned to each scale. The size and number of channels of each scale feature are completely consistent with the corresponding infrared plume features.
[0170] Step 53: Perform bidirectional gated attention fusion processing on the paired infrared plume features and aligned visible light features at each scale to obtain the single-scale fused feature map corresponding to each scale;
[0171] In this embodiment, the input to this sub-step is the paired infrared plume features at each scale. Aligned visible light characteristics This sub-step employs a two-way gating mechanism to achieve quantitatively guided feature fusion. On one hand, it utilizes the semantic constraints of infrared plumes on visible light features to suppress background texture interference; on the other hand, it uses visible light edge structures to refine the outline of infrared plumes. The fusion process fully preserves the linear correlation between infrared features and gas concentration. The specific implementation process is as follows:
[0172] Step 531: Weighted visible light characteristics of the plume guide gate:
[0173] Using the infrared plume features at the current scale as input, a plume spatial weight map is generated through a fixed 1×1 convolution operation and sigmoid activation. The weight values are positively correlated with plume concentration, with higher weights in the plume core area and lower weights in the background area. The plume spatial weight map is multiplied pixel-by-pixel with the aligned visible light features to enhance the visible light structural features of the plume region and suppress interference from irrelevant background textures, resulting in a weighted visible light feature. The formula is:
[0174] ;
[0175] ;
[0176] in, This is a spatial weighting diagram of air plumes. The weighted visible light characteristics.
[0177] Step 532: Weighted Infrared Features of the Structural Guiding Gate
[0178] Spatial gradient operations are performed on the visible light features aligned to the current scale to extract edge feature maps. These edge weight maps are then generated through a solidified 1×1 convolution operation and sigmoid activation. Edge regions are given higher weights, while flat regions are given lower weights. The edge weight map is multiplied pixel-by-pixel with the infrared plume features to refine the plume's edge contours, correcting the blurry edges of the plume in the infrared image, thus obtaining the weighted infrared features. The formula is:
[0179] ;
[0180] ;
[0181] in, For spatial gradient calculation, For edge weight map, Weighted infrared features.
[0182] Step 533 Feature splicing and channel compression
[0183] Weighted visible light features and weighted infrared features are concatenated along the channel dimension to obtain a concatenated feature with double the number of channels. A fixed 1×1 convolution kernel is then used to perform channel compression on the concatenated feature, restoring the number of channels to match the input single-branch feature, resulting in a single-scale fused feature map for the current scale. The calculation formula is as follows:
[0184] ;
[0185] Concat(·) is a channel-level concatenation operation. is the single-scale fused feature map at scale s.
[0186] This sub-step performs operations on feature pairs at three scales separately, outputting the single-scale fused feature map corresponding to each scale. The dimensions and number of channels at each scale are completely consistent with the original single-branch features, namely 256×320×32, 128×160×64, and 64×80×128, respectively.
[0187] Step 54: Perform an arrangement and construction process on the single-scale fused feature maps of all scales according to the resolution hierarchy to obtain the multi-scale fused feature pyramid.
[0188] The input to this sub-step is a fused feature map of three single-scale scales. This is used to construct a hierarchical feature pyramid, providing multi-scale feature support for subsequent leakage inversion. The specific implementation process is as follows:
[0189] Following the hierarchical order of resolution from high to low, the three layers of fused features are arranged sequentially to form a feature pyramid structure with decreasing resolution and increasing channel number from bottom to top: the first layer is a shallow high-resolution feature layer. The first layer contains details of the plume edges and minute leak texture information; the second layer contains mid-level features. The first layer contains information on the morphology of medium-scale plumes; the third layer contains deep, low-resolution features. It includes global plume diffusion distribution and background radiation context information.
[0190] This pyramid structure fully covers multi-dimensional plume features, from fine-grained details to global semantics, and can support the subsequent inversion module to simultaneously meet the quantitative calculation needs of micro-leaks and large-scale diffuse plumes.
[0191] The output of this sub-step is a multi-scale fused feature pyramid. , , }
[0192] In this embodiment, step 6 includes:
[0193] Step 61: Perform multi-scale upsampling and channel compression aggregation on the multi-scale fusion feature pyramid to obtain global aggregated fusion features;
[0194] The input to this sub-step is the three scale features of the multi-scale fused feature pyramid, where the first scale... The dimensions are 256×320×32, the second scale. The dimensions are 128×160×64, the third scale. The dimensions are 64×80×128. This sub-step employs a top-down upsampling and stitching strategy, fusing deep global semantic features with shallow high-resolution detail features to obtain a global fusion feature that aggregates multi-scale information. The specific implementation process is as follows:
[0195] Deep feature upsampling and mid-level stitching: for the deepest third-scale features Performing a 2x bilinear upsampling, the resolution is increased to 128×160, compared to the second-scale features. The spliced features are obtained by concatenating along the channel dimension, resulting in a spliced feature with 192 channels. Channel compression is then performed on the spliced feature using a fixed 3×3 convolution kernel, restoring the number of channels to 64, resulting in a mid-layer aggregated feature with a size of 128×160×64.
[0196] Mid-level feature upsampling and shallow layer stitching: The mid-level aggregated features are again upsampled by 2x bilinear interpolation, increasing the resolution to 256×320, and then stitched together with the first-scale features. By splicing along the channel dimension, a spliced feature with 96 channels is obtained; channel compression is performed on the spliced feature using a fixed 3×3 convolution kernel, restoring the number of channels to 32, resulting in a globally aggregated and fused feature.
[0197] This embodiment employs bilinear upsampling, which has low computational cost and good edge smoothing, avoiding the checkerboard artifacts caused by deconvolution. Simultaneously, the top-down fusion architecture can transfer deep global plume distribution information to shallow layers, supplementing the global contextual constraints of shallow features and balancing the integrity of detailed textures and global morphological features. All convolution kernel parameters are fixed values that are solidified after offline training and are not updated during the inference phase.
[0198] The output of this sub-step is the global aggregated and fused feature. The size is 256×320×32, and it serves as the common input for the subsequent concentration prediction branch and mask generation branch.
[0199] Step 62: Perform pixel-by-pixel concentration bar integral prediction on the global aggregation and fusion features, and perform temperature analysis correction processing in combination with the pre-calibrated gas absorption temperature sensitive parameters to obtain the temperature-corrected pixel-by-pixel concentration bar integral map.
[0200] In this embodiment, the input to this sub-step is the global aggregation and fusion feature output from step 61. Real-time acquisition of ambient temperature parameters by on-site sensors (Unit: K), and pre-calibrated fixed parameters: reference temperature The target gas absorption temperature sensitivity constant β. β is the temperature dependence constant of the corresponding gas absorption spectral line, obtained by pre-fitting the spectral data and fixed to the terminal before deployment. This sub-step completes the deep learning prediction and physical correction of the concentration column integral, outputting a concentration distribution map with standard physical dimensions. The specific implementation process is as follows:
[0201] Original concentration column integral prediction: global aggregation and fusion features Channel compression is performed using a fixed 3×3 convolution kernel, outputting a single-channel raw concentration column integral prediction plot. Each pixel value corresponds to the original predicted value of the gas concentration optical path integral at that spatial location, in units of The convolution kernel parameters are fixed values obtained by joint optimization with physical loss during offline training. During the training phase, the mapping relationship between feature values and true concentration column integrals is fitted through supervision of the true concentration values in a standard leakage scenario.
[0202] Temperature correction factor calculation: Based on the temperature dependence of the gas absorption coefficient in Beer-Lambert's law, the temperature correction factor is calculated using an exponential analytical formula. The formula for correcting the absorption coefficient deviation caused by the ambient temperature deviating from the reference temperature is:
[0203] ;
[0204] in, β is the temperature correction coefficient, which is dimensionless; β is the target gas absorption temperature sensitivity constant, which is pre-calibrated based on the gas infrared spectral characteristics. Real-time ambient temperature; The reference temperature is fixed at 298K.
[0205] Pixel-by-pixel temperature correction: Perform a pixel-by-pixel correction operation on all pixels of the original concentration bar integral image, using the following formula:
[0206] ;
[0207] The corrected pixel value is equivalent to the standard concentration column integral at the reference temperature, eliminating the systematic deviation of concentration quantification caused by ambient temperature fluctuations.
[0208] The output of this sub-step is a temperature-corrected pixel-by-pixel density bar graph. Single channel, dimensions 256×320, unit is It is directly used as the core input for spatial integration calculation.
[0209] Step 63: Perform plume confidence prediction and threshold binarization on the global aggregated and fused features to obtain the binary mask of the effective plume region.
[0210] In this embodiment, the input to this sub-step is the global aggregation and fusion feature. This is used to generate a binarized mask for the effective region of the plume, limiting the effective pixel range for subsequent leakage calculations and eliminating noise interference from the background region. The specific implementation process is as follows:
[0211] Air plume confidence map generation: global aggregation and fusion of features Channel dimensionality reduction is performed using a fixed 1×1 convolution kernel to output a single-channel plume confidence feature map. Sigmoid activation is performed on the feature map pixel by pixel to map the pixel values to the [0,1] interval, thus obtaining the plume confidence map. The closer the value is to 1, the higher the probability that the pixel belongs to the plume region.
[0212] Threshold binarization: A fixed confidence threshold of 0.5 is used to perform binarization segmentation on the confidence map. Regions with a pixel confidence score ≥ 0.5 are marked as valid plume regions and the mask value is assigned to 1; regions with a pixel confidence score < 0.5 are marked as invalid background regions and the mask value is assigned to 0, thus generating a binary mask for the valid plume regions.
[0213] In this embodiment, 0.5 is selected as the segmentation threshold. The threshold can balance the recall and precision of the plume region, avoiding the result being too high due to too many background pixels mixed in the integration calculation, and also ensuring the accuracy of the leakage amount integration without missing low-concentration edge plume regions.
[0214] The output of this sub-step is a binary mask of the effective area of the plume. The single-channel binary image, with a size identical to the concentration column integral image (256×320), is directly used as the regional constraint input for spatial integration.
[0215] This step ultimately outputs two types of results simultaneously: a pixel-by-pixel concentration bar integral map after temperature correction, and a binary mask of the effective area of the plume.
[0216] In this embodiment, step 7 includes:
[0217] Step 71: Calculate parameter synchronization and initialization
[0218] This sub-step is used to collect and verify all input parameters required for quantitative calculations, ensuring that the parameters completely match the temporal and spatial dimensions of the current image frame. The specific implementation process is as follows:
[0219] Image domain input parameters: Pixel-by-pixel density bar integral image output from step 6 after temperature correction. (Single channel, dimensions 256×320, unit) Binary mask for effective area of plume (Binary images of the same size) are the output results of the same frame image, with pixel coordinates corresponding one-to-one and spatially perfectly aligned.
[0220] Real-time operating parameters: Real-time data collected by wind speed and direction sensors installed at the same height as the monitoring equipment on site. Select wind speed data with a difference of no more than 1 second from the current image frame acquisition timestamp, and extract the wind speed magnitude v (unit: m / s) and the prevailing wind direction to ensure that the operating parameters are consistent with the airflow state at the time of image acquisition.
[0221] Pre-calibrated spatial parameters: retrieve the physical equivalent size d (unit: m / pixel) of a single pixel that was fixed before the device left the factory. This parameter is pre-calibrated using the standard checkerboard calibration method: at the rated monitoring distance of the device, use a standard checkerboard target of known size to calculate the actual physical scene side length corresponding to a single pixel; in this embodiment, when the rated monitoring distance is 10m, the typical value of d is 0.02m / pixel. The actual value is fixed according to the calibration results of the device focal length and installation distance, and remains unchanged during the inference stage.
[0222] Gas property constants: The preset molar mass M (unit: g / mol) of the target hazardous gas is retrieved, such as 16 g / mol for methane and 78 g / mol for benzene, pre-configured according to the type of target gas being monitored; simultaneously, the gas molar volume constant under standard conditions is introduced. , used for standardized conversion of concentration units.
[0223] Step 72: Effective pixel selection and density unit standardization
[0224] This sub-step is used to define the effective region of integration and to convert ppm-level volumetric concentration to molar concentration, thus unifying the physical units for subsequent flux integration. The specific implementation process is as follows:
[0225] Effective pixel filtering for plumes: Traverse all pixels in the image and retain only the binary mask of the effective plume region. The pixels with a mask of 0 are used as valid pixels for integration, while all background pixels are excluded and do not participate in subsequent integration calculations, thus eliminating the interference of background noise on the integration result from the source.
[0226] Concentration unit conversion: Based on the ideal gas law, the unit conversion will be performed using... The column integral of volume concentration in units, converted to molar column concentration in mol / m², is expressed by the following formula:
[0227] ;
[0228] in, This represents the molar column concentration at pixel (x,y), in mol / m². This is the temperature-corrected concentration column integral value; The conversion factor for converting ppm units to volume fractions; is the molar volume constant of a gas under standard conditions.
[0229] The converted molar column concentration represents the amount of gaseous substance per unit area, which perfectly matches the physical dimensions of mass flux and can be directly used for subsequent flux integration calculations. This sub-step outputs a set of valid pixels and their corresponding molar column concentration values.
[0230] Step 73: Selection of Integral Cross Section and Determination of Wind Speed Normal Component
[0231] This sub-step selects an effective integration section based on the physical definition of mass flux, determines the normal velocity component of the airflow, and ensures that the flux calculation conforms to the basic definitions of fluid mechanics. The specific implementation process is as follows:
[0232] Selection of the cross-section for the stable diffusion section: Based on the effective area mask of the plume, the overall diffusion direction of the plume is identified, and a pixel column perpendicular to the prevailing wind direction and located in the middle of the plume diffusion is selected as the effective integration cross-section. The rationale for selecting the middle diffusion section is that this area has escaped the near-field turbulence disturbance zone of the leakage source, the plume concentration distribution and wind speed field tend to be stable, there is no obvious entrainment turbulence interference, and the calculated flux result is closer to the actual leakage rate, with higher repeatability and accuracy. The specific selection rules are as follows: the minimum bounding rectangle of the plume is extracted based on the binary mask of the effective area of the plume, and the direction of the long side of the rectangle is taken as the overall diffusion direction of the plume; along the diffusion axis, the middle section between one-third and two-thirds of the distance from the leakage source side is selected, and a pixel column perpendicular to the diffusion direction is selected as the effective integration cross-section to ensure that the cross-section is always located within the stable diffusion section of the plume.
[0233] Determination of the normal component of wind speed: Since the integral cross section is perpendicular to the prevailing wind direction, and the airflow direction is parallel to the normal direction of the cross section, the normal component of wind speed is determined as follows: Equal to real-time wind speed ,Right now The unit is m / s.
[0234] Single-pixel cross-sectional line length conversion: The actual physical line length corresponding to each effective pixel on a cross-section perpendicular to the wind direction is the physical equivalent size of a single pixel. ,Right now The unit is meters (m). The output of this sub-step is the set of effective pixels on the effective integration cross-section and the wind speed normal component. Line length of single pixel cross section .
[0235] Step 74: Pixel-level molar flux spatial integration
[0236] This sub-step performs spatial integration by summing the flux pixel by pixel to calculate the total molar leakage flux. The specific implementation process is as follows:
[0237] For all effective pixels of the gas plume on the effective integration cross section, calculate the amount of gas passing through the physical area corresponding to that pixel per unit time, and then sum over all pixels to obtain the total molar flux. The integration formula is as follows:
[0238] ;
[0239] in, Total molar leakage flux, in mol / s; The set of effective pixels of the plume on the effective cross-section; This represents the molar column concentration of the corresponding pixel; For the normal component of wind speed; This represents the physical line length of the cross-section corresponding to a single pixel.
[0240] This embodiment uses pixel-level discrete integration instead of traditional region-average integration, which can completely preserve the spatial distribution differences of the gas plume concentration and avoid quantitative errors caused by averaging. It is especially suitable for turbulent diffusion gas plume scenarios with uneven concentration distribution. The output of this sub-step is the instantaneous molar leakage flux of the hazardous gas. .
[0241] Step 75: Mass Leakage Rate Conversion and Result Output
[0242] This sub-step converts molar flux into mass leakage rate, a common industrial monitoring method, and outputs the final quantitative result of instantaneous leakage. The specific implementation process is as follows:
[0243] Based on the conversion relationship between quantity of substance and mass, the molar flux is multiplied by the molar mass of the target gas to obtain the instantaneous mass leakage rate, which is the quantitative result of the instantaneous leakage amount obtained by this method. The conversion formula is as follows:
[0244] ;
[0245] in, The instantaneous mass leakage rate of hazardous gases is expressed in g / s, which is the quantitative result of the instantaneous leakage amount corresponding to a single frame image. denoted as the total molar leakage flux; M is the molar mass of the target gas.
[0246] The output of this sub-step is a quantitative result of the instantaneous leakage of hazardous chemicals, which can be directly used in subsequent business processes such as leak alarm, leak level determination, and long-term leakage statistics. This step is based entirely on the law of conservation of physical quantities, all parameters are traceable and calibrated, and the results have clear physical dimensions, which can be directly applied to the metrological needs of industrial safety monitoring.
[0247] This application also provides a heterogeneous image fusion analysis device for monitoring hazardous gas leaks using OGI (Oxygen Gel Injection System), the device comprising:
[0248] An image acquisition module is used to acquire synchronously acquired mid-wave infrared OGI images and visible light RGB images;
[0249] A baseline-anchored normalized infrared image acquisition module is used to generate a baseline-anchored normalized infrared image based on a mid-wave infrared OGI image.
[0250] A visible light image acquisition module after coarse registration, which is used to generate a coarsely registered visible light image based on a visible light RGB image;
[0251] A multi-scale plume feature alignment and fusion network is used to extract dual-stream multi-scale specific features from the baseline-anchored normalized infrared image and the coarsely registered visible light image, thereby obtaining an infrared plume feature map set and a visible light structural feature map set; the infrared plume feature map set and the visible light structural feature map set are fused to obtain a multi-scale fused feature pyramid; and a binary mask of the effective plume region and a temperature-corrected pixel-by-pixel concentration column integral map are generated based on the multi-scale fused feature pyramid.
[0252] The quantitative result acquisition module is used to perform spatial integration and flow conversion processing on the temperature-corrected pixel-by-pixel concentration bar graph based on the binary mask of the effective area of the gas plume, combined with real-time wind speed and pre-calibrated pixel spatial parameters, so as to obtain the quantitative result of the instantaneous leakage of hazardous gas.
[0253] In this embodiment, the Multi-Scale Plume Feature Alignment and Fusion Network (MS-GAFNet) is the end-to-end fully convolutional computation carrier of this application. It adopts a three-level hierarchical architecture consisting of a dual-stream dedicated encoder, a scale-wise semantic alignment and fusion module, and a multi-scale aggregated dual-task prediction head. All trainable parameters of the convolutional layers and attention modules are completely fixed after offline joint training. During the inference phase, only forward propagation is performed without parameter updates. The network retains the physical correlation between features and gas concentration throughout the entire process, and can simultaneously perform plume feature enhancement, accurate heterogeneous alignment, quantitative feature fusion, and multi-task prediction output.
[0254] The network input consists of two single-channel grayscale image pairs that are perfectly aligned in spatial dimensions. The first input is a baseline-anchored and normalized infrared image with a size of 512×640, a single channel, and pixel values ranging from 0 to 1, which is connected to the infrared coding branch. The second input is a coarsely registered visible light image, also with a size of 512×640, a single channel, and pixel values ranging from 0 to 1, which is connected to the visible light coding branch.
[0255] The network output consists of two single-channel prediction results with identical spatial dimensions. The first channel is the original concentration bar integral prediction map, with a size of 256×320, single-channel, where the pixel values correspond to the original concentration bar integral prediction values, in units of... The second path is the plume confidence map, which is also 256×320 in size, single-channel, with pixel values ranging from 0 to 1, corresponding to the probability that a pixel belongs to the plume region.
[0256] Temperature analysis correction and threshold binarization are fixed operations of physical rules, without any trainable parameters. They are not part of the network's internal structure and are only used as post-processing steps for the network output.
[0257] Unless otherwise specified, all trainable convolutional layers in the network are connected in series with a batch normalization (BN) layer and a ReLU activation function; the final output class convolutional layers are configured with a sigmoid activation function separately according to task requirements, and have no batch normalization layer.
[0258] Level 1: Dual-stream dedicated encoder module
[0259] This module is the feature extraction layer of the network. Targeting the imaging characteristics and task requirements of heterogeneous images, it employs two completely independent coding branches with no cross-operations. These branches extract weak features from infrared plumes and edge features from visible light structures, respectively, outputting three sets of multi-scale feature pairs with perfectly matched resolution and number of channels. Both branches are three-level cascaded downsampling structures, with a fixed downsampling factor of 2 at each level and an increasing number of channels layer by layer.
[0260] Infrared branch: Plume weak feature enhancement encoder
[0261] The core computational unit of this branch is the GWE-Conv weak feature enhancement convolutional unit, which consists of three layers connected in series. Each layer has an overall stride of 2. Internally, it is composed of three parts: background suppression branch, multi-receptor field branch, and channel attention module, connected in parallel and in series.
[0262] The background suppression branch has no trainable parameters. It uses a uniform weighted mean filter kernel with a size of 3×3. The input features are filtered by mean to extract low-frequency static background radiation features. The difference between the input features and the original input features is calculated pixel by pixel to filter out the overall background fluctuation interference and output the background suppression features.
[0263] The multi-receptive field branch contains trainable parameters and sets up three parallel 3×3 dilated convolutions with dilation rates of 1, 2, and 4. Each convolutional layer is equipped with a batch normalization (BN) layer and a ReLU activation function. The three outputs are spliced along the channel dimension to cover small, medium, and large plume morphologies and output multi-receptive field plume features.
[0264] The channel attention module contains trainable parameters. The concatenated features are first processed by global average pooling to obtain channel-dimensional feature vectors, and then processed by two cascaded fully connected layers. The number of channels in the first layer is compressed to one-eighth of the number of input channels, and a ReLU activation function is used. The number of channels in the second layer is restored to the number of input channels, and a Sigmoid activation function is used to generate channel weight vectors. The weight vectors are multiplied with the concatenated features channel by channel to enhance effective plume feature channels and suppress redundant noise channels, resulting in the final enhanced features of the output unit.
[0265] The three layers of units are connected in series from highest to lowest resolution. The first layer, GWE-Conv, takes a single-channel normalized infrared image of size 512×640 as input and outputs a 32-channel feature map of size 256×320, corresponding to the first-scale infrared plume feature at half the resolution of the original image. The second layer, GWE-Conv, takes the first-scale infrared plume feature as input and outputs a 64-channel feature map of size 128×160, corresponding to the second-scale infrared plume feature at one-quarter the resolution of the original image. The third layer, GWE-Conv, takes the second-scale infrared plume feature as input and outputs a 128-channel feature map of size 64×80, corresponding to the third-scale infrared plume feature at one-eighth the resolution of the original image. The outputs of the three layers together form an infrared plume feature map.
[0266] 2. Visible light branch: Edge structure reinforced encoder
[0267] The core computational unit of this branch is the Edge Structure Enhancement Convolutional Unit (ESR-Conv), which consists of three layers connected in series. Each layer has an overall stride of 2. Internally, it is composed of three parts: a gradient edge extraction module, a depthwise separable convolutional module, and a spatial attention module. The size and number of channels of the output features are perfectly matched with the scale corresponding to the infrared branch.
[0268] The gradient edge extraction module has no trainable parameters. It uses two 3×3 Sobel operators, one horizontal and one vertical, to extract the horizontal and vertical gradients of the input features, respectively, and calculates the gradient magnitude map. The gradient magnitude map is then concatenated with the original input features along the channel dimension to fuse the original texture and edge structure information.
[0269] The depthwise separable convolution module contains trainable parameters and consists of a series of 3×3 depthwise convolutions and 1×1 pointwise convolutions. In the depthwise convolution stage, each channel is operated independently without channel interaction. In the pointwise convolution stage, information interaction is completed in the channel dimension. While reducing the number of parameters and computation, edge structure features are preserved and the intermediate features after dimensionality reduction are output.
[0270] The spatial attention module contains trainable parameters. It performs global max pooling and global average pooling on the dimensionality-reduced features along the channel dimension to obtain two single-channel spatial feature maps. The two feature maps are concatenated along the channel dimension and then generated into a spatial weight map through 1×1 convolution and sigmoid activation. The spatial weight map is multiplied pixel by pixel with the input features to enhance the feature weights of structural regions such as edges and contours, suppress redundant information in flat background regions, and output the final structural enhancement features of the unit.
[0271] The three ESR-Conv units are cascaded in descending order of resolution. The first ESR-Conv unit takes a single-channel coarsely registered visible light image of size 512×640 as input and outputs a 32-channel feature image of size 256×320, corresponding to the first-scale visible light structural features. Its resolution and number of channels are completely consistent with the infrared features at the same scale. The second ESR-Conv unit takes the first-scale visible light structural features as input and outputs a 64-channel feature image of size 128×160, corresponding to the second-scale visible light structural features. The third ESR-Conv unit takes the second-scale visible light structural features as input and outputs a 128-channel feature image of size 64×80, corresponding to the third-scale visible light structural features. The outputs of the three units together form a visible light structural feature map.
[0272] Level 2: Scale-by-Scale Semantic Alignment and Fusion Module
[0273] This module is the core innovative unit of the network. Addressing the issue of local deformation deviations in plume regions of heterogeneous images, it performs pixel-level alignment and quantitative guided fusion only around the effective plume region, eliminating local errors in overall image registration while avoiding the problem of general fusion disrupting the physical correlation of concentration. The module processes three sets of feature pairs at different scales one by one. Each set of features sequentially undergoes three stages: plume semantic mask generation, semantically constrained deformable alignment, and bidirectional gated attention fusion. Finally, it outputs three single-scale fused features, arranged hierarchically by resolution to form a multi-scale fused feature pyramid.
[0274] The plume semantic mask generation stage takes infrared plume features at the corresponding scale as input and uses a parameter-fixed 1×1 convolution kernel for channel compression, mapping multi-channel features into a single-channel plume confidence heatmap. After mapping pixel values to the 0-1 range using a Sigmoid activation function, binarization is performed using a fixed confidence threshold of 0.3. Regions with pixel confidence greater than or equal to 0.3 are marked as plume interest areas and assigned a mask value of 1, while regions with pixel confidence less than 0.3 are marked as invalid background areas and assigned a mask value of 0, generating plume semantic masks at the corresponding scale. After processing at the three scales respectively, plume semantic mask groups corresponding one-to-one with the feature size of each scale are obtained.
[0275] The semantically constrained deformable alignment step concatenates infrared plume features and visible light structural features at the same scale along the channel dimension. After parameter-fixed 3×3 convolution kernel operations, an initial offset matrix is output. Each pixel corresponds to offset parameters in both the horizontal and vertical directions, and the spatial dimensions of the offset matrix are consistent with the features at the current scale. A pixel-by-pixel masking operation is performed on the initial offset matrix using a plume semantic mask of the corresponding scale. The offsets corresponding to invalid background areas are forcibly set to zero, retaining only the valid offset parameters within the plume interest area. Based on the corrected offset matrix, bilinear interpolation resampling is performed on the visible light structural features. Each pixel adjusts its sampling position according to its corresponding offset, achieving pixel-level precise alignment between the plume regions of the visible light features and the infrared plume features. Since the background region has a zero offset, its sampling position remains unchanged, maintaining the original coarse registration state. After operations at the three scales, aligned visible light feature maps are obtained for each scale, with dimensions and channel numbers perfectly matching the corresponding infrared plume features.
[0276] The bidirectional gating attention fusion stage employs a bidirectional gating mechanism to achieve quantitatively guided feature fusion, which is executed in three steps. The first step is plume-guided weighting. Using the infrared plume features at the current scale as input, a 1×1 convolution operation with fixed parameters and sigmoid activation are performed to generate a plume spatial weight map. The weight values are positively correlated with plume concentration, with higher weights for the plume core region and lower weights for the background region. The plume spatial weight map is then multiplied pixel-by-pixel with the aligned visible light features to enhance the visible light structural features of the plume region and suppress interference from irrelevant background textures, resulting in weighted visible light features. The second step is structure-guided weighting. Spatial gradient operations are performed on the aligned visible light features at the current scale to extract edge feature maps. A 1×1 convolution operation with fixed parameters and sigmoid activation are performed to generate an edge weight map, with higher weights for edge regions and lower weights for flat regions. The edge weight map is then multiplied pixel-by-pixel with the infrared plume features to refine the plume edge contours and correct the blurring defects of plume edges in the infrared image, resulting in weighted infrared features. The third step is feature concatenation and compression. Weighted visible light features and weighted infrared features are concatenated along the channel dimension to obtain a concatenated feature with double the number of channels. A parameter-fixed 1×1 convolution kernel is then used to perform channel compression on the concatenated feature, restoring the number of channels to match the input single-branch feature, resulting in a single-scale fusion feature map for the current scale. After processing at the three scales respectively, three sets of single-scale fusion features with different resolutions are obtained. Arranging these features from highest to lowest resolution constitutes a multi-scale fusion feature pyramid.
[0277] Level 3: Multi-scale aggregated dual-task prediction head module
[0278] This module is the output layer of the network. It takes a multi-scale fusion feature pyramid as input and uses a top-down upsampling and splicing strategy to complete multi-scale feature aggregation. It is then divided into two prediction branches with completely independent parameters, which output the concentration column integral prediction result and the plume confidence result, respectively. The two branches do not share parameters and are adapted to the needs of quantitative regression and region segmentation tasks, respectively.
[0279] The multi-scale feature aggregation stage employs a top-down upsampling and concatenation strategy, fusing deep global semantic features with shallow high-resolution detail features. First, the deepest third-scale fusion feature undergoes a 2x bilinear upsampling, increasing its resolution to match the second-scale feature, and is then concatenated with the second-scale fusion feature along the channel dimension. Channel compression is then performed on the parameter-fixed 3×3 convolutional kernel, restoring the number of channels to the original number of channels at the second scale, resulting in the mid-level aggregated feature. Next, the mid-level aggregated feature undergoes another 2x bilinear interpolation upsampling, increasing its resolution to match the first-scale feature, and is then concatenated with the first-scale fusion feature along the channel dimension. Channel compression is then performed on the parameter-fixed 3×3 convolutional kernel, restoring the number of channels to 32, resulting in the global aggregated fusion feature with a size of 256×320, which also serves as the common input for the two prediction branches.
[0280] The concentration column integral prediction branch takes global aggregated and fused features as input, uses a parameter-fixed 3×3 convolution kernel for channel compression, and outputs a single-channel raw concentration column integral prediction map. Each pixel value corresponds to the raw predicted value of the gas concentration optical path integral at that spatial location, in units of... The convolution kernel parameters of this branch are fixed values obtained by joint optimization with physical loss during offline training. During the training phase, the mapping relationship between feature values and true concentration column integrals is fitted through supervision using the true concentration values of a standard leakage scenario.
[0281] The plume confidence prediction branch takes global aggregated and fused features as input, uses a parameter-fixed 1×1 convolution kernel for channel dimensionality reduction, and outputs a single-channel plume confidence feature map. Sigmoid activation is performed on the feature map pixel by pixel to map the pixel value to the range of 0 to 1, and the plume confidence map is obtained. The closer the value is to 1, the higher the probability that the pixel belongs to the plume region.
[0282] All trainable parameters of the network are optimized through offline joint training. The training adopts a joint loss function that combines segmentation loss and physical regularization loss. After training, all weights are completely fixed. During the inference phase, only forward propagation is performed without parameter updates, which ensures computational efficiency and result stability.
[0283] In this embodiment, the multi-scale plume feature alignment and fusion network of this application is trained using the following method:
[0284] The multi-scale plume feature alignment and fusion network employs an offline supervised joint training method for parameter optimization. The training process is performed offline only on the server side. After training, all trainable parameters are completely fixed. Upon deployment to the terminal, only forward inference is performed, and the parameters are not updated again. The entire training process revolves around the joint optimization of the dual objectives of plume segmentation accuracy and concentration quantification accuracy, ensuring that the network simultaneously possesses the ability to detect weak plumes and maintains quantitative physical consistency. The specific training method is implemented as follows:
[0285] Training dataset construction and labeling
[0286] The training dataset covers three typical scenario samples to ensure the model's generalization performance and adaptability to various operating conditions: indoor standard calibration samples, pilot-scale turbulence samples, and outdoor complex operating condition samples. All samples are paired data of synchronously acquired mid-wave infrared OGI images and visible light RGB images. Each image pair is accompanied by two types of ground truth annotations: the first type is a pixel-level plume segmentation ground truth mask, manually annotated by professional annotators based on high-precision infrared detection results, accurately distinguishing the effective plume area from the background area; the second type is a pixel-level concentration column integral ground truth map, obtained by controlling a known leakage rate with a standard mass flow meter and calibrating with a uniform flow field in a wind tunnel, corresponding to the real spatial distribution of gas concentration in each frame of the image, with traceable physical dimensions.
[0287] The dataset is divided into a training set and a validation set according to a preset ratio. The training set is used for iterative updates of network parameters, while the validation set is used to monitor the training convergence status and model generalization performance. Validation set samples do not participate in parameter updates and are only used for accuracy verification.
[0288] Data preprocessing and batch sample construction
[0289] For each pair of heterogeneous images in the dataset, perform the same preprocessing operations as in the inference stage. Specifically, perform baseline anchoring normalization on infrared images and weighted grayscale conversion, grayscale interval anchoring alignment, and homography coarse registration on visible light images to obtain paired normalized images that are completely consistent with the inference input specifications. This ensures that the data distribution is consistent between training and inference, and avoids the decrease in inference accuracy caused by domain bias.
[0290] After preprocessing, only lightweight data augmentation is used to expand the samples without changing the physical meaning of grayscale. This includes only random horizontal flipping and avoids enhancement operations that disrupt the linear relationship between concentration and grayscale, such as grayscale stretching, random occlusion, and noise addition, thus preventing interference with the quantitative feature learning process. The preprocessed samples are packaged into training batches with a fixed batch size. Each batch contains multiple pairs of paired images and corresponding ground truth labels, which serve as input for a single iteration.
[0291] Network parameter initialization
[0292] Initialize all trainable parameters of the network. Convolutional layer weights are initialized using a He normal distribution, and bias terms are initialized to 0. The scaling parameter of the batch normalization layer is initialized to 1, and the offset parameter is initialized to 0. All fixed computation modules in the network, including mean filtering, Sobel gradient operator, bilinear interpolation upsampling, etc., have fixed parameters throughout the process and do not participate in training optimization. All pre-calibrated physical constants, including the standard molar absorption coefficient of gas, reference temperature, temperature sensitivity constant, etc., remain fixed values throughout the process and are not included in the training update scope.
[0293] Batch forward propagation operation
[0294] The normalized infrared image and coarsely registered visible light image of the current training batch are input into the corresponding branches of the dual-stream dedicated encoder. Three sets of scale-matched infrared plume features and visible light structural features are extracted by a three-layer downsampling unit. These features are then input into a scale-wise semantic alignment and fusion module, which sequentially performs plume semantic mask generation, semantically constrained deformable alignment, and bidirectional gated attention fusion, outputting a multi-scale fused feature pyramid. The fused features are then input into a multi-scale aggregation dual-task prediction head. After top-down multi-scale feature aggregation, the predicted plume confidence map and predicted concentration helical integral map for all samples in the batch are output. The forward propagation process involves no parameter updates, only feature computation and result output.
[0295] Multi-task joint loss function calculation
[0296] Based on the prediction results and corresponding ground truth labels within the batch, the joint loss value of multiple tasks is calculated. The joint loss is composed of two weighted parts: the segmentation composite loss and the quantitative physical loss. The overall calculation logic is that the total loss is equal to the segmentation composite loss multiplied by the segmentation weight coefficient, plus the quantitative physical loss multiplied by the quantitative weight coefficient. The two weight coefficients are preset fixed values used to balance the optimization intensity of the two types of tasks, with typical values of 1.0 and 0.6, respectively.
[0297] The segmentation composite loss is used to optimize the segmentation accuracy of plume regions and consists of three weighted components: the first is the Dice loss, which balances the imbalance in pixel count between the foreground and background of the plume, improving the segmentation recall of small, weak plumes; the second is the binary cross-entropy loss, which completes the basic constraint of pixel-level binary classification, ensuring overall segmentation accuracy; the third is the boundary enhancement loss, which weights the prediction error based on the edge gradient of the ground truth mask, amplifies the loss penalty for plume edge regions, strengthens the learning effect of sparse plume edges, and solves the problem of blurred segmentation of weak leakage edges. The three loss components are weighted and summed according to preset weights to obtain the final segmentation composite loss.
[0298] The quantitative physical loss is used to optimize the accuracy and physical consistency of concentration prediction. It consists of two weighted components: the first is the concentration regression loss, which uses mean squared error to calculate the pixel-level deviation between the predicted concentration histogram and the true concentration map, constraining the fitting accuracy between the predicted value and the true concentration; the second is the physical consistency regularization loss, which constrains the linear correspondence between the predicted concentration and infrared grayscale based on the Beer-Lambert law, penalizing outlier predictions that disrupt the linear relationship between concentration and radiation, ensuring the physical interpretability of the network output, and avoiding the poor external generalization problem caused by pure data fitting. The two losses are weighted and summed according to preset weights to obtain the final quantitative physical loss.
[0299] The specific formula for the loss function is as follows:
[0300] The overall formula for calculating the joint loss of multiple tasks is:
[0301] ;
[0302] in, This is the global joint loss value; The composite loss value is used to constrain the segmentation accuracy of the plume region; This is a quantitative physical loss value used to constrain the accuracy and physical consistency of concentration prediction; The physical loss balancing weight coefficient has a value range of 0.3 to 0.8. In this embodiment, it is set to 0.6 to balance the optimization intensity of the two types of tasks and avoid a single task dominating the training process.
[0303] Segmentation composite loss
[0304] The segmentation composite loss is composed of three weighted components: Dice loss, binary classification cross-entropy loss, and boundary enhancement loss. The calculation formula is as follows:
[0305] ;
[0306] in, The Dice loss component is used to balance the imbalance in the number of pixels between the foreground and background of the plume. This is the cross-entropy loss component for binary classification, used to provide the basic constraints for pixel-level binary classification; The boundary enhancement loss component is used to improve the segmentation accuracy of the edges of thin gas plumes; The cross-entropy loss weight coefficient has a value range of 0.8 to 1.2, and is set to 1.0 in this embodiment; The boundary enhancement loss weight coefficient has a value range of 0.6 to 1.2, and is set to 0.8 in this embodiment.
[0307] The specific formulas and parameter definitions for each sub-loss term are as follows:
[0308] Dice loss
[0309] The Dice loss is constructed based on the pixel intersection-over-union ratio, which can effectively alleviate the sample imbalance problem caused by the low pixel proportion in the plume region. The calculation formula is as follows:
[0310] ;
[0311] in, (x,y) represents the value of the confidence map of the plume predicted by the network at pixel (x,y), with a range of [0,1]. (x,y) represents the value of the pixel-level feather segmentation ground truth mask at pixel (x,y), with 1 for feather regions and 0 for background regions; the summation operation iterates through all pixel coordinates (x,y) of the feature map.
[0312] Binary cross-entropy loss
[0313] The binary cross-entropy loss is a fundamental constraint term for pixel-level classification, ensuring the overall segmentation accuracy. The calculation formula is as follows:
[0314] ;
[0315] Where H and W are the height and width pixels of the predicted feature map, respectively; ln is the natural logarithm operation; the remaining symbols are defined in the same way as the Dice loss.
[0316] Boundary Enhancement Loss
[0317] Boundary enhancement loss applies a weighted penalty to the edge gradient of the ground truth mask, amplifying the error weights in the edge regions of sparse plumes and addressing the problem of blurred edge segmentation in weakly leaking plumes. The calculation formula is as follows:
[0318] ;
[0319] in, is the spatial gradient magnitude of the truth mask at pixel (x,y), obtained by summing the absolute values of the horizontal and vertical gradients, and has a non-zero value only in the edge region of the plume; |·| is the absolute value operation; the other symbols are defined in the same way as the Dice loss.
[0320] Quantitative physical loss
[0321] The quantitative physical loss is composed of two weighted components: concentration regression loss and physical consistency regularization loss. The calculation formula is as follows:
[0322] ;
[0323] in, This is the concentration regression loss component, used to constrain the fitting accuracy between the predicted concentration and the true concentration. The physical consistency regularization loss component is used to constrain the physical rationality of the prediction results based on the Beer-Lambert law; γ is the physical regularization weight coefficient, with a value range of 0.2 to 0.5. In this embodiment, it is set to 0.3 to balance the optimization intensity between fitting accuracy and physical consistency.
[0324] Concentration regression loss
[0325] The concentration regression loss is constructed using mean squared error to constrain the deviation between pixel-level concentration predictions and true values. The calculation formula is as follows:
[0326] ;
[0327] in, The set of valid pixels for the plume marked by the truth mask; This represents the total number of effective pixels in the plume. This is the integral value of the original concentration column predicted by the network, in units of... ; The pixel-level concentration column integral true value obtained from the calibration is in units of The loss is calculated only within the effective area of the plume, excluding interference from background pixels.
[0328] Physical consistency regularization loss
[0329] The physical consistency regularization loss is constructed based on the Beer-Lambert gas absorption law, forcing a linear relationship between the predicted concentration and the infrared radiation attenuation. This ensures the physical interpretability of the network output and avoids the poor external field generalization problem caused by pure data fitting. The calculation formula is as follows:
[0330] ;
[0331] in, The radiation attenuation value at pixel (x,y) of the baseline-anchored normalized infrared image is calculated from the difference between the background baseline grayscale and the current pixel grayscale. K is a pre-calibrated radiation-concentration linear coefficient, obtained by fitting a standard leak calibration experiment with the Beer-Lambert law, and remains fixed during both training and inference phases. The definitions of other symbols are consistent with those of the concentration regression loss. The calibration method for this coefficient is as follows: using a gas calibration chamber with a known standard concentration column integral, corresponding mid-wave infrared images are acquired simultaneously, the average pixel radiation attenuation in the chamber region is calculated, a linear correspondence between radiation attenuation and concentration column integral is established, and the slope obtained by least-squares fitting is the radiation-concentration linear coefficient K.
[0332] Backpropagation and parameter update
[0333] Based on the calculated joint loss value, backpropagation is performed to calculate the gradients of all trainable parameters layer by layer from the output layer to the input layer. The Adam optimizer is used to update the parameters, adjusting the trainable parameters of the convolutional layers, fully connected layers, and batch normalization layers according to the gradient values, gradually reducing the joint loss value. A gradient clipping threshold is set during training; when the gradient magnitude exceeds the threshold, gradient clipping is performed to avoid gradient explosion that could lead to training instability.
[0334] The learning rate adopts a step decay strategy. The initial learning rate is set to a fixed value, and the learning rate decays proportionally after a fixed number of training rounds to ensure rapid convergence in the early stage of training and stable parameter fine-tuning in the later stage, avoiding oscillation.
[0335] Iterative convergence determination and model solidification
[0336] The system iterates through batch forward propagation, loss calculation, backpropagation, and parameter updates. Accuracy verification is performed on the validation set at fixed intervals, calculating two core metrics: the segmentation intersection-over-union ratio (CIU) and the average relative error of concentration quantification. Training is considered convergent and terminated early when the overall accuracy of the validation set no longer improves after multiple consecutive rounds. If convergence is not achieved after a preset maximum number of training rounds, training is also forcibly terminated to prevent overfitting.
[0337] In typical implementation scenarios, the typical convergence threshold for the segmentation-intersection-union ratio is 0.85, the typical convergence threshold for the average relative error of concentration quantification is 15%, and convergence is determined when there is no improvement in the validation set index for 5 consecutive rounds; the typical maximum number of training rounds is 200 rounds.
[0338] After training is terminated, the final values of all trainable parameters of the network are saved and solidified into the model weight file used in the inference phase. After deployment, it can be directly loaded and used without modification.
[0339] This application has the following advantages:
[0340] The linear preprocessing architecture balances feature enhancement with the integrity of the quantitative physical foundation. In this embodiment, infrared baseline anchoring and normalization employs a local minimum background baseline combined with a linear mapping strategy. It only shifts and scales the grayscale range, without altering the linear correspondence between plume grayscale and gas concentration. Simultaneously, it filters out background radiation fluctuations and enhances the grayscale contrast of weak plumes. On the visible light side, it uses matched quantile grayscale alignment and fixed homography coarse registration to unify the numerical range and spatial coordinate system of heterogeneous inputs. The entire process avoids nonlinear operations that disrupt physical dimensions, preserving the complete physical foundation for subsequent quantitative inversion and avoiding the problem of existing general image enhancement and normalization algorithms destroying concentration correlations.
[0341] A dual-stream dedicated encoder enables differentiated and accurate extraction of heterogeneous features. The two coding branches have completely independent parameters, adapted to the imaging characteristics and task requirements of infrared and visible light respectively: the infrared branch's plume weak feature enhancement convolutional unit filters out static background radiation noise through a background suppression branch, and combines multi-void rate parallel convolution to cover multi-size plume morphologies, which can effectively enhance the feature response of low-concentration weak plumes and improve the feature recognition of tiny leaks; the visible light branch's edge structure enhancement convolutional unit enhances the scene edge contour through gradient extraction and spatial attention, which can completely preserve structural texture information and provide a reliable reference for plume edge refinement; the dual-stream symmetrical downsampling design outputs feature sets with perfectly matched scales, providing a consistent dimensional basis for subsequent scale-by-scale fusion.
[0342] Semantic constraints enable deformable alignment to achieve a balance between registration accuracy and computational efficiency. This embodiment uses an infrared plume semantic mask to define the effective area of deformable offset, performing offset correction only within the plume's area of interest, while forcibly setting the offset in the background area to zero. This solves the problem of local deformation deviations in plumes that cannot be eliminated by coarse registration of the entire image, improves pixel-level alignment accuracy in the core area of the plume, and eliminates quantitative errors in integration caused by spatial misalignment. It also avoids redundant calculations in deformable registration of the entire image, reduces the overall computational load, and adapts to the real-time deployment requirements of embedded edge devices.
[0343] This quantitatively-oriented bidirectional gating fusion approach balances visualization enhancement with the preservation of quantitative information. This embodiment abandons the indiscriminate feature mixing approach of general visual fusion, employing a bidirectional gating mechanism: infrared plume spatial weights constrain visible light features, suppressing interference from irrelevant background textures; visible light edge weights correct the infrared plume contour, improving the blurry edges of the plume in infrared images. The entire fusion process uses pixel-by-pixel weighting and linear channel compression, preserving the linear relationship between infrared features and gas concentration. While improving the visual clarity of the plume, it fully retains the physical information required for quantification, fundamentally resolving the technical contradiction of existing heterogeneous fusion schemes that can only be used for manual observation and cannot support quantitative calculations.
[0344] The end-to-end architecture with physical prior embedding enhances quantitative accuracy and adaptability to different operating conditions. This embodiment embeds the Beer-Lambert gas absorption law into the network design and loss constraints, employing an end-to-end architecture that jointly optimizes fusion features and quantitative objectives. This eliminates the accumulated errors of the sequential "fusion first, inversion later" architecture. Simultaneously, an independent temperature analysis correction stage corrects for absorption coefficient deviations caused by ambient temperature based on gas spectral characteristics, improving the stability of quantitative results under different temperature conditions without requiring additional fitting parameters. The dual-task prediction head uses independently designed parameters to avoid mutual interference between segmentation and quantitative tasks, and can simultaneously output high-precision plume region masks and concentration distribution results.
[0345] A multi-task joint loss training mechanism ensures the model's generalization performance and physical consistency. This embodiment adopts a joint training strategy combining segmentation composite loss and quantitative physical loss. The segmentation loss introduces a boundary enhancement term to strengthen the learning of weak gas plume edges and improve the problem of blurred edge segmentation in thin leaks. The quantitative loss introduces a physical consistency regularization term to force the model output to conform to the physical laws of gas infrared absorption, avoiding the defects of overfitting and poor generalization in the external field caused by pure data fitting. The trained model not only has pixel-level fitting ability, but also physical interpretability, and is more adaptable to complex industrial field conditions.
[0346] Although the present invention has been described in detail above with general descriptions and specific embodiments, modifications or improvements can be made to it, which will be obvious to those skilled in the art. Therefore, all such modifications or improvements made without departing from the spirit of the present invention fall within the scope of protection claimed by the present invention.
Claims
1. A heterogeneous image fusion analysis method for monitoring hazardous chemical gas leaks using OGI (Optical Genetic Injection) technology, characterized in that... The heterogeneous image fusion analysis method for monitoring hazardous gas leaks using OGI includes: Step 1: Acquire the synchronously acquired mid-wave infrared OGI image and visible light RGB image; Step 2: Generate a baseline-anchored normalized infrared image based on the mid-wave infrared OGI image; Step 3: Generate a coarsely registered visible light image based on the visible light RGB image; Step 4: Perform dual-stream multi-scale specific feature extraction on the baseline-anchored normalized infrared image and the coarsely registered visible light image to obtain infrared plume feature maps and visible light structure feature maps. Step 5: Fuse the infrared plume feature map group and the visible light structure feature map group to obtain a multi-scale fused feature pyramid; Step 6: Generate a binary mask of the effective region of the plume and a temperature-corrected pixel-by-pixel concentration column integral map based on the multi-scale fusion feature pyramid; Step 7: Based on the binary mask of the effective area of the gas plume, combined with the real-time wind speed and pre-calibrated pixel spatial parameters, perform spatial integration and flow conversion processing on the pixel-by-pixel concentration bar graph after temperature correction, so as to obtain the quantitative result of the instantaneous leakage of hazardous gas.
2. The heterogeneous image fusion analysis method for monitoring hazardous chemical gas leaks using OGI as described in claim 1, characterized in that, Step 2 includes: Step 21: Perform local minimum filtering on the mid-wave infrared OGI image to obtain the background baseline map; Step 22: Perform grayscale histogram statistics and anchor point extraction on the background baseline map to obtain the lower baseline anchor point and the upper baseline anchor point; Step 23: Based on the lower baseline anchor point and the upper baseline anchor point, perform linear normalization and numerical truncation processing on the mid-wave infrared OGI image to obtain the baseline-anchored normalized infrared image.
3. The heterogeneous image fusion analysis method for monitoring hazardous chemical gas leaks using OGI as described in claim 2, characterized in that, Step 3 includes: Step 31: Perform weighted grayscale conversion on the visible light RGB image to obtain a single-channel visible light grayscale image; Step 32: Perform grayscale interval anchoring and linear mapping processing on the single-channel visible light grayscale image to obtain a visible light matching image that is aligned with the grayscale distribution of the infrared image; Step 33: Based on the pre-calibrated binocular camera internal and external distortion coefficients, perform homography affine transformation and size alignment cropping on the visible light matching image to obtain a coarsely registered visible light image.
4. The heterogeneous image fusion analysis method for monitoring hazardous chemical gas leaks using OGI as described in claim 3, characterized in that, Step 4 includes: Step 41: Use a plume weak feature enhancement convolutional unit to perform three-layer cascaded downsampling processing on the baseline-anchored normalized infrared image to obtain an infrared plume feature map group containing features at three different scales. Step 42: Use edge structure enhancement convolutional units to perform three-layer cascaded downsampling processing on the coarsely registered visible light image to obtain a group of visible light structural feature maps containing features at three different scales; Step 43: Perform scale-by-scale matching and alignment processing on the infrared plume feature map group and the visible light structure feature map group to obtain the paired infrared plume feature map group and the visible light structure feature map group.
5. The heterogeneous image fusion analysis method for monitoring hazardous chemical gas leaks using OGI as described in claim 4, characterized in that, Step 5 includes: Step 51: Perform plume semantic mask generation processing on the infrared features at each scale in the infrared plume feature map group to obtain the plume semantic mask group corresponding to each scale. Step 52: Based on the plume semantic mask group, perform semantically constrained deformable resampling alignment processing on the paired visible light structural features at each scale to obtain the visible light feature map group aligned at each scale. Step 53: Perform bidirectional gated attention fusion processing on the paired infrared plume features and aligned visible light features at each scale to obtain the single-scale fused feature map corresponding to each scale; Step 54: Perform an arrangement and construction process on the single-scale fused feature maps of all scales according to the resolution hierarchy to obtain the multi-scale fused feature pyramid.
6. The heterogeneous image fusion analysis method for monitoring hazardous chemical gas leaks using OGI as described in claim 5, characterized in that, Step 6 includes: Step 61: Perform multi-scale upsampling and channel compression aggregation on the multi-scale fusion feature pyramid to obtain global aggregated fusion features; Step 62: Perform pixel-by-pixel concentration bar integral prediction on the global aggregation and fusion features, and perform temperature analysis correction processing in combination with the pre-calibrated gas absorption temperature sensitive parameters to obtain the temperature-corrected pixel-by-pixel concentration bar integral map. Step 63: Perform plume confidence prediction and threshold binarization on the global aggregated and fused features to obtain the binary mask of the effective plume region.
7. The heterogeneous image fusion analysis method for monitoring hazardous chemical gas leaks using OGI as described in claim 5, characterized in that, Step 53 includes: Step 531: Using the infrared plume features at the current scale as input, generate a plume spatial weight map through convolution and Sigmoid activation. Perform pixel-by-pixel multiplication on the plume spatial weight map and the visible light features aligned with the corresponding scale to obtain the weighted visible light features of the plume region. Step 532: Perform gradient operation on the visible light features aligned to the current scale to extract edge features. Generate an edge weight map through convolution operation and Sigmoid activation. Perform pixel-by-pixel multiplication operation on the edge weight map and the infrared plume features of the corresponding scale to obtain the weighted infrared features with refined edges. Step 533: The weighted visible light features and weighted infrared features are concatenated along the channel dimension, and channel compression is performed through convolution operation to obtain the single-scale fused feature map of the current scale.
8. The heterogeneous image fusion analysis method for monitoring hazardous chemical gas leaks using OGI as described in claim 5, characterized in that, Step 52 specifically includes: Step 521: Perform 1×1 convolution operation and Sigmoid activation on the infrared plume features corresponding to each scale, and then perform binarization processing with a fixed confidence threshold to obtain the plume semantic mask corresponding to each scale. Step 522: Concatenate the infrared plume features and visible light structure features at the same scale along the channel dimension, and perform a 3×3 convolution operation to obtain the initial offset matrix at that scale; Step 523: Perform pixel-by-pixel masking correction on the initial offset matrix using the air plume semantic mask, force the offset corresponding to the invalid background area to zero, and perform bilinear deformable resampling processing on the visible light structural features based on the corrected offset matrix to obtain visible light feature maps aligned at each scale.
9. The heterogeneous image fusion analysis method for monitoring hazardous chemical gas leaks using OGI as described in claim 4, characterized in that, Step 41 includes: Step 411: Input the input features of the current convolutional layer into the background suppression branch, extract low-frequency background features through 3×3 mean filtering, and perform pixel-by-pixel difference operation with the input features to obtain the background suppression features; Step 412: Input the input features of the current convolutional layer into the multi-receptive field branch, process them through three parallel dilated convolutions with dilation rates of 1, 2 and 4 respectively, and then concatenate them along the channel dimension to obtain multi-scale receptive field plume features. Step 413: The background suppression features and multi-scale receptive field plume features are concatenated along the channel dimension, and channel weighting is performed by the channel attention module to output the enhanced plume features as the output of the current convolutional layer.
10. A heterogeneous image fusion analysis device for monitoring hazardous chemical gas leaks using OGI (Optical Genetic Injection) technology, characterized in that... The heterogeneous image fusion analysis device for monitoring hazardous gas leaks using OGI includes: An image acquisition module is used to acquire synchronously acquired mid-wave infrared OGI images and visible light RGB images; A baseline-anchored normalized infrared image acquisition module is used to generate a baseline-anchored normalized infrared image based on a mid-wave infrared OGI image. A visible light image acquisition module after coarse registration, which is used to generate a coarsely registered visible light image based on a visible light RGB image; A multi-scale plume feature alignment and fusion network is used to extract dual-stream multi-scale specific features from the baseline-anchored normalized infrared image and the coarsely registered visible light image, thereby obtaining an infrared plume feature map set and a visible light structural feature map set; the infrared plume feature map set and the visible light structural feature map set are fused to obtain a multi-scale fused feature pyramid; and a binary mask of the effective plume region and a temperature-corrected pixel-by-pixel concentration column integral map are generated based on the multi-scale fused feature pyramid. The quantitative result acquisition module is used to perform spatial integration and flow conversion processing on the temperature-corrected pixel-by-pixel concentration bar graph based on the binary mask of the effective area of the gas plume, combined with real-time wind speed and pre-calibrated pixel spatial parameters, so as to obtain the quantitative result of the instantaneous leakage of hazardous gas.
