Methods, systems, apparatuses, media, and program product for registration of cross-modality medical images

By employing hierarchical anatomical feature extraction and multi-resolution registration, the problem of insufficient utilization of overall anatomical structure and local morphological information in cross-modal medical image registration is solved, achieving higher registration accuracy and generalization ability.

CN123160984APending Publication Date: 2026-11-24SHANGHAI TECH UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611405050.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-10
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing cross-modal medical image registration methods struggle to simultaneously utilize both overall anatomical structure and local morphological information in complex situations, resulting in inaccurate registration and insufficient generalization ability.

Method used

By extracting layered anatomical features from two medical images of different modalities, a weighted fusion method of coarse-scale and fine-scale features is adopted, combined with attention mechanism and multi-resolution registration, to establish spatial correspondence and optimize the feature extraction process.

Benefits of technology

It improves the accuracy of cross-modal medical image registration and the ability to generalize to combinations of unseen modalities, enabling reliable spatial correspondence under complex conditions such as large displacements, similar local structures, and incomplete overlap of fields of view.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure FT_1
    Figure FT_1
  • Figure FT_2
    Figure FT_2
  • Figure FT_3
    Figure FT_3
Patent Text Reader

Abstract

This application provides a method, system, device, medium, and program product for cross-modal medical image registration, relating to the field of cross-modal medical image registration. The training method includes: extracting features from two views separately to obtain coarse-scale / fine-scale features for each view; in the coarse-scale / fine-scale stage, selecting the coarse-scale / fine-scale feature position of one view as the query position, calculating the similarity between the query position and candidate positions of the coarse-scale / fine-scale features of the other view, and performing weighted fusion on several candidate positions with high similarity results to obtain reconstructed features at the coarse-scale / fine-scale; determining the loss in the coarse-scale / fine-scale stage, and optimizing the feature extraction process. This application unifies overall anatomical structure and local morphological information into the same anatomical feature space through cross-view anatomical feature learning, matching-aware coarse-scale global modeling, and coarse-scale-guided fine-scale local correspondence learning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of cross-modal medical image registration, and in particular to methods, systems, devices, media, and program products for cross-modal medical image registration. Background Technology

[0002] Different medical imaging modalities can provide complementary tissue and pathological information, such as computed tomography (CT) and magnetic resonance imaging (MR). However, clinical acquisition is often affected by factors such as scanning equipment, imaging parameters, acquisition time, patient position, and physiological state. The same anatomical structure can exhibit significant grayscale differences and large spatial deformations in different images. Therefore, accurate registration is essential for reliable fusion of medical images from different modalities. Existing cross-modal medical image registration methods mainly include iterative registration based on handcrafted features, deep learning methods that directly predict deformation fields, registration methods based on cross-modal image synthesis, and registration methods based on learnable features.

[0003] Methods based on handcrafted features have limited ability to identify complex anatomical structures; methods that directly predict deformation fields tend to rely on specific modal or contrast combinations and are difficult to generalize to unseen modal combinations; image synthesis-based methods may introduce artifacts or alter the true anatomical structure.

[0004] In recent years, methods based on learnable features have achieved good results in cross-modal registration by learning deep features that can characterize anatomical structures and establishing spatial correspondences based on feature similarity.

[0005] These methods typically employ contrastive learning for training, learning registration features by increasing the similarity of features at corresponding locations and decreasing the similarity of features at non-corresponding locations. However, they usually treat each location as an independent training sample, focusing only on the similarity of local features and failing to fully utilize the overall spatial relationships between anatomical structures and structural information at different scales.

[0006] Therefore, in complex situations such as large displacement, similar local structures, lesions causing morphological changes, or incomplete overlap of visual fields, relying solely on the similarity of local features can easily lead to incorrect correspondences, while features at a single scale are difficult to balance overall localization ability and local identification ability.

[0007] Therefore, a method is needed that can learn cross-modal registration features with hierarchical anatomical information, enabling it to establish reliable spatial correspondences using both global anatomical structure and local morphological information, thereby improving the accuracy of cross-modal medical image registration and its generalization ability to combinations of unseen modalities. Summary of the Invention

[0008] In view of the shortcomings of the prior art described above, the purpose of this application is to provide a cross-modal medical image registration method, system, device, medium and program product based on artificial intelligence, so as to solve the technical problems of the prior art in terms of cross-modal registration features.

