Multi-modal medical image registration method and device, equipment and medium

By calculating the boundary point set deviation of multi-modal medical images and iteratively optimizing the transformation data set, the mismatch problem in multi-modal medical image registration is solved, and more accurate image integration and lesion location are achieved.

CN118644533AActive Publication Date: 2024-09-13SHANGHAI DROIDSURG MEDICAL CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410810580.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-13
Estimated Expiration
2044-06-21

AI Technical Summary

Technical Problem

In dynamic processes or multi-cycle imaging scenarios, multi-modal medical image registration has mismatch problems, resulting in inaccurate image integration.

Method used

By obtaining the boundary point set of the first and second modal images, calculating the target point deviation, iteratively optimizing the transformation data set, and using the cost function and kernel function interpolation method to perform image registration and reduce image mismatch.

Benefits of technology

It achieves preliminary alignment and position correction of images, reduces the overall degree of image mismatch, and provides a more comprehensive view of the lesion or anatomical structure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118644533A
    Figure CN118644533A
Patent Text Reader

Abstract

The invention relates to the field of medical image processing, and provides a multi-modal medical image registration method and device, equipment and a medium, and the method comprises the steps: S3, calculating the target point deviation of a first boundary point set and a second boundary point set; moving the target points of the second boundary point set to the target points of the first boundary point set according to the target point deviation to obtain a third boundary point set; s4, defining a cost function, and iteratively calculating a transformation data set from the third boundary point set to the first boundary point set so as to minimize the cost function; s5, performing transformation in the S3 on all pixel points on the second target image to obtain a transformation point set; selecting boundary points in the transformation point set, performing transformation of the transformation data set in S4, and performing interpolation transformation based on boundary point transformation on non-boundary points in the non-boundary point set to obtain a processing result; and mapping the processing result to the multi-modal fusion image to obtain a third target image after registration is completed. The method is used for reducing the mismatching degree of the images during multi-modal image registration.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] Individual imaging modalities may have limitations, and lesions may not be obvious in one imaging modality but may be clearly visible in another. Computed tomography (CT) is good at showing anatomical details and bone structure, magnetic resonance imaging (MRI) can reveal soft tissue and functional information, and ultrasonography is good at showing muscles, organs, fluid, and cystic structures.

[0003] Through multimodal registration, image information from different sources can be integrated into the same spatial coordinate system to form a more comprehensive view of lesions or anatomical structures. However, living tissues may have complex deformations under physiological movement or pathological conditions. In dynamic processes or large deformation scenarios of multi-cycle imaging, multimodal image registration may have mismatches. Therefore, a multimodal medical image registration method, device, equipment and medium are urgently needed to improve the above problems. Summary of the invention

[0004] The object of the present invention is to provide a multimodal medical image registration method, apparatus, device and medium, which is used to reduce the degree of image mismatch during multimodal image registration.

[0005] In a first aspect, the present invention provides a multimodal medical image registration method, comprising: S1, acquiring a first modality image and extracting a first target image; constructing a first boundary point set based on the coordinates of target boundary pixel points in the first target image; S2, acquiring a second modality image and extracting a second target image; constructing a second boundary point set and a non-boundary point set based on the coordinates of target boundary pixel points in the second target image; S3, calculating the target point deviation between the first boundary point set and the second boundary point set; moving the target point of the second boundary point set to the target point of the first boundary point set according to the target point deviation to obtain a third boundary point set; S4, defining a cost function, iteratively calculating a transformation data set from the third boundary point set to the first boundary point set to minimize the cost function; S5, performing the transformation in S3 on all pixel points on the second target image to obtain a transformation point set; selecting boundary points in the transformation point set and then subjecting them to the transformation of the transformation data set in S4, performing an interpolation transformation based on the boundary point transformation on the non-boundary points in the non-boundary point set to obtain a processing result; mapping the processing result to a multimodal fusion image to obtain a third target image after registration.

[0006] Optionally, calculating the target point deviation between the first boundary point set and the third boundary point set includes: calculating the coordinates of the first target point based on the first boundary point set; calculating the coordinates of the second target point based on the second boundary point set; calculating the coordinate deviation of the target point based on the first target point coordinates and the second target point coordinates; setting the first target point coordinates to the mean coordinates of the first boundary point set, the centroid coordinates of the first boundary point set, or the feature point coordinates of the first boundary point set; setting the second target point coordinates to the mean coordinates of the second boundary point set, the centroid coordinates of the second boundary point set, or the feature point coordinates of the second boundary point set.

