Medical image registration method, device and computer equipment based on improved U-Net network

By improving the U-Net network and using side source information and multi-scale image registration technology, the challenges of feature selection and model training in medical image registration are solved, the registration accuracy and speed are improved, and the accuracy of large displacements and small micro-images is achieved. The ability to capture deformation improves the accuracy of image registration.

CN118314184BActive Publication Date: 2024-08-30UNIV OF SCI & TECH OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410741304.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2024-08-30
Estimated Expiration
2044-06-11

AI Technical Summary

Technical Problem

Existing medical image registration methods have challenges in feature selection and model training, including complex feature extraction, poor anti-interference performance, high computational complexity, data scarcity and high model training costs, resulting in difficulties in registration accuracy and speed. meet clinical needs.

Method used

The improved U-Net network is used to obtain side source information through step-by-step iterative downsampling, enhance feature extraction and deformation field prediction capabilities, introduce multi-scale image registration technology, design the registration network hierarchically, and learn deformation displacement information layer by layer, and The deformation field prediction information is used for fine-tuning to achieve image registration.

Benefits of technology

It improves the accuracy and speed of medical image registration, enhances the model's anti-noise ability, reduces dependence on data labels, achieves global perception of large displacements and small deformations, and improves the accuracy of image registration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118314184B
    Figure CN118314184B
Patent Text Reader

Abstract

The present invention relates to the field of image processing technology, and provides a medical image registration method, device and computer equipment based on an improved U-Net network. In order to alleviate the problem of data loss caused by continuous downsampling of the original U-Net network model, the method innovatively introduces a side source information channel to supplement the original data stream, thereby enhancing the model's ability to understand remote spatial relationships and the accuracy of image registration. At the same time, features can be extracted from images without supervision, with a relatively fast speed and good versatility, and a certain resistance to noise, which can avoid the model's heavy reliance on data labels. The requirements of speed, accuracy, noise resistance and generalization of medical image registration are met.
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 and computer equipment based on an improved U-Net network. Background Art

[0002] Medical imaging is an important part of modern medicine. It can provide doctors with a lot of information intuitively, assist doctors in diagnosis, and is of great significance to improving medical quality, optimizing medical processes, and promoting medical research. For example, in key areas such as tumor treatment, medical imaging can help doctors quickly locate lesions, formulate treatment plans, track pathological changes, and evaluate treatment effects. In the process of auxiliary diagnosis and treatment, a single medical image is often difficult to meet clinical needs. Doctors often have to face images from different imaging devices, or image sequences taken by the same device at different times. Relying solely on the doctor's subjective experience, it is speculated that fusing these image information will greatly increase the doctor's workload, and the accuracy is difficult to guarantee. Medical image registration is needed to accurately align these multiple images from different time points, different imaging technologies, or different perspectives, and effectively integrate multi-source information. There are two main types of existing medical image registration methods. Traditional medical image registration algorithms are manually designed and image features are extracted according to the image type, and then the feature points of different images are paired, and the spatial transformation parameters are calculated based on the pairing results. This type of method has strong interpretability and can achieve high registration accuracy through careful design. The other type is based on deep learning methods, using deep neural networks to predict spatial transformations (usually deformation fields), such as FCN, U-Net, etc. Deep learning methods have the advantages of being fast and universal. However, the above methods all have the following problems:

[0003] For traditional medical image registration algorithms, the quality of feature selection will directly affect the final registration effect. Designing features specifically for different organs and different imaging devices is still a huge challenge. In this scenario, the feature extraction method is relatively complex, and the designed features can often only be used in this modality, with poor anti-interference and anti-noise performance, and low scalability of the method. In addition, due to the large number of feature points and high computational complexity, the matching efficiency of the model is low, and the registration speed is often difficult to meet clinical needs.

[0004] For methods using deep learning, if supervised learning methods are used, a large amount of data is required to train the model. However, in the medical field, the source of medical imaging data is scarce and the cost of data annotation is expensive. The lack of training data limits the registration effect of the model; if unsupervised training is used, although the large demand for data annotation is avoided, due to the complexity of the anatomical structure of human tissue, the loss function of the model is difficult to define, making model optimization difficult. In addition, in order to effectively learn the connection between the complex tissue structures of the human body, the model is often complex in structure and has a huge parameter scale, resulting in high cost of model training. Summary of the invention

[0005] In view of the above problems, the present invention proposes a medical image registration method, apparatus and computer equipment based on an improved U-Net network to overcome the above problems.

[0006] One aspect of the present invention provides a medical image registration method based on an improved U-Net network, the method comprising:

[0007] S1. Obtain the medical image pair to be registered ( , ) and floating images ;

[0008] S2, respectively, the fixed image and the floating image Perform iterative downsampling to obtain a fixed side source image group and side source floating image group ,in, is a k-level fixed image, which means a fixed image after k-1 iterations of downsampling. is a k-level floating image, which means a floating image after k-1 iterations of downsampling. k is the image processing level. The same image processing level is used to process image data of the same image size.

[0009] S3, respectively fix the k-level images and k-level floating images Input the input end of the same image processing layer of the preset feature extraction network model, and calculate the feature extraction network model with each k-level fixed image One-to-one correspondence between k-level fixed image feature data and each k-level floating image One-to-one correspondence k-level floating image feature data , to obtain a fixed image feature data set and floating image feature data set ;

[0010] S4: k-level fixed image feature data and k-level floating image feature data Input the input end of the same image processing level of the preset deformation field prediction network model, and calculate the initial deformation field sequence corresponding to each image processing level through the deformation field prediction network model. , and for each k-level initial deformation field Transform and upsample sequentially to obtain the precisely aligned deformation field ;

[0011] S5, according to the precise alignment deformation field For the floating image Apply the transformation to obtain a floating image To fixed image Transformation image , to obtain the pair of images to be registered ( , ) .

[0012] Furthermore, if the current method flow is in the model training stage, the method further includes:

[0013] S6, determining whether the current method process is in the model training stage;

[0014] S7. If in the model training stage, calculate the k-level image similarity loss of each image processing level and k-level deformation field smoothness loss ;

