Medical image registration method and device, computer equipment and storage medium

Extracting and fusion of medical image features through universal encoders and structural encoders, combined with a single learning optimization model, solves the problem of performance degradation of existing medical image registration methods in new scenarios, improves accuracy and adaptability, and is suitable for many applications. A medical scenario reduces training costs.

CN118570267APending Publication Date: 2024-08-30SHENZHEN UNIV
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410714715.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The performance of existing medical image registration methods decreases in new scenarios, and the cost of training high-precision models is high, and adaptability research is limited.

Method used

A general encoder and a structural encoder are used to extract image features and structural features, and feature fusion is performed through a convolutional fusion layer to output the target deformation field to achieve image registration, and single-shot learning is used to optimize the model to adapt to different fields.

Benefits of technology

It improves the accuracy and generalization performance of medical image registration, reduces the time required to retrain the model in new areas, and is suitable for multiple medical scenarios, including preoperative planning, intraoperative navigation, and postoperative follow-up visits.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570267A
    Figure CN118570267A
Patent Text Reader

Abstract

The invention discloses a medical image registration method and apparatus, a computer device and a storage medium. The method comprises the steps of obtaining a to-be-registered moving image and a to-be-registered reference image; extracting features of the moving image and the reference image by using a general encoder to obtain general moving features and general reference features; extracting features of the moving image and the reference image by using a structure encoder to obtain a structure moving feature and a structure reference feature; performing feature fusion on the general movement features and the structure movement features to obtain fused movement features, and performing feature fusion on the general reference features and the structure reference features to obtain fused reference features; inputting the fused moving feature and the fused reference feature into a decoder, and outputting a target deformation field; and deforming the moving image by using the target deformation field to obtain a registered image. According to the method, the general medical image information is extracted through the general encoder, so that the generalization ability is improved, and the representation of the structural information is optimized through the structural encoder, so that the structural representation is enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing technology, and in particular to a medical image registration method, device, computer equipment and storage medium. Background Art

[0002] With the continuous development of medical imaging technology, including the widespread use of CT (computed tomography), MRI (magnetic resonance imaging), PET (positron emission tomography) and other technologies in clinical applications, doctors can obtain more and more detailed information about the patient's internal structure. However, there are spatial differences between these images acquired at different times, in different modalities or with different devices, which requires the registration of these images for more accurate medical diagnosis and treatment planning. For example, before surgery, by registering different images of the patient, the surgical path can be better planned and the success rate of the surgery can be improved. For example, in transperineal puncture surgery, the doctor's judgment ability can also be improved by real-time registration of ultrasound 2D images and preoperative 3D MRI images. In addition, registration technology can also be used to evaluate the treatment effect, that is, by registering the images before and after treatment, the changes in the lesion area can be intuitively observed, thereby better evaluating the effectiveness of the treatment. The research and application of medical image registration are of great significance to improving the level of medical diagnosis and treatment and promoting personalized medicine.

[0003] Although traditional registration methods can be applied to various scenarios, the iterative calculation of deformation fields by these traditional methods is usually very time-consuming. Compared with traditional methods, the registration network based on deep learning greatly speeds up the solution of deformation fields. Figure 1 As shown in Figure 1, most existing registration networks are limited to specific scenarios in their training sets, and their performance will degrade if they are directly applied to new scenarios. If you want to rebuild a registration model with higher accuracy in a new scenario, it will take three days or more even with a powerful graphics processor (GPU), which makes the cost of training the registration model very high.

[0004] Currently, there is limited research focusing on adaptability in the field of image registration. In registration, "one-shot learning" refers to fine-tuning the registration network on a specific image pair. Due to the nature of unsupervised learning, the registration network can continue unsupervised optimization on new data through one-shot learning, making the similarity of the registered images closer and the results better. Subsequently, some studies followed this concept and directly applied one-shot learning strategies to fine-tune the registration network to achieve higher accuracy. However, these studies only used traditional networks to explore one-shot learning of single-domain / cross-domain registration, and did not design a network architecture specifically for this strategy. Summary of the invention

[0005] The embodiments of the present invention provide a medical image registration method, apparatus, computer equipment and storage medium, aiming to clearly represent the matching criteria of image registration through an encoder, thereby improving the accuracy and generalization performance of medical image registration.

[0006] In a first aspect, an embodiment of the present invention provides a medical image registration method, comprising:

[0007] Acquire a moving image to be registered and a reference image;

[0008] Using a universal encoder to extract features from the moving image and the reference image respectively, and correspondingly obtaining multi-level universal moving features and multi-level universal reference features;