[0009] To achieve the above and other related objectives, a first aspect of this application provides a training method for cross-modal medical images, comprising: sampling two partially overlapping local image patches from a source medical image to construct two views with known spatial correspondence but different appearances; performing feature extraction on the two views respectively to obtain coarse-scale features and fine-scale features for each view; in the coarse-scale stage, selecting the coarse-scale feature position of one view as the query position, calculating the similarity between the query position and candidate positions of the coarse-scale features of the other view, and obtaining the similarity result of each candidate position to the query position; and performing weighted fusion on several candidate positions with high similarity results. The process involves several steps: First, coarse-scale features are obtained. Second, in the fine-scale stage, a fine-scale feature location from one view is selected as the query location. The similarity between the query location and candidate locations of fine-scale features from another view is calculated to obtain the similarity result of each candidate location to the query location. Third, a weighted fusion is performed on several candidate locations with high similarity results to obtain fine-scale reconstructed features. Fourth, the similarity between the coarse-scale and fine-scale reconstructed features and their corresponding positive and negative samples is calculated to determine the loss for the coarse-scale stage and the loss for the fine-scale stage. Finally, the sum of the losses for the coarse-scale stage and the fine-scale stage is used as the joint loss to optimize the feature extraction process.

[0010] In some embodiments of the first aspect of this application, before calculating the similarity between the query location and the candidate locations of the fine-scale features of another view in the fine-scale stage, the retrieval range of candidate locations of the fine-scale features is narrowed based on the correspondence between the query location and the candidate locations established in the coarse-scale stage.

[0011] In some embodiments of the first aspect of this application, in the coarse-scale stage and / or fine-scale stage, a matching score for the query location is obtained based on the similarity between the query location and candidate locations of coarse-scale features and / or fine-scale features of another view. A non-matching score is obtained based on the matching score, and the non-matching score is used as the score of a non-matching candidate. This score, together with the similarity result of the real candidate locations, participates in candidate selection and weight calculation. At the same scale, several candidate locations with higher weights are selected for weighted fusion to obtain the reconstructed features of the coarse-scale and / or fine-scale.

[0012] In some embodiments of the first aspect of this application, attention weights are determined based on the feature similarity between the query position and the candidate position for weighted fusion; wherein the query position is used as a query vector, and the candidate position is used as both a key vector and a value vector.

[0013] In some embodiments of the first aspect of this application, during the weighted fusion of several candidate positions with high similarity results, the unmatched score is used as an additional candidate score and is used together with the similarity results of the real candidate positions for candidate selection; the selected candidate scores are normalized to obtain reconstruction weights, and the features are weighted and fused according to the reconstruction weights corresponding to the real candidate positions to obtain coarse-scale reconstruction features.

[0014] To achieve the above and other related objectives, a second aspect of this application provides a method for registering cross-modal medical images, which uses an encoder obtained by the training method described in the first aspect of this application for inference, including: using the encoder to extract features from two cross-modal medical images to be registered, obtaining coarse-scale features and fine-scale features of the two cross-modal medical images; upsampling the coarse-scale features to fine-scale features and then stitching the two together to obtain fused features; calculating feature similarity based on the fused features of the two cross-modal medical images, and obtaining the deformation field through multi-resolution registration.

[0015] To achieve the above and other related objectives, a third aspect of this application provides a training system for cross-modal medical images, comprising: a feature extraction module for sampling two partially overlapping local image patches from a source medical image to construct two views with known spatial correspondence but different appearances; performing feature extraction on the two views respectively to obtain coarse-scale features and fine-scale features for each view; a coarse-scale module for selecting a coarse-scale feature position of one view as a query position in the coarse-scale stage, calculating the similarity between the query position and candidate positions of the coarse-scale features of the other view, obtaining a similarity result of each candidate position to the query position; and performing weighted fusion on several candidate positions with high similarity results. The system employs a coarse-scale reconstruction module to obtain coarse-scale features. A fine-scale module, in the fine-scale stage, selects a fine-scale feature location from one view as the query location, calculates the similarity between the query location and candidate locations of fine-scale features from another view, and obtains the similarity result of each candidate location to the query location. Several candidate locations with high similarity results are weighted and fused to obtain fine-scale reconstruction features. A loss optimization module calculates the similarity between the coarse-scale and fine-scale reconstruction features and their corresponding positive and negative samples, determines the loss for the coarse-scale stage and the loss for the fine-scale stage, and uses the sum of the coarse-scale and fine-scale stage losses as the joint loss to optimize the feature extraction process.

[0016] To achieve the above and other related objectives, a fourth aspect of this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the first or second aspect of this application.

[0017] To achieve the above and other related objectives, the fifth aspect of this application provides a computer program product including computer program code, which, when run on a computer, causes the computer to implement the method described in the first or second aspect of this application.

[0018] To achieve the above and other related objectives, a sixth aspect of this application provides a computer device / equipment / system / electronic terminal, including a memory, a processor, and a computer program stored in the memory; the processor executes the computer program to implement the method described in the first or second aspect of this application.

[0019] As described above, the cross-modal medical image registration method, system, device, medium, and program product of this application have the following beneficial effects: This application unifies the overall anatomical structure and local morphological information into the same anatomical feature space through cross-view anatomical feature learning, coarse-scale global modeling with matching perception, and coarse-scale guided fine-scale local correspondence learning. While reducing the impact of modal appearance differences, local structural similarities, and incomplete visual field overlap on registration, it improves the model's generalization ability to unseen modal combinations and different clinical imaging scenarios. It can be applied to medical image analysis tasks such as multimodal image fusion, radiotherapy, intraoperative navigation, and disease progression monitoring. Attached Figure Description