[0015] S8, k-level image similarity loss for the same image processing level and k-level deformation field smoothness loss Perform weighted calculation to obtain the k-level model loss of the processing level of the current image , the k-level model loss for each image processing level Perform weighted calculation to obtain model loss ;

[0016] S9. Model-based loss The preset optimizer model is used to optimize the model parameters of the feature extraction network model and / or the deformation field prediction network model, and the process returns to step S1.

[0017] Further, the feature extraction network model includes an encoding path and a decoding path, the encoding path includes a plurality of sequentially connected image processing levels with an increasing encoding layer in sequence, the decoding path includes a plurality of sequentially connected decoding layers with a decreasing image processing level in sequence, and the encoding layer and the decoding layer of the same image processing level are connected through a skip layer to input the encoding layer data to the decoding layer, and step S3 specifically includes:

[0018] S31, fix the k-level image and k-level floating images Input the k-level encoding layer of the feature extraction network model encoding path to obtain fixed image feature encoding data sets at different image processing levels and floating image feature encoding data set :

[0019] (1)

[0020] (2)

[0021] (3)

[0022] (4)

[0023] in, Represents the encoding path of the feature extraction network model Level coding layer, represents a downsampler;

[0024] S32, input the coding layer data of the same image processing level into the decoding layer through a skip layer connection to obtain a decoded fixed image feature data set and floating image feature data set :

[0025] (5)

[0026] (6)

[0027] (7)

[0028] (8)

[0029] in, Represents the decoding path of the feature extraction network model The decoding layer, represents the upsampler, Represents one or more of the convolution, rectification, and activation operations in the feature extraction network model.

[0030] Furthermore, the deformation field prediction network model includes a plurality of sequentially connected spatial transformation layers with successively decreasing image processing levels, and step S4 specifically includes:

[0031] S41, k-level fixed image feature data and k-level floating image feature data Input the k-level spatial transformation layer of the deformation field prediction network model to obtain the initial deformation field sequence :

[0032] (9)

[0033] (10)

[0034] Among them, ○ represents the deformation field transformation applied to the image, express One or more of the convolution, rectification, and activation operations in the spatial transformation layer, represents an upsampler;

[0035] S42, for each k-level initial deformation field Perform deformation field transformation upsampling iterations in sequence to obtain the precisely aligned deformation field :

[0036] (11).

[0037] Further, step S7 specifically includes:

[0038] S71, according to the k-level initial deformation field of the current image processing level and the initial deformation field of the next image processing level k+1 adjacent to the current level Calculate k-level intermediate deformation fields at each image processing level :

[0039] (12)

[0040] (13)

[0041] Among them, ○ represents the deformation field transformation applied to the image, represents an upsampler;

[0042] S72, according to the k-level intermediate deformation field For k-level floating images Apply the transformation to obtain a k-level floating image To k level fixed image Transformation image , to obtain k-level image pairs to be registered ( , ) ;

[0043] S73, based on each k-level intermediate registration result Calculate image similarity loss at each image processing level ; Based on the intermediate deformation fields at each level k Compute deformation field smoothness loss at each image processing level .

[0044] Furthermore, step S8 specifically includes:

[0045] S81. Obtaining image similarity loss and deformation field smoothness loss The regularization coefficient between , according to the regularization coefficient Similarity loss of k-level images at the same image processing level and k-level deformation field smoothness loss Perform weighted calculation to obtain the k-level model loss of the current image processing level :

[0046] (14)

[0047] S82. Obtain model loss weight coefficients between different image processing levels , according to the model loss weight coefficient k-level model loss for each image processing layer Perform weighted calculation to obtain model loss :

[0048] (15)

[0049] Among them, the model loss weight coefficient satisfy .

[0050] Furthermore, before executing step S1, the method further includes:

[0051] S01. Acquire a medical image dataset, wherein the medical image dataset contains a plurality of medical image pairs to be registered;

[0052] S02, determining model parameters and training hyperparameters according to the image type of the medical image pair to be registered;

[0053] S03, performing image preprocessing on each medical image pair in the medical image dataset to obtain a preprocessed medical image pair;

[0054] S04. Divide the data sets of each preprocessed medical image pair to obtain a training set and a test set. The training set is used in the model training phase, and the test set is used in the model testing phase.

[0055] Furthermore, the determination of whether the current method process is in the model training stage includes:

[0056] Determine model loss Is it greater than the preset loss threshold? If so, it is in the model training stage; or,

[0057] Determine whether the number of training times has reached the preset upper limit of training times. If not, it is in the model training stage.

[0058] Another aspect of the present invention provides a medical image registration device based on an improved U-Net network, the device comprising:

[0059] An acquisition module is used to acquire the medical image pair to be registered ( , ) and floating images ;

[0060] An image downsampling module is used to downsample the fixed image and the floating image Perform step-by-step downsampling to obtain a fixed side source image group and side source floating image group ,in, is a k-level fixed image, which means a fixed image after k-1 downsampling. is a k-level floating image, which means a floating image after k-1 downsampling. k is the image processing level. The same image processing level is used to process image data of the same image size.

[0061] The feature extraction module is used to extract k-level fixed images and k-level floating images Input the input end of the same image processing layer of the preset feature extraction network model, and calculate the feature extraction network model with each k-level fixed image One-to-one correspondence between k-level fixed image feature data and each k-level floating image One-to-one correspondence k-level floating image feature data , to obtain a fixed image feature data set and floating image feature data set ;

[0062] The deformation field prediction module is used to transform k-level fixed image feature data and k-level floating image feature data Input the input end of the same image processing level of the preset deformation field prediction network model, and calculate the initial deformation field sequence corresponding to each image processing level through the deformation field prediction network model. , and for each k-level initial deformation field Transform and upsample sequentially to obtain the precisely aligned deformation field ;

[0063] An image registration module is used to precisely register the deformation field For the floating image Apply the transformation to obtain a floating image To fixed image Transformation image , to obtain the pair of images to be registered ( , ) .

[0064] Another aspect 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; when the computer program is executed by the processor, the steps of the medical image registration method based on the improved U-Net network as described in any one of the above items are implemented.