[0009] Using a structural encoder to extract features from the moving image and the reference image respectively, and correspondingly obtaining multi-level structural moving features and multi-level structural reference features;

[0010] The general mobile features and structural mobile features of each level are subjected to feature fusion through a convolutional fusion layer to obtain multi-level fused mobile features, and the general reference features and structural reference features of each level are subjected to feature fusion to obtain multi-level fused reference features;

[0011] Inputting the multi-level fused movement features and fused reference features into a decoder, and the decoder outputs a final target deformation field;

[0012] The moving image is deformed using the target deformation field to obtain a registered image.

[0013] In a second aspect, an embodiment of the present invention provides a medical image registration device, comprising:

[0014] An image acquisition unit, used for acquiring a moving image to be registered and a reference image;

[0015] A universal feature extraction unit, used to extract features from the moving image and the reference image respectively using a universal encoder, and correspondingly obtain multi-level universal moving features and multi-level universal reference features;

[0016] A structural feature extraction unit, used to extract features from the moving image and the reference image respectively using a structural encoder, and correspondingly obtain multi-level structural moving features and multi-level structural reference features;

[0017] A feature fusion unit is used to perform feature fusion on the universal mobile features and structural mobile features of each level to obtain multi-level fused mobile features, and to perform feature fusion on the universal reference features and structural reference features of each level to obtain multi-level fused reference features;

[0018] A feature decoding unit, used for inputting the multi-level fused movement features and fused reference features into a decoder, and the decoder outputs a final target deformation field;

[0019] The deformation registration unit is used to deform the moving image using the target deformation field to obtain a registered image.

[0020] In a third aspect, an embodiment of the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the medical image registration method as described in the first aspect when executing the computer program.

[0021] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the medical image registration method as described in the first aspect is implemented.

[0022] Embodiments of the present invention provide a medical image registration method, apparatus, computer equipment and storage medium. Based on the general encoder and structural encoder, the embodiments of the present invention can achieve a clear representation of the matching criteria for image registration, so as to explicitly model the matching criteria of image features and structural features, thereby improving the accuracy and generalization performance of medical image registration. Specifically, this embodiment extracts general medical image information through the general encoder to improve the generalization ability, and optimizes the representation of structural information through the structural encoder to enhance the structural representation. And the structural encoder can be optimized using single learning in the inference stage to adapt to domain adaptation. In this way, the medical image registration method provided by this embodiment can achieve good results in single-domain tasks, while also ensuring improved generalization and adaptability performance in cross-domain tasks. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.

[0024] Figure 1 A schematic diagram of image registration in the prior art;

[0025] Figure 2 A schematic diagram of a flow chart of a medical image registration method provided by an embodiment of the present invention;

[0026] Figure 3 An overall architecture diagram of a medical image registration method provided by an embodiment of the present invention;

[0027] Figure 4 A network structure diagram of a universal encoder in a medical image registration method provided by an embodiment of the present invention;

[0028] Figure 5 A network structure diagram of a structure encoder in a medical image registration method provided by an embodiment of the present invention;

[0029] Figure 6 A schematic block diagram of a medical image registration device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0030] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0031] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0032] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0033] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0034] See below Figure 2 , Figure 2 A schematic flow chart of a medical image registration method provided by an embodiment of the present invention specifically includes: steps S101 to S106.

[0035] S101, acquiring a moving image to be registered and a reference image;

[0036] S102, using a universal encoder to extract features from the moving image and the reference image respectively, and correspondingly obtain multi-level universal moving features and multi-level universal reference features;

[0037] S103, using a structural encoder to extract features from the moving image and the reference image respectively, and correspondingly obtaining multi-level structural moving features and multi-level structural reference features;

[0038] S104, performing feature fusion on the general mobile features and structural mobile features of each level through a convolutional fusion layer to obtain multi-level fused mobile features, and performing feature fusion on the general reference features and structural reference features of each level to obtain multi-level fused reference features;

[0039] S105, inputting the multi-level fused movement features and fused reference features into a decoder, and the decoder outputs a final target deformation field;

[0040] S106: deforming the moving image using the target deformation field to obtain a registered image.

[0041] In this embodiment, combined with Figure 3 For the moving image and reference image to be registered, on the one hand, the corresponding universal moving features and universal reference features are extracted by the universal encoder, and on the other hand, the corresponding structural moving features and structural reference features are extracted by the structural encoder. Then, the universal features are fused with the structural features to obtain fused features, namely, the fused moving features and fused reference features. The fused moving features and fused reference features are then input into the decoder, and finally the decoder outputs a target deformation field, through which the moving image can be deformed to obtain the corresponding registered image.