[0020] Figure 1 This is a diagram illustrating an implementation environment provided in an embodiment of this application.

[0021] Figure 2 A flowchart illustrating the training method for cross-modal medical image registration provided in this application embodiment.

[0022] Figure 3 This is a diagram illustrating the training / inference method architecture for cross-modal medical image registration provided in this application embodiment.

[0023] Figure 4 This is an image showing the abdominal CT-MR registration result provided in Embodiment 1 of this application.

[0024] Figure 5 This is a whole-body CT-MR registration result image provided in Embodiment 1 of this application.

[0025] Figure 6This is a system architecture diagram for cross-modal medical image registration provided in an embodiment of this application.

[0026] Figure 7 This is a schematic block diagram of a computer device provided in an embodiment of this application. Detailed Implementation

[0027] The following specific examples illustrate the implementation of this application. Those skilled in the art can easily understand other advantages and effects of this application from the content disclosed in this specification. This application can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of this application. It should be noted that, unless otherwise specified, the following embodiments and features in the embodiments can be combined with each other.

[0028] To address the technical problems described above, this application introduces a novel cross-modal medical image registration method. By extracting layered anatomical features from two medical images of different modalities, a spatial correspondence is established in the feature space to obtain the deformation field between the two images. It should be understood that the method provided in this application, besides being applicable to medical images, can also be applied to fields such as industrial inspection, video surveillance, military defense, aerospace, and autonomous driving; this application does not limit its application to these areas.

[0029] The following specific examples illustrate the implementation of this application. Those skilled in the art can easily understand other advantages and effects of this application from the content disclosed in this specification. This application can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of this application. It should be noted that, unless otherwise specified, the following embodiments and features in the embodiments can be combined with each other.

[0030] The implementation environment of the embodiments of this application is described below. Figure 1 This is a schematic diagram of an implementation environment provided for an embodiment of this application, such as... Figure 1 As shown, this implementation environment includes a terminal device 101 and a server 102. The terminal device 101 and the server 102 are connected via wired or wireless means.

[0031] Specifically, the terminal device 101 in this embodiment of the application is equipped with a client. The user can input two medical images of different modalities on the client, such as a computed tomography (CT) image or an magnetic resonance (MR) image. The server 102 acts as a server and is used to perform cross-modal registration on the source medical images input by the user on the client. The server 102 sends the registered deformation field to the terminal device 101 to provide it to the user.

[0032] In some embodiments, such as Figure 1 As shown, the server 102 in this embodiment includes a cross-modal medical image model, which is used to perform cross-modal registration on two source medical images as input to the object and output a deformation field. It should be noted that in this embodiment, before using the cross-modal medical image model to perform cross-modal registration on the two source medical images as input to the object, the cross-modal medical image model is first trained.

[0033] In some embodiments, the aforementioned cross-modal medical image model is trained by server 102. For example, an object sends a source medical image to server 102 via terminal device 101. Server 102 stores the cross-modal medical image model to be trained. Thus, server 102 can process the source medical image sent by terminal device 101 using the cross-modal medical image model, determine the loss of the cross-modal medical image model, and train the cross-modal medical image model based on the loss. Then, server 102 saves the trained cross-modal medical image model or saves it on other storage devices.

[0034] In some embodiments, the aforementioned cross-modal medical image model may also be trained by other computing devices, and the trained cross-modal medical image model may be sent to server 102 for storage or stored on other storage devices.

[0035] In the actual inference process of the cross-modal medical image model, the user inputs two source medical images on the client side of terminal device 101. Terminal device 101 then forwards the two source medical images to server 102. Server 102 inputs the two source medical images into the cross-modal medical image model, extracts the corresponding hierarchical anatomical features, establishes a spatial correspondence in the feature space, and obtains the deformation field between the two images. Finally, server 102 sends the deformation field estimated using the cross-modal medical image model to terminal device 101 for display, so that the user can obtain the deformation field result.

[0036] In some embodiments, the terminal device 101 includes, but is not limited to, desktop computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices may include smart speakers, smart TVs, smart air conditioners, and smart in-vehicle systems. Portable wearable devices may include smartwatches, smart bracelets, and head-mounted devices. Terminal devices are often equipped with a display device, which may be a monitor, display screen, touchscreen, etc., and the touchscreen may be a touchscreen, touch panel, etc.

[0037] In some embodiments, the server 102 described above can be one or more servers. When there are multiple servers, at least two servers are used to provide different services, and / or at least two servers are used to provide the same service, such as providing the same service in a load-balanced manner. This application embodiment does not limit this. The server described above can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. The server can also become a node in a blockchain.

[0038] It should be noted that the implementation environment of this application embodiment includes, but is not limited to, Figure 1 As shown.

