Unsupervised deformable three-dimensional medical image registration method and apparatus

By using Vision Transformer and dilated convolution combined with normalized total gradient in medical image registration, the problems of long training time and insufficient accuracy in existing technologies are solved, and higher accuracy and robustness of 3D medical image registration are achieved.

CN118314175BActive Publication Date: 2026-11-20WUHAN UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410275927.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-12
Publication Date
2026-11-20
Estimated Expiration
2044-03-12

AI Technical Summary

Technical Problem

Existing medical image registration methods suffer from problems such as long training time, inability to fully utilize the inherent structure of medical images, and sensitivity to rotation, scaling, and noise, resulting in insufficient accuracy and poor generalization performance.

Method used

We employ a Vision Transformer combined with dilated convolution, using the normalized total gradient as a similarity metric to optimize the loss function. Through unsupervised learning, we perform 3D medical image registration, enhancing the model's ability to capture image details and structures.

Benefits of technology

It improves the accuracy and robustness of medical image registration, reduces the sensitivity to changes in image scale and contrast, enhances the model's utilization of local deformation and contextual information, and provides more accurate anatomical and functional information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118314175B_ABST
    Figure CN118314175B_ABST
Patent Text Reader

Abstract

The application discloses a kind of based on the deformable three-dimensional medical image registration method and device of unattended.It comprises: pre-processing medical image training set and data set;Downsample each pair of fixed image and floating image, create three-layer image pyramid;Registration network model is divided into three stages, share same architecture, including convolution block embedding layer, transformer encoder layer with dilated convolution and classification layer;Each layer of image of pyramid is input into the model of corresponding stage to carry out registration, and the image after registration is obtained;The similarity of fixed image and registration image is calculated using normalized total gradient, and loss function is calculated, and network model is optimized by back propagation.The method captures larger scale context information through dilated convolution, better acquires image structure and feature, and is resistant to different radiation distortion under different medical imaging modes through normalized total gradient, and better effect is obtained on three-dimensional medical image registration task.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of image registration, specifically relating to an unsupervised deformable three-dimensional medical image registration method. Background Technology

[0002] Medical image registration is a technique for aligning and matching medical images from different times, sources, or modalities. With continuous advancements in registration technology, medical image registration has been widely applied in clinical diagnosis and image-guided imaging. Compared to traditional image registration tasks, medical images contain multiple modalities and a large number of pixels, requiring multimodal image registration and large-scale data processing. The accuracy requirements for medical image registration are higher; registration errors can have a significant impact on clinical diagnosis and treatment, thus necessitating higher precision and lower error tolerance. Furthermore, the unique properties of medical images necessitate the development of specific feature extraction and matching algorithms, such as morphology-based and segmentation-based algorithms, which presents significant challenges to medical image registration.

[0003] Traditional medical image registration methods are mainly based on manual annotation, including: 1) preprocessing medical images, such as denoising and smoothing; 2) extracting features from medical images, such as edges and corners; 3) matching the features of the image to be registered with the features of the reference image; 4) aligning the image to be registered with the reference image by calculating the transformation matrix; and 5) post-processing the registration results, such as artifact removal and smoothing. However, manual annotation is costly, inefficient for processing large-scale data, and its accuracy and reliability are affected by human factors.

[0004] Currently, deep learning technology, with its powerful learning and feature extraction capabilities, is widely used in many fields such as Natural Language Processing (NLP), Computer Vision (CV), and bioinformatics. In medical image analysis tasks, deep learning technology is used for region of interest (e.g., tumors, organs, cells) segmentation, lesion detection, disease diagnosis, and classification. Inspired by the successful application of deep learning in medical image analysis tasks, registration tasks have also gradually begun to use deep learning technology, specifically in three aspects: 1) supervised medical image registration methods; 2) unsupervised medical image registration methods; and 3) generative adversarial networks (GANs) based medical image registration methods. Supervised registration methods require standard label data corresponding to the images to be registered when training the learning network. This data can be generated by traditional algorithms or manually labeled. However, labels generated by traditional algorithms may be inaccurate, and manual labeling requires doctors to spend a lot of time and effort. Therefore, using labeled medical images as supervision information for registration models in practical applications is impractical and inaccurate. To solve this problem, many scholars have begun to study unsupervised registration methods. Unsupervised registration methods only require registration pairs when training the learning network, without needing standard label data. This method relies primarily on the statistical features of the images themselves for registration, which may not accurately reflect the anatomical structures and physiological characteristics of medical images. Furthermore, image feature extraction can be affected by rotation, scaling, and noise. In generative adversarial network (GAN)-based registration methods, a common approach is to train the adversarial network by introducing a network-based loss. However, the training process for GANs is relatively complex and time-consuming, requiring substantial training data and computational resources to achieve good results.