[0007] Optionally, S4 includes: defining a cost function C, setting the number of coordinates in the first boundary point set to m, and the number of coordinates in the third boundary point set to n, where m and n are both positive integers; setting the weight of the first boundary point set and the weight of the third boundary point set, normalizing the first boundary point set to obtain a first coordinate set (y 1 …y m ), normalize the coordinates of the third boundary point set to obtain the second coordinate set (x 1 …x n ).

[0008] Optionally, the cost function C satisfies:

[0009]

[0010] Among them, y j is the jth coordinate in the first coordinate set, x i is the i-th coordinate in the second coordinate set, y j and x i All belong to the three-dimensional coordinate space R 3 , is an element in the transformation data set, representing the vector transformed from the i-th coordinate to the j-th coordinate, and σ is the coordinate space R 3 The average sampling distance in , τ takes the maximum possible offset in the given coordinate space; KL represents the Kullback-Leibler divergence, which satisfies:

[0011]

[0012] Where a and b are discrete probability distributions, and i is the ordinal number of each element in the distribution.

[0013] Optionally, S5 includes: defining a vector field v i and the confidence weight w i , to obtain the weighted vector field of the first dimension of the third boundary point set ((w 1 ,v 1 )…(wn ,v n )),satisfy:

[0014]

[0015]

[0016] The kernel function interpolation method is used to define the spline free deformation, and the kernel function k satisfies:

[0017] k(x,y)>0,(x,y)∈R 3 ×R 3

[0018] Wherein, y is the coordinate of a point in the first coordinate set, and x is the coordinate of a point in the second coordinate set; the third boundary point set is transformed into the first boundary point set based on the spline free deformation model definition, so that the second coordinate set is converted into the coordinate system of the first coordinate set, satisfying:

[0019]

[0020] Where g is the normalized point coordinate in the first target domain coordinates.

[0021] Optionally, the first modality image is set to an ultrasound reconstruction image containing a target object; the ultrasound reconstruction image is generated by three-dimensional reconstruction of an ultrasound scan image; the second modality image is set to a nuclear magnetic resonance image containing the target object; the multimodal fusion image is set to a nuclear magnetic resonance image containing the target object that is consistent with the ultrasound coordinates; when extracting the first target image, a deep learning-based ultrasound target segmentation network is used to eliminate non-target areas on the ultrasound reconstruction image; the ultrasound target segmentation network includes an encoder and a decoder; the encoder and the decoder are both provided with a number of converter modules.

[0022] Optionally, each of the converter modules includes a first feature layer and a second feature layer; the first feature layer and the second feature layer both include a convolution operator, a normalization operator and an activation function; the first feature layer includes a global attention layer, and the second feature layer includes a local attention layer; at least one of the first feature layer and the second feature layer includes a cross-layer connection for inter-layer fusion; the global attention layer is used to generate a global query matrix, a key matrix and a value matrix for the size of all feature layers; the local attention layer is used to limit the size of the window and slide the window to generate a local query matrix, a key matrix and a value matrix.

[0023] In a second aspect, the present invention provides a multimodal medical image registration device, used for the method described in any one of the first aspects, comprising: an acquisition unit, a processing unit and a storage unit; the acquisition unit and the storage unit are both electrically connected to the processing unit; the acquisition unit is used to acquire the first modality image and the second modality image; the processing unit is used to execute the method described in any one of the first aspects; the storage unit is used to store the third target image.

[0024] In a third aspect, the present invention provides an electronic device, comprising a memory and a processor, wherein the memory stores a program for running on the processor, and when the program is executed by the processor, the electronic device implements any one of the methods described in the first aspect.

[0025] In a fourth aspect, the present invention provides a readable storage medium, wherein the readable storage medium stores a program, and when the program is executed, the method described in any one of the first aspects is implemented.

[0026] The beneficial effects of the present invention are as follows: by calculating the target point deviation between the first boundary point set and the second boundary point set, the image alignment based on the target point is realized to preliminarily correct the position of the second modality image. By establishing a cost function and then iteratively optimizing the transformed data set, the third boundary point set is transformed to be as close to the first boundary point set as possible, thereby reducing the overall mismatch of the image. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 A schematic diagram of a process flow of a multimodal medical image registration method provided by the present invention;