[0039] The cross-modal medical image training method provided in this application embodiment, as shown in Figures 2 and 3a), includes:

[0040] Step 1) Sample two partially overlapping local image patches from the source medical image to construct two views with known spatial correspondence but different appearances; perform feature extraction on the two views respectively to obtain coarse-scale features and fine-scale features of each view.

[0041] The source medical image can be a computed tomography (CT) image or a magnetic resonance (MR) image.

[0042] The overlapping of the two local image blocks is understood as: the two local image blocks have overlapping areas in the source medical image.

[0043] Before feature extraction from two local image patches, intensity enhancement and spatial enhancement can be performed on the two local image patches. The intensity enhancement includes adjusting the brightness, contrast, scaling the grayscale value, performing gamma transformation, and / or noise perturbation on at least one local image patch to change the pixel intensity distribution of the local image patch; the spatial enhancement includes performing corresponding rotation, translation, scaling, flipping, and / or cropping on the two local image patches to change the spatial shape of the local image patches while maintaining the spatial correspondence between the two local image patches.

[0044] The two local image blocks can be used to simulate appearance changes caused by different imaging modalities, scanning devices and imaging parameters without introducing other modal data; that is, one local image block is used to represent modality A and the other local image block is used to represent modality B, thereby reducing the input of cross-modal data.

[0045] The feature extraction process is as follows: two image views are respectively input into a three-dimensional convolutional neural network encoder with shared parameters. The encoder extracts multi-level image features, and the two feature pyramid branches are used to fuse the features at different levels to obtain coarse-scale features and fine-scale features.

[0046] The coarse-scale features have low spatial resolution and a large sensing range, mainly expressing the approximate location, overall morphology, and spatial relationships between different anatomical structures of organs, and are used to find possible corresponding locations over a large area; the fine-scale features have high spatial resolution, retain more organ boundary and local tissue morphology information, and are used to further determine precise local corresponding locations.

[0047] Step 2) As shown in Figure 3b), in the coarse-scale stage, the coarse-scale feature position of one of the views is selected as the query position, and the similarity between the query position and the candidate positions of the coarse-scale features of another view is calculated to obtain the similarity result of each candidate position to the query position; the candidate positions with high similarity results are weighted and fused to obtain the coarse-scale reconstructed features.

[0048] The coarse-scale feature location refers to the position of a feature point or feature region in the coarse-scale feature image within the feature image coordinate system. It is used to characterize the spatial position of the local image region corresponding to the target feature in the feature space and can usually be represented by three-dimensional coordinates.

[0049] Here, the candidate location of the coarse-scale feature is the position of a feature point or feature region in the coarse-scale feature image within the coordinate system of that feature image. The only difference between the query location and the candidate location is that the query location is a feature point in the feature image from one viewpoint, while the candidate location is a feature point in the feature image from another viewpoint. Once the coordinates of both are obtained, similarity calculations can be performed to measure their proximity in the feature space, thereby determining the feature matching relationship between the two local image patches.

[0050] Specifically, the similarity between the query location and the candidate location can be determined using methods such as cosine similarity, dot product similarity, Euclidean distance, or correlation coefficient. For example, the feature vectors corresponding to the query location and the candidate location can be obtained separately, and the cosine similarity between the two feature vectors can be calculated. The larger the cosine similarity, the closer the features corresponding to the two locations are, and the higher the degree of matching between the candidate location and the query location.

[0051] Specifically, after obtaining the similarity results between the query position and each candidate position, an attention mechanism is used to perform weighted fusion on several candidate positions with high similarity results; where the query position is used as the query vector, and the candidate positions are used as both key vectors and value vectors.

[0052] Furthermore, as shown in Figure 3b), during the weighted fusion of several candidate positions with high similarity results using the attention mechanism, the no-match score between the query position and each candidate position is also included in the weighting. Therefore, it is necessary to first determine the no-match score between the query position and the candidate positions.

[0053] Specifically, based on the similarity between the query location and candidate locations of coarse-scale features and / or fine-scale features of another view, a matching score for the query location is obtained. A non-matching score is obtained based on the matching score, and the non-matching score is used as the score of the non-matching candidate. This score, together with the similarity result of the real candidate locations, participates in candidate selection and weight calculation. At the same scale, several candidate locations with higher weights are selected for weighted fusion to obtain coarse-scale and / or fine-scale reconstructed features.

[0054] The no-match score for the query position can be obtained from the matching score, as shown in Formula 1. This is represented as a matching score.

[0055]

[0056] Subsequently, the similarity results between the query location and candidate locations are sorted together with the no-match score. The Top-K candidates with the highest scores are selected, and these Top-K scores are then Softmax normalized to obtain weights. For a query location, the feature similarity between it and each real candidate location is calculated, and a no-match score is calculated based on the matching score of the query location. This no-match score serves as an additional no-match candidate (Dustbin), participating in the sorting along with the similarity scores of each real candidate location. The Top-K candidates with the highest scores are selected, and their scores are Softmax normalized to obtain corresponding weights. The Top-K candidates may include one or more real candidate locations, or they may include no-match candidates. The Top-K candidates may include real candidate locations (candidates with high similarity to the query) or no-match candidates (query locations with high no-match scores).