[0042] Based on the general encoder and the structural encoder, this embodiment can realize the clear representation of the matching criteria for image registration, so as to explicitly model the matching criteria of image features and structural features, thereby improving the accuracy and generalization performance of medical image registration. Specifically, this embodiment extracts general medical image information through the general encoder (encoder G) to improve the generalization ability, and optimizes the representation of structural information through the structural encoder (encoder S), thereby enhancing the structural representation. And the structural encoder S can be optimized using a single learning in the inference stage to adapt to the domain adaptation. In this way, the medical image registration method provided by this embodiment can achieve good results in single-domain tasks, while also ensuring improved generalization and adaptive performance in cross-domain tasks. In addition, the medical image registration method provided by this embodiment can obtain a pre-trained model in an unsupervised manner on the original data set, and the pre-trained model can be applied to a new scene through a single learning, for example, if the original data is the brain, it can be applied to the abdominal data set, which can greatly reduce the time required to retrain the model in the new field. In particular, the medical image registration method provided in this embodiment is applicable to any pre-aligned medical image 3D data and to multiple medical scenarios, such as preoperative planning, intraoperative navigation, and postoperative follow-up. For example, preoperatively, the medical images collected by different imaging machines (CT, MRI, and ultrasound, etc.) of the patient can be aligned and fused to help doctors plan the operation; intraoperative navigation is to align the currently collected image with the previously registered image in real time to help doctors better locate the surgical path; postoperative follow-up can compare the images collected before and after the operation and subsequently after registration to observe whether there is improvement in the surgical area.

[0043] In one embodiment, the step S102 includes:

[0044] Continuously extracting the first-level universal motion features from the moving image through two preset convolution blocks, and performing an average pooling operation on the first-level universal motion features, and then continuously extracting the second-level universal motion features from the first-level universal motion features through two preset convolution blocks; and so on, until the fifth-level universal motion features are extracted;

[0045] And, extracting the reference image through two preset convolution blocks continuously to obtain a first-level universal reference feature, and performing an average pooling operation on the first-level universal reference feature, and then continuously extracting the first-level universal reference feature through two preset convolution blocks to obtain a second-level universal reference feature; and so on, until a fifth-level universal reference feature is extracted;

[0046] Each of the preset convolution blocks includes a 3×3×3 convolution layer, an instance normalization layer, and a LeakyReLU activation layer.

[0047] Combination Figure 4 , this embodiment uses a universal encoder G to extract universal medical image features. In each encoder unit of the universal encoder G, two preset convolution blocks are used, each of which includes a 3×3×3 convolution layer, an instance normalization layer, and a LeakyReLU activation layer. In order to show that the feature map has been reduced, the convolution blocks shown in the figure will become smaller as the feature map becomes smaller. In addition, based on the experience gained from experiments in actual applications, this embodiment uniformly sets the convolution kernel size of all convolution layers to 3×3×3. In this way, when extracting features, the size of the feature map of the fourth round of convolution is large relative to the size of the convolution kernel. At this time, it is difficult to mine more depth information, and the feature map extracted by another round of convolution will be more suitable as the input of the first-level decoder. Therefore, this embodiment extracts universal mobile features and universal reference features to the fifth level through a universal encoder, that is, and Similarly, the fifth-level structural movement features and structural reference features are extracted through the structural encoder, that is,

[0048] Furthermore, in one embodiment, step S102 further includes:

[0049] The contrast movement features and contrast reference features corresponding to the moving image and the reference image are extracted respectively through the medical imaging network;

[0050] Performing feature channel dimension reduction on the comparison movement feature and the comparison reference feature respectively by using principal component analysis, so that the feature channel of the comparison movement feature is the same as the feature channel to the first-level universal movement feature, and the feature channel of the comparison reference feature is the same as the feature channel to the first-level universal reference feature;

[0051] The mutual information loss function between the first-level universal motion feature and the comparison motion feature or between the first-level universal reference feature and the comparison reference feature is calculated according to the following formula:

[0052]

[0053] in, represents the mutual information loss function, G 1 represents the first-level universal mobile feature or the first-level universal reference feature, M represents the comparison mobile feature or the comparison reference feature, Represents G 1 The joint probability mass function of and M is, Represents G 1 The marginal probability mass function, P M represents the marginal probability mass function of M, and g represents G1 , m represents the voxel of M;

[0054] The mutual information loss function is used to optimize and update the universal encoder, and the optimized and updated universal encoder is used to extract features from the moving image and the reference image respectively.