[0005] In summary, the above methods still have some limitations. The main difficulties are: 1) how to shorten the training time, especially for designing complex deep learning models; 2) how to make full use of the inherent structure between medical images to select appropriate similarity measurement methods; 3) how to reduce the negative impact of rotation, scaling and noise on feature extraction and improve the model's ability to perceive the locality of medical images in order to better capture detailed information. Summary of the Invention

[0006] In view of this, the present invention aims to solve the problems of insufficient accuracy and poor generalization performance of existing technologies in the field of medical image registration, and proposes an unsupervised deformable three-dimensional medical image registration method.

[0007] This method utilizes the Vision Transformer to capture detailed information and overall structure in images, while adding dilated convolutions to the MLP to expand the receptive field of the neural network and improve registration performance. Furthermore, it employs the normalized total gradient as a similarity metric and optimizes the loss function to effectively reduce the impact of brightness and contrast variations on the image. This method can accurately correspond spatially to the structure, regions, and functions of brain images, thereby improving registration accuracy.

[0008] The technical solution adopted in this invention is an unsupervised deformable three-dimensional medical image registration method, which mainly includes the following steps:

[0009] Step S1, Image Acquisition: Obtain 3D medical images from a public dataset and randomly divide them into training and test sets according to a certain ratio;

[0010] Step S2, Image preprocessing: Perform standard preprocessing on the divided dataset, and then select a fixed image F and a floating image M from it;

[0011] Step S3: Downsample each pair of fixed image F and floating image M to create the input image for the L-layer pyramid in the network model, so as to obtain F. i ∈{F1,F2,…,F L} and M i ∈{M1,M2,…,M L}, then connect F i and M i , as the input of the i-th layer of the pyramid;

[0012] Step S4: The input image of the i-th pyramid layer is fed into the convolutional block embedding layer to obtain the block embedding matrix. The block embedding matrix is ​​then input into the Transformer Encoder module to obtain the feature embedding E. i ;

[0013] Step S5: Embed the features of the i-th pyramid layer into the input classification layer to obtain a set of affine transformation parameters A. i ;

[0014] Step S6, A i Image M of the (i+1)th layer of the pyramid i+1 Perform an asymptotic space transformation to obtain M i ′ +1 Then connect F i+1 and M i ′ +1 , which serves as the input image for the (i+1)th layer of the pyramid;

[0015] Step S7: The (i+1)th layer pyramid generates a block embedding matrix according to step S4, and then merges it with the feature embedding E of the ith layer pyramid. i Perform element-wise addition and generate a set of affine transformation parameters A according to step S5. i+1 Repeat steps S6 and S7 until the Lth pyramid generates a set of affine transformation parameters A. L ;

[0016] Step S8, using A L Interpolate the floating image M to obtain the registered floating image M′. Calculate the similarity measure between M′ and the fixed image F using the normalized total gradient. Based on F, M′, and A... L Establish an objective function, and use the objective function to perform backpropagation optimization on the network model to obtain the optimal affine transformation parameters A;

[0017] Step S9: Input the test set into the optimized network model to obtain the optimal affine transformation parameters A. Use A to perform an affine transformation on the floating image M to obtain the registered image.

[0018] Furthermore, step S2 specifically includes:

[0019] Step S2.1: Resample and fill the image, then adjust the resolution, and perform normalization and affine alignment.

[0020] Step S2.2: For the training set, cross-select images as fixed images F and floating images M;

[0021] Step S2.3: For the test set, arbitrarily select one image as the fixed image F, and the rest as floating images M.

[0022] Furthermore, step S3 specifically includes:

[0023] The image is downsampled at F and M using trilinear interpolation to obtain the input image for each layer of the L-layer pyramid, where the downsampling scaling factor for the i-th layer is 0.5. L-i The fixed image and floating image in the last layer are F respectively. L =F,M L =M.

[0024] Furthermore, step S4 specifically includes:

[0025] Step S4.1, the convolutional block embedding layer transforms the input image pairs into a series of overlapping block embeddings, given F i and M i The connection input I∈R H×W×D×C Where H, W, and D represent the spatial dimensions of I, and C is the number of channels. The convolutional block embedding layer uses 3D convolution to compute the block embedding graph of I. Flatten X into a series of embedded blocks Where N = H i W i D i , It can be aggregated into a block embedding matrix d is the embedding dimension;

[0026] Step S4.2, matrix Add positional embedding to N, then input to N i In the Transformer Encoder module, which consists of blocks with the same structure, each block is composed of alternating multi-head self-attention modules and convolutional feedforward layers.

[0027] Step S4.3, matrix After linear projection matrix W Q W K , The transformation yields different query Q, key K, and value V matrices, i.e. h is the number of attention heads, d h For the embedding dimension of the attention head;

[0028] The attention matrices obtained from calculating all attention heads are concatenated through matrix W. O ∈R d*d Performing a concatenation operation yields the characteristic matrix Z∈R. h*d Where the linear projection matrix W Q W K W V And cascade matrix W O The parameters are adjusted and learned through weight updates and optimizations during the learning process;

[0029] Step S4.4: Input the feature matrix into the convolutional feedforward layer to obtain the final feature embedding E, where the convolutional feedforward layer consists of an MLP block containing two hidden layers, with a dilated convolutional layer added between the hidden layers.

[0030] Furthermore, step S5 specifically includes:

[0031] The features are embedded into a classification layer to obtain a set of affine transformation parameters. This classification layer is implemented by two consecutive multi-layer MLPs with Tanh activation functions.

[0032] Furthermore, step S8 specifically includes:

[0033] Step S8.1, the normalized total gradient between the registered floating image M′ and the fixed image F is calculated as follows:

[0034]

[0035] in Let M' represent the derivative along the direction l, where l∈{x,y}, and let M′-F represent the difference image between the floating and fixed images;

[0036] Step S8.2: Using the registered floating image M′, the fixed image F, and the affine transformation parameter A L Calculate the objective function;

[0037] Step S8.3: Perform backpropagation optimization on the network model using the objective function until the calculated objective function value no longer decreases or the network training reaches the preset number of training iterations. The neural network training is then complete, and the trained neural network model and the optimal affine transformation parameters A are obtained.

[0038] Furthermore, the formula for calculating the objective function is as follows:

[0039]

[0040] Where A L =(A1,...,A 12 ) T These are the transformation parameters for image registration, F(x) is the reference image, and M′(x,A) is the reference image. L ) is the transformed floating image, Ω(A) L ) represents the overlapping region, which is defined as the set of points that have valid values ​​after parameter transformation.

[0041] Furthermore, the attention operation for each attention head j is calculated as follows:

[0042]

[0043] This invention also provides an unsupervised deformable three-dimensional medical image registration device, comprising:

[0044] One or more processors;

[0045] A storage device is provided for storing one or more programs, which, when executed by one or more processors, cause the one or more processors to implement the unsupervised deformable three-dimensional medical image registration method described above.

[0046] In this invention, under the action of an MLP with dilated convolution, the registration method further introduces locality into the VisionTransformer encoder. This not only increases the receptive field size of the convolution kernel and expands the model's perception range of the input data, but also ensures that the size of the output feature map remains unchanged. This invention also introduces normalized total gradient as a similarity metric for the network model and designs a corresponding loss function. Compared with commonly used metrics such as cross-correlation coefficient, mutual information, and mean squared error, normalized total gradient captures the gradient information of the registered image and the reference image. By normalizing the gradient vector, it eliminates differences in image scale and intensity, making it more sensitive to local deformations and changes in the image. Compared with existing technologies, this invention enables the VisionTransformer model to effectively model the relationships between adjacent image patches, improves the spatial consistency of the registration method and the utilization of contextual information, and has better robustness to registration at different image scales and contrasts, providing more accurate and reliable anatomical and functional information. Attached Figure Description

[0047] Figure 1 This is a flowchart illustrating the unsupervised deformable three-dimensional medical image registration method in an embodiment of the present invention.

[0048] Figure 2 This is a schematic diagram of the unsupervised deformable registration method in this invention;

[0049] Figure 3 This is a schematic diagram of the encoder of the Vision Transformer in this invention;

[0050] Figure 4 This is a schematic diagram of the normalized total gradient in this invention;