[0057] In other words, when a query location has a reliable correspondence in another view, higher weights are mainly assigned to real candidate locations with higher similarity; when a query location lacks a reliable correspondence, no matching candidate locations receive higher weights, thereby reducing the contribution of real candidate locations to the reconstruction results, achieving soft rejection of locations without effective correspondences, and avoiding the model from forcibly establishing incorrect spatial correspondences.

[0058] As shown in Figure 3b), during the weighted fusion of several candidate positions with high similarity results, the unmatched score obtained based on the matching score of the query position is used as an unmatched candidate, which participates in the candidate selection along with the similarity results of each real candidate position. Several candidates with higher scores are selected, and the scores of the selected candidates are normalized using Softmax to obtain the corresponding weights. Note that the unmatched candidate does not correspond to the actual feature position.

[0059] For true candidate locations, the features corresponding to those locations are multiplied by their respective weights and then summed using a weighted average to obtain coarse-scale reconstructed features. Through this process, the overall anatomical structure and the spatial relationships between different anatomical regions are learned at a coarse scale, while ensuring that feature similarity remains consistent with the true anatomical correspondence.

[0060] Step 3) In the fine-scale stage, select the fine-scale feature position of one of the views as the query position, calculate the similarity between the query position and the candidate positions of the fine-scale features of another view, and obtain the similarity result of each candidate position to the query position; perform weighted fusion on several candidate positions with high similarity results to obtain the reconstructed features of the fine scale.

[0061] In the fine-scale stage, as shown in Figure 3b), the overall approach is consistent with the coarse-scale stage, but optimizations have been made to the selection range of candidate positions. Specifically, before calculating the similarity between the query position and the candidate positions of the fine-scale features of another view, the retrieval range of candidate positions for the fine-scale features is narrowed based on the correspondence between the query position and the candidate positions established in the coarse-scale stage.

[0062] Specifically, after obtaining the similarity results between the query position and each candidate position, attention weights are determined based on the feature similarity between the query position and the candidate positions. Several candidate positions with high similarity results are then weighted and fused to obtain fine-scale reconstructed features. Here, the query position serves as the query vector, and the candidate positions serve as both the key vector and the value vector.

[0063] Step 4) As shown in Figure 3b), the similarity between the coarse-scale reconstructed features and the fine-scale reconstructed features and the corresponding positive and negative samples is calculated respectively. The loss of the coarse-scale stage and the loss of the fine-scale stage are determined. The sum of the loss of the coarse-scale stage and the loss of the fine-scale stage is used as the joint loss to optimize the feature extraction process.

[0064] Furthermore, the loss in the coarse-scale stage includes the reconstruction loss and matching loss of the coarse-scale stage; the loss in the fine-scale stage includes the reconstruction loss of the fine-scale stage.

[0065] Specifically, the joint loss is shown in Formula 2:

[0066]

[0067] in, This represents the coarse-scale bidirectional reconstruction loss. This represents the fine-scale bidirectional reconstruction loss. This represents the coarse-scale matching loss. , and These represent the weights of the three losses. Both coarse-scale and fine-scale reconstruction losses integrate the bidirectional reconstruction results between the two views, simultaneously constraining feature reconstruction from view A to view B and from view B to view A. To constrain correspondence learning, the true correspondence positions are determined based on the known spatial transformations between the two training views; coarse-scale uses the true correspondence positions as positive samples, while fine-scale allows small regions near the true correspondence positions to be used as positive samples, and selects difficult negative samples from spatially distant but feature-similar locations. Matching supervision generates binary labels based on whether each location has a valid spatial correspondence in the other view. Finally, the encoder is jointly optimized through the above losses, ensuring that the learned features simultaneously contain overall anatomical structure information and local morphological information, while reducing dependence on specific image grayscale and modal appearance.

[0068] This application embodiment also provides an artificial intelligence-based cross-modal medical image registration method, which uses an encoder obtained by the training method described above for inference, as shown in Figure 3c), including:

[0069] Step T1) The encoder is used to extract features from the two cross-modal medical images to be registered, and the coarse-scale features and fine-scale features of the two cross-modal medical images are obtained.

[0070] Step T2) After upsampling the coarse-scale features to the same spatial resolution as the fine-scale features, the two are stitched together to obtain fused features. Based on the fused features, feature similarity is calculated to determine possible spatial displacements. A multi-resolution registration method from low resolution to high resolution is adopted. First, the spatial deformation of a larger range is estimated at a lower resolution, and then the local spatial deformation is gradually corrected at a higher resolution. The deformation results obtained at different resolutions are updated step by step to obtain the final deformation field.

[0071] Example 1

