An infrared image restoration method
By constructing a differentiable infrared thermal diffusion degradation operator and a physical prior set, combining the equivalent diffusion intensity and frequency domain attenuation kernel, and utilizing a conditional diffusion network and observation consistency residual feedback loop, the specific description and noise amplification problems of infrared image thermal diffusion degradation are solved, achieving high-fidelity restoration.
Patent Information
- Application Number
- CN202611296934.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-25
- Publication Date
- 2026-11-20
AI Technical Summary
Existing infrared image restoration methods lack specific descriptions of heat conduction when dealing with thermal diffusion degradation, and are prone to amplifying noise in the thermal halo transition zone. Physical inversion methods rely on material parameters that are difficult to obtain accurately and have a large computational load. Deep learning methods lack thermal diffusion priors, resulting in insufficient generalization and reliability.
A differentiable infrared thermal diffusion degradation operator and a physical prior set are constructed. Combined with the equivalent diffusion intensity and the frequency domain attenuation kernel, back diffusion denoising is performed through a conditional diffusion network. An observation consistency residual feedback loop is introduced to achieve high-fidelity modeling and detail enhancement of the thermal diffusion law.
It achieves high-fidelity physical modeling of thermal diffusion radiation field spillover and boundary broadening, improves image clarity and boundary positioning accuracy, suppresses noise amplification, and ensures consistency between reconstruction results and original observations. It is suitable for single-image restoration scenarios.
Smart Images