[0065] The present application provides a method, device and computer equipment for medical image registration based on an improved U-Net network. In order to alleviate the problem of data loss caused by continuous downsampling of the original U-Net network model, the present invention introduces a side source information channel to supplement the original data stream, enhance the model's ability to understand remote spatial relationships, and enhance the accuracy of image registration. At the same time, features can be extracted from images without supervision, with a faster speed and good versatility, while having a certain resistance to noise, and can avoid the model's heavy reliance on data labels. The embodiment of the present invention introduces multi-scale image registration technology, hierarchically designs a registration network for registration requirements under different scale deformation displacement scenarios, learns the deformation displacement information of corresponding granularity layer by layer, outputs a multi-scale deformation field, and integrates and utilizes the prediction information contained in the deformation field, and fine-tunes the output of the final precise registration deformation field result. This method enables the model to have both the global perception ability of large displacement and large deformation and the ability to capture small deformations of anatomical tissue structures, thereby improving the accuracy of image registration.

[0066] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only used for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. In the accompanying drawings:

[0068] Figure 1 A flowchart of a medical image registration method based on an improved U-Net network according to an embodiment of the present invention;

[0069] Figure 2 A flowchart of a medical image registration method based on an improved U-Net network according to another embodiment of the present invention;

[0070] Figure 3 A schematic diagram of a network architecture of a feature extraction network model according to an embodiment of the present invention;

[0071] Figure 4 The figure is a schematic diagram of the structure of a medical image registration device based on an improved U-Net network according to an embodiment of the present invention. DETAILED DESCRIPTION

[0072] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0073] Those skilled in the art will understand that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as generally understood by those skilled in the art in the art to which the present invention belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined.

[0074] Embodiment 1

[0075] In order to achieve the speed, accuracy, noise resistance, generalization and other requirements of medical image registration, this paper comprehensively absorbs the advantages of various existing methods, takes U-Net as the basic framework, and proposes a medical image registration model framework based on an improved U-Net network. The deformation field of the input image pair to be registered is predicted to achieve the registration transformation from one image to another.

[0076] The embodiment of the present invention provides a medical image registration method based on an improved U-Net network, such as Figure 1As shown, the medical image registration method based on the improved U-Net network includes the following steps:

[0077] S1. Obtain the medical image pair to be registered ( , ) and floating images ;

[0078] S2, respectively, the fixed image and the floating image Perform iterative downsampling to obtain a fixed side source image group and side source floating image group ,in, is a k-level fixed image, which means a fixed image after k-1 iterations of downsampling. is a k-level floating image, which means a floating image after k-1 iterations of downsampling. k is the image processing level. The same image processing level is used to process image data of the same image size.

[0079] In order to alleviate the problem of data loss caused by continuous downsampling of the original U-Net network model, the present invention innovatively introduces a side source information channel to supplement the original data stream, thereby enhancing the model's ability to understand long-range spatial relationships and the accuracy of image registration.

[0080] S3, respectively fix the k-level images and k-level floating images Input the input end of the same image processing layer of the preset feature extraction network model, and calculate the feature extraction network model with each k-level fixed image One-to-one correspondence between k-level fixed image feature data and each k-level floating image One-to-one correspondence k-level floating image feature data , to obtain a fixed image feature data set and floating image feature data set ;

[0081] The embodiment of the present invention adopts an encoder-decoder architecture that is similar to the architecture of the U-Net network model, which can extract features from images in an unsupervised manner, has a faster speed and good versatility, has a certain resistance to noise, and can avoid the model's heavy reliance on data labels.

[0082] S4: k-level fixed image feature data and k-level floating image feature data Input the input end of the same image processing level of the preset deformation field prediction network model, and calculate the initial deformation field sequence corresponding to each image processing level through the deformation field prediction network model. , and for each k-level initial deformation field Transform and upsample sequentially to obtain the precisely aligned deformation field ;

[0083] The embodiment of the present invention introduces multi-scale image registration technology. According to the registration requirements in different scale deformation and displacement scenarios, the registration network is designed in layers, the deformation and displacement information of the corresponding granularity is learned layer by layer, the multi-scale deformation field is output, and the prediction information contained in the deformation field is integrated and utilized to fine-tune the output of the final precise registration deformation field result. This method enables the model to have both the global perception ability of large displacement and large deformation and the ability to capture small deformations of anatomical tissue structures, thereby improving the accuracy of image registration.

[0084] S5, according to the precise alignment deformation field For the floating image Apply the transformation to obtain a floating image To fixed image Transformation image , to obtain the pair of images to be registered ( , ) .

[0085] Furthermore, since the medical image registration method based on the improved U-Net network of the embodiment of the present invention can be used for unsupervised training or image registration of the model, the embodiment of the present invention also includes the optimization and circulation process of the model in the model training stage. Specifically, Figure 2 A flowchart of a medical image registration method based on an improved U-Net network according to another embodiment of the present invention is shown. Figure 2 As shown, in the model training stage, after executing step S5, the method of the embodiment of the present invention further includes:

[0086] S6, determining whether the current method process is in the model training stage;

[0087] Specifically, if the current method process is not in the model training stage, the registration result is output If the current method flow is in the model training stage, the embodiment of the present invention provides a medical image registration method based on an improved U-Net network, which also includes:

[0088] S7. If in the model training stage, calculate the k-level image similarity loss of each image processing level and k-level deformation field smoothness loss ;

[0089] S8, k-level image similarity loss for the same image processing level and k-level deformation field smoothness loss Perform weighted calculation to obtain the k-level model loss of the processing level of the current image , the k-level model loss for each image processing level Perform weighted calculation to obtain model loss ;

[0090] S9. Model-based loss The preset optimizer model is used to optimize the model parameters of the feature extraction network model and / or the deformation field prediction network model, and the process returns to step S1.

[0091] The embodiment of the present invention uses deep supervision techniques to simultaneously optimize the registration network structures at different levels, accelerate model convergence, save computing resources, and ensure the efficiency of image registration.

[0092] The following is a detailed description of each method step of the medical image registration method based on the improved U-Net network provided by the embodiment of the present invention:

[0093] In step S1, the medical image pair to be registered ( , ) contains a fixed image and floating images The goal of the learning training model based on the improved U-Net network is to input the image pair to be registered , learn its optimal deformation field , when the floating image When this transformation is applied, the transformed image With fixed image The highest similarity is:

[0094] (11)

[0095] in is the image similarity measurement function. The higher its value, the stronger the similarity of the images. To facilitate model training, the present invention uses image similarity loss In order to avoid excessive distortion of the deformation field for fitting and enhance the robustness of the model, the present invention also introduces the deformation field smoothness loss Deformation Field To be restrained.

[0096] In step S2, during the feature extraction process, in order to solve the problem of information loss caused by continuous downsampling of the original U-Net structure, the present invention innovatively introduces a side source information channel to supplement the original data stream.

[0097] Furthermore, the present invention obtains image groups of different resolutions by scaling the original image, which are used as data information sources for the source channel on the feature extraction network side. represents a downsampler, which reduces the input image size to 1 / 2 of the original size. In this step, the present invention uses average pooling as the implementation of the downsampler. For example, the downsampling process is expressed as:

[0098] (01)

[0099] (02)

[0100] After multiple iterative downsampling, a set of side source fixed images with different resolutions can be obtained. , the image sizes are (1, 1 / 2, 1 / 4, ..., 1 / 2 of the original image n-1 ), for the convenience of description, It is called a k-level fixed image, which means a fixed image after k-1 times of iterative downsampling. k is the image processing level. The same image processing level is used to process image data of the same image size. The network model layers with the same image processing level of each model in the embodiment of the present invention can process data of the same image size.

[0101] Accordingly, for floating images The downsampling formula is expressed as:

[0102] (03)

[0103] (04)

[0104] in, is a k-level floating image, which means the floating image after k-1 iterations of downsampling.

[0105] In step S3, the embodiment of the present invention uses a feature extraction network model to extract features from the image data. Figure 3The specific structure of the feature extraction network model of an embodiment of the present invention is shown. The feature extraction network model of the present invention improves the original U-Net network model, wherein the feature extraction network model includes an encoding path and a decoding path, wherein the encoding path includes a plurality of sequentially connected image processing levels that sequentially increase the encoding layer, and the decoding path includes a plurality of sequentially connected image processing levels that sequentially decrease the decoding layer, and the encoding layer and the decoding layer of the same image processing level are connected via a skip layer to input the encoding layer data to the decoding layer. In addition, it should be noted that in the accompanying drawings, Conv represents a convolution operation, BN represents batch nomalization, ReLU represents a ReLU activation function, Up-Sample represents upsampling, Down-Sample represents downsampling, Dataflow of the fixed image represents the data flow of a fixed image, Dataflow of the moving image represents the data flow of a moving image, Copy represents copying, and Merge represents merging.

[0106] Different from the traditional U-Net network model, each coding layer of the coding path of the feature extraction network model of the present invention is provided with an input terminal, and the side source information obtained in step S2 is input into the input terminal of the corresponding coding layer of the feature extraction network model according to the different image processing levels. Corresponding to the first layer of the feature extraction network encoder structure.

[0107] Therefore, step S3 specifically includes:

[0108] S31, fix the k-level image and k-level floating images Input the k-level encoding layer of the feature extraction network model encoding path to obtain fixed image feature encoding data sets at different image processing levels and floating image feature encoding data set :

[0109] (1)

[0110] (2)

[0111] (3)

[0112] (4)

[0113] in, Represents the encoding path of the feature extraction network model Level coding layer, represents a downsampler;

[0114] S32, input the coding layer data of the same image processing level into the decoding layer through a skip layer connection to obtain a decoded fixed image feature data set and floating image feature data set :

[0115] (5)

[0116] (6)

[0117] (7)

[0118] (8)

[0119] in, Represents the decoding path of the feature extraction network model The decoding layer, represents the upsampler, Represents one or more of the convolution, rectification, and activation operations in the feature extraction network model.

[0120] In step S4, the embodiment of the present invention adopts a deformation field prediction network model to predict the deformation field. The deformation field prediction network model provided by the embodiment of the present invention is similar to the structure of the feature extraction network model, which is a multi-layer structure. For feature images at different levels, the present invention independently calculates the deformation field and optimizes it in parallel, that is, the deformation field prediction network model includes a plurality of sequentially connected spatial transformation layers with successively reduced image processing levels, wherein step S4 specifically includes:

[0121] S41, k-level fixed image feature data and k-level floating image feature data Input the k-level spatial transformation layer of the deformation field prediction network model to obtain the initial deformation field sequence :

[0122] (9)

[0123] (10)

[0124] Among them, ○ represents the deformation field transformation applied to the image, express One or more of the convolution, rectification, and activation operations in the spatial transformation layer, represents an upsampler;

[0125] S42, for each k-level initial deformation field Perform deformation field transformation upsampling iterations in sequence to obtain the precisely aligned deformation field :

[0126] (11)

[0127] In step S5, according to the precise registration deformation field For the floating image Apply the transformation to obtain a floating image To fixed image Transformation image , to obtain the pair of images to be registered ( , ) The specific operations include:

[0128] Using the obtained precise registration deformation field , for floating images Apply the transformation, completing the transformation from floating image To fixed image The transformation of

[0129] (05)

[0130] In step S6, it is determined whether the current method process is in the model training stage, including: determining the model loss Whether it is greater than the preset loss threshold, if it is, it is in the model training stage; or, determine whether the number of training times reaches the preset upper limit of training times, if not, it is in the model training stage.

[0131] In step S7, when the model is in the training stage, it is necessary to calculate the loss function and optimize the parameters of the model. The loss function of this model is composed of image similarity loss and deformation field smoothness loss constitute.

[0132] Among them, the image similarity loss , is the main optimization goal of the model, and its purpose is to make the images after model registration as similar as possible. Commonly used image similarity losses are mean square error loss (MSE) and normalized cross correlation loss (NCC). The calculation formula of mean square error loss is as follows:

[0133] (06)