[0072] This embodiment uses multiple medical image datasets to validate the proposed hierarchical anatomical structure representation learning and cross-modal registration method. Training data includes 50 unpaired CT scans from Learn2Reg, 500 multicenter abdominal CT scans from AMOS22, and 1204 CT scans from TotalSegmentator. Registration performance was first evaluated on 8 pairs of abdominal CT-MR images from Learn2Reg, and then generalization ability was further validated on the untrained ThoraxCBCT dataset and whole-body CT-MR dataset.

[0073] The ThoraxCBCT dataset included 11 subjects, each with one fan-beam CT image and two cone-beam CT images; the whole-body dataset included 20 subjects, each with one CT image and four types of MR images: water, fat, in-phase, and out-of-phase. The model was implemented using Python and the PyTorch deep learning framework and trained using a single NVIDIA A100 GPU.

[0074] Preprocessing: First, the images are resampled to isotropic resolution, and intensity normalization is performed on the CT and MR images respectively.

[0075] Training phase: During training, three-dimensional image blocks are randomly sampled from a single CT scan, and random intensity enhancement and spatial enhancement are applied to form two views respectively; then, a three-dimensional encoder is used to extract coarse-scale and fine-scale features.

[0076] The encoder is first pre-trained using conventional contrastive learning, and then jointly optimized with coarse-scale reconstruction loss, fine-scale reconstruction loss and coarse-scale matching loss. Both coarse-scale and fine-scale feature reconstruction are performed bidirectionally between the two views, enabling the network to obtain modality-independent hierarchical anatomical features.

[0077] Application Stage: Input: The image pair to be registered is input into the trained encoder. Coarse and fine scale features are fused, and feature similarity is calculated within the local search range. The deformation field is estimated step by step through multi-resolution convex optimization, and finally further optimized in the feature space. Output: Registered image and deformation field.

[0078] Experimental results show that this application can maintain good organ alignment under large modal differences and complex deformations. To verify the generalization ability to unseen modalities and anatomical regions, the learned features were directly used for whole-body CT and four MR contrast tests and chest CT-CBCT registration without additional training or fine-tuning.

[0079] Figure 4 shows the abdominal CT-MR registration result. The first column shows the reference image (MR) and the floating image to be registered (CT). The remaining columns show the results of different registration methods, including the registered floating image and the corresponding deformation field. The organ segmentation contour overlay is used to show the organ alignment after registration. The three-dimensional displacement vector in the deformation field is encoded as RGB colors, with different colors representing spatial displacements of different directions and magnitudes; this figure is used to illustrate that the method of the present invention can achieve effective spatial correspondence and organ structure alignment under CT-MR cross-modal conditions.

[0080] As shown in Figure 5, the same CT image was registered with four MR images of different contrasts. Even with significant differences in appearance between the MR images, relatively consistent deformation results were still obtained, indicating that the learned features mainly rely on shared anatomical structures rather than specific modal appearances, and can support cross-modal registration even with unseen imaging combinations. This figure illustrates that the method of the present invention can maintain stable cross-modal registration results across different MR contrasts and support spatial alignment even with imaging modal combinations not used in training.

[0081] Since the model training process, inference process, and the entire implementation process have been described in detail in the above embodiments, they will not be repeated here.

[0082] The foregoing has shown and described the basic principles and main features of this application. The above embodiments do not limit this application in any way, and all technical solutions obtained by equivalent substitution or equivalent transformation fall within the protection scope of this application.

[0083] It should also be noted that in the embodiments of this application, the terms "first" and "second" are used to distinguish identical or similar items with essentially the same function and effect.

[0084] It should be noted that, in the embodiments of this application, the words "exemplary" or "for example" indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0085] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.

[0086] Figure 6 This is a schematic block diagram of a cross-modal medical image training system provided in an embodiment of this application. Figure 6As shown, the system includes: a feature extraction module 51, used to sample two partially overlapping local image patches from a source medical image to construct two views with known spatial correspondence but different appearances; feature extraction is performed on these two views to obtain coarse-scale features and fine-scale features for each view. A coarse-scale module 52, used in the coarse-scale stage, selects a coarse-scale feature position of one view as a query position, calculates the similarity between the query position and candidate positions of coarse-scale features of the other view, obtains the similarity result of each candidate position to the query position; and performs weighted fusion on several candidate positions with high similarity results to obtain the coarse-scale reconstructed features. A fine-scale module 53, used in the fine-scale stage, selects a fine-scale feature position of one view as a query position, calculates the similarity between the query position and candidate positions of fine-scale features of the other view, obtains the similarity result of each candidate position to the query position; and performs weighted fusion on several candidate positions with high similarity results to obtain the fine-scale reconstructed features. The loss optimization module 54 is used to determine the loss at the coarse scale stage and the loss at the fine scale stage based on the similarity between the coarse-scale reconstruction features and the fine-scale reconstruction features and the corresponding positive and negative samples, respectively, and to optimize the feature extraction process by using the sum of the coarse-scale stage loss and the fine-scale stage loss as the joint loss.