[0028] Figure 2 A schematic diagram of a first target image provided by the present invention;

[0029] Figure 3 A schematic diagram of a second target image provided by the present invention;

[0030] Figure 4 A schematic diagram of the structure of an ultrasonic target segmentation network provided by the present invention;

[0031] Figure 5 A schematic structural diagram of a converter module provided by the present invention;

[0032] Figure 6 A schematic diagram of the pixel points in a first boundary point set provided by the present invention;

[0033] Figure 7 A schematic diagram of the pixel points in the second boundary point set provided by the present invention;

[0034] Figure 8 A schematic diagram of pixel points formed by merging a second coordinate set and a first coordinate set provided by the present invention;

[0035] Fig. 9 A schematic diagram of a third target image provided by the present invention;

[0036] Fig.10 A schematic diagram of the structure of a multimodal medical image registration device provided by the present invention;

[0037] Fig.11 The present invention provides a schematic structural diagram of an electronic device. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. Unless otherwise defined, the technical terms or scientific terms used herein should be understood by people with general skills in the field to which the present invention belongs. "Including" and similar words used in this article mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects.

[0039] In view of the problems existing in the existing technology, such as Figure 1 As shown, the first embodiment of the present invention provides a multimodal medical image registration method, including: S1, acquiring a first modality image and extracting a first target image; constructing a first boundary point set based on the coordinates of the target boundary pixel points in the first target image; S2, acquiring a second modality image and extracting a second target image; constructing a second boundary point set and a non-boundary point set based on the coordinates of the target boundary pixel points in the second target image; S3, calculating the target point deviation between the first boundary point set and the second boundary point set; moving the target point of the second boundary point set to the target point of the first boundary point set according to the target point deviation to obtain a third boundary point set; S4, defining a cost function, iteratively calculating a transformation data set from the third boundary point set to the first boundary point set to minimize the cost function; S5, performing the transformation in S3 on all pixel points on the second target image to obtain a transformation point set; selecting the boundary points in the transformation point set and then transforming the transformation data set in S4, performing an interpolation transformation based on the boundary point transformation on the non-boundary points in the non-boundary point set to obtain a processing result; mapping the processing result to the multimodal fusion image to obtain a third target image after registration.

[0040] Specifically, the target object is set to be the prostate; the first target image is as follows Figure 2 Shown is an ultrasound reconstruction image after excluding the non-prostate area.

[0041] In some other embodiments, the target object may be an abdominal organ, such as the liver, gallbladder, spleen or kidney; the first target image is an ultrasound reconstruction image containing only the abdominal organ; the second target image is a nuclear magnetic resonance image containing only the abdominal organ; and the third target image is used to provide a navigation target for a puncture biopsy or focal ablation surgery on the abdominal organ.

[0042] In some other embodiments, S3 further includes normalizing the first boundary point set and the third boundary point set. Correspondingly, S5 further includes performing a thin plate spline (tps) interpolation transformation based on boundary point transformation on the non-boundary points in the non-boundary point set to obtain a normalized point set. Denormalizing the normalized point set to obtain the processing result.

[0043] In some embodiments, the first modality image is set to be an ultrasound reconstruction image containing a target object; the ultrasound reconstruction image is generated by three-dimensional reconstruction of an ultrasound scan image. The second modality image is set to be a nuclear magnetic resonance image containing the target object. The multimodal fusion image is set to be a nuclear magnetic resonance image containing the target object consistent with the ultrasound coordinates. When extracting the first target image, an ultrasound target segmentation network based on deep learning is used to eliminate non-target areas on the ultrasound reconstruction image; the ultrasound target segmentation network includes an encoder and a decoder; the encoder and the decoder are both provided with a number of converter modules.

[0044] After obtaining the nuclear magnetic resonance image containing the target object, the non-target area on the nuclear magnetic resonance image is eliminated to obtain a second target image such as Figure 3 As shown, it is a nuclear magnetic image with non-prostate areas removed. A nuclear magnetic target segmentation network based on deep learning can be used, or traditional image processing or manual segmentation can be used to perform target segmentation to obtain a nuclear magnetic segmentation binary image. In order to improve the accuracy of nuclear magnetic target segmentation, the nuclear magnetic image is firstly interpolated nonlinearly to obtain a smooth interpolation image. The nuclear magnetic image segmentation model is obtained by training a nuclear magnetic image segmentation network based on deep learning. The network structure is similar to the ultrasound segmentation network structure. The non-target area on the nuclear magnetic interpolation image is removed according to the nuclear magnetic binary image.

