A phase unwrapping deep network model and an application method thereof

By constructing a phase unwinding deep network model and combining a spatial-frequency domain joint constraint decoder and a phase feature encoder, the problem of insufficient unwinding accuracy and robustness of traditional methods in complex scenarios is solved, achieving high-precision and robust phase unwinding, which is suitable for precision optical inspection.

CN123180225APending Publication Date: 2026-11-27SPEEDBOT ROBOTICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611398263.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-09
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing phase unwinding techniques struggle to achieve high precision and robustness in practical engineering scenarios such as low signal-to-noise ratio, complex structures, and strong noise interference. Traditional methods suffer from poor robustness and lack adaptability, while general-purpose deep learning models lack specific designs for phase physics characteristics, resulting in insufficient unwinding accuracy and robustness.

Method used

A phase unwinding deep network model is constructed, adopting an encoder-decoder structure. It combines a phase feature encoder module, a spatial-frequency joint constraint decoder module, a phase-specific normalization sub-unit, and a composite loss. Through a phase gradient sensing residual sub-module and a multi-scale feature fusion sub-module, it achieves end-to-end high-precision unwinding of the entangled phase map.

Benefits of technology

It achieves high-precision phase recovery in scenarios with low signal-to-noise ratio, strong noise, and complex phase structure, improves the robustness and adaptability of the model, simplifies the detection process, and improves computational efficiency, making it suitable for various precision optical detection engineering applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123180225A_ABST
    Figure CN123180225A_ABST
Patent Text Reader

Abstract

The application discloses a phase unwrapping deep network model and an application method, relates to the technical field of image processing and deep learning, and comprises the following steps: an input layer is used for inputting a single-channel wrapped phase image and transmitting the single-channel wrapped phase image to a phase feature encoder module; the phase feature encoder module is used for performing phase feature extraction based on the single-channel wrapped phase image, obtaining a skip connection feature and a phase feature map; a bottleneck layer is used for extracting a deep phase semantic feature based on the phase feature map; a space-frequency joint constraint decoder module is used for performing decoding processing on the deep phase semantic feature and the skip connection feature based on a space-frequency joint constraint, so as to obtain a decoded phase feature map; and an output layer is used for performing convolution mapping on the decoded phase feature map, and outputting an unwrapped continuous phase image. The application can realize end-to-end high-precision unwrapping of the wrapped phase image, and improve robustness and precision.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the fields of image processing and deep learning technology, and in particular to a phase unwinding deep network model and its application method. Background Technology

[0002] In precision optical detection applications such as interferometry, structured light measurement, and digital holography, the system can only acquire numerical values ​​within a limited range due to the limitations of the detection principle. or The wrapped phase of the interval, while the actual physical phase is a continuously changing value, exists between the two. The problem of periodic ambiguity necessitates the use of phase unwrapping techniques to recover the true continuous phase. The accuracy of this technique directly determines the reliability of subsequent measurements, imaging, and reconstruction results. Currently, mainstream phase unwrapping techniques are mainly divided into two categories: traditional algorithms and methods based on general deep learning. Traditional algorithms include path-tracking methods such as the Goldstein branching method and the quality-guided method, as well as traditional least-squares methods that solve for the global continuous phase by constructing a Poisson equation. Existing deep learning methods mostly directly employ general network architectures such as U-Net and CNN, treating the phase map as an ordinary grayscale image for end-to-end prediction, attempting to solve the phase unwrapping problem using a data-driven approach.

[0003] Despite the variety of existing technical approaches, they all exhibit significant technical limitations when facing real-world engineering scenarios such as low signal-to-noise ratios, complex structures, and strong noise interference, making it difficult to meet the requirements for high-precision phase untangling. Traditional path-tracking methods suffer from poor robustness and lack of adaptability, while traditional least-squares methods are overly smoothed and suffer severe loss of detail. Furthermore, existing general-purpose deep learning models lack specific designs for the physical characteristics of phase. In non-ideal scenarios, the accuracy and robustness of these methods are significantly insufficient, making it impossible to achieve highly reliable end-to-end phase untangling. Summary of the Invention

[0004] The purpose of this application is to provide a phase unwinding depth network model and application method, which can achieve end-to-end high-precision unwinding of the entangled phase map, thereby improving robustness and accuracy.

[0005] To achieve the above objectives, this application provides the following solution: In a first aspect, this application provides a phase unwinding deep network model, comprising an input layer, a phase feature encoder module, a bottleneck layer, a spatial-frequency joint constraint decoder module, and an output layer connected in sequence; the phase feature encoder module is also connected to the spatial-frequency joint constraint decoder module.

[0006] The input layer is used to input a single-channel wound phase map and transmit it to the phase feature encoder module.

[0007] The phase feature encoder module is used to extract phase features based on the single-channel winding phase map to obtain jump connection features and phase feature map.

[0008] The bottleneck layer is used to extract deep phase semantic features based on the phase feature map.

[0009] The spatial-frequency joint constraint decoder module is used to perform decoding processing on the deep phase semantic features and the skip connection features based on spatial-frequency joint constraints to obtain a decoded phase feature map.

[0010] The output layer is used to perform convolutional mapping on the decoded phase feature map to output an unwound continuous phase map.

[0011] Secondly, this application provides a method for applying a phase unwinding deep network model, including: Obtain the single-channel winding phase diagram and the corresponding actual unwinding continuous phase diagram.

[0012] The single-channel winding phase map is input into the phase unwinding depth network model described above, and the unwinding continuous phase map corresponding to the single-channel winding phase map is output.

[0013] Based on the unwound continuous phase map and the actual unwound continuous phase map, the composite loss is determined and the parameters of the phase unwound deep network model are updated in reverse to obtain the trained phase unwound deep network model.

[0014] Obtain the single-channel winding phase map to be processed, and input the single-channel winding phase map to be processed into the trained phase unwinding depth network model to obtain the unwinding continuous phase map corresponding to the single-channel winding phase map to be processed.

[0015] According to the specific embodiments provided in this application, this application has the following technical effects: This application provides a phase unwinding deep network model and its application method. By constructing a phase feature encoder module, it addresses the technical problems of existing general-purpose deep learning networks being unable to adapt to the inherent periodicity of phase and inaccurate phase feature extraction. It specifically extracts the core phase features of the entangled phase map, outputting skip connection features and a phase feature map, achieving complete preservation and accurate mining of phase physical features, and avoiding the defect of general feature extraction methods that destroy phase periodic information. By setting a bottleneck layer, it performs deep semantic extraction on the phase feature map output by the encoder, solving the problems of insufficient semantic information in shallow features and weak representation ability of complex phase features. This achieves effective condensation of deep phase features in low signal-to-noise ratio and complex structure scenarios, providing core features for high-precision phase recovery. This paper supports the following: By integrating a spatial-frequency domain joint constraint decoder module with a jump connection feature collaborative decoding architecture, it solves the technical problems of low unwinding accuracy and poor noise resistance in complex entangled regions caused by the loss of details in traditional methods, the reliance of general deep learning methods on only spatial information, and the inability to utilize phase frequency domain periodic features. It achieves bidirectional constraint fusion of spatial structural continuity and frequency domain periodic features, significantly enhancing the model's adaptability to strong noise and complex phase structures. Through an end-to-end architecture design with single-channel image input at the input layer and direct output of continuous phase maps at the output layer, it solves the problems of cumbersome traditional phase unwinding processes, reliance on manual intervention, and poor engineering feasibility. It achieves automated phase unwinding without post-processing, simplifying the detection process and improving computational efficiency. The entire phase unwinding deep network model in this application, through multi-module collaborative design, balances feature specificity, robustness, and generalization, effectively solving the core pain points of low phase unwinding accuracy and poor stability in non-ideal engineering scenarios. It achieves end-to-end high-precision unwinding of entangled phase maps, improving robustness and accuracy, and is adaptable to various precision optical detection engineering applications. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 A schematic diagram of the functional modules of a phase unwinding depth network model provided in an embodiment of this application; Figure 2 A schematic diagram of the functional modules of each encoder block in a phase feature encoder module provided in an embodiment of this application; Figure 3 This is a functional module diagram of a phase gradient sensing residual submodule provided in an embodiment of this application; Figure 4 This is a functional module diagram of a multi-scale feature fusion submodule provided in an embodiment of this application; Figure 5 This is a schematic diagram of the functional modules of each decoder block in a spatial-frequency domain joint constraint decoder module provided in an embodiment of this application; Figure 6 A detailed functional module diagram of a spatial constraint branch submodule provided in an embodiment of this application; Figure 7 A detailed functional module diagram of a frequency constraint branch submodule provided in an embodiment of this application; Figure 8 A detailed functional module diagram of the residual fusion submodule provided in an embodiment of this application; Figure 9 A detailed functional module diagram of a phase-dedicated normalization subunit provided in an embodiment of this application; Figure 10 A functional module diagram of a phase unwinding depth network model provided in another embodiment of this application; Figure 11 A flowchart illustrating an application method of a phase unwinding depth network model provided in an embodiment of this application; Figure 12 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation

[0018] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0019] Despite the variety of existing technical approaches, they all exhibit significant technical shortcomings when facing practical engineering scenarios such as low signal-to-noise ratios, complex structures, and strong noise interference, making it difficult to meet the requirements for high-precision untangling. On the one hand, traditional path-tracking methods suffer from poor robustness and lack of adaptability: methods such as the Goldstein branching method and the quality-guided method heavily rely on residual point detection in noisy environments. Under strong noise interference, errors in residual point detection can easily lead to misjudgment of the phase propagation path, resulting in error propagation. Furthermore, their manually set or heuristically generated branching paths cannot adapt to complex phase changes in different scenarios, leading to extremely high untangling failure rates in complex phase structure regions. On the other hand, traditional least-squares methods suffer from excessive smoothing and significant loss of detail: these methods are highly unstable in low signal-to-noise ratio regions, and due to their global smoothing characteristics, they easily produce an over-smoothing effect on the true phase structure. This results in limited ability to recover phase transition edges and local fine structures, failing to preserve the true gradient characteristics of the phase, and severely affecting the measurement accuracy of minute deformations or high-frequency details. Meanwhile, existing general-purpose deep learning models lack specific designs for the physical characteristics of phase: most current deep learning methods directly apply general computer vision networks (such as U-Net and CNN) without designing a dedicated architecture for the unique 0-2π periodicity, spatial gradient continuity, and frequency domain periodic structure information of phase data. This approach of simply equating phase maps with ordinary grayscale images leads to the model's inability to understand the physical constraints of phase, resulting in frequent problems such as 2π periodicity misjudgment, phase gradient breaks, and inaccurate high-frequency fine structure recovery in untangling results. In non-ideal scenarios, the accuracy and robustness of these methods are significantly insufficient, making it impossible to achieve highly reliable end-to-end phase untangling.

[0020] To address the technical problems of existing phase unwinding methods, such as sensitivity to noise, poor gradient continuity, insufficient utilization of periodic features, and low accuracy in recovering complex structures, this application proposes a deep network model for phase unwinding based on joint spatial-frequency constraints. By constructing a phase feature encoder module, a joint spatial-frequency constraint decoder module, a phase-specific normalization subunit, and a composite loss, high-precision end-to-end unwinding of the entangled phase map is achieved, improving the robustness and accuracy of the method in non-ideal scenarios such as low signal-to-noise ratio, strong noise, and complex phase structures.

[0021] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0022] The technical architecture of the embodiments of this application will be described in detail below. The phase unwinding deep network model adopts an encoder-decoder structure. The input is a single-channel wound phase map (pixel value range [0, 2π]), and the output is an unwound continuous phase map. The model consists of an input layer, four encoder blocks, a bottleneck layer, four decoder blocks, and an output layer. The core innovative modules include a phase-specific normalization subunit (i.e., the phase-specific normalization layer PhaseNorm), a phase gradient-aware residual submodule (i.e., the phase gradient-aware residual module, PhaseGradientResBlock), a multi-scale feature fusion submodule (i.e., the multi-scale feature fusion module, MultiScaleFeatureFusion), a spatial constraint branch submodule (i.e., the spatial constraint branch, SpatialConstraintBranch), a frequency constraint branch submodule (i.e., the frequency constraint branch, FrequencyConstraintBranch, with an embedded gradient Fourier attention mechanism), and a residual fusion submodule (ResidualFusion). The following is a detailed explanation of each part.

[0023] like Figure 1 As shown, this embodiment proposes a phase unwinding deep network model, which includes an input layer, a phase feature encoder module, a bottleneck layer, a spatial-frequency joint constraint decoder module, and an output layer connected in sequence; the phase feature encoder module is also connected to the spatial-frequency joint constraint decoder module.

[0024] The input layer is used to input a single-channel wound phase map and transmit it to the phase feature encoder module.

[0025] It should be noted that if the width and height of the single-channel winding phase map input to the input layer are divisible by 16, the phase unwinding depth network model can directly output the unwinding result; otherwise, the single-channel winding phase map needs to be filled (such as mirror fill) or cropped to the nearest multiple of 16 before being input into the phase unwinding depth network model to output the unwinding result.

[0026] The phase feature encoder module is used to extract phase features based on the single-channel winding phase map to obtain jump connection features and phase feature map.

[0027] The bottleneck layer is used to extract deep phase semantic features based on the phase feature map.

[0028] The spatial-frequency joint constraint decoder module is used to perform decoding processing on the deep phase semantic features and the skip connection features based on spatial-frequency joint constraints to obtain a decoded phase feature map.

[0029] The output layer is used to perform convolutional mapping on the decoded phase feature map to output an unwound continuous phase map.

[0030] The unwound continuous phase map serves as input data for subsequent quantitative physical inversion calculations. It is mainly used in various interferometric measurement scenarios to eliminate the 2π jump in the wrapped phase, which is limited to the positive and negative π interval or the 0 to 2π interval, and restore the absolute phase distribution with real physical meaning. Physical quantities such as height, deformation, flow velocity, and optical path difference can be calculated. Common applications include InSAR surface subsidence and topographic mapping, optical interferometry and structured light three-dimensional topography detection, digital holographic microbial sample observation, phase-contrast magnetic resonance blood flow velocimetry, as well as shear speckle industrial non-destructive testing and interferometric synthetic aperture sonar seabed mapping, providing a continuous and reliable phase data foundation for various quantitative measurements.

[0031] As an optional implementation, the phase feature encoder module includes several encoder blocks connected in series, and each encoder block includes a phase gradient sensing residual submodule, a multi-scale feature fusion submodule, and a 2×2 max pooling submodule connected in series.

[0032] The phase gradient sensing residual submodule of the first encoder block is used to receive the single-channel wound phase map and generate an output feature map based on the single-channel wound phase map; the multi-scale feature fusion submodule of the first encoder block is used to extract different receptive field features from the output feature map to obtain multi-scale features and skip connection features; the 2×2 max pooling submodule of the first encoder block is used to downsample the multi-scale features to obtain the phase feature map. Except for the first encoder block, the phase gradient sensing residual submodule of each of the remaining encoder blocks is used to receive the phase feature map output by the 2×2 max pooling submodule of the previous encoder block, and generate a corresponding output feature map based on the phase feature map; the multi-scale feature fusion submodule of each of the remaining encoder blocks is used to extract different receptive field features from the output feature map to obtain multi-scale features and skip connection features; the 2×2 max pooling submodule of each of the remaining encoder blocks is used to downsample the multi-scale features to obtain the corresponding phase feature map.

[0033] It should be noted that the phase feature encoder module described in this embodiment consists of four stacked encoder blocks, which are used to extract the phase feature map of the single-channel wound phase map step by step; as Figure 2As shown, the input to the encoder block is a single-channel wound phase map or the phase feature map output by the previous encoder block. The single-channel wound phase map input to the first encoder block passes sequentially through a phase gradient sensing residual submodule and a multi-scale feature fusion submodule to obtain multi-scale features and skip connection features. The skip connection features are output to the corresponding decoder block, and the multi-scale features are input to a 2×2 max-pooling submodule to obtain a phase feature map, which is then output to the next encoder block. In this embodiment, the input single-channel wound phase map passes sequentially through four encoder blocks, outputting phase feature maps downsampled by 2x, 4x, 8x, and 16x, while retaining the skip connection features of each layer. This is for use by the corresponding decoder blocks. The four encoder blocks are configured as follows: the first encoder block e1 has 1 input channel and 64 output channels; the second encoder block e2 has 64 input channels and 128 output channels; the third encoder block e3 has 128 input channels and 256 output channels; and the fourth encoder block e4 has 256 input channels and 512 output channels.

[0034] Specifically, the phase gradient sensing residual submodule of the first encoder block is used to receive the single-channel wound phase map and generate a first output feature map; the multi-scale feature fusion submodule of the first encoder block is used to extract different receptive field features from the first output feature map to obtain a first multi-scale feature and a first skip connection feature; the 2×2 max pooling submodule of the first encoder block is used to downsample the first multi-scale feature to obtain a first phase feature map and send it to the second encoder block.