[0055] like Figure 4 As shown, this embodiment uses the encoder of MedicalNet (medical imaging network) to extract image features of moving images and reference images, and uses principal component analysis (PCA) to reduce the dimension of the extracted feature channels to the number of feature channels extracted by the first layer encoder of the general encoder G. Then, the mutual information loss function between the reduced-dimensional features and the first-level features extracted by the general encoder G is calculated, thereby improving the generalization feature extraction capability of the encoder, so that it can learn a more comprehensive medical image information extraction capability comparable to MedicalNet. Of course, it can be understood that this embodiment uses MedicalNet to extract image features, while in other embodiments, other open source medical image analysis models can also be used to extract image features.

[0056] In actual application scenarios, MedicalNet adopts the ResNet50 network structure, which has been trained on eight different medical image segmentation datasets, including images of two modalities, MRI and CT, so that MedicalNet can have strong generalization. ResNet50 consists of a 7×7 convolution layer and a 3×3 pooling layer at the head, and four parts in the middle with 9, 12, 18, and 9 convolution layers, a total of 50 layers. One of the key features of ResNet50 is the residual connection, which allows the network to skip one or more layers and pass the input directly to subsequent layers, thereby facilitating the back propagation of gradients and improving training efficiency. In addition, the starting part of each stage may be downsampled to ensure that the feature map size in the residual connection matches.

[0057] In one embodiment, the step S103 includes:

[0058] Continuously extracting the moving image and the reference image through two preset convolution blocks to obtain first-level structural moving features and first-level structural reference features, respectively, and combining with an average pooling layer to obtain second-level structural moving features and second-level structural reference features, third-level structural moving features and third-level structural reference features in sequence;

[0059] Continue to extract features of the third-level structure movement feature and the third-level structure reference feature respectively through two preset convolution blocks to obtain candidate structure movement features and candidate structure reference features;

[0060] Inputting the candidate structure movement features and the candidate structure reference features into a structure embedding module, and reducing the feature dimensions of the candidate structure movement features and the candidate structure reference features through a linear layer in the structure embedding module;

[0061] For the candidate structure moving features and candidate structure reference features after the feature dimension is reduced, the self-similarity between each voxel and the local adjacent region is calculated by cosine similarity; the size of the local adjacent region is n×n×n;

[0062] A self-similarity matrix is ​​constructed based on the self-similarity of each voxel, and the self-similarity matrix is ​​encoded into a plurality of structural feature vectors through a plurality of convolutional layers;

[0063] The plurality of structural feature vectors are summed up in sequence, and convolution calculations are performed with the candidate structural movement feature and the candidate structural reference feature respectively, so as to obtain structurally enhanced fourth-level structural movement features and fourth-level structural reference features;

[0064] The fourth-level structure movement feature and the fourth-level structure reference feature are extracted by combining the average pooling layer and the two preset convolution blocks to obtain the fifth-level structure movement feature and the fifth-level structure reference feature.

[0065] Specifically, calculating the self-similarity between each voxel and the local adjacent region by using cosine similarity includes:

[0066] The self-similarity is calculated according to the following formula:

[0067]

[0068] Where C represents self-similarity, c'∈[1,c1] is the index of channel size, c1 is the number of channels of S after the candidate structure moving feature or the candidate structure reference feature is reduced through the fully connected layer, x represents the voxel, d∈[-D,D]×[-D,D]×[-D,D] represents the relative position of voxel x in the local adjacent region of size n, and D=(n-1) / 2 is the boundary value of the local adjacent region.

[0069] Combination Figure 5 In this embodiment, the self-similarity of the structure is encoded into the global representation through a structure encoder with a structure embedding module (SEM). Specifically, the first three levels of structure movement features and structure reference features are extracted in sequence through a preset convolution block combined with an average pooling operation, and then the third level structure movement features and the third level structure reference features are extracted through a convolution block to obtain candidate structure movement features and candidate structure reference features, that is, Figure 4 In and Then and The input is sent to the structural embedding module SEM, which initially reduces the feature dimension through a linear layer to reduce the computational burden. Then the self-similarity between each voxel x and its local neighboring region of size n×n×n is calculated using cosine similarity. The resulting self-similarity matrix is ​​encoded into a structural feature vector of the same dimension as the self-similarity calculation input through multiple convolutional layers. Finally, the structural feature vectors are summed up in sequence and convolved with the input value to generate the final structural enhancement feature map, i.e. Figure 4 In and

[0070] In one embodiment, the step S105 includes:

[0071] Inputting the last-level fused movement features and fused reference features into a motion decomposition module, and the motion decomposition module outputs a first deformation field;

[0072] Using the first deformation field to deform the fused movement feature of the next level, and inputting the deformed fused movement feature and the corresponding fused reference feature into a motion decomposition module, and the motion decomposition module outputs a second deformation field;