[0045] like Figure 4As shown, specifically, the encoder 7 and the decoder 8 constitute an ultrasonic target segmentation network of a three-dimensional U-Net structure. The encoder 7 includes an input layer 1, an embedding layer 2, four converter modules 3 arranged at staggered intervals, and three fusion layers 4; the decoder 8 includes an output layer 6, four converter modules 3 arranged at staggered intervals, and four expansion layers 5. According to the direction of traversing the above segmentation network from the input layer 1 to the output layer 6, a jump connection 9 is provided between the embedding layer 2 and the last expansion layer 5; a jump connection 9 is provided between the last fusion layer 4 and the first expansion layer 5.

[0046] It is worth noting that the segmentation network includes M fusion layers 4, M+1 expansion layers 5 and 2M+2 converter modules 3, where M is a positive integer. A jump connection 9 is provided between the Lth fusion layer 4 and the M-L+1th layer, where L is a positive integer in [1,M].

[0047] More specifically, each of the converter modules 3 includes a first feature layer and a second feature layer; the first feature layer and the second feature layer both include a convolution operator 31, a normalization operator 32 and an activation function 33; the first feature layer includes a global attention layer 34, and the second feature layer includes a local attention layer 35; at least one of the first feature layer and the second feature layer includes a cross-layer connection for inter-layer fusion; the global attention layer 34 is used to generate a global query matrix, a key matrix and a value matrix for the size of all feature layers; the local attention layer 35 is used to limit the size of the window and slide the window to generate a local query matrix, a key matrix and a value matrix.

[0048] In another example, the encoder input layer is first connected to the embedding layer, which will first divide the image into several image blocks (patches), and then perform linear mapping to convert them into high-dimensional vectors (tokens) and send them to the converter module. A fusion layer is provided between adjacent converter modules in the encoder; an expansion layer is provided between adjacent converter modules in the decoder, where the expansion layer first performs channel amplification, and then uses deconvolution to perform length and width upsampling and channel reduction; a jump connection is provided between the encoder and the decoder.

[0049] like Figure 5 As shown, in some embodiments, the converter module 3 includes: a first feature layer and a second feature layer, each of which includes a convolution operator 31, a normalization operator 32 and an activation function 33; the first feature layer includes a global attention layer 34, and the second feature layer includes a local attention layer 35; at least one of the first feature layer and the second feature layer includes a cross-layer connection for inter-layer fusion.

[0050] It is worth noting that the segmentation network is implemented on the basis of the U-Net, which can achieve enhanced extraction of global and local features while retaining its lightweight, and has great advantages in accurate segmentation of the target. The segmentation network can also obtain preset contour information as auxiliary input, and the contour information is used to outline the contours of the starting layer, the ending layer and the middle layer of the prostate to assist in prostate segmentation constraints and verification, which can improve the accuracy of the segmentation network.

[0051] Specifically, a normalization operator 32 and a global attention layer 34 are provided at the input end of the first feature layer; the output end of the global attention layer 34 and the input end of the normalization operator 32 undergo a first inter-layer fusion, and the first inter-layer fusion result passes through an activation function 33 and then undergoes two normalization operators 32 and two convolution operators 31 to obtain a convolution result, and the convolution result and the first inter-layer fusion result undergo a second inter-layer fusion.

[0052] In some other specific embodiments, a normalization operator 32 and a local attention layer 35 are provided at the input end of the second feature layer; the output end of the local attention layer 35 is subjected to a third interlayer fusion with the input end of the normalization operator 32, and the third interlayer fusion result is passed through an activation function 33 and then undergoes two normalization operators 32 and two convolution operators 31 to obtain a convolution result, and the convolution result is subjected to a fourth interlayer fusion with the third interlayer fusion result, and the result of the fourth interlayer fusion is used as the output of the converter module 3.