[0035] The phase gradient sensing residual submodule of the second encoder block is used to receive the first phase feature map and generate a second output feature map; the multi-scale feature fusion submodule of the second encoder block is used to extract different receptive field features from the second output feature map to obtain a second multi-scale feature and a second skip connection feature; the 2×2 max pooling submodule of the second encoder block is used to downsample the second multi-scale feature to obtain a second phase feature map and send it to the third encoder block.

[0036] The phase gradient sensing residual submodule of the third encoder block is used to receive the second phase feature map and generate the third output feature map; the multi-scale feature fusion submodule of the third encoder block is used to extract different receptive field features from the third output feature map to obtain the third multi-scale feature and the third skip connection feature; the 2×2 max pooling submodule of the third encoder block is used to downsample the third multi-scale feature to obtain the third phase feature map and send it to the fourth encoder block.

[0037] The phase gradient sensing residual submodule of the fourth encoder block is used to receive the third phase feature map and generate the fourth output feature map; the multi-scale feature fusion submodule of the fourth encoder block is used to extract different receptive field features from the fourth output feature map to obtain the fourth multi-scale feature and the fourth hop connection feature; the 2×2 max pooling submodule of the fourth encoder block is used to downsample the fourth multi-scale feature to obtain the fourth phase feature map and send it to the bottleneck layer; the fourth phase feature map is the final output phase feature map in the phase feature encoder module; the first hop connection feature, the second hop connection feature, the third hop connection feature and the fourth hop connection feature are respectively input into the corresponding decoder blocks in the spatial-frequency joint constraint decoder module.

[0038] Specifically, the bottleneck layer receives the fourth phase feature map after pooling the fourth encoder block, and after being refined by the phase gradient sensing residual submodule in the bottleneck layer, it obtains the deep phase semantic features.

[0039] As an optional implementation, to address the issues of traditional methods being sensitive to phase gradient noise and exhibiting poor continuity, this application's embodiments design a phase gradient sensing residual submodule, which explicitly extracts and enhances gradient information in the residual connections. The structure of the phase gradient sensing residual submodule is as follows: Figure 3 As shown, the phase gradient sensing residual submodule includes a shortcut unit, a main path basic processing unit, a gradient enhancement unit, and a fusion unit; the shortcut unit is connected in parallel with the main path basic processing unit and the gradient enhancement unit; the shortcut unit is connected to the fusion unit, and the main path basic processing unit, the gradient enhancement unit, and the fusion unit are connected sequentially.

[0040] The short-circuit connection unit is used to directly output the phase feature map when the number of input channels and the number of output channels of the phase feature map are the same; when the number of input channels and the number of output channels of the phase feature map are not the same, the phase feature map is processed to perform channel number alignment to obtain a phase feature map with aligned output channels.

[0041] Specifically, the phase feature map or single-channel wound phase map is first short-circuited. If the number of input channels and the number of output channels of the phase feature map are inconsistent, then alignment adjustment is performed through 1×1 convolution to obtain the phase feature map after the output channels are aligned.

[0042] The main path basic processing unit is used to perform 3×3 convolution on the phase feature map to obtain convolution features, and after phase normalization processing on the convolution features, it is activated by LeakyReLU to obtain the first intermediate features.

[0043] Specifically, the main path basic processing unit is used to first perform a 3×3 convolution on the phase feature map or single-channel wound phase map to obtain convolution features; then, the convolution features are input into the phase-specific normalization subunit for phase normalization, and activated by LeakyReLU to obtain the first intermediate features. .

[0044] The gradient enhancement unit is used to perform channel mean compression, Laplacian gradient extraction, channel replication expansion, adaptive weight generation, and gradient feature enhancement calculation on the first intermediate feature to obtain the gradient-enhanced first intermediate feature.

[0045] Specifically, in the gradient enhancement unit, firstly, the first intermediate feature is... A single-channel gradient map is obtained by averaging along the channel dimension. Then, using a predefined Laplacian convolution kernel, the single-channel gradient map is processed. Perform convolution (padding=1) to obtain the gradient response map. The expression for the Laplacian convolution kernel is as follows: (1); in, This represents the Laplacian convolution kernel, used to explicitly extract phase gradient information.