[0073] And so on, until the first-level fused moving features of the deformation are input into the motion decomposition module together with the corresponding fused reference features, and the target deformation field is obtained by the output of the decoder.

[0074] In this embodiment, combined with Figure 1 , the motion decomposition module is used to interpret the feature information and derive the deformation field. First, the fused motion features and fusion reference features As the input of the motion decomposition module, the deformation field φ5 is obtained, and then the deformation field φ5 is used to fusion the next level of motion features Deformation and fusion of reference features As the input of the next level motion decomposition module, the final target deformation field φ is derived in this way. Finally, φ is used to decompose the moving image I m Deformation is performed to obtain a registered image. In other embodiments, other decoding structures may be used to replace the motion decomposition module in this embodiment.

[0075] In one embodiment, the medical image registration method further includes:

[0076] According to the following formula, using the first loss function The general encoder and decoder are optimized:

[0077]

[0078] in, represents the first loss function, and denote the normalized cross-correlation, deformation regularization and mutual information loss functions, respectively, and I f represents the reference image, I m represents the moving image, φ represents the deformation field, represents the deformation operation, λ is the weighting factor;

[0079] According to the following formula, the second loss function is used The structure encoder and decoder are optimized:

[0080]

[0081] in, represents the second loss function, It represents the structural similarity index metric, and its calculation formula is:

[0082]

[0083] In the formula, for The mean of For I f The mean of for and I f The covariance of and They are and I f The variance of

[0084] According to the following formula, the convolutional fusion layer and decoder are optimized using the third loss function:

[0085]

[0086] in, Represents the third loss function.

[0087] This embodiment adopts a three-stage training strategy for training optimization. Specifically, in the first stage, the universal encoder G and decoder are optimized by the first loss function mentioned above. In this stage, the feature convolution fusion operation is disabled, which means that the fused mobile feature is equivalent to the universal mobile feature, and the fused reference feature is equivalent to the universal reference feature. In actual application scenarios, the mutual information loss function It is only calculated in the last 20% of the training epochs in the first stage. In the second stage, the structural encoder S and decoder are optimized by the second loss function mentioned above, and the general encoder G is frozen, which means that the fused mobile features are equivalent to the structural mobile features, and the fused reference features are equivalent to the structural reference features. In the third stage, the general encoder G and the structural encoder S are frozen, and the convolutional fusion layer and the decoder are optimized using the third loss function mentioned above.

[0088] It should also be noted that this embodiment adopts a single learning method to adapt to cross-domain registration. In the inference stage, this embodiment freezes the encoder G and activates the fusion module, decoder and encoder S. For each pair of images to be inferred, since the structures of the new data are different each time the new data is fine-tuned, the second stage adopts The loss function can better help the model understand the structure of the data, so use The loss function trains the model for 5 iterations and updates the parameters of the unfrozen parts, and then performs inference to obtain the registration result. For the next image pair, the initial model is reloaded and then the single learning is performed again.

[0089] In actual application scenarios, this embodiment is experimentally evaluated using three public magnetic resonance imaging (MRI) datasets (including brain, abdomen, and heart images). The final experimental results prove that the medical image registration method provided by this embodiment not only has good registration accuracy, but also has good generalization performance, and can be adapted to different fields through a simple one-shot learning strategy.

[0090] Figure 6 A schematic block diagram of a medical image registration device 600 provided in an embodiment of the present invention, the device 600 includes:

[0091] An image acquisition unit 601 is used to acquire a moving image to be registered and a reference image;

[0092] A universal feature extraction unit 602 is used to extract features from the moving image and the reference image respectively using a universal encoder, and obtain multi-level universal moving features and multi-level universal reference features accordingly;

[0093] The structural feature extraction unit 603 is used to extract features from the moving image and the reference image respectively using a structural encoder, and obtain multi-level structural moving features and multi-level structural reference features accordingly;

[0094] The feature fusion unit 604 is used to perform feature fusion on the universal mobile features and structural mobile features of each level to obtain multi-level fused mobile features, and perform feature fusion on the universal reference features and structural reference features of each level to obtain multi-level fused reference features;

[0095] A feature decoding unit 605, used for inputting the multi-level fused movement features and fused reference features into a decoder, and the decoder outputs a final target deformation field;

[0096] The deformation registration unit 606 is used to deform the moving image using the target deformation field to obtain a registered image.

[0097] In one embodiment, the general feature extraction unit 602 includes:

[0098] a universal motion feature extraction unit, configured to extract the first-level universal motion features from the moving image through two preset convolution blocks in succession, and after performing an average pooling operation on the first-level universal motion features, continue to extract the second-level universal motion features from the first-level universal motion features through two preset convolution blocks; and so on, until a fifth-level universal motion features are extracted;