[0053] The activation function adopts the gelu activation function, which combines the probability of the activation parameter 0 or 1 with the activation value of the neural network, so that the neural network has self-deterministic decision-making and generates feature data with better sparsity, that is, the smaller the activation value of the neural network, the smaller the probability that the activation parameter multiplied by it is 1, which can better highlight the input features, and is implemented using a sparse matrix with most elements being 0. The first feature layer includes a global attention layer, and the second feature layer includes a local attention layer; at least one of the first feature layer and the second feature layer includes a cross-layer connection for inter-layer fusion.

[0054] In some further specific embodiments, before performing the three-dimensional reconstruction, the ultrasonic scanning image is also subjected to image denoising, and the denoising algorithm used includes at least one of a three-dimensional block matching algorithm, a wavelet transform, an algorithm based on principal component analysis and a bilateral filtering algorithm.

[0055] The method of acquiring an ultrasonic scanning image containing a target object traverses each voxel in a three-dimensional imaging space according to the ultrasonic scanning image, finds one or more corresponding pixel values ​​in a two-dimensional ultrasonic scanning image sequence through transformation, and then uses an interpolation method to calculate the corresponding pixel value, and assigns the pixel value to the voxel; the interpolation method may be a distance weighted algorithm, a linear interpolation algorithm or a trajectory tracking algorithm.

[0056] In some embodiments, calculating the target point deviation between the first boundary point set and the third boundary point set includes: calculating the coordinates of the first target point based on the first boundary point set; calculating the coordinates of the second target point based on the second boundary point set; calculating the coordinate deviation of the target point based on the first target point coordinates and the second target point coordinates; the first target point coordinates are set to the mean coordinates of the first boundary point set, the centroid coordinates of the first boundary point set, or the feature point coordinates of the first boundary point set; the second target point coordinates are set to the mean coordinates of the second boundary point set, the centroid coordinates of the second boundary point set, or the feature point coordinates of the second boundary point set.

[0057] In some embodiments, the first boundary map may be obtained by edge extraction based on a binary segmentation mask. Specifically, a boundary tracking method, a contour extraction method, a region growing method or an edge detection method may be used. The coordinates of the generated boundary map are extracted to generate the first boundary point set. The boundary pixel points corresponding to the first boundary point set are composed as follows: Figure 6 Schematic diagram shown.

[0058] In some embodiments, a boundary map of the second target image is obtained in S2, and the coordinates of boundary pixel points are extracted as a second boundary point set according to the boundary map of the second target. The boundary pixel points corresponding to the second boundary point set are composed as follows: Figure 7 The schematic diagram shown. The boundary map of the second target map can be obtained by edge extraction based on the binary segmentation mask. The centroid of the first boundary point set and the second boundary point set is calculated, that is, the mean of the first boundary point set and the second boundary point set is calculated, the deviation between the two is calculated, and the second boundary point set is moved to the first boundary point set according to the deviation to obtain a new second boundary point set.

[0059] In another specific embodiment, when the tissue corresponding to the block is a homogeneous symmetrical geometric body, the mean coordinates coincide with the centroid coordinates. In other specific embodiments, when the tissue corresponding to the block is a non-homogeneous geometric body or an asymmetric geometric body, the mean coordinates are separated from the centroid coordinates. For example, if most of the tumor volume is concentrated on one side of the image, and only a small part protrudes on the other side, the center of gravity of the tumor may be biased toward the side with a larger volume, rather than simply falling on the geometric center of the tumor, i.e., the mean coordinate position. In addition, if there is uneven density inside the tumor, the center of gravity will also be affected by the density distribution and further deviate from the geometric center.

[0060] This embodiment can describe the morphological characteristics and mass distribution characteristics of an object in more detail by distinguishing between mean coordinates and center of gravity coordinates. This is of great significance for medical image analysis, biological structure research, center of mass calculation in physics, etc., and can help researchers or doctors understand the intrinsic properties and structural differences of the target object more accurately. Knowing the mean position and center of gravity position of the lesion can help doctors locate the treatment target more accurately, ensure the accuracy of treatment, and reduce the impact on surrounding healthy tissues.

[0061] In some embodiments, S4 includes: defining a cost function C, setting the number of coordinates in the first boundary point set to m, and the number of coordinates in the third boundary point set to n, where m and n are both positive integers; setting the weight of the first boundary point set and the weight of the third boundary point set, normalizing the first boundary point set to obtain a first coordinate set (y 1 …y m ), normalize the coordinates of the third boundary point set to obtain the second coordinate set (x 1 …x n ).