[0087] It should be understood that the specific processes by which each module performs the corresponding steps described above have been detailed in the above method embodiments, and will not be repeated here for the sake of brevity. It should also be understood that the module division in the embodiments of this application is illustrative and merely a logical functional division; other division methods may exist in actual implementation. Furthermore, the functional modules in the various embodiments of this application can be integrated into a single processor, exist as separate physical entities, or have two or more modules integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.

[0088] Figure 7 This is a schematic block diagram of a computer device provided in an embodiment of this application. Figure 7 As shown, the computer device includes at least one processor 601, a memory 602, at least one network interface 603, and a user interface 605. The various components in the device are coupled together via a bus system 604. It is understood that the bus system 604 is used to implement communication between these components. In addition to a data bus, the bus system 604 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in… Figure 6 The general will label all buses as bus systems.

[0089] The user interface 605 may include a monitor, keyboard, mouse, trackball, clicker, button, touchpad, or touch screen.

[0090] It is understood that memory 602 can be volatile memory or non-volatile memory, or both. Non-volatile memory can be read-only memory (ROM) or programmable read-only memory (PROM), which serves as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (SRAM) and synchronous static random access memory (SSRAM). The memories described in the embodiments of this application are intended to include, but are not limited to, these and any other suitable categories of memory.

[0091] In this embodiment, the memory 602 is used to store various types of data to support the operation of the electronic terminal 600. Examples of this data include any executable program that operates on the electronic terminal 600, such as the operating system 6021 and application programs 6022. The operating system 6021 contains various system programs, such as the framework layer, core library layer, and driver layer, for implementing various basic services and handling hardware-based tasks. The application program 6022 may contain various applications, such as a media player and a browser, for implementing various application services. The implementation of the modal medical image registration method provided in this embodiment can be included in the application program 6022.

[0092] The methods disclosed in the embodiments of this application can be applied to or implemented by processor 601. Processor 601 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuit of the hardware in processor 601 or by instructions in software form. The processor 601 may be a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Processor 601 can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. General-purpose processor 601 may be a microprocessor or any conventional processor, etc. The steps of the accessory optimization method provided in the embodiments of this application can be directly reflected as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, which is located in memory. The processor reads the information in the memory and combines it with its hardware to complete the steps of the aforementioned method.

[0093] In an exemplary embodiment, the electronic terminal 600 may be used by one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), or complex programmable logic devices (CPLDs) to perform the aforementioned method.

[0094] According to the cross-modal medical image training / inference method provided in the embodiments of this application, this application also provides a computer program product, which includes: computer program code, which, when the computer program code is run on a computer, causes the computer to execute the cross-modal medical image training / inference method of any of the embodiments shown in the figures.

[0095] According to the method provided in the embodiments of this application, this application also provides a computer-readable storage medium storing program code, which, when run on a computer, causes the computer to perform the above-described method.

[0096] As used in this specification, the terms "component," "module," "system," etc., are used to refer to computer-related entities, hardware, firmware, combinations of hardware and software, software, or software in execution. For example, a component can be, but is not limited to, a process running on a processor, a processor, an object, an executable file, an execution thread, a program, and / or a computer. As illustrated, applications running on computing devices and computing devices can both be components. One or more components may reside in a process and / or an execution thread, and components may be located on a single computer and / or distributed among two or more computers. Furthermore, these components can be executed from various computer-readable media on which various data structures are stored. Components can communicate, for example, via local and / or remote processes based on signals having one or more data packets (e.g., data from two components interacting with another component between a local system, a distributed system, and / or a network, such as the Internet interacting with other systems via signals).

[0097] Those skilled in the art will recognize that the various illustrative logical blocks and steps described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this application.

[0098] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0099] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0100] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0101] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0102] In the above embodiments, the functions of each functional unit can be implemented entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. A computer program product includes one or more computer instructions (programs). When the computer program instructions (programs) are loaded and executed on a computer, all or part of the flow or function according to the embodiments of this application is generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. Computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., high-density digital video discs, DVDs), or semiconductor media (e.g., solid-state disks, SSDs, etc.).

[0103] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0104] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0105] In summary, this application provides a technical solution for cross-modal medical image registration methods, systems, devices, media, and program products. Therefore, this application effectively overcomes the various shortcomings of the prior art and has high industrial applicability.

[0106] The above embodiments are merely illustrative of the principles and effects of this application and are not intended to limit this application. Any person skilled in the art can modify or alter the above embodiments without departing from the spirit and scope of this application. Therefore, all equivalent modifications or alterations made by those skilled in the art without departing from the spirit and technical concept disclosed in this application should still be covered by the claims of this application.

[0107] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and substitutions can be made without departing from the principle of this technology, and these improvements and substitutions should also be considered within the scope of protection of this application.

Claims