[0099] A universal reference feature extraction unit is used to extract the first-level universal reference features from the reference image through two preset convolution blocks in succession, and after performing an average pooling operation on the first-level universal reference features, continue to extract the second-level universal reference features from the first-level universal reference features through two preset convolution blocks; and so on, until a fifth-level universal reference features are extracted;

[0100] Each of the preset convolution blocks includes a 3×3×3 convolution layer, an instance normalization layer, and a LeakyReLU activation layer.

[0101] In one embodiment, the general feature extraction unit 602 further includes:

[0102] A contrast feature extraction unit, used for respectively extracting contrast movement features and contrast reference features corresponding to the moving image and the reference image through a medical imaging network;

[0103] A first feature dimension reduction unit is used to perform feature channel dimension reduction on the comparison movement feature and the comparison reference feature respectively by using a principal component analysis method, so that the feature channel of the comparison movement feature is the same as the feature channel to the first-level universal movement feature, and the feature channel of the comparison reference feature is the same as the feature channel to the first-level universal reference feature;

[0104] The mutual information loss function calculation unit is used to calculate the mutual information loss function between the first-level universal motion feature and the comparison motion feature or between the first-level universal reference feature and the comparison reference feature according to the following formula:

[0105]

[0106] in, represents the mutual information loss function, G 1 represents the first-level universal mobile feature or the first-level universal reference feature, M represents the comparison mobile feature or the comparison reference feature, Represents G 1 The joint probability mass function of and M is, Represents G 1 The marginal probability mass function, P M represents the marginal probability mass function of M, and g represents G 1 , m represents the voxel of M;

[0107] The encoder optimization unit is used to optimize and update the universal encoder using the mutual information loss function, and extract features from the moving image and the reference image respectively using the optimized and updated universal encoder.

[0108] In one embodiment, the structural feature extraction unit 603 includes:

[0109] A motion and reference feature extraction unit, used to extract the first-level structure motion feature and the first-level structure reference feature from the motion image and the reference image respectively through two preset convolution blocks, and combine with the average pooling layer to obtain the second-level structure motion feature and the second-level structure reference feature, the third-level structure motion feature and the third-level structure reference feature in sequence;

[0110] A candidate feature extraction unit, used to continue to extract features from the third-level structure movement feature and the third-level structure reference feature respectively through two preset convolution blocks to obtain a candidate structure movement feature and a candidate structure reference feature;

[0111] A second feature dimension reduction unit is used to input the candidate structure movement feature and the candidate structure reference feature into the structure embedding module, and reduce the feature dimension of the candidate structure movement feature and the candidate structure reference feature through a linear layer in the structure embedding module;

[0112] A self-similarity calculation unit is used to calculate the self-similarity between each voxel and a local adjacent region by cosine similarity for the candidate structure moving feature and the candidate structure reference feature after the feature dimension is reduced; wherein the size of the local adjacent region is n×n×n;

[0113] A vector encoding unit, configured to construct a self-similarity matrix based on the self-similarity of each voxel, and encode the self-similarity matrix into a plurality of structural feature vectors through a plurality of convolutional layers;

[0114] A structure enhancement unit, used for summing up the plurality of structure feature vectors in sequence, and performing convolution calculations with the candidate structure movement feature and the candidate structure reference feature respectively, to obtain structure-enhanced fourth-level structure movement features and fourth-level structure reference features;

[0115] The fourth-level structure movement feature and the fourth-level structure reference feature are extracted by combining the average pooling layer and the two preset convolution blocks to obtain the fifth-level structure movement feature and the fifth-level structure reference feature.

[0116] In one embodiment, the self-similarity calculation unit includes:

[0117] The cosine calculation unit is used to calculate the self-similarity according to the following formula:

[0118]

[0119] Where C represents self-similarity, c'∈[1,c1] is the index of channel size, c1 is the number of channels of S after the candidate structure moving feature or the candidate structure reference feature is reduced through the fully connected layer, x represents the voxel, d∈[-D,D]×[-D,D]×[-D,D] represents the relative position of voxel x in the local adjacent region of size n, and D=(n-1) / 2 is the boundary value of the local adjacent region.

[0120] In one embodiment, the feature decoding unit 605 includes:

[0121] A fusion input unit, used for inputting the fused movement features and fused reference features of the last level into a motion decomposition module, and the motion decomposition module outputs a first deformation field;

[0122] A deformation input unit, used for deforming the fused movement feature of the next level by using the first deformation field, and inputting the deformed fused movement feature and the corresponding fused reference feature into a motion decomposition module, and the motion decomposition module outputs a second deformation field;