[0051] Figure 5 This is an example of an axial MRI slice from the OASIS medical image dataset of this invention;

[0052] Figure 6 This is a comprehensive qualitative result diagram of the medical image registration method and the benchmark method in this invention. Detailed Implementation

[0053] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0054] To achieve the above objectives, the markings involved in the technical solutions adopted in this invention will be uniformly explained as follows:

[0055] Tanh represents the hyperbolic tangent activation function.

[0056] MLP stands for Multilayer Perceptron.

[0057] Transformer represents a neural network structure based on the self-attention mechanism.

[0058] Transformer Encoder represents a component of Transformer.

[0059] Vision Transformer represents a vision processing model based on Transformer;

[0060] like Figure 1 As shown, this embodiment of the invention provides an unsupervised deformable three-dimensional medical image registration method, such as... Figure 5 As shown, this embodiment of the invention uses the publicly available OASIS neuroimaging dataset as the dataset. The numbers in the upper left corner of the figure indicate the corresponding example numbers. This dataset includes 404 T1-weighted brain MRI scans, with subjects ranging in age from 42 to 95 years, covering normal individuals and subjects at different stages of cognitive decline. The specific steps are as follows:

[0061] Step 1: Image Acquisition.

[0062] Three-dimensional medical images were obtained from the publicly available dataset OASIS and randomly divided into training and test sets in a ratio of 255:149.

[0063] Step 2: Image preprocessing.

[0064] Step S2.1: Perform standard preprocessing on the divided dataset. Before the experiment, each image is resampled and padded to 256×256×256 pixels, and the resolution is adjusted to 1mm×1mm×1mm. During training and testing, the images are normalized and affine aligned.

[0065] Step S2.2: For the training set, cross-select images as fixed images F and floating images M.

[0066] Step S2.3: For the test set, arbitrarily select one image as the fixed image F, and the rest as floating images M.

[0067] Step 3: Downsample each pair of images F and M to create the input images for the L-layer pyramid in the network model, thus obtaining F. i ∈{F1,F2,…,F L} and M i ∈{M1,M2,…,M L}, then connect F i and M i , which serves as the input to the i-th layer of the pyramid.

[0068] Step S3.1: Downsample the image at F and M using trilinear interpolation to obtain the input image for each layer of the L-layer pyramid, where L is set to 3 and the downsampling scaling factor for the i-th layer is 0.5. L-i The fixed image and floating image in the last layer are F respectively. L =F,M L =M;

[0069] Step 4: Feed the input image of the i-th pyramid layer into the convolutional block embedding layer to obtain the block embedding matrix. Input the block embedding matrix into the Transformer Encoder module to obtain the feature embedding E. i ;

[0070] Step S4.1: The convolutional block embedding layer transforms the input image into a series of overlapping block embeddings. Given F i and M i The connection input I∈R H×W×D×C Where H, W, and D represent the spatial dimensions of I, all set to 256, and C is the number of channels, set to 3. The convolutional block embedding layer uses 3D convolution to calculate the block embedding map of I. Flatten X into a series of embedded blocks Where N = H i W i D i , It can be aggregated into a block embedding matrix d is the embedding dimension, and N and d are set to 4096 and 256 respectively;

[0071] Step S4.2: Matrix Add positional embedding to N, then input to N i In a Transformer Encoder module composed of N identically structured blocks, each block consists of alternating multi-head self-attention modules and convolutional feedforward layers, N i Set it to 4.

[0072] Step S4.3: Matrix After linear projection matrix W Q W K , The transformation yields different query (Q), key (K), and value (V) matrices, i.e. Set the number of attention heads h to 2, and the embedding dimension of the attention heads... The attention operation for each attention head j is calculated as follows:

[0073]

[0074] The attention matrices obtained from calculating all attention heads are concatenated through matrix W. O ∈R d*d Performing a concatenation operation yields the characteristic matrix Z∈R. h*d Where the linear projection matrix W Q W K W V And cascade matrix W O The parameters are adjusted and learned through weight updates and optimizations during the learning process.

[0075] Step S4.4: Input the feature matrix into the convolutional feedforward layer to obtain the final feature embedding E. The convolutional feedforward layer consists of an MLP block containing two hidden layers. A dilated convolutional layer is added between the hidden layers. This convolutional layer consists of three dilated convolutions in parallel. Each convolutional kernel is 3×3×3 in size and has dilation coefficients of 1, 3, and 5, respectively.