[0062] In some embodiments, the cost function C satisfies:

[0063]

[0064]

[0065] Among them, y j is the jth coordinate in the first coordinate set, x i is the i-th coordinate in the second coordinate set, y j and x i All belong to the three-dimensional coordinate space R 3 , is an element in the transformation data set, representing the vector transformed from the i-th coordinate to the j-th coordinate, and σ is the coordinate space R 3 The average sampling distance in , τ takes the maximum possible offset in the given coordinate space; KL represents the Kullback-Leibler divergence, which satisfies:

[0066]

[0067] Wherein, a and b are discrete probability distributions, and i is the serial number of each element in the distribution. This embodiment transforms the registration problem into a problem of finding a moving scheme from the second coordinate set to the first coordinate set so as to minimize the cost function C. The minimum optimization problem estimation method is adopted here to solve, and the limited-memory Broyden-Fletche-Goldfarb-Shannon (Limited-memory Broyden-Fletche-Goldfarb-Shanno, L-BFGS-B) optimization method can be adopted. In other embodiments, the unlimited-memory Broyden-Fletche-Goldfarb-Shannon (Broyden-Fletche-Goldfarb-Shannon, L-BFGS-B) optimization method can also be adopted to solve the parameters.

[0068] It is worth noting that, out of consideration for maintaining the continuity and integrity of biological tissues, in the process of image registration, it is hoped that the spatial structure and tissue information of the original image will be maintained without local rupture or unnatural deformation. If the point set is allowed to be arbitrarily split during the movement, the image may be severely distorted and lose its original anatomical meaning, which is unacceptable for medical applications (such as surgical navigation, lesion localization, treatment plan design, etc.).

[0069] Based on the above reasons, the second coordinate set to the first coordinate set is limited to the second coordinate set being inseparable during the movement process, so S5 includes: defining the vector field v i and the confidence weight w i , to obtain the weighted vector field of the first dimension of the third boundary point set ((w 1 ,v 1 )…(w n ,v n )),satisfy:

[0070]

[0071]

[0072] The kernel function interpolation method is used to define the spline free deformation, and the kernel function k satisfies:

[0073] k(x,y)>0,(x,y)∈R 3 ×R 3

[0074] Wherein, y is the coordinate of a point in the first coordinate set, and x is the coordinate of a point in the second coordinate set; the third boundary point set is transformed into the first boundary point set based on the spline free deformation model definition, so that the second coordinate set is converted into the coordinate system of the first coordinate set, satisfying:

[0075]

[0076] Where g is the normalized point coordinate in the first target domain. The second coordinate set is converted to the coordinate system of the first coordinate set. The pixel points after the fusion of the second coordinate set and the first coordinate set are as follows: Figure 8 The third target image is as shown in Fig. 9 As shown, it is used to provide navigation targets for prostate biopsy.

[0077] In some embodiments, each of the converter modules includes a first feature layer and a second feature layer; the first feature layer and the second feature layer both include a convolution operator 31, a normalization operator 32 and an activation function 33; the first feature layer includes a global attention layer 34, and the second feature layer includes a local attention layer 35; at least one of the first feature layer and the second feature layer includes a cross-layer connection for inter-layer fusion; the global attention layer 34 is used to generate a global query matrix, a key matrix and a value matrix for the size of all feature layers; the local attention layer 35 is used to limit the size of the window and slide the window to generate a local query matrix, a key matrix and a value matrix. Here, the normalization operator 32 uses inter-layer normalization to avoid the training subset (batch) to perform multi-dimensional normalization processing of the number of channels (Channels), height (Height) and width (Width), which can avoid internal covariate shift. In order to improve the accuracy of edge detection, the loss function is implemented using dice and Hausdorff boundary distance weighting, and its weight can be dynamically adjusted according to demand.