1. A method for training cross-modal medical images, characterized in that, include: Two partially overlapping local image patches are sampled from the source medical image to construct two views with known spatial correspondences but different appearances; Feature extraction is performed on the two views respectively to obtain coarse-scale features and fine-scale features for each view; In the coarse-scale stage, the coarse-scale feature position of one of the views is selected as the query position, and the similarity between the query position and the candidate positions of the coarse-scale features of another view is calculated to obtain the similarity result of each candidate position to the query position. We perform weighted fusion on several candidate positions with high similarity results to obtain coarse-scale reconstructed features; In the fine-scale stage, the fine-scale feature location of one view is selected as the query location, and the similarity between the query location and the candidate locations of the fine-scale features of another view is calculated to obtain the similarity result of each candidate location to the query location. We perform weighted fusion on several candidate positions with high similarity results to obtain fine-scale reconstructed features; The similarity between the coarse-scale reconstructed features and the fine-scale reconstructed features and the corresponding positive and negative samples is calculated respectively. The loss of the coarse-scale stage and the loss of the fine-scale stage are determined. The sum of the loss of the coarse-scale stage and the loss of the fine-scale stage is used as the joint loss to optimize the feature extraction process.

2. The training method according to claim 2, characterized in that, In the fine-scale stage, before calculating the similarity between the query location and the candidate locations of fine-scale features in another view, the retrieval range of candidate locations for fine-scale features is narrowed based on the correspondence between the query location and candidate locations established in the coarse-scale stage.

3. The training method according to claim 2, characterized in that, In the coarse-scale and / or fine-scale stages, a matching score for the query location is obtained based on the similarity between the query location and candidate locations of coarse-scale features and / or fine-scale features of another view. A non-matching score is obtained based on the matching score, and the non-matching score is used as the score of the non-matching candidate. This score, along with the similarity result of the real candidate location, participates in candidate selection and weight calculation. At the same scale, several candidate locations with higher weights are selected for weighted fusion to obtain the reconstructed features of the coarse-scale and / or fine-scale.

4. The training method according to claim 2, characterized in that, Attention weights are determined based on the feature similarity between the query position and the candidate position, and then weighted and fused. The query position is used as the query vector, and the candidate position is used as both the key vector and the value vector.

5. The training method according to claim 5, characterized in that, In the process of weighted fusion of several candidate positions with high similarity results, the unmatched score is used as an additional candidate score and is used together with the similarity results of the real candidate positions for candidate selection. The selected candidate scores are normalized to obtain reconstruction weights, and the features are weighted and fused according to the reconstruction weights corresponding to the real candidate positions to obtain coarse-scale reconstruction features.

6. A method for registering cross-modal medical images, comprising inference using an encoder obtained by the training method described in any one of claims 1 to 5, characterized in that, include: The encoder is used to extract features from the two cross-modal medical images to be registered, thereby obtaining coarse-scale features and fine-scale features of the two cross-modal medical images; After upsampling the coarse-scale features to fine-scale features, the two are stitched together to obtain fused features; feature similarity is calculated based on the fused features of the two cross-modal medical images, and deformation field is obtained through multi-resolution registration.

7. A training system for cross-modal medical images, characterized in that, include: The feature extraction module is used to sample two partially overlapping local image patches from the source medical image to construct two views with known spatial correspondence but different appearances; Feature extraction is performed on the two views respectively to obtain coarse-scale features and fine-scale features for each view; The coarse-scale module is used to select the coarse-scale feature position of one of the views as the query position during the coarse-scale stage, calculate the similarity between the query position and the candidate positions of the coarse-scale features of another view, and obtain the similarity result of each candidate position to the query position. We perform weighted fusion on several candidate positions with high similarity results to obtain coarse-scale reconstructed features; The fine-scale module is used to select the fine-scale feature position of one view as the query position during the fine-scale stage, calculate the similarity between the query position and the candidate positions of the fine-scale features of another view, and obtain the similarity result of each candidate position to the query position. We perform weighted fusion on several candidate positions with high similarity results to obtain fine-scale reconstructed features; The loss optimization module is used to calculate the similarity between the coarse-scale reconstructed features and the fine-scale reconstructed features and the corresponding positive and negative samples, respectively, to determine the loss at the coarse-scale stage and the loss at the fine-scale stage, and to use the sum of the loss at the coarse-scale stage and the loss at the fine-scale stage as the joint loss to optimize the feature extraction process.

8. A computer-readable storage medium, characterized in that, It stores a computer program that, when executed by a processor, implements the method as described in any one of claims 1 to 5 or the method as described in claim 6.

9. A computer program product, characterized in that, The computer program product includes computer program code, which, when run on a computer, causes the computer to implement the method as described in any one of claims 1 to 5 or the method as described in claim 6.

10. A computer device, characterized in that, It includes a memory, a processor, and a computer program stored in the memory; the processor executes the computer program to implement the method as described in any one of claims 1 to 5 or the method as described in claim 6.