[0134] in Represents the depth, height and width of the image respectively, Represents a fixed image In Location The pixel value at Represents the registered image In Location The pixel value at .

[0135] The calculation formula of normalized cross-correlation loss is as follows:

[0136] (07)

[0137] in:

[0138] (08)

[0139] (09)

[0140] (010)

[0141] (011)

[0142] The above , Represents fixed images , registered image after transformation The sample mean of , Then they represent their sample standard deviations respectively. The two loss functions are respectively applicable to different types of registered images. In the case of the present invention, the normalized cross-correlation loss is used as the image similarity loss for brain MRI registration.

[0143] Furthermore, the purpose of deformation field smoothness loss is to prevent the model from over-distorting the deformation field to fit the image and enhance the robustness of the model. The calculation formula is as follows:

[0144] (012)

[0145] in Deformation Field In Location The gradient at represents the L2 norm.

[0146] For traditional model optimization methods, after defining the image similarity loss and deformation field smoothness loss metrics, it is natural to use fixed images With the registered image Calculate the two loss terms separately and add them up to get the total loss of the model :

[0147] (013)

[0148] in is the regularization coefficient. The loss function can be used to optimize the model parameters. However, it is noted that both the feature extraction network and the prediction network have the characteristics of clear structural hierarchy and one-to-one correspondence between input and output. Therefore, based on the above characteristics, the present invention modifies the above formula. Using deep supervision techniques, the loss of deformation fields at all levels is calculated at the same time, and the model is optimized in parallel to accelerate model convergence and improve model training efficiency.

[0149] Therefore, step S7 specifically includes:

[0150] S71, according to the k-level initial deformation field of the current image processing level and the initial deformation field of the next image processing level k+1 adjacent to the current level Calculate k-level intermediate deformation fields at each image processing level :

[0151] (12)

[0152] (13)

[0153] Among them, ○ represents the deformation field transformation applied to the image, represents an upsampler;

[0154] S72, according to the k-level intermediate deformation field For k-level floating images Apply the transformation to obtain a k-level floating image To k level fixed image Transformation image , to obtain k-level image pairs to be registered ( , ) ;

[0155] S73, based on each k-level intermediate registration result Calculate image similarity loss at each image processing level ; Based on the intermediate deformation fields at each level k Compute deformation field smoothness loss at each image processing level .

[0156] (014)

[0157] (015)

[0158] Among them, the image similarity loss is calculated and deformation field smoothness loss The calculation formula of has been described in the above embodiment and will not be repeated here.

[0159] Furthermore, step S8 specifically includes:

[0160] S81. Obtaining image similarity loss and deformation field smoothness loss The regularization coefficient between , according to the regularization coefficient Similarity loss of k-level images at the same image processing level and k-level deformation field smoothness loss Perform weighted calculation to obtain the k-level model loss of the current image processing level :

[0161] (14)

[0162] S82. Obtain model loss weight coefficients between different image processing levels , according to the model loss weight coefficient k-level model loss for each image processing layer Perform weighted calculation to obtain model loss :

[0163] (15)

[0164] Among them, the model loss weight coefficient satisfy .

[0165] It should be noted that, in the embodiment of the present invention, before executing step S1, it is necessary to initialize the training model and perform relevant processing on the data set, which specifically includes: S01, obtaining a medical image data set, wherein the medical image data set contains multiple medical image pairs to be registered; S02, determining model parameters and training hyperparameters according to the image type of the medical image pairs to be registered; S03, performing image preprocessing on each medical image pair in the medical image data set to obtain preprocessed medical image pairs; S04, dividing the data set for each preprocessed medical image pair to obtain a training set and a test set, wherein the training set is used in the model training stage, and the test set is used in the model testing stage.

[0166] In the embodiment of the present invention, for different registration image types (CT, MRI, etc.), the parameters of the model and the training hyperparameters are initialized, wherein the model parameters include the feature extraction network model parameters. and deformation field prediction network model parameters , training hyperparameters include the image similarity loss metric , deformation field smoothness loss metric , regularization coefficient , training termination conditions (number of iterations or total loss judgment conditions), etc.

[0167] Furthermore, the image preprocessing in step S03 includes special preprocessing for task characteristics and general preprocessing under general circumstances. Due to the complexity of the human body tissue structure, special preprocessing is required for different parts and types of registration images according to various diagnosis and treatment needs of doctors. In a specific embodiment of the present invention, for brain magnetic resonance imaging, it is necessary to remove the skull tissue in the image in advance to avoid interference with the registration of brain tissue. General preprocessing includes cropping and normalization of image data.

[0168] Furthermore, the specific embodiment of the present invention performs center cropping on the image, so that the brain tissue is fixed in the center of the image, and the cropping block size is 160*192*160. Then the image is normalized. Common normalization methods include min-max normalization and Z-score normalization. The min-max normalization formula is:

[0169] (016)

[0170] in is the original pixel value of the image, is the normalized pixel value, is the minimum value of the sample data, is the maximum value of the sample data. After normalization, the data value range is from [0,255] Reduced to the same proportion [0,1] Data normalization can speed up model convergence and improve training stability.

[0171] The Z-score normalization formula is:

[0172] (017)

[0173] in is the sample mean, is the sample standard deviation. The data normalized by Z-score will conform to the standard normal distribution. The two normalization methods are respectively applicable to different types of registered images. In the specific implementation case of the present invention, the min-max normalization method is used to preprocess the data.

[0174] Furthermore, after preprocessing the images in the image data set, the embodiment of the present invention divides the image data set. The original sample set is divided into a training set and a test set, wherein the training set is used in the training phase and the test set is used in the testing phase. For each pair of images to be registered in the set, one is randomly selected as a fixed image and the other is selected as a floating image. After the image data set is divided, the model can be trained.

[0175] For the method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0176] Embodiment 2

[0177] Figure 4 The schematic diagram of the structure of a medical image registration device based on an improved U-Net network provided by an embodiment of the present invention is shown schematically. Figure 4 A medical image registration device based on an improved U-Net network according to an embodiment of the present invention specifically includes an acquisition module 301, an image downsampling module 302, a feature extraction module 303, a deformation field prediction module 304 and an image registration module 305, wherein:

[0178] The acquisition module 301 is used to acquire the medical image pair to be registered ( , ) and floating images ;

[0179] The image downsampling module 302 performs downsampling of the fixed image and the floating image Perform iterative downsampling to obtain a fixed side source image group and side source floating image group ,in, is a k-level fixed image, which means a fixed image after k-1 iterations of downsampling. is a k-level floating image, which means a floating image after k-1 iterations of downsampling. k is the image processing level. The same image processing level is used to process image data of the same image size.

[0180] The feature extraction module 303 is used to extract k-level fixed images and k-level floating images Input the input end of the same image processing layer of the preset feature extraction network model, and calculate the feature extraction network model with each k-level fixed image One-to-one correspondence between k-level fixed image feature data and each k-level floating image One-to-one correspondence k-level floating image feature data , to obtain a fixed image feature data set and floating image feature data set ;

[0181] The deformation field prediction module 304 is used to convert the k-level fixed image feature data and k-level floating image feature data Input the input end of the same image processing level of the preset deformation field prediction network model, and calculate the initial deformation field sequence corresponding to each image processing level through the deformation field prediction network model. , and for each k-level initial deformation field Transform and upsample sequentially to obtain the precisely aligned deformation field ;

[0182] The image registration module 305 is used to precisely register the deformation field For the floating image Apply the transformation to obtain a floating image To fixed image Transformation image , to obtain the image pair to be registered ( , ) .

[0183] Furthermore, the medical image registration device based on the improved U-Net network of the embodiment of the present invention further includes:

[0184] A judgment module is used to judge whether the current method process is in the model training stage;

[0185] The calculation module is used to calculate the k-level image similarity loss of each image processing level if it is in the model training stage. and k-level deformation field smoothness loss ;

[0186] Weighted module for k-level image similarity loss at the same image processing level and k-level deformation field smoothness loss Perform weighted calculation to obtain the k-level model loss of the processing level of the current image , the k-level model loss for each image processing level Perform weighted calculation to obtain model loss ;

[0187] Optimization module for model-based loss The preset optimizer model is used to optimize the model parameters of the feature extraction network model and / or the deformation field prediction network model, and the model parameters are returned to the acquisition module 301 .

[0188] Furthermore, the feature extraction module 303 specifically includes:

[0189] The encoding submodule is used to convert k-level fixed images and k-level floating images Input the k-level encoding layer of the feature extraction network model encoding path to obtain fixed image feature encoding data sets at different image processing levels and floating image feature encoding data set :

[0190] (1)

[0191] (2)

[0192] (3)

[0193] (4)

[0194] in, Represents the encoding path of the feature extraction network model Level coding layer, represents a downsampler;

[0195] The decoding submodule is used to input the coding layer data of the same image processing level into the decoding layer through a skip layer connection to obtain a decoded fixed image feature data set. and floating image feature data set :

[0196] (5)

[0197] (6)

[0198] (7)

[0199] (8)

[0200] in, Represents the decoding path of the feature extraction network model The decoding layer, represents the upsampler, Represents one or more of the convolution, rectification, and activation operations in the feature extraction network model.

[0201] Furthermore, the deformation field prediction module 304 specifically includes:

[0202] The initial deformation field prediction submodule is used to convert k-level fixed image feature data and k-level floating image feature data Input the k-level spatial transformation layer of the deformation field prediction network model to obtain the initial deformation field sequence :

[0203] (9)

[0204] (10)

[0205] Among them, ○ represents the deformation field transformation applied to the image, express One or more of the convolution, rectification, and activation operations in the spatial transformation layer, represents an upsampler;

[0206] Fine-tuning submodule, used to adjust the initial deformation field of each k level Perform deformation field transformation upsampling iterations in sequence to obtain the precisely aligned deformation field :

[0207] (11)

[0208] Furthermore, the calculation module specifically includes:

[0209] The intermediate deformation field calculation submodule is used to calculate the initial deformation field of level k according to the current image processing level. and the initial deformation field of the next image processing level k+1 adjacent to the current level Calculate k-level intermediate deformation fields at each image processing level :

[0210] (12)

[0211] (13)

[0212] Among them, ○ represents the deformation field transformation applied to the image, represents an upsampler;

[0213] The intermediate registration submodule is used to adjust the k-level intermediate deformation field For k-level floating images Apply the transformation to obtain a k-level floating image To k level fixed image Transformation image , to obtain k-level image pairs to be registered ( , ) ;

[0214] The intermediate loss calculation submodule is used to calculate the intermediate registration results based on each k level Calculate image similarity loss at each image processing level ; Based on the intermediate deformation fields at each level k Compute deformation field smoothness loss at each image processing level .

[0215] Furthermore, the weighting module specifically includes:

[0216] The first weighted submodule is used to obtain the image similarity loss and deformation field smoothness loss The regularization coefficient between , according to the regularization coefficient Similarity loss of k-level images at the same image processing level and k-level deformation field smoothness loss Perform weighted calculation to obtain the k-level model loss of the current image processing level :

[0217] (14)

[0218] The second weighted submodule is used to obtain the model loss weight coefficients between different image processing levels , according to the model loss weight coefficient k-level model loss for each image processing layer Perform weighted calculation to obtain model loss :

[0219] (15)

[0220] Among them, the model loss weight coefficient satisfy .

[0221] Furthermore, the medical image registration device based on the improved U-Net network of the embodiment of the present invention preferably includes:

[0222] A data set acquisition module, used to acquire a medical image data set, wherein the medical image data set includes a plurality of medical image pairs to be registered;

[0223] An initialization module, used for determining model parameters and training hyperparameters according to the image type of the medical image pair to be registered;

[0224] An image preprocessing module, used to perform image preprocessing on each medical image pair in the medical image data set to obtain a preprocessed medical image pair;

[0225] The data set division module is used to divide the data sets of each preprocessed medical image pair to obtain a training set and a test set. The training set is used in the model training stage, and the test set is used in the model testing stage.