[0123] The target output unit is used to infer in sequence until the first-level fused movement features of the deformation are input into the motion decomposition module together with the corresponding fused reference features, and the target deformation field is obtained by the decoder output.

[0124] In one embodiment, the medical image registration apparatus 600 further includes:

[0125] The first optimization unit is used to use the first loss function according to the following formula The general encoder and decoder are optimized:

[0126]

[0127] in, represents the first loss function, and denote the normalized cross-correlation, deformation regularization and mutual information loss functions, respectively, and I f represents the reference image, I m represents the moving image, φ represents the deformation field, represents the deformation operation, λ is the weighting factor;

[0128] The second optimization unit is used to use the second loss function according to the following formula The structure encoder and decoder are optimized:

[0129]

[0130] in, represents the second loss function, It represents the structural similarity index metric, and its calculation formula is:

[0131]

[0132] In the formula, for The mean of For I f The mean of for and I f The covariance of and They are and I f The variance of

[0133] The third optimization unit is used to optimize the convolution fusion layer and the decoder using the third loss function according to the following formula:

[0134]

[0135] in, Represents the third loss function.

[0136] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, which will not be repeated here.

[0137] The embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed, the steps provided in the above embodiment can be implemented. The storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0138] The embodiment of the present invention also provides a computer device, which may include a memory and a processor, wherein a computer program is stored in the memory, and when the processor calls the computer program in the memory, the steps provided in the above embodiment may be implemented. Of course, the computer device may also include various network interfaces, power supplies and other components.

[0139] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of this application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of this application.

[0140] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

Claims

1. A medical image registration method, It is characterized in that include: Acquire a moving image to be registered and a reference image; Using a universal encoder to extract features from the moving image and the reference image respectively, and correspondingly obtaining multi-level universal moving features and multi-level universal reference features; Using a structural encoder to extract features from the moving image and the reference image respectively, and correspondingly obtaining multi-level structural moving features and multi-level structural reference features; The general mobile features and structural mobile features of each level are subjected to feature fusion through a convolutional fusion layer to obtain multi-level fused mobile features, and the general reference features and structural reference features of each level are subjected to feature fusion to obtain multi-level fused reference features; Inputting the multi-level fused movement features and fused reference features into a decoder, and the decoder outputs a final target deformation field; The moving image is deformed using the target deformation field to obtain a registered image.

2. The medical image registration method according to claim 1, It is characterized in that The method of extracting features from the moving image and the reference image respectively by using a universal encoder, and correspondingly obtaining multi-level universal moving features and multi-level universal reference features, includes: Continuously extracting the first-level universal motion features from the moving image through two preset convolution blocks, and performing an average pooling operation on the first-level universal motion features, and then continuously extracting the second-level universal motion features from the first-level universal motion features through two preset convolution blocks; and so on, until the fifth-level universal motion features are extracted; And, extracting the reference image through two preset convolution blocks continuously to obtain a first-level universal reference feature, and performing an average pooling operation on the first-level universal reference feature, and then continuously extracting the first-level universal reference feature through two preset convolution blocks to obtain a second-level universal reference feature; and so on, until a fifth-level universal reference feature is extracted; Each of the preset convolution blocks includes a 3×3×3 convolution layer, an instance normalization layer, and a LeakyReLU activation layer.

3. The medical image registration method according to claim 2, It is characterized in that The method of extracting features from the moving image and the reference image respectively by using a universal encoder and correspondingly obtaining multi-level universal moving features and multi-level universal reference features also includes: The contrast movement features and contrast reference features corresponding to the moving image and the reference image are extracted respectively through the medical imaging network; Performing feature channel dimension reduction on the comparison movement feature and the comparison reference feature respectively by using principal component analysis, so that the feature channel of the comparison movement feature is the same as the feature channel to the first-level universal movement feature, and the feature channel of the comparison reference feature is the same as the feature channel to the first-level universal reference feature; The mutual information loss function between the first-level universal motion feature and the comparison motion feature or between the first-level universal reference feature and the comparison reference feature is calculated according to the following formula: in, represents the mutual information loss function, G 1 represents the first-level universal mobile feature or the first-level universal reference feature, M represents the comparison mobile feature or the comparison reference feature, Represents G 1 The joint probability mass function of and M is, Represents G 1 The marginal probability mass function, P M represents the marginal probability mass function of M, and g represents G 1 , m represents the voxel of M; The mutual information loss function is used to optimize and update the universal encoder, and the optimized and updated universal encoder is used to extract features from the moving image and the reference image respectively.