[0078] like Fig.10As shown, the second embodiment provides a multimodal medical image registration device 100, which is used in any of the methods in the above embodiments, including: an acquisition unit 101, used to obtain the first modality image and the second modality image; a processing unit 102, used to extract a first target image based on the first modality image; construct a first boundary point set based on the coordinates of the target boundary pixel points in the first target image; extract a second target image based on the second modality image; construct a second boundary point set based on the coordinates of the target boundary pixel points in the second target image; calculate the target point deviation between the first boundary point set and the second boundary point set; move the target point of the second boundary point set to the first boundary point set according to the target point deviation. target points, obtain a third boundary point set; normalize the first boundary point set and the third boundary point set; define a cost function, iteratively calculate the transformation data set from the third boundary point set to the first boundary point set to minimize the cost function; perform the transformation in S3 on all pixel points on the second target image to obtain a transformation point set; the boundary points therein are then transformed by the transformation data set in S4, and the non-boundary points therein are transformed by thin plate spline interpolation based on the boundary point transformation to obtain a normalized point set; perform denormalization on the normalized point set, and map the processing result to the multimodal fusion image to obtain a third target image that has been registered; the third target image is used to provide a navigation target for medical operations. Storage unit 103, used to store the third target image. The acquisition unit 101 and the storage unit 103 are both electrically connected to the processing unit 102;

[0079] Specifically, the acquisition unit 101 is configured as a nuclear magnetic probe for acquiring nuclear magnetic images, an ultrasonic probe for acquiring ultrasonic images, and a computer tomography for acquiring CT images. The processing unit 102 is configured as a processor. The storage unit 103 is configured as a memory.

[0080] like Fig.11 As shown, the third embodiment provides an electronic device 200, including a memory 202 and a processor 201, wherein the memory 202 stores a program for running on the processor 201, and when the program is executed by the processor 201, the electronic device 200 implements any of the methods described in the above embodiments.

[0081] Specifically, in a possible embodiment, the electronic device 200 further includes: an output interface 203 for outputting results; a communication interface 204 for communicating and transmitting signals; and an antenna 205 for transmitting or receiving signals.

[0082] It should be noted that the processor 201 in this embodiment can be an image processing chip or an integrated circuit chip, which has the ability to process image signals. In the implementation process, each step of the above method embodiment can be completed by the hardware integrated logic circuit in the processor or the instruction in the form of software. The above processor can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices. The methods, steps and logic block diagrams disclosed in this embodiment can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in this embodiment can be directly embodied as a hardware decoding processor to perform, or the hardware and software modules in the decoding processor can be combined to perform. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0083] It can be understood that the memory 202 in this embodiment can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0084] A fourth embodiment provides a readable storage medium, wherein the readable storage medium stores a program, and is characterized in that when the program is executed, the method described in any one of the above embodiments is implemented.

[0085] It is worth noting that if the method is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling an electronic device to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk or an optical disk.

[0086] Although the embodiments of the present invention are described in detail above, it is obvious to those skilled in the art that various modifications and variations can be made to these embodiments. However, it should be understood that such modifications and variations are within the scope and spirit of the present invention as described in the claims. Moreover, the present invention described herein may have other embodiments and may be implemented or realized in a variety of ways.

Claims

1. A multimodal medical image registration method, It is characterized in that include: S1, acquiring a first modality image and extracting a first target image; constructing a first boundary point set based on the coordinates of the target boundary pixel points in the first target image; S2, acquiring a second modal image and extracting a second target image; constructing a second boundary point set and a non-boundary point set based on the coordinates of the target boundary pixel points in the second target image; S3, calculating the target point deviation between the first boundary point set and the second boundary point set; moving the target point of the second boundary point set to the target point of the first boundary point set according to the target point deviation, to obtain a third boundary point set; S4, defining a cost function, and iteratively calculating a transformation data set from the third boundary point set to the first boundary point set to minimize the cost function; S5, performing the transformation in S3 on all pixel points on the second target image to obtain a transformation point set; The boundary points in the transformation point set are selected and then transformed by the transformation data set in S4, and the non-boundary points in the non-boundary point set are interpolated based on the boundary point transformation to obtain a processing result; the processing result is mapped to the multimodal fusion image to obtain a third target image with completed registration.

2. The method according to claim 1, It is characterized in that Calculating the target point deviation between the first boundary point set and the third boundary point set includes: Calculate the coordinates of the first target point according to the first boundary point set; calculate the coordinates of the second target point according to the second boundary point set; Calculate the coordinate deviation of the target point according to the first target point coordinates and the second target point coordinates; The first target point coordinates are set to the mean coordinates of the first boundary point set, the centroid coordinates of the first boundary point set, or the feature point coordinates of the first boundary point set; the second target point coordinates are set to the mean coordinates of the second boundary point set, the centroid coordinates of the second boundary point set, or the feature point coordinates of the second boundary point set.