[0076] Step 5: Embed the features into the input classification layer and output a set of affine transformation parameters A;

[0077] Step S5.1: Embed the features into a classification layer to obtain 12 affine transformation parameters. This classification layer is implemented by two consecutive multi-layer MLPs with Tanh activation functions.

[0078] Step 6, Place A i Image M of the (i+1)th layer of the pyramid i+1 Perform a spatial transformation to obtain M′ i+1 Then connect F i+1 and M′ i+1 , which serves as the input image for the (i+1)th layer of the pyramid;

[0079] Step 7: The (i+1)th layer pyramid generates a block embedding matrix according to step S4, and then compares it with the feature embedding E of the i-th layer pyramid. i Perform the connection, and generate a set of affine transformation parameters A according to step S5. i+1 Repeat steps S6 and S7 until the Lth pyramid generates a set of affine transformation parameters A. L ;

[0080] Step 8, using A L Interpolate the floating image M to obtain the registered floating image M′. Calculate the similarity measure between M′ and the fixed image F using the normalized total gradient. Based on F, M′, and A... LEstablish an objective function, and use the objective function to perform backpropagation optimization on the network model to obtain the optimal affine transformation parameters A;

[0081] Step S8.1: The normalized total gradient between the registered floating image M′ and the fixed image F is calculated as follows:

[0082]

[0083] in Let M' represent the derivative along the direction l, where l∈{x,y}, and let M′-F represent the difference image between the floating and fixed images.

[0084] Step S8.2: Using the registered floating image M′, the fixed image F, and the affine transformation parameter A L Calculate the objective function:

[0085]

[0086] Where A L =(A1,...,A 12 ) T These are the transformation parameters for image registration, F(x) is the reference image, and M′(x,A) is the reference image. L ) is the transformed floating image, Ω(A) L ) represents the overlapping region, which is defined as the set of points that have valid values ​​after parameter transformation.

[0087] Step S8.3: Perform backpropagation optimization on the network model using the objective function until the calculated objective function value no longer decreases or the network training reaches the preset number of training iterations. The neural network training is completed, and the trained neural network model and the optimal affine transformation parameters A are obtained. The batch size is set to 1, the initial learning rate is 0.0001, the maximum number of iterations is 160,000, and the optimization algorithm of the model is the Adam optimizer.

[0088] Step S9: Input the test set into the optimized network model to obtain the optimal affine transformation parameters A. Use A to perform an affine transformation on the floating image M to obtain the registered image. The comprehensive qualitative results of this invention and the benchmark method are as follows: Figure 6 As shown, for better visualization, a difference map is depicted for each method, where the non-black pixel positions of the fixed image are marked in red, the non-black pixel positions of the floating and registered images are marked in green, and the floating image and the resulting registered image are superimposed on the fixed image.

[0089] Embodiments of the present invention also provide an unsupervised deformable three-dimensional medical image registration device, comprising:

[0090] One or more processors;

[0091] A storage device is provided for storing one or more programs, which, when executed by one or more processors, cause the one or more processors to implement the unsupervised deformable three-dimensional medical image registration method described above.

[0092] The specific embodiments described herein are merely illustrative of the spirit of the invention. Those skilled in the art to which this invention pertains may make various modifications or additions to the described specific embodiments or use similar methods to substitute them, without departing from the spirit of the invention or exceeding the scope defined by the appended claims.

Claims