4. The medical image registration method according to claim 2, It is characterized in that The method of extracting features from the moving image and the reference image respectively by using a structural encoder and correspondingly obtaining multi-level structural moving features and multi-level structural reference features includes: Continuously extracting the moving image and the reference image through two preset convolution blocks to obtain first-level structural moving features and first-level structural reference features, respectively, and combining with an average pooling layer to obtain second-level structural moving features and second-level structural reference features, third-level structural moving features and third-level structural reference features in sequence; Continue to extract features of the third-level structure movement feature and the third-level structure reference feature respectively through two preset convolution blocks to obtain candidate structure movement features and candidate structure reference features; Inputting the candidate structure movement features and the candidate structure reference features into a structure embedding module, and reducing the feature dimensions of the candidate structure movement features and the candidate structure reference features through a linear layer in the structure embedding module; For the candidate structure moving features and candidate structure reference features after the feature dimension is reduced, the self-similarity between each voxel and the local adjacent region is calculated by cosine similarity; the size of the local adjacent region is n×n×n; A self-similarity matrix is ​​constructed based on the self-similarity of each voxel, and the self-similarity matrix is ​​encoded into a plurality of structural feature vectors through a plurality of convolutional layers; The plurality of structural feature vectors are summed up in sequence, and convolution calculations are performed with the candidate structural movement feature and the candidate structural reference feature respectively, so as to obtain structurally enhanced fourth-level structural movement features and fourth-level structural reference features; The fourth-level structure movement feature and the fourth-level structure reference feature are extracted by combining the average pooling layer and the two preset convolution blocks to obtain the fifth-level structure movement feature and the fifth-level structure reference feature.

5. The medical image registration method according to claim 4, It is characterized in that The method of calculating the self-similarity between each voxel and the local adjacent region by using cosine similarity includes: The self-similarity is calculated according to the following formula: Where C represents the self-similarity, c'∈[1,c 1 ] is the index of the channel size, c 1 is the number of channels of S after the candidate structure moving feature or the candidate structure reference feature is reduced by the fully connected layer, x represents the voxel, d∈[-D,D]×[-D,D]×[-D,D] represents the relative position of the voxel x in the local adjacent region of size n, and D=(n-1) / 2 is the boundary value of the local adjacent region.

6. The medical image registration method according to claim 1, It is characterized in that The step of inputting the multi-level fused movement features and fused reference features into a decoder, and outputting a final target deformation field by the decoder, comprises: Inputting the last-level fused movement features and fused reference features into a motion decomposition module, and the motion decomposition module outputs a first deformation field; Using the first deformation field to deform the fused movement feature of the next level, and inputting the deformed fused movement feature and the corresponding fused reference feature into a motion decomposition module, and the motion decomposition module outputs a second deformation field; And so on, until the first-level fused moving features of the deformation are input into the motion decomposition module together with the corresponding fused reference features, and the target deformation field is obtained by the output of the decoder.

7. The medical image registration method according to claim 1, It is characterized in that Also includes: According to the following formula, using the first loss function The general encoder and decoder are optimized: in, represents the first loss function, and denote the normalized cross-correlation, deformation regularization and mutual information loss functions, respectively, and I f represents the reference image, I m represents the moving image, φ represents the deformation field, represents the deformation operation, λ is the weighting factor; According to the following formula, the second loss function is used The structure encoder and decoder are optimized: in, represents the second loss function, It represents the structural similarity index metric, and its calculation formula is: In the formula, for The mean of For I f The mean of for and I f The covariance of and They are and I f The variance of According to the following formula, the convolutional fusion layer and decoder are optimized using the third loss function: in, Represents the third loss function.

8. A medical image registration device, It is characterized in that include: An image acquisition unit, used for acquiring a moving image to be registered and a reference image; A universal feature extraction unit, used to extract features from the moving image and the reference image respectively using a universal encoder, and correspondingly obtain multi-level universal moving features and multi-level universal reference features; A structural feature extraction unit, used to extract features from the moving image and the reference image respectively using a structural encoder, and correspondingly obtain multi-level structural moving features and multi-level structural reference features; A feature fusion unit is used to perform feature fusion on the universal mobile features and structural mobile features of each level to obtain multi-level fused mobile features, and to perform feature fusion on the universal reference features and structural reference features of each level to obtain multi-level fused reference features; A feature decoding unit, used for inputting the multi-level fused movement features and fused reference features into a decoder, and the decoder outputs a final target deformation field; The deformation registration unit is used to deform the moving image using the target deformation field to obtain a registered image.

9. A computer device, It is characterized in that The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the medical image registration method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the medical image registration method according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Small sample ancient character recognition method based on structural features and evolution modes

    CN119206739A