[0046] Then, the gradient response map Copy along channel dimension Next, obtain the first intermediate feature. Gradient plots of the same size (in, The first intermediate feature (Number of channels).

[0047] Next, the first intermediate feature is combined with a learnable 3×3 convolution (grad_conv). Gradient plots of the same size This is mapped to a gradient weight map. This gradient weight map reflects the necessity of gradient enhancement at each location. Adaptive weights, calculated based on the gradient response, are used to control the degree of gradient structure enhancement at each location.

[0048] (2); in, This represents the gradient weight map, which is used to represent the gradient enhancement intensity at different spatial locations and in different channels. This represents the Sigmoid activation function, which maps the convolution output to the range of 0 to 1 so that it can be used as a weight coefficient. This represents a learnable 3×3 convolutional layer used to generate a gradient weight map based on the Laplacian gradient response.

[0049] Finally, the first intermediate feature and Element-wise multiplication, that is, adding gradient weight enhancement on the first intermediate feature, yields the first intermediate feature after gradient enhancement, thus achieving explicit enhancement of gradient structure information.

[0050] The formula for calculating the first intermediate feature after gradient enhancement is as follows: (3); in, This represents the first intermediate feature after gradient enhancement.

[0051] The fusion unit is used to perform convolution and phase normalization processing on the gradient-enhanced first intermediate feature to obtain the processed first intermediate feature, and to add the processed first intermediate feature and the phase feature map or the phase feature map aligned with the output channel pixel by pixel, and activate it through LeakyReLU to obtain the output feature map.

[0052] Specifically, the first intermediate feature after gradient enhancement is further processed by a 3×3 convolution (conv2) and phase normalization by a dedicated phase normalization subunit. This is then added to the output of the short-circuit connection unit and output via LeakyReLU to obtain the output feature map of the phase gradient-aware residual submodule. This output serves as the input to the multi-scale feature fusion submodule in the encoder block; if the phase gradient-aware residual submodule is located in the bottleneck layer, it serves as the input to the decoder. The phase gradient-aware residual submodule designed in this embodiment retains the advantages of residual learning while specifically enhancing phase gradient features, effectively suppressing noise from disrupting gradient continuity.

[0053] The phase gradient sensing residual submodule is responsible for first enhancing the continuity of the phase gradient, while the multi-scale feature fusion submodule further captures local details, larger-scale structures, and global context based on its output.

[0054] The phase gradient-aware residual submodule explicitly introduces gradient enhancement units into the residual connections, extracts phase gradient features using Laplacian convolution kernels, and generates gradient weight maps through learnable convolutions. and the first intermediate feature with Element-wise multiplication enables adaptive enhancement of gradient information. This submodule retains the advantages of residual learning while specifically strengthening the continuity of the phase gradient, effectively suppressing the damage of noise to the gradient structure.

[0055] As an optional implementation, to capture structural information at different scales (such as overall phase trend and local details) during phase unwinding, a multi-scale feature fusion submodule is introduced into the encoder block, such as... Figure 4 As shown, the multi-scale feature fusion submodule includes parallel branch units and multi-scale fusion units connected in sequence.

[0056] The parallel branch unit is used to extract features from the output feature map at different receptive fields to obtain multi-scale sub-features of the corresponding branches.

[0057] The multi-scale fusion unit is used to concatenate the multi-scale sub-features to obtain multi-scale features, and to perform phase normalization and 3×3 convolution processing on the multi-scale features to obtain skip connection features.

[0058] Specifically, the multi-scale feature fusion submodule employs four parallel branches to extract features from different receptive fields: a 1×1 convolutional branch captures point-level details; a 3×3 convolutional branch (padding=1) captures local texture; a 5×5 convolutional branch (padding=2) captures larger-scale structures; and a dilated convolutional branch (3×3 kernel, dilation=4, padding=4) captures global context. All four branches have an output channel count of [missing information]. After being spliced ​​together, multi-scale features are obtained. These features are then normalized using a dedicated phase normalization subunit, and finally fused through 3×3 convolution to produce skip connection features. This multi-scale feature fusion submodule enhances the ability of the phase unwinding deep network model to represent different periodic variation patterns in the phase map.

[0059] in, This indicates the preset number of output channels for the multi-scale feature fusion submodule, which is an integer multiple of 4 or uses rounding down and corresponding adjustments to the input channels of the fusion convolution. In the multi-scale feature fusion submodule, the number of output channels for all four parallel branches is set to... After the four features are concatenated along the channel dimension, the total number of channels is restored to [value missing]. , where dilation is the hole expansion rate of the dilated convolution kernel. In one embodiment, when When padding is 64, each of the four branches outputs 16 channels, which are then concatenated to obtain a 64-channel multi-scale feature map. Padding indicates that zeros are padded to the edges of the output feature map before convolution to control the spatial size of the output feature map after convolution. In one embodiment, when 3×3 convolution uses padding=1, zeros are added to the input feature map. Figure 4Each circle is padded with a zero to ensure that the height and width of the output feature map are consistent with the input. The 5×5 convolution uses padding=2; the dilated convolution uses padding=4, also to expand the receptive field while maintaining the output size as much as possible, facilitating subsequent channel stitching.

[0060] The multi-scale feature fusion submodule adopts , , The four parallel branches of convolution and dilated convolution capture point-level details, local textures, larger-scale structures, and global context, respectively. After convolution, the multi-scale features are concatenated and fused to enhance the network's ability to perceive phase change patterns at different scales (such as local entanglement and overall trends).

[0061] As an alternative implementation method, such as Figure 5 As shown, the spatial-frequency joint constraint decoder module includes several decoder blocks connected in series. Each decoder block includes a phase feature upsampling fusion module, a spatial constraint branch submodule, a frequency constraint branch submodule, a residual fusion submodule, and a feature calibration submodule connected in series; wherein the spatial constraint branch submodule and the frequency constraint branch submodule are connected in parallel. The phase feature upsampling fusion module includes upsampling using transposed convolution, concatenation, and 3×3 convolution fusion operations.

[0062] The phase feature upsampling fusion module is used to upsample the deep phase semantic features and fuse them with the skip connection features to obtain joint phase features; the skip connection features are the output of the multi-scale feature fusion submodule of the corresponding encoder block.

[0063] Specifically, in the phase feature upsampling fusion module, this embodiment performs upsampling and skip connection fusion steps. First, a transposed convolution (ConvTranspose2d, kernel=2, stride=2, where kernel=2 indicates that the kernel size of the transposed convolution is 2×2; stride=2 indicates the stride of the transposed convolution, controlling the output amplification factor) is used to fusion the input channels. The deep phase semantic features are upsampled, the output spatial size is enlarged to 2H×2W, and the number of channels is halved. This yields the upsampled features. Then, the upsampled features are compared with the number of channels... The encoder skip connection features are concatenated along the channel dimension, resulting in a total number of channels. Then through the input channel for Output channels are 3×3 convolutions are used for feature fusion to obtain joint phase features. .

[0064] The spatial constraint branch submodule is used to spatially constrain the joint phase features to obtain spatial constraint features.

[0065] As an optional implementation, the spatial constraint branch submodule is used to enhance spatial continuity. This spatial constraint branch submodule constrains joint phase features in the spatial domain, such as... Figure 6 As shown, the spatially constrained branch submodule includes a pre-convolutional normalization unit, a channel attention CAM unit, and a dilated convolutional smoothing unit connected in sequence.

[0066] The preceding convolutional normalization unit is used to perform 3×3 convolution and phase normalization on the joint phase features to obtain the initial features of the spatially constrained branch.

[0067] Specifically, the joint phase features are processed by 3×3 convolution and phase normalization sub-units to obtain the initial features of the spatially constrained branch.

[0068] The channel attention CAM unit is used to compress the spatial dimension through global average pooling. Two 1×1 convolutions are combined with LeakyReLU and Sigmoid to generate channel weights. The channel weights are multiplied with the initial features of the spatial constraint branch to complete channel weighting and obtain the channel-weighted features.

[0069] Specifically, the channel attention CAM unit compresses the spatial dimension through global average pooling, generates channel weights through two layers of 1×1 convolution (LeakyReLU in the middle channel) and sigmoid, and multiplies them with the initial features of the spatial constraint branch to obtain channel-weighted features, thereby enhancing the response of important channels. The number of channels in the middle channel LeakyReLU is 16 with a compression ratio.

[0070] The dilated convolution smoothing unit is used to perform dilated convolution on the channel-weighted features to obtain spatially constrained features.

[0071] Specifically, the channel-weighted features are subjected to dilated convolution (dilation=2, padding=2) to obtain spatially constrained features. The purpose of dilated convolution is to expand the receptive field without significantly increasing the number of parameters, further repairing and smoothing the spatial structure of features enhanced by channel attention, thereby strengthening the spatial continuity of the phase. This branch outputs spatially constrained features. The focus is on strengthening the spatial structure of the phase gradient.

[0072] The spatially constrained branch submodule enhances the spatial gradient structure and spatial continuity of phase features through convolution, channel attention mechanism, and dilated convolution.

[0073] The frequency constraint branch submodule is used to capture the phase periodicity characteristics of the joint phase features using Fourier transform to obtain frequency domain constraint features.

[0074] Specifically, the frequency constraint branch submodule contains gradient Fourier attention to enhance periodic features. This submodule utilizes Fourier transform to capture phase periodicity characteristics, which are primarily obtained and enhanced through the gradient Fourier attention mechanism within the frequency constraint branch. Specifically, a spatial gradient magnitude map is first calculated from the joint phase features. Then, a two-dimensional FFT is performed on this gradient map to convert spatial periodic stripes, edge loops, and other structures into a frequency domain representation. Subsequently, important frequency components are weighted using frequency domain attention weights, and finally, the result is returned to the spatial domain via IFFT.

[0075] As an alternative implementation method, Figure 7 The refinement of each unit in the frequency constraint branch submodule is as follows: The frequency constraint branch submodule includes a pre-feature processing unit, a gradient magnitude calculation unit, an FFT frequency domain transformation unit, a frequency domain attention weighting unit, and an IFFT inverse transformation fusion unit connected in sequence.

[0076] The pre-feature processing unit is used to perform 3×3 convolution and phase normalization on the joint phase features to obtain the second intermediate feature.

[0077] Specifically, the joint phase features are subjected to phase normalization processing via 3×3 convolution and phase normalization sub-units to obtain the second intermediate feature. .

[0078] The gradient magnitude calculation unit is used to determine the spatial gradient magnitude map of the second intermediate feature based on the second intermediate feature.

[0079] Specifically, the gradient calculation steps in this application embodiment involve solving the spatial domain gradient of the second intermediate feature, approximating the gradient using the neighboring pixel difference method, obtaining the gradient magnitude based on the gradient, and performing phase normalization processing on the gradient magnitude to generate a spatial domain gradient magnitude map. .

[0080] The FFT frequency domain transformation unit is used to perform a two-dimensional fast Fourier transform (FFT) on the spatial gradient magnitude map to obtain frequency domain complex coefficients, and then separate the real and imaginary parts of the frequency domain complex coefficients and splice them together to form the frequency domain features of the 2C channel.

[0081] Specifically, for the spatial gradient magnitude map A two-dimensional fast Fourier transform is performed to obtain the complex coefficients in the frequency domain. The real part (real) and imaginary part (imag) of the complex coefficients in the frequency domain are separated and concatenated to form the frequency domain features of the 2C channels.

[0082] The frequency domain attention weighting unit is used to input the frequency domain features of the 2C channels into a small convolutional network to obtain frequency domain attention weights, and multiply the frequency domain attention weights by the frequency domain complex coefficients to obtain weighted frequency domain features.

[0083] Specifically, the frequency domain attention generation step in this application embodiment is as follows: inputting the frequency domain features of the 2C channels into a small convolutional network (two 1×1 convolutional layers, with a LeakyReLU function and a Sigmoid function in between) to obtain a frequency domain attention weight map. Frequency domain attention weight graph The size of the frequency domain attention weight map should be consistent with the size of the result obtained by performing a two-dimensional fast Fourier transform. If they are inconsistent, the frequency domain attention weight map is interpolated and adjusted. The weighted frequency domain features are obtained by multiplying the frequency domain attention weight map with the frequency domain complex coefficients.

[0084] The formula for calculating the weighted frequency domain features is as follows: (4); in, Weighted frequency domain features; This represents the frequency domain complex coefficients obtained after performing a two-dimensional fast Fourier transform on the gradient magnitude map.

[0085] The inverse IFFT fusion unit performs an inverse Fourier transform (IFFT) on the weighted frequency domain features to obtain frequency domain enhanced features, and then fuses the second intermediate features with the frequency domain enhanced features through a 3×3 convolution to obtain frequency domain constrained features.

[0086] Specifically, an inverse Fourier transform is performed on the weighted frequency domain features to obtain spatial domain enhanced features (i.e., frequency domain enhanced features). Ultimately, the second intermediate feature will be... Spatial enhancement features The sums are then fused using 3×3 convolution to output frequency domain constrained features. This mechanism uses frequency domain attention in the gradient domain to specifically enhance periodic structures (such as stripes and edge loops) in the phase map, thereby improving the ability to recover high-frequency details.

[0087] The frequency constraint branch submodule embeds gradient Fourier attention and calculates the phase gradient magnitude map. It performs a two-dimensional Fourier transform on the map, generates attention weights in the frequency domain and multiplies them with the complex coefficients in the frequency domain. Then, it performs an inverse transform back to the spatial domain, thereby specifically enhancing the periodic structural features of the phase (such as stripes and edge loops) and improving the ability to recover high-frequency details.

[0088] The residual fusion submodule is used to fuse the spatial domain constraint features and the frequency domain constraint features to obtain fused features, and to perform 3×3 convolution and phase normalization processing on the fused features to obtain residual fused features.

[0089] Specifically, such as Figure 8 As shown, the residual fusion submodule is further refined as follows: The residual fusion submodule incorporates spatial constraint features... and frequency domain constraint features The fusion process is performed to obtain the fusion characteristics.

[0090] The formula for calculating the fusion feature is as follows: (5); in, Features of fusion; , This is a learnable scalar parameter (initialized to 1). Provides complementary information for the difference terms.

[0091] The residual fusion submodule integrates spatial constraint features. and frequency domain constraint features Perform weighted fusion and introduce difference terms. Provides complementary information through learnable parameters , By balancing the contributions of the two branches, the spatial continuity and frequency periodic characteristics are fully complemented.

[0092] The fused features are processed by 3×3 convolution and phase normalization sub-units to output residual fused features, which maintains spatial continuity and enhances periodic features.

[0093] The feature calibration submodule is used to perform phase normalization processing on the residual fusion features to obtain a decoded phase feature map; the decoded phase feature map serves as the deep phase semantic feature of the phase feature upsampling fusion module of the next decoder block.

[0094] The output layer maps the decoded phase feature map output by the last decoder block into an unwound continuous phase map through a 1×1 convolution (without nonlinear activation).

[0095] It should be noted that the spatial-frequency joint constraint decoder module described in this application embodiment includes four decoder blocks. The output of the fourth decoder block is connected to the input of the third decoder block; the output of the third decoder block is connected to the input of the second decoder block; the output of the second decoder block is connected to the input of the first decoder block; and the output of the first decoder block is connected to the input of the output layer. The number of output channels from the fourth decoder block to the first decoder block decreases progressively. Each decoder block has the same topology. The decoder blocks designed in this application embodiment are the core innovation. Each decoder block can also be composed of upsampling, skip connection fusion, spatial constraint branch, frequency constraint branch, and residual fusion modules to achieve spatial-frequency joint constraints and accurately recover the phase structure.

[0096] The four decoder blocks are stacked in the following order: the fourth decoder block d4 has 512 input channels, 512 input channels for the skip connection feature, and 256 output channels; the third decoder block d3 has 256 input channels, 256 input channels for the skip connection feature, and 128 output channels; the second decoder block d2 has 128 input channels, 128 input channels for the skip connection feature, and 64 output channels; and the first decoder block d1 has 64 input channels, 64 input channels for the skip connection feature, and 1 output channel.

[0097] The phase feature upsampling fusion module of the fourth decoder block is used to upsample the deep phase semantic features and fuse them with the fourth skip connection features to obtain the fourth joint phase feature; the spatial constraint branch submodule of the fourth decoder block is used to spatially constrain the fourth joint phase feature to obtain the fourth spatial constraint feature; the frequency constraint branch submodule of the fourth decoder block is used to capture the phase periodicity characteristics of the fourth joint phase feature using Fourier transform to obtain the fourth frequency constraint feature; the residual fusion submodule of the fourth decoder block is used to fuse the fourth spatial constraint feature and the fourth frequency constraint feature to obtain the fourth fused feature, and to perform 3×3 convolution and phase normalization processing on the fourth fused feature to obtain the fourth residual fused feature; the feature calibration submodule of the fourth decoder block is used to perform phase normalization processing on the fourth residual fused feature to obtain the fourth decoded phase feature map, and then send it to the third decoder block.

[0098] The phase feature upsampling and fusion module of the third decoder block is used to upsample the fourth decoded phase feature map and fuse it with the third jump connection feature to obtain a third joint phase feature; the spatial constraint branch submodule of the third decoder block is used to spatially constrain the third joint phase feature to obtain a third spatial constraint feature; the frequency constraint branch submodule of the third decoder block is used to capture the phase periodicity of the third joint phase feature using Fourier transform to obtain a third frequency constraint feature; the residual fusion submodule of the third decoder block is used to fuse the third spatial constraint feature and the third frequency constraint feature to obtain a third fused feature, and to perform 3×3 convolution and phase normalization processing on the third fused feature to obtain a third residual fused feature; the feature calibration submodule of the third decoder block is used to perform phase normalization processing on the third residual fused feature to obtain a third decoded phase feature map, and then send it to the second decoder block.

[0099] The phase feature upsampling and fusion module of the second decoder block is used to upsample the third decoded phase feature map and fuse it with the second skip connection feature to obtain a second joint phase feature; the spatial constraint branch submodule of the second decoder block is used to spatially constrain the second joint phase feature to obtain a second spatial constraint feature; the frequency constraint branch submodule of the second decoder block is used to capture the phase periodicity of the second joint phase feature using Fourier transform to obtain a second frequency constraint feature; the residual fusion submodule of the second decoder block is used to fuse the second spatial constraint feature and the second frequency constraint feature to obtain a second fused feature, and to perform 3×3 convolution and phase normalization processing on the second fused feature to obtain a second residual fused feature; the feature calibration submodule of the second decoder block is used to perform phase normalization processing on the second residual fused feature to obtain a second decoded phase feature map, and then send it to the first decoder block.

[0100] The phase feature upsampling and fusion module of the first decoder block is used to upsample the second decoded phase feature map and fuse it with the first skip connection feature to obtain a first joint phase feature; the spatial constraint branch submodule of the first decoder block is used to spatially constrain the first joint phase feature to obtain a first spatial constraint feature; the frequency constraint branch submodule of the first decoder block is used to capture the phase periodicity of the first joint phase feature using Fourier transform to obtain a first frequency constraint feature; the residual fusion submodule of the first decoder block is used to fuse the first spatial constraint feature and the first frequency constraint feature to obtain a first fused feature, and to perform 3×3 convolution and phase normalization processing on the first fused feature to obtain a first residual fused feature; the feature calibration submodule of the first decoder block is used to perform phase normalization processing on the first residual fused feature to obtain a first decoded phase feature map, and to send it to the output layer; the first decoded phase feature map is the final decoded phase feature map output by the spatial-frequency joint constraint decoder module.

[0101] As an optional implementation, the main path basic processing unit, the fusion unit, the multi-scale fusion unit, the residual fusion submodule, the feature calibration submodule, the pre-feature processing unit, and the pre-convolution normalization unit all include a phase-specific normalization subunit. The phase-specific normalization subunit is used to perform phase feature normalization processing, preserve phase periodicity, and enable the phase unwinding depth network model to adaptively adjust the amplitude and offset of the phase features while maintaining periodic distribution characteristics.

[0102] Specifically, a dedicated phase normalization subunit is used to improve model training stability and preserve phase periodicity features. Since phase data has a periodicity of 0-2π, traditional normalization methods (such as BatchNorm) can disrupt the phase periodicity distribution, leading to training instability. This application designs a dedicated phase normalization subunit module specifically for spatial normalization of phase features, preserving phase periodicity. The specific implementation steps of the dedicated phase normalization subunit are as follows: Figure 9 As shown, firstly, the feature map tensor input to the phase-specific normalized subunit is... (in, It is the set of real numbers; Batch size; Number of channels; ' is the feature map height; (where the feature map width is), in the spatial dimension ( Calculate the mean and variance on the ).

[0103] The formula for calculating the mean is: (6); in, The mean; This represents the feature map tensor input to the phase-specific normalized subunit; This represents the averaging operation, which, within the phase-specific normalization subunit, calculates the mean for each sample and each channel in the spatial dimension. , Calculate the mean; This means that the mean is calculated along the height and width of the feature tensor graph; keepdim means that the tensor dimension is not eliminated after the operation, and the output tensor still retains the four-dimensional structure.

[0104] The formula for calculating the variance is: (7); in, For variance; This indicates the variance calculation operation. In the phase-specific normalization subunit, it calculates the variance for each sample and each channel in the spatial dimension. , 'Calculate the variance above;' This indicates that variance is calculated along the height and width of the feature tensor.

[0105] Next, based on the mean and variance, the feature map tensor input to the phase-specific normalized subunit is standardized to obtain the standardized features.

[0106] The formula for calculating the standardized features is as follows: (8); in, These are the standardized features; It is the numerical stability constant. .

[0107] Then, the standardized features are mapped to using the Sigmoid activation function. The interval is used to simulate the distribution of phase values ​​within a period. Next, learnable affine parameters are introduced. and (Network initial parameters) (shape is) ), output .in, yThis represents the normalized phase feature map output by the phase-specific normalized subunit. It is not the final output of the entire network, but rather serves as the output of the current module or unit containing the phase-specific normalized subunit, passed to the next operation or the next module or unit. The operation of this phase-specific normalized subunit enables the phase-unwrapped deep network model to adaptively adjust the amplitude and offset of the phase features while maintaining its periodic distribution characteristics. This module is widely used after each convolution in the encoder and decoder blocks to ensure the stability of the phase-unwrapped deep network model during training.

[0108] The phase-specific normalization subunit in this embodiment is designed for the inherent phase data. The periodicity characteristic is standardized by calculating the mean and variance in the spatial dimension, and then the features are mapped to a sigmoid function. The interval is defined, and learnable affine parameters are introduced. and This enables the phase unwrapping deep network model to adaptively adjust the amplitude and offset of phase features while preserving periodic physical properties, thereby improving training stability and convergence speed.

[0109] This application also proposes a module diagram for a phase unwinding depth network model, such as... Figure 10 As shown, this embodiment of the application consists of an input layer, first to fourth encoders, a bottleneck layer, fourth to first decoders, and an output layer. The output of the input layer is sent to the first encoder. The first encoder, second encoder, third encoder, and fourth encoder are cascaded to form an encoding path. Each encoder performs feature extraction step by step, obtaining multi-scale features and skip connection features. The number of feature channels gradually increases. The output of the fourth encoder is sent to the bottleneck layer. The bottleneck layer extracts deep phase semantic features from the phase feature map and outputs them to the fourth decoder. The fourth decoder, third decoder, second decoder, and first decoder are cascaded to form a decoding path. The first encoder, second encoder, third encoder, and fourth encoder respectively input their obtained skip connection features into the corresponding first decoder, second decoder, third decoder, and fourth decoder. At the same time, the first decoder, second decoder, and third decoder each receive the features output by the previous level decoder and fuse the skip connection features from the corresponding encoder. Finally, the output of the first decoder is connected to the output layer. After completing feature mapping, the output layer outputs the result of the phase unwinding deep network model.

[0110] This application proposes a phase unwinding deep network model, the core of which lies in constructing a phase characteristic-driven encoder-decoder architecture. Through phase-specific normalization, gradient-aware residual learning, multi-scale feature fusion, and parallel spatial and frequency-domain constraint branches, it achieves joint optimization of spatial continuity and frequency-domain periodic features during the decoding stage. Finally, it outputs a high-precision unwinding continuous phase map by using a residual fusion submodule to complement features. This phase unwinding deep network model processes the wrapped phase map in an end-to-end manner, eliminating the need for branch cutting, least-squares solving, or manual post-processing required by traditional methods. It solves the technical problems of existing methods, such as sensitivity to noise, poor gradient continuity, insufficient utilization of periodic features, and low accuracy in recovering complex structures.

[0111] Based on the same inventive concept, this application also provides an application method based on the phase unwinding depth network model described above. The solution provided by this method is similar to the implementation scheme described in the phase unwinding depth network model above. Therefore, the specific limitations in the one or more application method embodiments of the phase unwinding depth network model provided below can be found in the limitations of the phase unwinding depth network model above, and will not be repeated here.

[0112] In one exemplary embodiment of this application, such as Figure 11 As shown, a method for applying a phase unwinding depth network model is provided, which includes the following steps 201 to 204.

[0113] Step 201: Obtain the single-channel winding phase diagram and the corresponding actual unwinding continuous phase diagram.

[0114] Step 202: Input the single-channel winding phase map into the phase unwinding depth network model of any one of the above embodiments, and output the unwinding continuous phase map corresponding to the single-channel winding phase map.

[0115] Step 203: Based on the unwound continuous phase map and the real unwound continuous phase map, determine the composite loss and update the parameters of the phase unwound deep network model in reverse to obtain the trained phase unwound deep network model.

[0116] Step 204: Obtain the single-channel winding phase map to be processed, and input the single-channel winding phase map to be processed into the trained phase unwinding depth network model to obtain the unwinding continuous phase map corresponding to the single-channel winding phase map to be processed.

[0117] Specifically, the phase unwinding deep network model accepts entangled phase maps of arbitrary size and directly outputs the unwinding results, eliminating the need for branch cutting, least squares solving, or manual post-processing required in traditional methods. During the training phase, the phase unwinding deep network model learns the mapping rules of phase unwinding through multiple samples, and during the testing phase, it can complete unwinding in a single forward propagation, significantly improving processing efficiency and lowering the barrier to engineering applications.

[0118] It should be noted that when the width and height of the input entanglement phase map are both divisible by 16, the phase unwinding depth network model can directly output the unwinding result. Otherwise, the entanglement phase map needs to be filled (such as mirror fill) or cropped to the nearest multiple of 16 before being input into the phase unwinding depth network model to output the unwinding result.

[0119] In another exemplary embodiment of this application, to achieve end-to-end optimization, this embodiment designs a composite loss. The implementation of the composite loss is a method embodiment and is independent of the network structure in the phase unwinding depth network model. The combined phase unwinding depth network model outputs the unwinding continuous phase map corresponding to the single-channel winding phase map to be processed. With the true untangled continuous phase diagram Let the spatial domain size of the input single-channel wound phase map be... , Total pixels The composite loss includes spatial L1 loss, Laplacian gradient consistency loss, and frequency domain loss.

[0120] The formula for calculating the spatial L1 loss is as follows: (9); in, For airspace L1 loss; This represents the total number of pixels. The height of the single-channel winding phase map; The width of the single-channel wound phase map; For pixel index in the spatial height direction; The pixel index in the width direction of the spatial domain; Represents the spatial location of pixels on the phase map; The unwound continuous phase map corresponding to the single-channel wound phase map to be processed is in pixels. Phase value at; For a true untangled continuous phase map at the pixel The phase value at that point.

[0121] It should be noted that the spatial L1 loss is used to ensure that the unwound continuous phase map corresponding to the single-channel wound phase map to be processed in the output has absolute accuracy at the pixel level with the real unwound continuous phase map.

[0122] In this embodiment of the application, when calculating the Laplacian gradient consistency loss, the unwound continuous phase maps corresponding to the single-channel entangled phase maps to be processed are first analyzed. and the true untangled continuous phase diagram Apply Laplacian kernel Second-order differentiation is performed, and the Laplacian convolution kernel is used to constrain the consistency of the second-order gradients of the Laplacian response maps. This Laplacian convolution kernel is the same as the Laplacian convolution kernel used in the gradient enhancement subunit mentioned above, but its function is different.

[0123] The expression for the Laplacian convolution kernel is: (10).

[0124] Next, the L1 distance of the Laplace response map is calculated to obtain the Laplace gradient consistency loss.

[0125] The formula for calculating the Laplacian gradient consistency loss is as follows: (11); in, This is the Laplacian gradient consistency loss.

[0126] It should be noted that, compared to the first-order gradient operator (Sobel or forward difference), the Laplacian operator (i.e., the Laplacian convolution kernel) is an isotropic second-order differential operator that can respond to phase abrupt changes in any direction. It can more effectively constrain the local curvature continuity of the unwinding result and avoid the network generating an overly smooth or falsely curved phase surface.

[0127] To enhance the network's ability to fit periodic stripes and global frequency features, two-dimensional fast Fourier transforms (FFTs) are performed on the unwound continuous phase map corresponding to the single-channel wrapped phase map to be processed and the real unwound continuous phase map, respectively, to directly measure the spectral differences in the complex domain.

[0128] set up For two-dimensional FFT operations, the formula for calculating the frequency domain loss is: (12); in, For frequency domain loss; Index of frequency dimension in the vertical direction of the frequency domain; For the frequency dimension index in the horizontal direction of the frequency domain; Represents the coordinate position on the frequency domain matrix; It is a two-dimensional fast Fourier transform; This represents the unit circle complex signal obtained by performing a complex exponential mapping pixel-by-pixel on the unwound continuous phase map corresponding to the single-channel wound phase map to be processed. This represents the complex signal of the unit circle obtained by performing a complex exponential mapping on each pixel of the real unwound continuous phase map.

[0129] It should be noted that this frequency domain loss involves mapping the unwound continuous phase map and the true unwound continuous phase map to the unit circle using complex exponential operations, followed by a two-dimensional fast Fourier transform. The mean square error (MSE) of the complex spectral difference is then calculated by taking the square of the modulus of the difference. Since the complex exponential function has a period of 2π, (in, The amplitude of the unwound continuous phase diagram; It can be any integer; (where the unit is a complex imaginary unit). This loss naturally accommodates the 2π periodicity of the phase and is insensitive to the integer 2π ambiguity of the wrapped phase; moreover, its gradient magnitude is bounded, avoiding gradient explosion at large squared errors, thus making the frequency domain constraint more stable and reliable. It should be noted that this loss only constrains the consistency of the 2π periodic structure of the phase, while the absolute phase value is constrained by the spatial domain L1 loss, and the two complement each other.

[0130] The total loss is a weighted sum of the spatial L1 loss, the Laplace gradient consistency loss, and the frequency domain loss.

[0131] The formula for calculating the composite loss is: (13); in, This is a composite loss; These are the weighting coefficients for the spatial L1 loss; These are the weighting coefficients for the Laplacian gradient consistency loss; These are the weighting coefficients for the frequency domain loss; For positive real numbers, in actual training, it is usually set to and A larger value is used to ensure basic accuracy and phase continuity. It is used to assist in the recovery of high-frequency periodic details and can be fine-tuned based on the performance of the validation set.

[0132] Preferably, the weighting coefficients of the spatial domain L1 loss and the Laplacian gradient consistency loss are both set to 10, and the weighting coefficient of the frequency domain loss is set to 1.

[0133] Norm selection explanation: Both the spatial domain L1 loss and the Laplacian gradient consistency loss adopt the L1 norm, which is beneficial to preserve image edges and alleviate excessive gradient interference caused by outliers; the frequency domain loss adopts the mean square error of the complex spectral difference, which automatically handles the periodicity of the frequency domain argument while maintaining the invariance of spectral rotation, and promotes the global consistency mapping of the phase unwrapped deep network model in the frequency domain space.

[0134] The composite loss combines spatial L1 loss, Laplacian gradient consistency loss, and frequency domain loss to supervise pixel-level accuracy, gradient continuity, and the consistency of frequency domain periodic features, respectively. By balancing various constraints through weighted summation, the network is guided to learn both the spatial details of the phase and the frequency domain periodic characteristics, thereby improving training performance and untangling quality.

[0135] Compared with existing traditional phase unwinding algorithms and general deep learning-based unwinding methods, the embodiments of this application address the core pain points of existing technologies one by one through targeted technological innovations, achieving significant improvements in unwinding accuracy, noise robustness, complex structure recovery capability, and engineering practicality. Specific beneficial effects are as follows: The embodiments of this application propose a phase-specific normalization method that preserves phase periodicity and improves training stability. A dedicated normalization layer is designed for the inherent periodicity of the phase from 0 to 2π. The phase periodic distribution is maintained through a sigmoid mapping, avoiding the destruction of phase physical characteristics by general normalization methods. Simultaneously, learnable parameters are introduced to improve the stability and convergence speed of model training, solving the problem of insufficient utilization of periodic features in existing deep learning methods.

[0136] This application proposes a phase gradient-aware residual submodule to improve gradient continuity and suppress the influence of noise. Phase gradient features are explicitly extracted using the Laplacian operator, and an attention mechanism is used to weight and enhance gradient continuity regions. Combined with residual connections, this alleviates the gradient vanishing problem in deep networks, effectively suppressing gradient abrupt changes caused by noise, strengthening the spatial gradient continuity of the unwrapped phase, and solving the problems of gradient breakage and noise sensitivity in traditional methods and general deep learning methods.

[0137] This application proposes a spatial-frequency joint decoder module that utilizes both structural and spectral information to improve global unwinding accuracy. By constructing parallel spatial and frequency-domain constraint branch submodules, the spatial constraint branch submodule enhances the phase gradient structure and spatial continuity, while the frequency constraint branch submodule mines the periodic spectral features of the phase using Fourier transform. The complementary fusion of these two branch features fully utilizes the phase's spatial structure and frequency-domain periodic features, addressing the problem of poor recovery capability for complex phase structures in existing methods.

[0138] This application proposes a Gradient-Fourier Attention (GFFT) mechanism to enhance the ability to recover periodic structures and improve the unwinding accuracy in complex regions. Based on the phase gradient magnitude, a frequency-domain attention mechanism is constructed. Through Fourier transform and frequency-domain weighting, the periodic structural features of the phase are specifically enhanced, frequency-domain noise interference is suppressed, effectively solving the problem of 2π-period misjudgment and significantly improving the unwinding accuracy in low signal-to-noise ratio, high-noise, and complex entanglement regions.

[0139] This application implements end-to-end phase unwinding, simplifying the processing flow and improving engineering practicality. Using the original unwound phase map as the sole input, it directly outputs a high-precision unwound phase map, eliminating the need for branch path design, least-squares equation solving, and manual post-processing required by traditional methods. This achieves end-to-end automated processing, significantly improving unwinding efficiency. Furthermore, the model architecture supports lightweight optimization and can be deployed to industrial edge devices and portable imaging equipment, meeting the needs of engineering applications such as real-time detection and on-site measurement.

[0140] This application proposes a multi-scale feature fusion design to adapt to phase entanglement scenarios at different scales, thereby improving the generalization ability of the method. Through multi-branch fusion of 1×1, 3×3, 5×5 convolutions and dilated convolutions, phase features of different receptive fields are extracted, adapting to different types of phase change scenarios such as small-scale local entanglement and large-scale global entanglement. This enhances the model's generalization ability to different industries and detection scenarios, and can be widely applied in fields such as interferometry, structured light 3D reconstruction, digital holographic imaging, and SAR interferometry.

[0141] In one exemplary embodiment, a computer device is provided, which may be a server or a terminal, and its internal structure diagram may be as follows. Figure 12 As shown, this computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operating system and computer programs stored in the non-volatile storage media. The database stores data related to the phase unwinding deep network model and its application. The I / O interfaces are used for information exchange between the processor and external devices. The communication interface is used for communication with external terminals via a network connection. When the computer program is executed by the processor, it implements a phase unwinding deep network model and its application method.

[0142] Figure 12 The structures shown are merely block diagrams of some structures related to the present application and do not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than shown in the figures, or combine certain components, or have different component arrangements. In an exemplary embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.

[0143] In one exemplary embodiment, a computer-readable storage medium is provided storing a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.

[0144] In one exemplary embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.

[0145] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of related data must comply with relevant regulations and be authorized by the owner of the corresponding device.

[0146] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM).

[0147] The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0148] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0149] This document uses specific examples to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. Furthermore, those skilled in the art will recognize that, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A phase unwinding depth network model, characterized in that, It includes an input layer, a phase feature encoder module, a bottleneck layer, a spatial-frequency joint constraint decoder module, and an output layer connected in sequence; the phase feature encoder module is also connected to the spatial-frequency joint constraint decoder module. The input layer is used to input a single-channel wound phase map and transmit it to the phase feature encoder module; The phase feature encoder module is used to extract phase features based on the single-channel winding phase map to obtain jump connection features and phase feature map; The bottleneck layer is used to extract deep phase semantic features based on the phase feature map; The spatial-frequency joint constraint decoder module is used to perform decoding processing on the deep phase semantic features and the skip connection features based on spatial-frequency joint constraints to obtain a decoded phase feature map; The output layer is used to perform convolutional mapping on the decoded phase feature map to output an unwound continuous phase map.