[0226] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0227] The present application provides a method and device for medical image registration based on an improved U-Net network. In order to alleviate the problem of data loss caused by continuous downsampling of the original U-Net network model, the present invention innovatively introduces a side source information channel to supplement the original data stream, enhances the model's ability to understand remote spatial relationships, and enhances the accuracy of image registration. At the same time, features can be extracted from images without supervision, with a faster speed and good versatility, and have a certain resistance to noise, which can avoid the model's heavy reliance on data labels. The embodiment of the present invention introduces multi-scale image registration technology, hierarchically designs a registration network for registration requirements under different scale deformation and displacement scenarios, learns the deformation and displacement information of corresponding granularity layer by layer, outputs a multi-scale deformation field, and integrates and utilizes the prediction information contained in the deformation field to fine-tune the output of the final precise registration deformation field result. This method enables the model to have both the global perception ability of large displacement and large deformation and the ability to capture small deformations of anatomical tissue structures, thereby improving the accuracy of image registration.

[0228] Embodiment 3

[0229] An embodiment of the present invention provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps in the above-mentioned medical image registration method based on the improved U-Net network are implemented, for example Figure 1 Alternatively, when the processor executes the computer program, the functions of each module / unit in the above-mentioned medical image registration device based on the improved U-Net network are realized, for example Figure 4 The illustrated module includes an acquisition module 301 , an image downsampling module 302 , a feature extraction module 303 , a deformation field prediction module 304 and an image registration module 305 .

[0230] In addition, those skilled in the art will appreciate that, although some embodiments herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, any one of the claimed embodiments may be used in any combination.

[0231] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A medical image registration method based on an improved U-Net network, It is characterized in that The method comprises: S1. Obtain the medical image pair to be registered ( , ) and floating images ; S2, respectively, the fixed image and the floating image Perform iterative downsampling to obtain a fixed side source image group and side source floating image group ,in, is a k-level fixed image, which means a fixed image after k-1 iterations of downsampling. is a k-level floating image, which means a floating image after k-1 iterations of downsampling. k is the image processing level. The same image processing level is used to process image data of the same image size. S3, respectively fix the k-level images and k-level floating images Input the input end of the same image processing layer of the preset feature extraction network model, and calculate the feature extraction network model with each k-level fixed image One-to-one correspondence between k-level fixed image feature data and each k-level floating image One-to-one correspondence k-level floating image feature data , to obtain a fixed image feature data set and floating image feature data set ; S4: k-level fixed image feature data and k-level floating image feature data Input the input end of the same image processing level of the preset deformation field prediction network model, and calculate the initial deformation field sequence corresponding to each image processing level through the deformation field prediction network model. , and for each k-level initial deformation field Transform and upsample sequentially to obtain the precisely aligned deformation field ; S5, according to the precise alignment deformation field For the floating image Apply the transformation to obtain a floating image To fixed image Transformation image , to obtain the image pair to be registered ( , ) ; S6, determining whether the current method process is in the model training stage; S7. If in the model training stage, calculate the k-level image similarity loss of each image processing level and k-level deformation field smoothness loss ; S8, k-level image similarity loss for the same image processing level and k-level deformation field smoothness loss Perform weighted calculation to obtain the k-level model loss of the processing level of the current image , the k-level model loss for each image processing level Perform weighted calculation to obtain model loss ; S9. Model-based loss The model parameters of the feature extraction network model and / or the deformation field prediction network model are optimized using a preset optimizer model, and the process returns to step S1; wherein, The feature extraction network model includes an encoding path and a decoding path, wherein the encoding path includes a plurality of sequentially connected encoding layers with increasing image processing levels, and the decoding path includes a plurality of sequentially connected decoding layers with decreasing image processing levels, and the encoding layer and the decoding layer of the same image processing level are connected via a skip layer to input the encoding layer data to the decoding layer, and step S3 specifically includes: S31, fix the k-level image and k-level floating images Input the k-level encoding layer of the feature extraction network model encoding path to obtain fixed image feature encoding data sets at different image processing levels and floating image feature encoding data set : (1) (2) (3) (4) in, Represents the encoding path of the feature extraction network model Level coding layer, represents a downsampler; S32, input the coding layer data of the same image processing level into the decoding layer through a skip layer connection to obtain a decoded fixed image feature data set and floating image feature data set : (5) (6) (7) (8) in, Represents the decoding path of the feature extraction network model The decoding layer, represents the upsampler, Represents one or more of the convolution, rectification, and activation operations in the feature extraction network model; The deformation field prediction network model includes a plurality of sequentially connected spatial transformation layers with decreasing image processing levels, and step S4 specifically includes: S41, k-level fixed image feature data and k-level floating image feature data Input the k-level spatial transformation layer of the deformation field prediction network model to obtain the initial deformation field sequence : (9) (10) Among them, ○ represents the deformation field transformation applied to the image, express One or more of the convolution, rectification, and activation operations in the spatial transformation layer, represents an upsampler; S42, for each k-level initial deformation field Perform deformation field transformation upsampling iterations in sequence to obtain the precisely aligned deformation field : (11); Step S7 specifically includes: S71, according to the k-level initial deformation field of the current image processing level and the initial deformation field of the next image processing level k+1 adjacent to the current level Calculate k-level intermediate deformation fields at each image processing level : (12) (13) Among them, ○ represents the deformation field transformation applied to the image, represents an upsampler; S72, according to the k-level intermediate deformation field For k-level floating images Apply the transformation to obtain a k-level floating image To k level fixed image Transformation image , to obtain k-level image pairs to be registered ( , ) ; S73, based on each k-level intermediate registration result Calculate image similarity loss at each image processing level ; Based on the intermediate deformation fields at each level k Compute deformation field smoothness loss at each image processing level ; Step S8 specifically includes: S81. Obtaining image similarity loss and deformation field smoothness loss The regularization coefficient between , according to the regularization coefficient Similarity loss of k-level images at the same image processing level and k-level deformation field smoothness loss Perform weighted calculation to obtain the k-level model loss of the current image processing level : (14) S82. Obtain model loss weight coefficients between different image processing levels , according to the model loss weight coefficient k-level model loss for each image processing layer Perform weighted calculation to obtain model loss : (15) Among them, the model loss weight coefficient satisfy .