Figure CN123141256A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of infrared image restoration technology, and specifically to an infrared image restoration method. Background Technology
[0002] Infrared imaging technology acquires information about the temperature distribution and spatial structure of a target by detecting its own radiated or reflected infrared signals. It offers advantages such as non-contact operation, all-weather capability, and the ability to penetrate smoke and dust, making it widely used in industrial inspection, security monitoring, and medical diagnostics. However, when the target exchanges heat with the environment, air, and adjacent structures, the temperature field near the target boundary tends to diffuse spatially. This causes the infrared radiation response area to overflow relative to the true geometric contour, manifesting in the image as thermal halo expansion, broadened boundary transition bands, grayscale tailing, and attenuation of high-frequency details. These degradation effects not only reduce the visual quality of the image but also directly impact the reliability of quantitative analysis tasks such as contour localization, dimensional measurement, defect identification, and condition monitoring.
[0003] Existing research on infrared image restoration and thermal imaging quality improvement mainly includes the following technical approaches: First, traditional image enhancement and deblurring methods, encompassing techniques such as histogram equalization, grayscale stretching, edge sharpening, frequency domain filtering, Wiener filtering, and deconvolution. These methods improve image clarity from the perspectives of grayscale, gradient, or frequency domain, and are computationally simple and easy to deploy. Second, inversion methods based on thermal conduction physical models combine information such as heat conduction equations, material thermal parameters, boundary heat transfer conditions, and sequential observations to recover the target temperature distribution by solving inverse problems, providing clear physical interpretation. Third, end-to-end restoration methods based on deep learning employ architectures such as convolutional neural networks, generative adversarial networks, U-shaped networks, and Transformers. Using degraded images as input and high-quality reference images as supervision, these methods learn the nonlinear mapping between the two to achieve functions such as denoising, deblurring, and detail enhancement. In addition, infrared image enhancement and reconstruction methods combining generative models and frequency domain processing have also attracted attention. These methods mainly utilize frequency domain decomposition and generative models to improve image detail, spatial resolution, or data diversity.
[0004] However, existing technologies still have many limitations in dealing with the thermal diffusion degradation problem in infrared images. Traditional enhancement and deblurring methods approximate degradation as ordinary defocus blur or random noise, lacking a specific description of radiation field spillover and boundary broadening caused by heat conduction. Sharpening and high-frequency compensation tend to amplify grayscale fluctuations and noise in the thermal halo transition zone, making it difficult to distinguish between the real boundary and the thermal diffusion spillover area. Inversion methods based on physical models are highly dependent on the integrity and accuracy of material thermal parameters, boundary heat transfer conditions, and continuous observation data. However, these parameters are often difficult to obtain accurately under actual imaging conditions, and the inverse problem is sensitive to noise and disturbances, easily leading to unstable solutions, insufficient detail recovery, or excessive computational load, making it unsuitable for single-image restoration scenarios. Although deep learning methods have strong fitting capabilities, they rarely incorporate prior information related to thermal diffusion. When the training data does not adequately cover different diffusion intensities and morphologies, the network struggles to effectively distinguish between thermal halo spread and the real boundary, potentially generating textures lacking physical consistency in the thermal transition region, affecting generalization and reliability. Frequency domain processing and generative modeling methods focus on frequency adjustment or reconstruction design. Their frequency domain compensation may amplify noise while enhancing details, and there is a lack of effective constraints on the consistency between the reconstruction results and the original observations and thermal diffusion laws. Summary of the Invention
[0005] To address the aforementioned problems in the prior art, this invention provides an infrared image restoration method.
[0006] The technical problem to be solved by this invention is achieved through the following technical solution: In a first aspect, the present invention provides an infrared image restoration method, comprising: S101. Obtain the degraded infrared image to be restored; S102. Perform bit depth mapping and grayscale normalization on the degraded infrared image to be restored to obtain a normalized degraded infrared image. S103. Based on the normalized degraded infrared image estimation, the equivalent diffusion intensity is obtained, and the equivalent diffusion intensity is used to construct a differentiable infrared thermal diffusion degradation operator and a physical prior set. S104. Input the normalized degraded infrared image, physical prior set, current diffusion step number and current diffusion state into the conditional diffusion network for backdiffusion denoising, and output a clear image estimate for the current step. S105. Using the clear image estimation of the current step, the image is re-degraded using the differential infrared thermal diffusion degradation operator to obtain the re-degraded result, and the observation consistency residual between the re-degraded result and the normalized degraded infrared image is calculated. S106. Use observation consistency residuals to correct the clear image estimate of the current step, and calculate the next diffusion state based on the corrected clear image. Use the next diffusion state as the current diffusion state of S104 in the next loop. S107. Repeat S104-S106 until the preset total number of diffusion steps is met. Use the corrected clear image in S106 after the last loop as the final restored infrared image.
[0007] In a second aspect, the present invention provides an infrared image restoration device, comprising: an acquisition unit, a mapping normalization unit, a data construction unit, a back diffusion denoising unit, a re-degradation unit, a diffusion propagation unit, and an output unit; Acquisition unit, used to acquire the degraded infrared image to be restored; The mapping and normalization unit is used to perform bit depth mapping and grayscale normalization on the degraded infrared image to be restored, so as to obtain a normalized degraded infrared image. The data construction unit is used to estimate the equivalent diffusion intensity based on the normalized degraded infrared image, and to construct a differentiable infrared thermal diffusion degradation operator and a physical prior set using the equivalent diffusion intensity. The backdiffusion denoising unit is used to input the normalized degraded infrared image, physical prior set, current diffusion step number and current diffusion state into the conditional diffusion network for backdiffusion denoising, and output a clear image estimate of the current step. The re-degradation unit is used to re-degrade the current step's sharp image estimate using the differentiable infrared thermal diffusion degradation operator to obtain the re-degradation result, and to calculate the observation consistency residual between the re-degradation result and the normalized degradation infrared image. The diffusion propagation unit is used to correct the sharp image estimate of the current step using the observation consistency residual, and to calculate the next diffusion state based on the corrected sharp image. The next diffusion state is used as the current diffusion state of the back diffusion denoising unit in the next loop. The output unit is used to repeatedly execute the steps between the reverse diffusion denoising unit and the diffusion propagation unit until the preset total number of diffusion steps is met, and the corrected clear image in the diffusion propagation unit after the last loop is used as the final restored infrared image.
[0008] Thirdly, the present invention provides an infrared image restoration device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the infrared image restoration device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of the infrared image restoration method of the first aspect described above.
[0009] The beneficial effects of this invention are: 1. By constructing a differentiable infrared thermal diffusion degradation operator and a set of physical priors, thermal diffusion, radiation response, optical blurring, detector sampling, and noise modeling are unified into a differentiable degradation framework. By constructing image domain thermal diffusion kernels, frequency domain attenuation kernels, gradient response, Laplace response, and edge candidate weights with the help of equivalent diffusion intensity, high-fidelity physical modeling of radiation field spillover and boundary broadening effects caused by thermal conduction is achieved. This does not require relying on material thermal parameters and continuous observation data that are difficult to obtain accurately. It solves the limitations of traditional methods, which amplify noise in the thermal halo transition zone due to the lack of specific description of thermal conduction, and the instability and excessive computational load caused by the sensitivity of physical inversion to inverse problems, making it difficult to apply to single image restoration.
[0010] 2. The equivalent diffusion intensity and physical prior set are used as conditional inputs to drive the conditional diffusion network. During the reverse diffusion process, the thermal diffusion degradation law is explicitly perceived. The bounded compensation weights are constructed by combining the frequency domain attenuation kernel to perform bounded frequency domain weighting on multi-scale features. The compensation increment is adaptively fused with edge candidate weights, which achieves a synergistic balance between high-frequency detail enhancement and noise suppression. The compensation amplitude is physically constrained and will not go out of control. This solves the problems of existing deep learning methods, such as the lack of thermal diffusion priors, insufficient training data coverage, difficulty in distinguishing thermal halo expansion from the real boundary, generation of physically inconsistent textures in thermal transition regions, and insufficient generalization and reliability.
[0011] 3. A closed-loop feedback mechanism based on observation consistency residuals based on re-degradation is introduced. The current clear image estimate is re-degraded using a differentiable infrared thermal diffusion degradation operator. The edge adaptive weighted L1 norm is calculated with the original normalized degraded image as the observation consistency residual. This residual is then used to iteratively correct the current estimate and update the next diffusion state, forming a closed-loop mechanism of estimation, degradation, comparison, and correction. This achieves a high degree of physical consistency constraint between the restored result and the real infrared observation and thermal diffusion law. It solves the problems of lack of effective constraints on the deviation between generative reconstruction results and the original observation, frequency domain compensation amplifying noise when enhancing details, and unreliable textures caused by the reconstructed image deviating from the physical law of thermal diffusion. Ultimately, it significantly outperforms existing methods in terms of detail sharpness, boundary positioning accuracy, and physical consistency, while also taking into account the computational feasibility and engineering applicability in single-image restoration scenarios.
[0012] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. Attached Figure Description
[0013] Figure 1 A flowchart illustrating an infrared image restoration method provided in an embodiment of the present invention; Figure 2 A schematic diagram illustrating the comparison results of different algorithms in infrared image restoration is shown as an example. Figure 3An exemplary schematic diagram comparing the degradation and restoration results of infrared images under different equivalent thermal diffusion intensities is shown; Figure 4 This is a schematic diagram of an infrared image restoration device provided in an embodiment of the present invention.
[0014] Figure 5 This is a schematic diagram of the structure of an infrared image restoration device provided in an embodiment of the present invention. Detailed Implementation
[0015] This invention aims to address the shortcomings of existing infrared image restoration methods, such as insufficient characterization of thermal diffusion degradation, easy amplification of noise by edge enhancement, and lack of physical consistency constraints in the generated results. It proposes an infrared image restoration method that integrates prior knowledge of thermal diffusion physics. This method constructs a conditional diffusion restoration framework based on an equivalent thermal diffusion model, incorporating boundary expansion and high-frequency attenuation caused by thermal diffusion into the network modeling process. It enhances the true contour and suppresses noise in flat areas through edge-adaptive bounded frequency domain compensation. Simultaneously, it utilizes differentiable degradation operators to construct observation consistency constraints, ensuring that the restored results maintain consistency with the original infrared observations and thermal diffusion degradation laws while improving structural clarity. This provides clearer and more stable infrared image input for contour localization, size measurement, defect identification, and condition monitoring.
[0016] The present invention will be further described in detail below with reference to specific embodiments, but the implementation of the present invention is not limited thereto.
[0017] To improve the fidelity of physical modeling of infrared thermal diffusion degradation processes and the accuracy of generalized restoration under complex diffusion morphologies, this invention provides an infrared image restoration method. Figure 1 This is a flowchart illustrating an infrared image restoration method provided in an embodiment of the present invention, as shown below. Figure 1 As shown, it includes: S101. Obtain the degraded infrared image to be restored.
[0018] Among them, the degraded infrared image to be restored is specifically a degraded infrared image of a high-temperature target, where high temperature is defined as above 50°C above the ambient temperature.
[0019] S102. Perform bit depth mapping and grayscale normalization on the degraded infrared image to be restored to obtain a normalized degraded infrared image.
[0020] In the specific implementation process, the diffused temperature field or radiation field is processed through infrared radiation response, optical imaging, detector sampling, and noise modeling to obtain the degraded infrared image to be restored. Subsequently, the degraded infrared image to be restored is subjected to bit depth mapping and grayscale normalization to obtain a normalized degraded infrared image. .
[0021] ; in, Represents the imaging operator, Indicates the radiative response. To represent an ideal, clear infrared image, Indicates spatial location as The time is The equivalent temperature field at that time, Indicates detector noise. Represents a set of physical parameters The equivalent degradation operator of control acts on The results above.
[0022] S103. Based on the normalized degraded infrared image estimation, the equivalent diffusion intensity is obtained, and the equivalent diffusion intensity is used to construct a differentiable infrared thermal diffusion degradation operator and a physical prior set.
[0023] Optionally, S103 includes: The equivalent diffusion intensity is estimated based on the normalized degraded infrared image; Based on the equivalent diffusion intensity, an image domain thermal diffusion kernel and a frequency domain attenuation kernel are constructed, and the gradient response, Laplacian response, and edge candidate weights of the normalized degraded infrared image are calculated. The image domain thermal diffusion kernel, frequency domain attenuation kernel, gradient response, Laplacian response, and edge candidate weights are combined into a physical prior set. Based on the equivalent diffusion intensity, thermal diffusion, radiation response, optical blurring, detector sampling, and noise modeling are combined into a differentiable infrared thermal diffusion degradation operator.
[0024] The edge candidate weights are expressed as follows: ; in, Indicates the edge candidate weights. express gradient, This represents the stability coefficient.
[0025] Optionally, the image domain thermal diffusion kernel is represented as: ; in, Represents the horizontal coordinate in space and spatial ordinate The corresponding image domain thermal diffusion kernel, Indicates the equivalent diffusion intensity. This represents the natural exponential function. This represents the horizontal coordinate of the pixel space in a normalized degraded infrared image. Represents the spatial ordinate of the pixel space in a normalized degenerate infrared image; ; in, This represents the initial equivalent temperature field, i.e., the original / ideal temperature distribution before thermal diffusion occurs.
[0026] The decay kernel is represented as: ; in, Indicates frequency in the horizontal direction and vertical frequency The corresponding frequency domain attenuation kernel, This represents the horizontal frequency in the spectral space of the normalized degraded infrared image. This represents the vertical frequency in the spectral space of a normalized degenerate infrared image.
[0027] In the specific implementation of S103, the normalized degraded infrared image obtained in S102 is input into a pre-trained physical parameter estimation branch (a lightweight convolutional neural network branch). This branch extracts high-frequency attenuation features, gradient distribution features, and the width features of the thermal halo transition zone in the image, and outputs the equivalent diffusion intensity in the image domain corresponding to the image through nonlinear mapping. It is important to note that when the training samples are simulated data, The parameters can be directly given by the known parameters of the degradation generation process; when it is a real single image, the value estimated here is... These are preliminary estimates and will be further revised through observation consistency constraints during subsequent reasoning.
[0028] The estimated equivalent diffusion intensity Substituting into the two-dimensional equivalent thermal diffusion kernel formula To obtain the image domain thermal diffusion kernel corresponding to the current image. Simultaneously, perform a two-dimensional Fourier transform on it or directly substitute it into the frequency domain kernel formula. The frequency domain attenuation kernel is obtained. Meanwhile, normalized degenerate infrared images are calculated using the Sobel or Scharr operator. Y gradient magnitude The second derivative response is calculated using the Laplace operator. Finally, a stability coefficient is set. (For example, a value of 0.01), substitute the gradient magnitude into the edge candidate weight formula. This yields the probability that each pixel belongs to a real edge (i.e., the edge candidate weight, with a value ranging from 0 to 1).
[0029] The above calculations , The gradient response, Laplace response, and edge candidate weights are dimensionally aligned and normalized. They are then concatenated along the channel dimension to form a multi-channel tensor, denoted as the physical prior set. This physical prior set It carries physical information such as the current image's diffusion level, texture attenuation level, and edge spatial distribution.
[0030] Finally, based on the estimated equivalent diffusion intensity A modular, end-to-end differentiable forward degradation operator is constructed. This forward degradation operator contains cascaded physical modules: 1. Heat diffusion module: utilizing Convolution with the input image to simulate thermal halo diffusion; 2. Radiation Response Module: Utilizes nonlinear response functions (such as polynomial fitting or lookup tables) to simulate the nonlinear mapping during the radiation calibration process; 3. Optical blur module: Uses Gaussian point spread function to simulate defocusing and diffraction in optical systems; 4. Detector sampling module: Simulates the integral effect of pixel size through spatial downsampling or integration operations; 5. Noise Modeling Module: Superimposes random noise that conforms to a Gaussian or Poisson distribution.
[0031] The above operations are chained together to form a composite function. Since all the convolution, sampling, and nonlinear response operations that make up this operator are differentiable, the operator is differentiable and can be used for the re-degradation calculation in subsequent step S105 and for backpropagation during the training process.
[0032] S104. Input the normalized degraded infrared image, physical prior set, current diffusion step number, and current diffusion state into the conditional diffusion network for backdiffusion denoising, and output a clear image estimate for the current step.
[0033] The conditional diffusion network involved in this invention uses an existing diffusion model based on the U-Net architecture as the backbone network. Its core principle is to introduce external conditional information in the backdiffusion denoising process to guide the generation direction of the image. The current diffusion step number can be specifically understood as the index variable of the loop step number.
[0034] Optionally, S104 includes: The normalized degraded infrared image, physical prior set, current diffusion step number and current diffusion state are input into the conditional diffusion network, and multi-scale features are extracted by the multi-scale encoder of the conditional diffusion network. Based on the frequency domain attenuation kernel, a bounded compensation weight is constructed in the frequency domain. Bounded compensation weights are used to perform frequency domain weighting on the multi-scale features to obtain frequency domain compensated features. The difference between the frequency domain compensated features and the multi-scale features is calculated to obtain the compensation increment. The compensation increment is adaptively fused using edge candidate weights to obtain the compensated features; Backdiffusion denoising is performed based on the compensated features to output a clear image estimate for the current step.
[0035] Optionally, the bounded compensation weight is represented as: ; in, This indicates the first [scale] in a conditional diffusion network multiscale encoder. Layer, frequency in the horizontal direction and vertical frequency The value of the bounded compensation weight constructed below; The first element in the conditional diffusion network multiscale encoder represents the... layer, Indicates the first The equivalent diffusion intensity corresponding to the layer, This represents the horizontal frequency in the spectral space of the normalized degraded infrared image. This represents the vertical frequency in the spectral space of a normalized degenerate infrared image.
[0036] Optionally, the compensated features are represented as follows: ; ; in, The first element in the conditional diffusion network multiscale encoder represents the... The compensated features corresponding to the layer, This represents element-wise multiplication. The first element in the conditional diffusion network multiscale encoder represents the... Multi-scale features obtained from layer extraction Indicates the edge candidate weights. Represents multi-scale features Frequency domain compensation features obtained by performing frequency domain weighting processing. Indicates pixel-by-pixel multiplication. This represents the inverse fast Fourier transform.
[0037] Optionally, back-diffusion denoising is performed based on the compensated features to output a sharp image estimate for the current step, including: The compensated features are input into the decoder of the conditional diffusion network to obtain the decoded output; The decoded output is used to jointly predict random noise and thermal diffusion degradation residuals; Based on the current diffusion state, back-diffusion calculation is performed by combining random noise and thermal diffusion degradation residuals to obtain a clear image estimate for the current step.
[0038] In this invention, the input-output relationship of the physically degenerate coupled conditional diffusion network constructed during the training phase can be defined by the following formula: ; in This indicates the diffusion state at the current step, corresponding to the input parameters; This represents a normalized degraded infrared image. Indicates the current diffusion step number; Represents the physical prior set; Represents a conditional diffusion network; This represents the sharp image estimate for the current step; Indicates the equivalent diffusion intensity; The scheduling coefficient, which varies with the number of diffusion steps, is used to modulate the total diffusion intensity to the desired value. k Degradation intensity of step .
[0039] The coupled generation of physical degradation state and diffusion state can be defined with reference to the following formula: ; Represents an ideal, clear image; This represents the differential infrared thermal diffusion degradation operator; Represents a physically degraded image; Indicates the current diffusion state; The correlation coefficient represents the number of diffusion steps; This represents random noise that follows a standard Gaussian distribution. The formula is derived using the physical degradation operator. Generate degraded images And it is coupled with Gaussian noise to form the diffusion state of the current step. This introduces the laws of physical degradation into the diffusion process.
[0040] The process of jointly predicting random noise and thermal diffusion degradation residuals can be defined and constrained by the following joint loss function: ; in, This represents the joint loss function used to train the network; Represents random noise in network predictions; This represents the true value of the physical degradation residual calculated using the differentiable infrared thermal diffusion degradation operator; This represents the residual of thermal diffusion degradation predicted by the network; This represents the coefficient that controls the weights of the residual terms. This process, by jointly predicting random noise and thermally diffused degradation residuals, enables the network to balance denoising and recovery of physical degradation features during training.
[0041] S105. Using the clear image estimation from the current step, the image is re-degraded using the differential infrared thermal diffusion degradation operator to obtain the re-degraded result, and the observation consistency residual between the re-degraded result and the normalized degraded infrared image is calculated.
[0042] Optionally, in S105, the observational consistency residual between the re-degradation result and the normalized degradation infrared image is calculated, including: Calculate the degradation difference between the re-degradation result and the normalized degradation infrared image; Construct adaptive edge weights based on the gradient of the normalized degraded infrared image; The degradation difference is weighted pixel by pixel using edge adaptive weighting to obtain the weighted difference; The L1 norm is calculated for the weighted differences to obtain the observation consistency residuals.
[0043] S106. The clear image estimate of the current step is corrected by the observation consistency residual, and the next diffusion state is calculated based on the corrected clear image. The next diffusion state is used as the current diffusion state of S104 in the next loop.
[0044] Reasoning stage Construct an initial state and add infrared forward degradation consistency correction in each sampling step. , , , Input the network to get the first A clear estimate is then made; next, the result is mapped to the observation domain using a differentiable infrared forward degradation model, and the candidate next state is corrected based on the observation consistency residual. ; In the formula, z is the Gaussian noise parameter. For the current step, a clear image estimate is needed. For physical guiding strength, Indicates the observation consistency residual. The observation consistency residual is: ; In the formula, To estimate the diffusion intensity Controllable differentiable infrared thermal diffusion degradation operator, For edge adaptive weights, This represents the adjustment coefficient.
[0045] This step uses the re-degradation results and... The weighted residual correction sampling process between samples suppresses the generation of unfounded textures while maintaining observation consistency.
[0046] S107. Repeat S104-S106 until the preset total number of diffusion steps is met. Use the corrected clear image in S106 after the last loop as the final restored infrared image.
[0047] In this embodiment, the process of using observation consistency residuals to correct the current step's sharp image estimate and calculating the next diffusion state based on the corrected sharp image is as follows: First, the current-step clear image estimate output by S104 is input into a differentiable infrared thermal diffusion degradation operator constructed based on the estimated diffusion intensity. This simulates forward degradation to obtain a re-degradation result. Then, using edge adaptive weights constructed from the gradient of the original normalized degrading infrared image, the difference between the re-degradation result and the normalized degrading infrared image is weighted pixel-by-pixel, and the L1 norm is calculated to obtain the observation consistency residual. Next, the gradient of this observation consistency residual with respect to the current clear image estimate is used, combined with a preset physical guidance intensity as the step size, for gradient descent updates, thus obtaining the corrected clear image estimate. Finally, the obtained corrected clear image estimate is substituted into the standard backward diffusion sampling formula, and random noise corresponding to the number of diffusion steps is superimposed to calculate the next diffusion state. This next diffusion state is then used as the current-step diffusion state input for S104 in the next iteration. This process of denoising, observation correction, and state update is continuously repeated until the preset total number of diffusion steps is completed, thereby maintaining consistency with the original infrared observation data while stably outputting the final restored infrared image.
[0048] In other optional implementations, the method for obtaining the equivalent thermal diffusion intensity can be flexibly determined according to specific imaging conditions. For imaging systems with calibration conditions, it can be predetermined based on equipment parameters, the thermophysical properties of the measured material, and typical temperature range; while for cases where only a single infrared image is acquired, it can be estimated online based on the degree of boundary diffusion, grayscale tail range, and local gradient attenuation characteristics presented in the image, and the estimation results are used for the subsequent construction of thermal diffusion physics priors. Accordingly, the equivalent thermal diffusion kernel can adopt different parameterization forms according to the characteristics of the measured object and boundary heat transfer conditions. In near-uniform diffusion scenarios, isotropic diffusion kernels can be used; while in complex conditions with obvious directional heat dissipation or material partitioning, spatially varying or directionally related equivalent diffusion kernels can be used to more accurately characterize degradation characteristics such as boundary broadening, thermal corona expansion, and high-frequency attenuation. Furthermore, during the construction of observation consistency constraints, the residual metric can be adaptively adjusted according to the specific restoration target, and can adopt one or more combinations of grayscale residual, structural residual, edge residual or frequency domain residual; however, regardless of the form of residual metric adopted, the core constraint method of consistency correction between the restored image after equivalent thermal diffusion degradation and the original degraded infrared image must be maintained.
[0049] This invention provides an infrared image restoration method. This method constructs a differentiable infrared thermal diffusion degradation operator and a physical prior set, unifying thermal diffusion, radiation response, optical blurring, detector sampling, and noise modeling within a differentiable degradation framework. It estimates the equivalent diffusion intensity to construct a physical prior set including an image-domain thermal diffusion kernel, a frequency-domain attenuation kernel, gradient response, Laplacian response, and edge candidate weights. Therefore, it eliminates the need for difficult-to-obtain precise material thermal parameters and continuous observation data, enabling the restoration of radiation field spillover and boundary broadening caused by heat conduction even under single-image conditions. The corresponding high-fidelity physical modeling fundamentally avoids the problem of traditional sharpening and high-frequency compensation amplifying noise in the thermal halo transition zone. It also effectively circumvents the instability and excessive computational cost of physical inversion methods due to their sensitivity to inverse problems. Based on this, the method uses the equivalent diffusion intensity and the physical prior set as conditional inputs to drive a conditional diffusion network for reverse diffusion denoising. It utilizes a frequency-domain attenuation kernel to construct bounded compensation weights to perform bounded frequency-domain weighting on multi-scale features, and after calculating the compensation increment, adaptive fusion is performed using edge candidate weights. This ensures that high-frequency details are enhanced while suppressing noise amplification. This method ensures that the compensation magnitude is physically constrained and does not spiral out of control, thereby overcoming the shortcomings of existing deep learning methods, such as the lack of thermal diffusion priors, insufficient training data coverage leading to difficulty in distinguishing thermal halo expansion from the true boundary, and the tendency to generate physically inconsistent textures in thermal transition regions. This significantly improves the model's generalization ability and reconstruction reliability under small sample sizes and diverse diffusion conditions. Furthermore, this method introduces a feedback loop based on observation consistency residuals from re-degradation. The current clear image estimate is re-degraded using a differentiable infrared thermal diffusion degradation operator, and the edge adaptive weighted L1 norm is calculated between the current clear image estimate and the original normalized degraded image as the observation consistency residual. The method measures the consistency residual and uses this residual to iteratively correct the current estimate and update the next diffusion state, forming a closed-loop mechanism of estimation, degradation, comparison, and correction. This effectively constrains the deviation between the generative reconstruction result and the original observation, prevents frequency domain compensation from amplifying noise while enhancing details, and suppresses unreliable texture generation that deviates from the physical laws of thermal diffusion in the reconstructed image. As a result, the final restored infrared image is superior to existing technologies in terms of detail sharpness, boundary positioning accuracy, and physical consistency of the thermal diffusion area. At the same time, it takes into account the computational feasibility and engineering applicability in single-image restoration scenarios.
[0050] In one specific implementation, multi-source infrared images are used to construct training and testing data. The data includes infrared images of different thermal radiation surfaces, complex backgrounds, different temperature distributions, and under different thermal radiation conditions. For training samples, a sample pair of degraded images and a reference clear image is constructed using a differentiable infrared thermal diffusion degradation operator. The example dataset contains 10,000 image samples, divided into training, validation, and testing sets in an 8:1:1 ratio. During training, the AdamW optimizer is used, with an initial learning rate of 1.0 × 10⁻⁴, a weight decay coefficient of 1.0 × 10⁻⁴, momentum parameters β₁ = 0.9, β₂ = 0.999, and a diffusion step count of [missing information]. and physical guidance strength It can be determined based on the restoration effect of the validation set.
[0051] In the effect evaluation step, PSNR, SSIM, and EPI are used as quantitative indicators. PSNR is used to evaluate the overall pixel error between the restored image and the reference image; SSIM is used to evaluate structural similarity and local contrast preservation; and EPI is used to evaluate edge preservation. For thermally diffused infrared degradation, EPI can reflect the target boundary, suppression of thermal halo propagation, and local contour recovery; therefore, it, along with PSNR and SSIM, characterizes the overall quality of the restoration result.
[0052] Table 1. Restoration results of different algorithms
[0053] As shown in Table 1, compared to the degraded input image, the PSNR of the method of this invention is improved from 26.56 dB to 30.86 dB, an increase of 4.30 dB; SSIM is improved from 0.8293 to 0.9190, and EPI is improved from 0.7168 to 0.9349. These results demonstrate that, through the combined effects of equivalent thermal diffusion modeling, TDCM frequency domain bounded compensation, and observation consistency correction, the overall error, structural consistency, and edge preservation ability of the restored image are all improved. Compared with comparable methods such as DeblurGAN-v2, NAFNet, and WaveDM, the method of this invention achieves superior results in all three metrics, with PSNR improved by 1.50 dB, SSIM improved by 0.0240, and EPI improved by 0.0332 compared to WaveDM.
[0054] Corresponding to Table 1, Figure 2 An illustrative diagram comparing the results of different algorithms in infrared image restoration is shown. Figure 2As shown, the comparison result image consists of 3 rows and 6 columns of images. Each row displays infrared image samples under different typical application scenarios, including indoor industrial pipelines and ventilation facilities in the first row, industrial equipment with heating elements in the second row, and complex outdoor industrial platform in the third row, which are used to test the algorithm's adaptability to different thermal radiation surfaces and complex backgrounds.
[0055] Each column represents a different image processing method. Figure 2 Columns (a1)-(a3) are degraded input infrared images, showing obvious thermal halo expansion, boundary broadening and high-frequency detail attenuation. Figure 2 The columns (b1)-(b3), (c1)-(c3) and Figure 2 (d1)-(d3) are the restoration results using existing technologies DeblurGAN-v2, NAFNet and WaveDM algorithms, respectively; Figure 2 Columns (e1)-(e3) represent the restoration results using the method of this invention; Figure 2 Columns (f1)-(f3) are clear reference images. In addition, each sub-image has a magnified view marked with a dashed box in the lower right corner for visual comparison of the subtle differences between the algorithms in edge detail restoration and thermal halo transition zone suppression.
[0056] The comparison shows that Figure 2 The image restored by the method of the present invention in column (e) is compared to Figure 2 The comparison methods in columns (b), (c), and (d) are sharper at the target boundary, greatly suppressing the residue of the thermal halo transition zone and noise amplification, resulting in a clear and natural edge structure and the closest overall visual effect. Figure 2 The clear reference image in column (f) fully demonstrates the significant advantages of the present invention in improving the clarity of infrared image boundaries, suppressing false edge generation, and maintaining observation consistency.
[0057] Table 2 Comparison of infrared image reconstruction under different thermal diffusion intensities
[0058] As shown in Table 2, in terms of equivalent thermal diffusivity At speeds of 1.0, 2.0, and 4.0, the method of this invention can improve the quality of degraded infrared images. When the value is 1.0, the restored PSNR improves by 5.37 dB, SSIM by 0.0852, and EPI by 0.1863; When s is 2.0, the restored PSNR increases by 5.16 dB, SSIM increases by 0.1009, and EPI increases by 0.2182; when s is 4.0, the restored PSNR increases by 4.94 dB, SSIM increases by 0.1168, and EPI increases by 0.2477. These results indicate that the equivalent diffusion intensity... As a conditional variable, it can characterize different degrees of thermal diffusion degradation, enabling the same restoration network to adapt to mild, moderate, and severe thermal diffusion degradation.
[0059] Corresponding to Table 2, Figure 3 An exemplary schematic diagram comparing the degradation and restoration results of infrared images under different equivalent thermal diffusion intensities is shown. Figure 3 As shown, this comparison diagram uses the same industrial equipment scenario (including structures such as insulators and supports) as an example, and contains a total of 7 sub-diagrams, labeled (a) to (g). Each sub-diagram includes a global view and a magnified view of the local area marked with a dashed box below. The specific logic presented in this diagram is as follows: Figure 3 (a) is a reference clear image or an initial image under extremely weak diffusion conditions; Figure 3 (b) Figure 3 (d) Figure 3 (f) respectively correspond to the equivalent thermal diffusion intensity gradually increasing (e.g., mild). s =1.0, moderate s =2.0, severe s The degraded infrared image at 4.0°C clearly shows that as the temperature rises, the infrared radiation decreases. s As the size increases, the thermal halo effect in the image becomes more severe, the target boundary is significantly widened, and the high-frequency details of local structures such as insulators are significantly attenuated. Figure 3 (c) Figure 3 of (e) Figure 3 (g) corresponds to the infrared images restored by the method of the present invention under the three different thermal diffusion intensities mentioned above.
[0060] By comparing the sub-images and magnified views of each group, it can be seen that the method of this invention can effectively suppress the thermal halo transition zone and accurately restore the clear contour between the target and the background under mild, moderate, and severe thermal diffusion degradation conditions, without introducing significant noise amplification or pseudo-textures. This intuitively verifies that by introducing equivalent diffusion intensity as a conditional variable, the same network can stably adapt to different degrees of physical degradation, and its restoration effect is consistent with the PSNR, SSIM, and EPI indices in Table 2. s The results of quantitative analysis were consistent with the increase in size.
[0061] Table 3 Quantitative results of ablation experiments
[0062] As shown in Table 3, without using TDCM and without introducing observation consistency constraints, PSNR, SSIM, and EPI are 29.72 dB, 0.8958, and 0.8826, respectively. After introducing TDCM alone, the three indicators improve to 31.76 dB, 0.9203, and 0.9134, respectively, indicating that frequency domain bounded compensation can enhance high-frequency edge information and suppress unconstrained amplification. After introducing observation consistency alone, the three indicators improve to 31.95 dB, 0.9237, and 0.9189, respectively, indicating that re-degrading the restored image and constraining it to be consistent with the original observed image helps reduce the generation of details that do not conform to the physical degradation law. After introducing both TDCM and observation consistency, the three indicators further improve to 32.53 dB, 0.9368, and 0.9480, indicating that the two can synergistically improve the quality of infrared image restoration.
[0063] As can be seen from the above embodiments, the method of the present invention does not simply rely on image sharpening, but rather achieves infrared image restoration through the combined efforts of a differentiable infrared thermal diffusion degradation operator, a conditional diffusion restoration network, a thermal diffusion frequency domain modulation module, and a re-degradation observation consistency constraint. These techniques work together to improve the boundary sharpness and detail integrity of the restored image while maintaining consistency with the original infrared thermal diffusion observation process.
[0064] It should be noted that the above quantitative verification is based on the restoration dataset constructed by simulating equivalent thermal diffusion degradation. The restoration dataset uses clear or weakly diffused infrared images as a reference and constructs degraded images through a differentiable infrared thermal diffusion degradation operator. When applied to actual infrared imaging data, the equivalent diffusion intensity range, physical guidance intensity, edge adaptive weight, and diffusion steps can be adjusted according to the specific acquisition conditions.
[0065] The method provided in this embodiment of the invention can be applied to electronic devices. Specifically, the electronic device can be a desktop computer, a portable computer, a smart mobile terminal, a server, etc., and this embodiment of the invention does not limit the application to such devices.
[0066] Based on the same inventive concept, embodiments of the present invention also provide an infrared image restoration device. Figure 4 This is a schematic diagram of the structure of an infrared image restoration device provided in an embodiment of the present invention, as shown below. Figure 4 As shown, it includes: an acquisition unit 401, a mapping normalization unit 402, a data construction unit 403, a back diffusion denoising unit 404, a re-degradation unit 405, a diffusion propagation unit 406, and an output unit 407. Acquisition unit 401 is used to acquire the degraded infrared image to be restored; The mapping normalization unit 402 is used to perform bit depth mapping and grayscale normalization processing on the degraded infrared image to be restored, so as to obtain a normalized degraded infrared image. The data construction unit 403 is used to estimate the equivalent diffusion intensity based on the normalized degraded infrared image, and to construct a differentiable infrared thermal diffusion degradation operator and a physical prior set using the equivalent diffusion intensity. The back-diffusion denoising unit 404 is used to input the normalized degraded infrared image, the physical prior set, the current diffusion step number and the current diffusion state into the conditional diffusion network for back-diffusion denoising, and output a clear image estimate of the current step. The re-degradation unit 405 is used to re-degrade the current step's sharp image estimate using the differentiable infrared thermal diffusion degradation operator to obtain the re-degradation result, and to calculate the observation consistency residual between the re-degradation result and the normalized degradation infrared image. The diffusion propagation unit 406 is used to correct the sharp image estimate of the current step using the observation consistency residual, and calculate the next diffusion state based on the corrected sharp image, and use the next diffusion state as the current diffusion state of the back diffusion denoising unit in the next loop. The output unit 407 is used to repeatedly execute the steps between the reverse diffusion denoising unit and the diffusion propagation unit until the preset total number of diffusion steps is met, and the corrected clear image in the diffusion propagation unit after the last cycle is used as the final restored infrared image.
[0067] Figure 5 This is a schematic diagram of an infrared image restoration device provided in an embodiment of the present invention. It includes a processor 510, a storage medium 520, and a bus 530. The storage medium 520 stores machine-readable instructions executable by the processor 510. When the infrared image restoration device is running, the processor 510 communicates with the storage medium 520 via the bus 530. The processor 510 executes the machine-readable instructions to perform the steps of the above-described method embodiment. Specific implementation methods and technical effects are similar and will not be described in detail here.
[0068] The storage medium may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage device. Optionally, the storage medium may also be at least one storage device located remotely from the aforementioned processor.
[0069] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0070] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., refer to specific features or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Furthermore, those skilled in the art can combine and integrate the different embodiments or examples described in this specification.
[0071] Although the invention has been described herein in conjunction with various embodiments, those skilled in the art, by reviewing the accompanying drawings and the disclosure, will understand and implement other variations of the disclosed embodiments in carrying out the claimed invention. In this description, the word "comprising" does not exclude other components or steps, "a" or "an" does not exclude a plurality, and "a plurality" means two or more, unless otherwise explicitly specified. Furthermore, while different embodiments may describe certain measures, this does not mean that these measures cannot be combined to produce good results.
[0072] The above description, in conjunction with specific preferred embodiments, provides a further detailed explanation of the present invention. It should not be construed that the specific implementation of the present invention is limited to these descriptions. For those skilled in the art, various simple deductions or substitutions can be made without departing from the inventive concept, and all such modifications and substitutions should be considered within the scope of protection of the present invention.
Claims
1. A method for infrared image restoration, characterized in that, include: S101. Obtain the degraded infrared image to be restored; S102. Perform bit depth mapping and grayscale normalization processing on the degraded infrared image to be restored to obtain a normalized degraded infrared image. S103. Based on the normalized degraded infrared image, the equivalent diffusion intensity is estimated, and the equivalent diffusion intensity is used to construct a differentiable infrared thermal diffusion degradation operator and a physical prior set. S104. Input the normalized degraded infrared image, the physical prior set, the current diffusion step number, and the current diffusion state into the conditional diffusion network for backdiffusion denoising, and output a clear image estimate for the current step. S105. Using the clear image estimation of the current step, the image is re-degraded by the differentiable infrared thermal diffusion degradation operator to obtain the re-degraded result, and the observation consistency residual between the re-degraded result and the normalized degraded infrared image is calculated. S106. The clear image estimate of the current step is corrected using the observation consistency residual, and the next diffusion state is calculated based on the corrected clear image. The next diffusion state is used as the current diffusion state of S104 in the next loop. S107. Repeat S104-S106 until the preset total number of diffusion steps is met. The corrected clear image in S106 after the last loop is taken as the final restored infrared image.
2. The infrared image restoration method according to claim 1, characterized in that, S103 includes: The equivalent diffusion intensity is estimated based on the normalized degraded infrared image. Based on the equivalent diffusion intensity, an image domain thermal diffusion kernel and a frequency domain attenuation kernel are constructed, and the gradient response, Laplacian response, and edge candidate weights of the normalized degraded infrared image are calculated. The image domain thermal diffusion kernel, the frequency domain attenuation kernel, the gradient response, the Laplacian response, and the edge candidate weights are combined to form the physical prior set; Based on the equivalent diffusion intensity, thermal diffusion, radiation response, optical blurring, detector sampling, and noise modeling are combined into the differentiable infrared thermal diffusion degradation operator.
3. The infrared image restoration method according to claim 2, characterized in that, The image domain thermal diffusion kernel is represented as: ; in, Represents the horizontal coordinate in space and spatial ordinate The corresponding image domain thermal diffusion kernel, Indicates the equivalent diffusion intensity. This represents the natural exponential function. This represents the horizontal coordinate of the pixel space in a normalized degraded infrared image. Represents the spatial ordinate of the pixel space in a normalized degenerate infrared image; The frequency domain attenuation kernel is represented as: ; in, Indicates frequency in the horizontal direction and vertical frequency The corresponding frequency domain attenuation kernel, This represents the horizontal frequency in the spectral space of the normalized degraded infrared image. This represents the vertical frequency in the spectral space of a normalized degenerate infrared image.
4. The infrared image restoration method according to claim 2, characterized in that, S104 includes: The normalized degraded infrared image, the physical prior set, the current diffusion step number, and the current diffusion state are input into the conditional diffusion network, and multi-scale features are extracted by the multi-scale encoder of the conditional diffusion network. Based on the frequency domain attenuation kernel, a bounded compensation weight is constructed in the frequency domain; The multi-scale features are subjected to frequency domain weighting using the bounded compensation weights to obtain frequency domain compensated features, and the difference between the frequency domain compensated features and the multi-scale features is calculated to obtain the compensation increment. The compensation increment is adaptively fused using the edge candidate weights to obtain the compensated features; Based on the compensated features, reverse diffusion denoising is performed to output a clear image estimate for the current step.
5. The infrared image restoration method according to claim 4, characterized in that, The bounded compensation weight is expressed as: ; in, This indicates the first [scale] in a conditional diffusion network multiscale encoder. Layer, frequency in the horizontal direction and vertical frequency The value of the bounded compensation weight constructed below; The first element in the conditional diffusion network multiscale encoder represents the... layer, Indicates the first The equivalent diffusion intensity corresponding to the layer, This represents the horizontal frequency in the spectral space of the normalized degraded infrared image. This represents the vertical frequency in the spectral space of a normalized degenerate infrared image.
6. The infrared image restoration method according to claim 4, characterized in that, The compensated feature is represented as follows: ; ; in, The first element in the conditional diffusion network multiscale encoder represents the... The compensated features corresponding to the layer, The first element in the conditional diffusion network multiscale encoder represents the... Multi-scale features obtained from layer extraction Indicates the edge candidate weights. Represents multi-scale features Frequency domain compensation features obtained by performing frequency domain weighting processing. Indicates pixel-by-pixel multiplication. This represents the inverse fast Fourier transform.
7. The infrared image restoration method according to claim 4, characterized in that, The step of performing back-diffusion denoising based on the compensated features to output the clear image estimate of the current step includes: The compensated features are input into the decoder of the conditional diffusion network to obtain the decoded output; Using the decoded output, random noise and thermal diffusion degradation residuals are jointly predicted; Based on the current diffusion state, a reverse diffusion calculation is performed using the random noise and the thermal diffusion degradation residual to obtain a clear image estimate for the current step.
8. The infrared image restoration method according to claim 1, characterized in that, The calculation of the observation consistency residual between the re-degradation result and the normalized degradation infrared image as described in S105 includes: Calculate the degradation difference between the re-degradation result and the normalized degradation infrared image; Edge adaptive weights are constructed based on the gradient of the normalized degraded infrared image; The degradation difference is weighted pixel-by-pixel using the edge adaptive weights to obtain a weighted difference. The L1 norm is calculated for the weighted difference to obtain the observation consistency residual.
9. An infrared image restoration device, characterized in that, include: The system includes an acquisition unit, a mapping and normalization unit, a data construction unit, a back diffusion denoising unit, a re-degradation unit, a diffusion propagation unit, and an output unit. The acquisition unit is used to acquire the degraded infrared image to be restored; The mapping normalization unit is used to perform bit depth mapping and grayscale normalization processing on the degraded infrared image to be restored, so as to obtain a normalized degraded infrared image. The data construction unit is used to estimate the equivalent diffusion intensity based on the normalized degraded infrared image, and to construct a differentiable infrared thermal diffusion degradation operator and a physical prior set using the equivalent diffusion intensity. The back-diffusion denoising unit is used to input the normalized degraded infrared image, the physical prior set, the current diffusion step number, and the current diffusion state into the conditional diffusion network for back-diffusion denoising, and output a clear image estimate for the current step. The re-degradation unit is used to re-degrade the sharp image estimate of the current step through the differentiable infrared thermal diffusion degradation operator to obtain the re-degradation result, and to calculate the observation consistency residual between the re-degradation result and the normalized degradation infrared image. The diffusion propagation unit is used to correct the sharp image estimate of the current step using the observation consistency residual, and to calculate the next diffusion state based on the corrected sharp image, and to use the next diffusion state as the current step diffusion state of the back diffusion denoising unit in the next loop. The output unit is used to repeatedly execute the steps between the reverse diffusion denoising unit and the diffusion propagation unit until the preset total number of diffusion steps is met, and the corrected clear image in the diffusion propagation unit after the last cycle is used as the final restored infrared image.
10. An infrared image restoration device, characterized in that, include: The device includes a processor, a storage medium, and a bus. The storage medium stores machine-readable instructions executable by the processor. When the infrared image restoration device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of the infrared image restoration method as described in any one of claims 1-8.