2. The phase unwinding depth network model according to claim 1, characterized in that, The phase feature encoder module includes several encoder blocks connected in series. Each encoder block includes a phase gradient sensing residual submodule, a multi-scale feature fusion submodule, and a 2×2 max pooling submodule connected in series. The phase gradient sensing residual submodule of the first encoder block is used to receive the single-channel wound phase map and generate an output feature map based on the single-channel wound phase map; the multi-scale feature fusion submodule of the first encoder block is used to extract different receptive field features from the output feature map to obtain multi-scale features and skip connection features; the 2×2 max pooling submodule of the first encoder block is used to downsample the multi-scale features to obtain the phase feature map. Except for the first encoder block, the phase gradient sensing residual submodule of each of the remaining encoder blocks is used to receive the phase feature map output by the 2×2 max pooling submodule of the previous encoder block, and generate a corresponding output feature map based on the phase feature map; the multi-scale feature fusion submodule of each of the remaining encoder blocks is used to extract different receptive field features from the output feature map to obtain multi-scale features and skip connection features. The 2×2 max-pooling submodule of each of the remaining encoder blocks is used to downsample the multi-scale features to obtain the corresponding phase feature map.

3. The phase unwinding depth network model according to claim 2, characterized in that, The phase gradient sensing residual submodule includes a short-circuit connection unit, a main path basic processing unit, a gradient enhancement unit, and a fusion unit; the short-circuit connection unit is connected in parallel with the main path basic processing unit and the gradient enhancement unit; the short-circuit connection unit is connected with the fusion unit; and the main path basic processing unit, the gradient enhancement unit, and the fusion unit are connected sequentially. The short-circuit connection unit is used to directly output the phase feature map when the number of input channels and the number of output channels of the phase feature map are the same; when the number of input channels and the number of output channels of the phase feature map are not the same, the phase feature map is processed to perform channel number alignment to obtain a phase feature map with aligned output channels. The main path basic processing unit is used to perform 3×3 convolution on the phase feature map to obtain convolution features, and after phase normalization processing on the convolution features, it is activated by LeakyReLU to obtain the first intermediate features; The gradient enhancement unit is used to perform channel mean compression, Laplacian gradient extraction, channel copying and expansion, adaptive weight generation and gradient feature enhancement calculation on the first intermediate feature to obtain the gradient-enhanced first intermediate feature. The fusion unit is used to perform convolution and phase normalization processing on the gradient-enhanced first intermediate feature to obtain the processed first intermediate feature, and to add the processed first intermediate feature and the phase feature map or the phase feature map aligned with the output channel pixel by pixel, and activate it through LeakyReLU to obtain the output feature map.