1. A method for unsupervised deformable 3D medical image registration, characterized in that, Includes the following steps: Step S1, Image Acquisition: Obtain 3D medical images from a public dataset and randomly divide them into training and test sets according to a pre-set ratio; Step S2, Image Preprocessing: Perform standard preprocessing on the divided dataset, and then select fixed images from it. and floating images ; Step S3, for each pair of fixed images and floating images Downsampling is used to create the network model The input image of the layered pyramid is used to obtain... and Then connect and As the first Input to the pyramid structure; Step S4, will the first The input image from the pyramid layer is fed into the convolutional block embedding layer to obtain the block embedding matrix. The block embedding matrix is ​​then input into the Transformer Encoder module to obtain the feature embedding. ; Step S4 specifically includes: Step S4.1, the convolutional block embedding layer transforms the input image pairs into a series of overlapping block embeddings, given... and Connection input ,in , and express Spatial dimension, It refers to the number of channels; the convolutional block embedding layer utilizes 3D convolution for computation. Block Embedded Graph ,Will Flattened into a series of embedded blocks ,in , Aggregate into block embedding matrix , It is the embedded dimension; Step S4.2, matrix Add position embedding to the input, then input to the source. In a Transformer Encoder module composed of blocks with the same structure, each block consists of alternating multi-head self-attention modules and convolutional feedforward layers; Step S4.3, matrix After linear projection matrix , , The transformation yields different queries. ,key Sum Matrix, i.e. , For the number of attention heads, For the embedding dimension of the attention head; The attention matrices obtained from calculating all attention heads are concatenated into a matrix. Performing a cascade operation yields the characteristic matrix. , where the linear projection matrix , , Cascaded matrix The parameters are adjusted and learned through weight updates and optimizations during the learning process; Step S4.4: Input the feature matrix into the convolutional feedforward layer to obtain the final feature embedding. The convolutional feedforward layer consists of a single layer containing two hidden layers. The blocks are composed of a dilated convolutional layer added between the hidden layers. Step S5, the first The features of the pyramid are embedded into the input classification layer to obtain a set of affine transformation parameters. ; Step S6, will With the Images of the layered pyramids Perform an asymptotic space transformation to obtain Then connect and As the first Input image of a pyramid; Step S7, the The layer pyramid generates a block embedding matrix according to step S4, and then... Feature embedding of layered pyramids Perform element-wise addition and generate a set of affine transformation parameters according to step S5. Repeat steps S6 and S7 until the... The layered pyramid generates a set of affine transformation parameters. ; Step S8, using For floating images Interpolation is performed to obtain the registered floating image. Calculate using normalized total gradient With fixed image Similarity measures between them, based on , and An objective function is established, and the network model is optimized through backpropagation using this objective function to obtain the optimal affine transformation parameters. ; objective function The calculation formula is as follows: in These are the transform parameters for image registration. This is a reference image. It is the transformed floating image. The overlapping region is defined as the set of points that have valid values ​​after parameter transformation. Indicates along The derivative of the direction, Represents the registered floating image With fixed image The normalized total gradient between them; Step S9: Input the test set into the optimized network model to obtain the optimal affine transformation parameters. ,use For floating images Affine transformation is performed to obtain the registered image.

2. The unsupervised deformable three-dimensional medical image registration method as described in claim 1, characterized in that: Step S2 specifically includes: Step S2.1: Resample and fill the image, then adjust the resolution, and perform normalization and affine alignment. Step S2.2: For the training set, cross-select images as fixed images. and floating images ; Step S2.3: For the test set, arbitrarily select one image as the fixed image. The rest are floating images. .

3. The unsupervised deformable three-dimensional medical image registration method as described in claim 1, characterized in that: Step S3 specifically includes: Image pairs are obtained through trilinear interpolation. and Perform downsampling to obtain The input image for each layer of the pyramid is the first layer. The layer downsampling scaling factor is The fixed image and floating image in the last layer are respectively , .

4. The unsupervised deformable three-dimensional medical image registration method as described in claim 1, characterized in that: Step S5 specifically includes: Features are embedded into a classification layer to obtain a set of affine transformation parameters. This classification layer consists of two consecutive layers with... Multi-layer activation function accomplish.

5. The unsupervised deformable three-dimensional medical image registration method as described in claim 1, characterized in that: Step S8 specifically includes: Step S8.1, the registered floating image With fixed image The normalized total gradient between them is calculated as follows: in Indicates along The derivative of the direction, A graph representing the difference between a floating image and a stationary image; Step S8.2, using the registered floating image Fixed image and affine transformation parameters Calculate the objective function; Step S8.3: Perform backpropagation optimization on the network model using the objective function until the calculated objective function value no longer decreases or the network training reaches the preset number of training iterations. The neural network training is then complete, and the trained neural network model and optimal affine transformation parameters are obtained. .

6. The unsupervised deformable three-dimensional medical image registration method as described in claim 4, characterized in that: Each attention head The attention operation is calculated as follows: 。 7. A deformable three-dimensional medical image registration device based on unsupervised practice, characterized in that, include: One or more processors; A storage device for storing one or more programs, which, when executed by one or more processors, cause the one or more processors to implement the unsupervised deformable three-dimensional medical image registration method as described in any one of claims 1 to 6.