2. The method according to claim 1, It is characterized in that Before executing step S1, the method further includes: S01. Acquire a medical image dataset, wherein the medical image dataset contains a plurality of medical image pairs to be registered; S02, determining model parameters and training hyperparameters according to the image type of the medical image pair to be registered; S03, performing image preprocessing on each medical image pair in the medical image dataset to obtain a preprocessed medical image pair; S04. Divide the data sets of each preprocessed medical image pair to obtain a training set and a test set. The training set is used in the model training phase, and the test set is used in the model testing phase.

3. The method according to claim 1, It is characterized in that The determination of whether the current method process is in the model training stage includes: Determine model loss Is it greater than the preset loss threshold? If so, it is in the model training stage; or, Determine whether the number of training times has reached the preset upper limit of training times. If not, it is in the model training stage.

4. A medical image registration device based on an improved U-Net network, It is characterized in that The device comprises: An acquisition module is used to acquire the medical image pair to be registered ( , ) and floating images ; An image downsampling module is used to downsample the fixed image and the floating image Perform step-by-step downsampling to obtain a fixed side source image group and side source floating image group ,in, is a k-level fixed image, which means a fixed image after k-1 downsampling. is a k-level floating image, which means a floating image after k-1 downsampling. k is the image processing level. The same image processing level is used to process image data of the same image size. The feature extraction module is used to extract k-level fixed images and k-level floating images Input the input end of the same image processing layer of the preset feature extraction network model, and calculate the feature extraction network model with each k-level fixed image One-to-one correspondence between k-level fixed image feature data and each k-level floating image One-to-one correspondence k-level floating image feature data , to obtain a fixed image feature data set and floating image feature data set ; The deformation field prediction module is used to transform k-level fixed image feature data and k-level floating image feature data Input the input end of the same image processing level of the preset deformation field prediction network model, and calculate the initial deformation field sequence corresponding to each image processing level through the deformation field prediction network model. , and for each k-level initial deformation field Transform and upsample sequentially to obtain the precisely aligned deformation field ; An image registration module is used to precisely register the deformation field For the floating image Apply the transformation to obtain a floating image To fixed image Transformation image , to obtain the image pair to be registered ( , ) ; A judgment module is used to judge whether the current method process is in the model training stage; The calculation module is used to calculate the k-level image similarity loss of each image processing level if it is in the model training stage. and k-level deformation field smoothness loss ; Weighted module for k-level image similarity loss at the same image processing level and k-level deformation field smoothness loss Perform weighted calculation to obtain the k-level model loss of the processing level of the current image , the k-level model loss for each image processing level Perform weighted calculation to obtain model loss ; Optimization module for model-based loss The model parameters of the feature extraction network model and / or the deformation field prediction network model are optimized by using a preset optimizer model, and the model parameters are returned to the acquisition module; wherein, The feature extraction network model includes a coding path and a decoding path, wherein the coding path includes a plurality of sequentially connected coding layers with increasing image processing levels, and the decoding path includes a plurality of sequentially connected decoding layers with decreasing image processing levels, and the coding layer and the decoding layer of the same image processing level are connected via a skip layer to input the coding layer data to the decoding layer, and the feature extraction module specifically includes: The encoding submodule is used to convert k-level fixed images and k-level floating images Input the k-level encoding layer of the feature extraction network model encoding path to obtain fixed image feature encoding data sets at different image processing levels and floating image feature encoding data set : (1) (2) (3) (4) in, Represents the encoding path of the feature extraction network model Level coding layer, represents a downsampler; The decoding submodule is used to input the coding layer data of the same image processing level into the decoding layer through a skip layer connection to obtain a decoded fixed image feature data set. and floating image feature data set : (5) (6) (7) (8) in, Represents the decoding path of the feature extraction network model The decoding layer, represents the upsampler, Represents one or more of the convolution, rectification, and activation operations in the feature extraction network model; The deformation field prediction network model includes a plurality of sequentially connected spatial transformation layers with successively decreasing image processing levels, and the deformation field prediction module specifically includes: The initial deformation field prediction submodule is used to convert k-level fixed image feature data and k-level floating image feature data Input the k-level spatial transformation layer of the deformation field prediction network model to obtain the initial deformation field sequence : (9) (10) Among them, ○ represents the deformation field transformation applied to the image, express One or more of the convolution, rectification, and activation operations in the spatial transformation layer, represents an upsampler; Fine-tuning submodule, used to adjust the initial deformation field of each k level Perform deformation field transformation upsampling iterations in sequence to obtain the precisely aligned deformation field : (11); The calculation module specifically includes: The intermediate deformation field calculation submodule is used to calculate the initial deformation field of level k according to the current image processing level. and the initial deformation field of the next image processing level k+1 adjacent to the current level Calculate k-level intermediate deformation fields at each image processing level : (12) (13) Among them, ○ represents the deformation field transformation applied to the image, represents an upsampler; The intermediate registration submodule is used to adjust the k-level intermediate deformation field For k-level floating images Apply the transformation to obtain a k-level floating image To k level fixed image Transformation image , to obtain k-level image pairs to be registered ( , ) ; The intermediate loss calculation submodule is used to calculate the intermediate registration results based on each k level Calculate image similarity loss at each image processing level ; Based on the intermediate deformation fields at each level k Compute deformation field smoothness loss at each image processing level ; The weighting module specifically includes: The first weighted submodule is used to obtain the image similarity loss and deformation field smoothness loss The regularization coefficient between , according to the regularization coefficient Similarity loss of k-level images at the same image processing level and k-level deformation field smoothness loss Perform weighted calculation to obtain the k-level model loss of the current image processing level : (14) The second weighted submodule is used to obtain the model loss weight coefficients between different image processing levels , according to the model loss weight coefficient k-level model loss for each image processing layer Perform weighted calculation to obtain model loss : (15) Among them, the model loss weight coefficient satisfy .

5. A computer device, It is characterized in that The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor; when the computer program is executed by the processor, the medical image registration method based on the improved U-Net network as described in any one of claims 1 to 3 is implemented.