4. The phase unwinding depth network model according to claim 3, characterized in that, The multi-scale feature fusion submodule includes parallel branch units and multi-scale fusion units connected in sequence; The parallel branch unit is used to extract features of different receptive fields from the output feature map to obtain multi-scale sub-features of the corresponding branch. The multi-scale fusion unit is used to concatenate the multi-scale sub-features to obtain multi-scale features, and to perform phase normalization and 3×3 convolution processing on the multi-scale features to obtain skip connection features.

5. The phase unwinding depth network model according to claim 4, characterized in that, The spatial-frequency joint constraint decoder module includes several decoder blocks connected in series. Each decoder block includes a phase feature upsampling fusion module, a spatial constraint branch submodule, a frequency constraint branch submodule, a residual fusion submodule, and a feature calibration submodule connected in series. The spatial constraint branch submodule and the frequency constraint branch submodule are connected in parallel. The phase feature upsampling fusion module is used to upsample the deep phase semantic features and fuse them with the skip connection features to obtain joint phase features; the skip connection features are the output of the multi-scale feature fusion submodule of the corresponding encoder block; The spatial constraint branch submodule is used to spatially constrain the joint phase features to obtain spatial constraint features. The frequency constraint branch submodule is used to capture the phase periodicity characteristics of the joint phase features using Fourier transform to obtain frequency domain constraint features. The residual fusion submodule is used to fuse the spatial domain constraint features and the frequency domain constraint features to obtain fused features, and to perform 3×3 convolution and phase normalization processing on the fused features to obtain residual fused features; The feature calibration submodule is used to perform phase normalization processing on the residual fusion features to obtain a decoded phase feature map; the decoded phase feature map serves as the deep phase semantic feature of the phase feature upsampling fusion module of the next decoder block.