3. The method according to claim 1, It is characterized in that The S4 includes: Define the cost function C, set the number of coordinates in the first boundary point set to m, and the number of coordinates in the third boundary point set to n, where m and n are both positive integers; set the weight of the first boundary point set and the weight of the third boundary point set, normalize the first boundary point set to obtain the first coordinate set (y 1 …y m ), normalize the coordinates of the third boundary point set to obtain the second coordinate set (x 1 …x n ).

4. The method according to claim 3, It is characterized in that The cost function C satisfies: Among them, y j is the jth coordinate in the first coordinate set, x i is the i-th coordinate in the second coordinate set, y j and x i All belong to the three-dimensional coordinate space R 3 , is an element in the transformation data set, representing the vector transformed from the i-th coordinate to the j-th coordinate, and σ is the coordinate space R 3 The average sampling distance in , τ takes the maximum possible offset in the given coordinate space; KL represents the Kullback-Leibler divergence, which satisfies: Where a and b are discrete probability distributions, and i is the ordinal number of each element in the distribution.

5. The method according to claim 4, It is characterized in that The S5 includes: Define the vector field v i and the confidence weight w i , to obtain the weighted vector field of the first dimension of the third boundary point set ((w 1 ,v 1 )…(w n ,v n )),satisfy: The kernel function interpolation method is used to define the spline free deformation, and the kernel function k satisfies: k(x,y)>0,(x,y)∈R 3 ×R 3 Wherein, y is the coordinate of a point in the first coordinate set, and x is the coordinate of a point in the second coordinate set; the third boundary point set is transformed into the first boundary point set based on the spline free deformation model definition, so that the second coordinate set is converted into the coordinate system of the first coordinate set, satisfying: Where g is the normalized point coordinate in the first target domain coordinates.

6. The method according to claim 1, It is characterized in that The first modality image is set to contain an ultrasonic reconstruction image of the target object; the ultrasonic reconstruction image is generated by three-dimensional reconstruction of the ultrasonic scan image; The second modality image is set to contain a nuclear magnetic resonance image of the target object; The multimodal fusion image is set to contain a nuclear magnetic resonance image of the target object that is consistent with the ultrasound coordinates; When extracting the first target image, a deep learning-based ultrasound target segmentation network is used to eliminate non-target areas on the ultrasound reconstruction image; The ultrasonic target segmentation network includes an encoder and a decoder; the encoder and the decoder are both provided with a plurality of converter modules.

7. The method according to claim 6, It is characterized in that Each of the converter modules includes a first feature layer and a second feature layer; the first feature layer and the second feature layer each include a convolution operator, a normalization operator and an activation function; The first feature layer includes a global attention layer, and the second feature layer includes a local attention layer; at least one of the first feature layer and the second feature layer includes a cross-layer connection for inter-layer fusion; The global attention layer is used to generate a global query matrix, a key matrix and a value matrix according to the size of all feature layers; the local attention layer is used to limit the size of the window and slide the window to generate a local query matrix, a key matrix and a value matrix.

8. A multimodal medical image registration device, It is characterized in that include: Acquisition unit, processing unit and storage unit; The acquisition unit and the storage unit are both electrically connected to the processing unit; The acquisition unit is used to acquire the first modality image and the second modality image; The processing unit is used to execute the method according to any one of claims 1 to 7; The storage unit is used to store the third target image.

9. An electronic device, It is characterized in that The electronic device comprises a memory and a processor, wherein the memory stores a program for running on the processor, and when the program is executed by the processor, the electronic device implements the method according to any one of claims 1 to 7.

10. A readable storage medium, wherein a program is stored in the readable storage medium. It is characterized in that When the program is executed, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Two-dimensional image registration method for partially matched images

    CN103679713A

  • Medical image registration method, medical equipment and storage medium

    CN111091567A

  • Registration method and device of incomplete medical image, electronic equipment and medium

    CN117115141A

  • Medical image registration method and device, electronic equipment and medium

    CN117152121A

  • A method and system for automatic detection and segmentation of tumors and associated edema (swelling) in magnetic resonance (MRI) images

    WO2006114003A1