6. The phase unwinding depth network model according to claim 5, characterized in that, The spatial constraint branch submodule includes a pre-convolutional normalization unit, a channel attention CAM unit, and a dilated convolutional smoothing unit connected in sequence. The preceding convolutional normalization unit is used to perform 3×3 convolution and phase normalization on the joint phase features to obtain the initial features of the spatially constrained branch. The channel attention CAM unit is used to compress the spatial dimension through global average pooling. Two 1×1 convolutions are combined with LeakyReLU and Sigmoid to generate channel weights. The channel weights are multiplied with the initial features of the spatial constraint branch to complete channel weighting and obtain the channel-weighted features. The dilated convolution smoothing unit is used to perform dilated convolution on the channel-weighted features to obtain spatially constrained features.

7. The phase unwinding depth network model according to claim 6, characterized in that, The frequency constraint branch submodule includes a pre-feature processing unit, a gradient magnitude calculation unit, an FFT frequency domain transformation unit, a frequency domain attention weighting unit, and an IFFT inverse transformation fusion unit connected in sequence. The pre-feature processing unit is used to perform 3×3 convolution and phase normalization on the joint phase features to obtain the second intermediate feature; The gradient magnitude calculation unit is used to determine the spatial gradient magnitude map of the second intermediate feature based on the second intermediate feature. The FFT frequency domain transformation unit is used to perform a two-dimensional fast Fourier transform on the spatial gradient magnitude map to obtain frequency domain complex coefficients, and to separate the real and imaginary parts of the frequency domain complex coefficients and splice them together to form the frequency domain features of the 2C channel. The frequency domain attention weighting unit is used to input the frequency domain features of the 2C channels into a small convolutional network to obtain frequency domain attention weights, and multiply the frequency domain attention weights by frequency domain complex coefficients to obtain weighted frequency domain features; The inverse IFFT fusion unit performs an inverse Fourier transform on the weighted frequency domain features to obtain frequency domain enhanced features, and then fuses the second intermediate features with the frequency domain enhanced features through a 3×3 convolution to obtain frequency domain constrained features.

8. The phase unwinding depth network model according to claim 7, characterized in that, The main path basic processing unit, the fusion unit, the multi-scale fusion unit, the residual fusion submodule, the feature calibration submodule, the pre-feature processing unit, and the pre-convolution normalization unit all include a phase-specific normalization subunit. The phase-specific normalization subunit is used to perform phase feature normalization processing, preserve phase periodicity, and enable the phase unwinding depth network model to adaptively adjust the amplitude and offset of the phase features while maintaining periodic distribution characteristics.

9. A method for applying a phase unwrapping depth network model, characterized in that, The application methods of the phase unwinding deep network model include: Obtain the single-channel winding phase diagram and the corresponding actual unwinding continuous phase diagram; Input the single-channel winding phase map into the phase unwinding depth network model according to any one of claims 1-8, and output the unwinding continuous phase map corresponding to the single-channel winding phase map; Based on the unwound continuous phase map and the real unwound continuous phase map, the composite loss is determined and the parameters of the phase unwound deep network model are updated in reverse to obtain the trained phase unwound deep network model. Obtain the single-channel winding phase map to be processed, and input the single-channel winding phase map to be processed into the trained phase unwinding depth network model to obtain the unwinding continuous phase map corresponding to the single-channel winding phase map to be processed.

10. The application method of the phase unwinding depth network model according to claim 9, characterized in that, The composite loss includes spatial L1 loss, Laplace gradient consistency loss, and frequency domain loss; The formula for calculating the spatial L1 loss is as follows: ; in, For airspace L1 loss; This represents the total number of pixels. The height of the single-channel winding phase map; The width of the single-channel wound phase map; For pixel index in the spatial height direction; The pixel index in the width direction of the spatial domain; Represents the spatial location of pixels on the phase map; The unwound continuous phase map corresponding to the single-channel wound phase map to be processed is in pixels. Phase value at; For a true untangled continuous phase map at the pixel Phase value at; The formula for calculating the Laplacian gradient consistency loss is as follows: ; in, For Laplacian gradient consistency loss; The kernel is a Laplace convolution. The formula for calculating the frequency domain loss is: ; in, For frequency domain loss; Index of frequency dimension in the vertical direction of the frequency domain; For the frequency dimension index in the horizontal direction of the frequency domain; Represents the coordinate position on the frequency domain matrix; It is a two-dimensional fast Fourier transform; This represents the unit circle complex signal obtained by performing a complex exponential mapping pixel-by-pixel on the unwound continuous phase map corresponding to the single-channel wound phase map to be processed. This represents the complex signal of the unit circle obtained by performing a pixel-by-pixel complex exponential mapping on the actual unwound continuous phase map; The formula for calculating the composite loss is as follows: ; in, This is a composite loss; These are the weighting coefficients for the spatial L1 loss; These are the weighting coefficients for the Laplacian gradient consistency loss; These are the weighting coefficients for the frequency domain loss.