Image registration method, image optimization display method, device, medium and program product

Through the image registration method, three-dimensional reconstruction and registration technology is used to solve the accuracy problem of TRUS images in prostate biopsy, achieve high-accuracy identification and surgical guidance of the prostate area, and improve the diagnostic effect.

CN118470078BActive Publication Date: 2024-09-24HANGZHOU WISEKING MEDICAL ROBOT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410925128.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-09-24
Estimated Expiration
2044-07-11

AI Technical Summary

Technical Problem

Existing TRUS images cannot provide accurate guidance in prostate biopsy, resulting in low sensitivity in diagnosing prostate cancer and the tendency for tumors in specific areas to be missed.

Method used

Using the image registration method, by obtaining the first image and the second image of the target object, using the pre-trained segmentation model to perform three-dimensional reconstruction, establishing the first three-dimensional model and the second three-dimensional model, and performing registration based on the target deformation field. Fusion of features to improve image accuracy and visualization.

Benefits of technology

It achieves real-time, intuitive and clear image optimization display in needle biopsy, improves the recognition accuracy of prostate area and surgical success rate, and makes up for the shortcomings of TRUS images in diagnosis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118470078B
    Figure CN118470078B
Patent Text Reader

Abstract

The present application provides an image registration method, an image optimization display method, a device, a medium and a program product. The image registration method includes: in response to a configuration instruction, obtaining a first image and a second image of a target object; inputting the first image into an image segmentation model to obtain a first segmented image, and inputting the second image into a second image segmentation model to obtain a second segmented image; the first image segmentation model includes an encoding module, a perception module and a decoding module; performing three-dimensional reconstruction based on the first segmented image and the second segmented image to obtain a first three-dimensional model and a second three-dimensional model; inputting the first three-dimensional model and the second three-dimensional model into an image registration model together to obtain a target deformation field, and registering the first three-dimensional model and the second three-dimensional model based on the target deformation field. The present application can obtain segmented images with more complex features and better expression effects, and provide a more intuitive and clear image optimization display image for the puncture needle during surgery.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of medical image processing, and in particular to an image registration method, an image optimization display method, a device, a medium and a program product. Background Art

[0002] Prostate cancer is one of the most common malignant tumors in men. The "gold standard" for diagnosing prostate cancer is to perform a prostate puncture biopsy, in which tissue samples are obtained from the prostate through a puncture needle for pathological examination. Transrectal ultrasound (TRUS)-guided prostate puncture biopsy is the most common method for diagnosing prostate cancer in clinical practice.

[0003] However, the imaging effect of TRUS is poor, and how to accurately guide the puncture needle to extract prostate tissue samples through intraoperative TRUS images has become an urgent problem to be solved. Summary of the invention

[0004] The present application provides an image registration method, an image optimization display method, a device, a medium and a program product, which are used to solve the problem in the prior art that TRUS images cannot provide accurate guidance for puncture biopsy.

[0005] In a first aspect, the present application provides an image registration method, comprising:

[0006] In response to the configuration instruction, acquiring a first image and a second image corresponding to the target object;

[0007] Inputting the first image into a pre-trained first image segmentation model to obtain a first segmented image corresponding to the first image, and inputting the second image into a pre-trained second image segmentation model to obtain a second segmented image corresponding to the second image; the first image segmentation model includes an encoding module, a perception module and a decoding module;

[0008] Performing three-dimensional reconstruction based on the first segmented image and the second segmented image to obtain a first three-dimensional model corresponding to the first segmented image and a second three-dimensional model corresponding to the second segmented image;

[0009] The first three-dimensional model and the second three-dimensional model are input into a pre-trained image registration model to obtain a target deformation field, and the first three-dimensional model and the second three-dimensional model are registered based on the target deformation field.

[0010] In one embodiment, the encoding module includes a first preset number of encoding units connected in sequence, and the decoding module includes a first preset number of decoding units connected in sequence;

[0011] The step of inputting the first image into a pre-trained first image segmentation model to obtain a first segmented image corresponding to the first image includes:

[0012] Inputting the first image into the sequentially connected encoding units to obtain convolution sampling features corresponding to the first image;

[0013] Inputting the convolution sampling features into the perception module to obtain perception features corresponding to the first image;

[0014] Inputting the perceptual features into sequentially connected decoding units to obtain a mask image corresponding to the first image;

[0015] Based on the mask image, the first image is binarized to obtain the first segmented image.

[0016] In one embodiment, the encoding unit includes a convolutional encoding layer and a downsampling layer connected in sequence; the decoding unit includes an upsampling layer, a feature fusion layer and a convolutional decoding layer connected in sequence;

[0017] The step of inputting the first image into the sequentially connected encoding units to obtain the convolution sampling features corresponding to the first image includes:

[0018] Determining a first serial structure consisting of a first preset number of convolutional coding layers and a first preset number of downsampling layers according to a connection order of the coding units;

[0019] Inputting the first image into the first series structure to obtain the convolution sampling feature;

[0020] The step of inputting the perceptual features into sequentially connected decoding units to obtain a mask image corresponding to the first image comprises:

[0021] Determine, according to the connection order of the decoding units, a second series structure consisting of a first preset number of convolution decoding layers, a first preset number of feature fusion layers, and a first preset number of upsampling layers;

[0022] The perception feature is input into the second series structure to obtain the mask image.

[0023] In one of the embodiments, the sensing module includes a second preset number of first sensing units and a second preset number of second sensing units connected in sequence;

[0024] The number of channels corresponding to each of the downsampling layers and the number of channels corresponding to each of the first perception units are increased in sequence according to the connection order of the encoding units corresponding to each of the downsampling layers and the first perception units;

[0025] The number of channels corresponding to each upsampling layer and the number of channels corresponding to each second perception unit decrease in sequence according to the connection order of the decoding unit corresponding to each upsampling layer and the second perception unit.

[0026] In one embodiment, performing three-dimensional reconstruction based on the first segmented image and the second segmented image to obtain a first three-dimensional model corresponding to the first segmented image and a second three-dimensional model corresponding to the second segmented image includes:

[0027] Using a three-dimensional reconstruction algorithm, three-dimensionally reconstruct the first segmented image and the second segmented image respectively to obtain a first initial model corresponding to the first segmented image and a second initial model corresponding to the second segmented image;

[0028] The first initial model and the second initial model are respectively voxelized to obtain the first three-dimensional model and the second three-dimensional model.

[0029] In one of the embodiments, the target deformation field includes spatial state information;

[0030] The registering the first three-dimensional model and the second three-dimensional model based on the target deformation field includes:

[0031] Inputting the first three-dimensional model and the second three-dimensional model into a feature prediction model respectively, to obtain at least one first predicted feature point included in the first three-dimensional model and at least one second predicted feature point included in the second three-dimensional model;

[0032] Based on the spatial state information, a mapping is established between the first predicted feature points and the second predicted feature points to perform registration of the first three-dimensional model and the second three-dimensional model.

[0033] In one embodiment, acquiring a first image corresponding to the target object includes:

[0034] Along a preset direction, a collection device is used to collect sequential images at a preset frequency to obtain the first image.

[0035] In one embodiment, acquiring the first image and the second image corresponding to the target object includes:

[0036] When the first image is a two-dimensional image, acquiring at least two first images corresponding to the target object;

[0037] When the first image is a three-dimensional graphic, obtaining a first image corresponding to the target object;

[0038] When the second image is a two-dimensional image, acquiring at least two second images corresponding to the target object;

[0039] When the second image is a three-dimensional graphic, a second image corresponding to the target object is obtained.

[0040] In a second aspect, the present application further provides an image optimization display method, which uses the image registration method described in any of the above embodiments to obtain a first three-dimensional model, a second three-dimensional model, and a registration relationship between the first three-dimensional model and the second three-dimensional model corresponding to the target object, including:

[0041] In response to the acquisition instruction, real-time position information of the puncture needle head is acquired, and a real-time first image corresponding to the target object is acquired based on the real-time position information;

[0042] Inputting the real-time first image and the first three-dimensional model into a pre-trained transformation model to obtain a first model section corresponding to the real-time first image in the first three-dimensional model;

[0043] Based on the registration relationship between the first three-dimensional model and the second three-dimensional model, matching a second model section corresponding to the first model section in the second three-dimensional model;

[0044] The first model section and the second model section are fused and displayed to guide the puncture needle to move to a specified position.

[0045] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the image registration method or the image optimization display method described in any of the above embodiments is implemented.

[0046] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the image registration method or the image optimization display method described in any of the above embodiments is implemented.

[0047] In a fifth aspect, the present application further provides a computer program product, which includes a computer program, and when the computer program product is executed by a processor, implements the image registration method or image optimization display method described in any of the above embodiments.

[0048] The above-mentioned image registration method, image optimization display method, device, medium and program product can obtain the first image and the second image of the target object when receiving the configuration instruction, and then use a lightweight model including a perception module and having higher expression ability to segment the first segmented image from the first image, so that the first segmented image can learn the more complex feature representation in the first image and have a better expression effect. Then, the first segmented image and the second segmented image are used to establish the first three-dimensional model and the second three-dimensional model respectively, and the corresponding target variable strategy is called to perform the registration mapping between the two to complete the feature fusion of the first image and the second image; and the registered first three-dimensional model and the second three-dimensional model are used to accurately replace the prostate information in the second image with the first image during surgery, so as to provide a real-time, intuitive and clear first image optimization display image for the puncture needle during surgery. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0050] Figure 1 A diagram of an application environment of an image registration method in an embodiment;

[0051] Figure 2 is a schematic diagram of a flow chart of an image registration method in one embodiment;

[0052] Figure 3 is a schematic structural diagram of a first image segmentation model used in an image registration method in one embodiment;

[0053] Figure 4 A schematic diagram of a flow chart of an image optimization display method in one embodiment;

[0054] Figure 5 A schematic diagram of the application of an image optimization display method in intraoperative puncture biopsy in one embodiment;

[0055] Figure 6 is a structural schematic diagram of an image registration device in one embodiment;

[0056] Figure 7 It is a structural schematic diagram of an image optimization display device in one embodiment;

[0057] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment.

[0058] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0059] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0060] Prostate cancer (PCa) is one of the most common malignant tumors in elderly men. Among all malignant tumors in men, the incidence of PCa ranks first and the mortality rate ranks second.

[0061] Early diagnosis of PCa is the key to improving the survival rate of patients, and the histopathological diagnosis obtained by prostate puncture biopsy is the gold standard for confirming PCa. Transrectal ultrasonography (TRUS)-guided system puncture is the most widely used initial prostate puncture biopsy in clinical practice, but it has the disadvantages of low sensitivity in detecting clinically significant prostate cancer (CsPCa) and easy omission of tumors in special areas such as the transitional zone, anterior part and apex of the prostate. In order to make up for the disadvantages of system puncture, this application proposes an image registration method, image optimization display method, device and storage medium to provide accurate guidance for puncture biopsy.

[0062] The image registration method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown, the terminal 102 communicates with the server 104 via the network.

[0063] For example, the image registration method is applied to the terminal 102. When the terminal 102 receives the configuration instruction, it obtains the first image and the second image corresponding to the target object from the data storage system of the server 104; then the first image is input into the pre-trained first image segmentation model to obtain the first segmented image corresponding to the first image, and the second image is input into the pre-trained second image segmentation model to obtain the second segmented image corresponding to the second image; the first image segmentation model includes an encoding module, a perception module and a decoding module; and three-dimensional reconstruction is performed based on the first segmented image and the second segmented image to obtain the first three-dimensional model corresponding to the first segmented image and the second three-dimensional model corresponding to the second segmented image; finally, the terminal 102 inputs the first three-dimensional model and the second three-dimensional model into the pre-trained image registration model to obtain the target deformation field, and registers the first three-dimensional model and the second three-dimensional model based on the target deformation field. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 may be implemented as an independent server or a server cluster composed of multiple servers. The terminal 102 and the server 104 may be directly or indirectly connected via wired or wireless communication, such as via a network connection.

[0064] For another example, the image registration method is applied to the server 104, and when the terminal 102 receives the prediction instruction, it sends the configuration instruction to the server 104, and then the server 104 obtains the first image and the second image corresponding to the target object from the data storage system; and inputs the first image into the pre-trained first image segmentation model to obtain the first segmented image corresponding to the first image, and inputs the second image into the pre-trained second image segmentation model to obtain the second segmented image corresponding to the second image; the first image segmentation model includes an encoding module, a perception module and a decoding module; and three-dimensional reconstruction is performed based on the first segmented image and the second segmented image to obtain the first three-dimensional model corresponding to the first segmented image and the second three-dimensional model corresponding to the second segmented image; finally, the server 104 inputs the first three-dimensional model and the second three-dimensional model into the pre-trained image registration model to obtain the target deformation field, and registers the first three-dimensional model and the second three-dimensional model based on the target deformation field. It can be understood that the data storage system can be an independent storage device, or the data storage system is located on the server 104, or the data storage system is located on another terminal.

[0065] It should be noted that the network communication between the terminal 102 and the server 104 is applicable to different network standards, for example, it can be applicable to global system of mobile communication (GSM), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time division synchronous code division multiple access (TD-SCDMA), long term evolution (LTE) system and future 5G network standards. Optionally, the above communication system can be a system in the scenario of ultra-reliable and low latency communications (URLLC) transmission in a 5G communication system.

[0066] Therefore, optionally, the above-mentioned base station can be a base station (Base Transceiver Station, referred to as BTS) and / or a base station controller in GSM or CDMA, or a base station (NodeB, referred to as NB) and / or a radio network controller (Radio Network Controller, referred to as RNC) in WCDMA, or an evolved base station (EvolutionalNodeB, referred to as eNB or eNodeB) in LTE, or a relay station or access point, or a base station (gNB) in a future 5G network, etc., and the present application is not limited here.

[0067] The terminal 102 can be a wireless terminal or a wired terminal. A wireless terminal can be a device that provides voice and / or other service data connectivity to a user, a handheld device with a wireless connection function, or other processing devices connected to a wireless modem. A wireless terminal can communicate with one or more core network devices via a radio access network (Radio Access Network, referred to as RAN). A wireless terminal can be a mobile terminal, such as a mobile phone (or "cellular" phone) and a computer with a mobile terminal, for example, a portable, pocket-sized, handheld, computer-built-in or vehicle-mounted mobile device, which exchanges language and / or data with a radio access network. For another example, a wireless terminal can also be a personal communication service (Personal Communication Service, referred to as PCS) phone, a cordless phone, a Session Initiation Protocol (Session Initiation Protocol, referred to as SIP) phone, a wireless local loop (Wireless Local Loop, referred to as WLL) station, a personal digital assistant (Personal Digital Assistant, referred to as PDA) and other devices. A wireless terminal may also be referred to as a system, a subscriber unit, a subscriber station, a mobile station, a mobile station, a remote station, a remote terminal, an access terminal, a user terminal, a user agent, or a user device or user equipment, without limitation. Optionally, the terminal device may also be a smart watch, a tablet computer, or other device.

[0068] In one embodiment, an image registration method is provided. This embodiment uses the image registration method applied to a terminal as an example for illustration. It is understandable that the method can also be applied to a server, or to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. Figure 2 As shown, the image registration method includes:

[0069] Step 202: In response to the configuration instruction, obtain a first image and a second image corresponding to the target object.

[0070] The configuration instruction refers to an instruction for registering the first image and the second image of a specific patient before surgery. As an example, the configuration instruction may be issued by a doctor through a fixed component on the human-computer interaction interface of the terminal, wherein the fixed component may refer to a pre-built page or applet for performing image registration processing, or the configuration instruction may be automatically generated by the terminal when it is detected that the first image and the second image of the same patient exist simultaneously in a specific database, and the specific database may be used to store relevant information of patients waiting for surgery.

[0071] The target population refers to specific patients.

[0072] The first image may be an image of the target object acquired by an ultrasound device such as an ultrasound probe. The ultrasound device may use a convex biplane ultrasound probe. The first image may specifically be a transrectal ultrasound (TRUS) image.

[0073] The second image can specifically be one of magnetic resonance imaging (MRI), computed tomography (CT), and X-ray images. In the present embodiment, when the second image is an MRI image, the second image can be obtained by utilizing the principle of nuclear magnetic resonance. Based on the different attenuation of the released energy in different structural environments inside the material, the emitted electromagnetic waves can be detected by applying an external gradient magnetic field to obtain the position and type of the atomic nuclei constituting the object, and a structural image of the interior of the object can be drawn accordingly. The terminal can use a nuclear magnetic resonance device to obtain the second image.

[0074] It should be noted that when the first image is a two-dimensional ultrasound image, at least two first images are acquired in step 202 , and when the first image is a three-dimensional ultrasound image, only one first image may be acquired in step 202 .

[0075] Similarly, when the second image is a two-dimensional magnetic resonance image, at least two second images are acquired in step 202, and when the first image is a three-dimensional magnetic resonance image, only one second image may be acquired in step 202. The following embodiments are all described by assuming that the terminal acquires at least two two-dimensional first images and at least two two-dimensional second images.

[0076] In this embodiment, the process of acquiring at least two first images may be acquiring first images of the target object along a preset direction and at a preset frequency. The first images may constitute an image sequence, and at least two second images may constitute an image sequence.

[0077] Step 204: input the first image into a pre-trained first image segmentation model to obtain a first segmented image corresponding to the first image, and input the second image into a pre-trained second image segmentation model to obtain a second segmented image corresponding to the second image; the first image segmentation model includes an encoding module, a perception module and a decoding module.

[0078] The first image segmentation model adopts a lightweight segmentation network, which includes an encoding module, a perception module and a decoding module. The output end of the encoding module is connected to the input end of the perception module, and the output end of the perception module is connected to the output end of the decoding module. The encoding module is used to implement downsampling processing and reduce the feature resolution of the first image, and the decoding module is used to implement upsampling processing and improve the feature resolution of the first image.

[0079] As an example, the perception module can be a tokenized multilayer perceptron (MLP) module. The MLP module is characterized by having multiple hidden layers, each hidden layer consists of multiple neurons, and each neuron implements nonlinear transformation through an activation function, which enables the MLP module to learn more complex feature representations and improve the expressiveness of the model.

[0080] The first image segmentation model can be pre-trained using a variety of sample first images, and the sample first images can be pre-identified manually and the pixel points of the prostate area contained in the sample first images can be marked; in this step, after the first image containing the target object is input into the trained first image segmentation model, a binary mask image corresponding to the first image can be output, and then the first image and the binary mask image corresponding to the first image are logically ANDed, so as to select the prostate area of ​​the first image, and obtain the specific position of the prostate area of ​​the target object in the first image as the first segmented image, and the newly generated first segmented image constitutes a new image sequence.

[0081] The second image segmentation model can adopt the TransUNet model and be pre-trained with a variety of sample second images. The sample second images can be pre-identified manually and the pixel points of the prostate area contained in the sample second images can be marked. In this step, after the second image containing the target object is input into the trained second image segmentation model, the binary mask image corresponding to the second image can be output, and then the second image and the binary mask image corresponding to the second image are logically ANDed to select the prostate area of ​​the second image, and the specific position of the prostate of the target object in the second image can be output to obtain the second segmented image. The newly generated second segmented images constitute a new image sequence.

[0082] The pixel value of the binary mask image can only be 0 or 1, where 0 represents the pixel point in the non-prostate area and 1 represents the pixel point in the prostate area.

[0083] Step 206: Perform three-dimensional reconstruction based on the first segmented image and the second segmented image to obtain a first three-dimensional model corresponding to the first segmented image and a second three-dimensional model corresponding to the second segmented image.

[0084] In this step, the terminal performs three-dimensional reconstruction based on the first segmented image in the new image sequence, converts the prostate region in the first image into a three-dimensional shape, and constructs a first three-dimensional model; and performs three-dimensional reconstruction based on the second segmented image in the new image sequence, converts the prostate region in the second image into a three-dimensional shape, and constructs a second three-dimensional model.

[0085] As an example, the terminal may use a 3D reconstruction algorithm (Marching Cubes) to perform 3D reconstruction.

[0086] Step 208: input the first 3D model and the second 3D model into a pre-trained image registration model to obtain a target deformation field, and register the first 3D model and the second 3D model based on the target deformation field.

[0087] The image registration model can adopt the VoxelMorph model and be pre-trained using multiple corresponding 3D MRI sample models and 3D TRUS sample models; in this step, after the first three-dimensional model representing the prostate area of ​​the target object acquired by ultrasound and the second three-dimensional model representing the prostate area of ​​the target object acquired by magnetic resonance are input into the trained image registration model, the deformation field labels corresponding to the first three-dimensional model and the second three-dimensional model can be output as the target deformation field, which is used to perform one-to-one registration on the first three-dimensional model and the second three-dimensional model. The target deformation field can include parameters such as rotation, scaling, translation, and distortion, which are used to describe the offset of points on the surface or in the body of the second three-dimensional model relative to the first three-dimensional model.

[0088] The process of registering the first three-dimensional model and the second three-dimensional model using a target deformation strategy may include: first, extracting model features from the first three-dimensional model and the second three-dimensional model respectively, and the model features may be surface features, geometric features or voxel features, etc.; wherein, preliminary alignment of the first three-dimensional model and the second three-dimensional model is achieved through an initial coarse registration method (such as feature-based registration); and then, through a target deformation field, a mapping relationship from the first three-dimensional model to the second three-dimensional model is obtained to describe the difference between the first three-dimensional model and the second three-dimensional model.

[0089] In the above-mentioned image registration method, when the terminal receives the configuration instruction for preoperative registration of the first image and the second image of the target object, it can obtain the first image and the second image that can fully characterize the prostate area of ​​the target object, and then use a lightweight model containing a perception module and having higher expression ability to segment the first segmented image from the first image, so that the first segmented image can learn more complex feature representations in the first image and have better expression effects. Then, the first segmented image and the second segmented image are used to respectively establish a first three-dimensional model and a second three-dimensional model, and call the corresponding target variation strategy to perform registration mapping between the two to complete the feature fusion of the first image and the second image; through the first segmentation model, a first segmented image carrying more and more complex features is obtained, and based on the first segmented image, a first three-dimensional model carrying more and more complex features is obtained to provide a more accurate three-dimensional model basis for subsequent optimized display.

[0090] In some optional embodiments, the encoding module includes a first preset number of encoding units connected in sequence, and the decoding module includes a first preset number of decoding units connected in sequence;

[0091] Step 204 includes:

[0092] Inputting the first image into the sequentially connected encoding units to obtain convolution sampling features corresponding to the first image;

[0093] Inputting the convolution sampling features into the perception module to obtain the perception features corresponding to the first image;

[0094] Inputting the perceptual features into the sequentially connected decoding units to obtain a mask image corresponding to the first image;

[0095] Based on the mask image, the first image is binarized to obtain a first segmented image.

[0096] like Figure 3 As shown, in the MLP module, the number of encoding units and decoding units is the same and corresponds one to one, and the number of channels of the corresponding encoding unit is also the same as the number of channels of the decoding unit.

[0097] Furthermore, the coding unit includes convolutional coding layers and downsampling layers connected in sequence, and the step of obtaining convolutional sampling features includes: determining a first series structure consisting of a first preset number of convolutional coding layers and a first preset number of downsampling layers according to the connection order of the coding units; inputting the first image into the first series structure to obtain convolutional sampling features.

[0098] As an example, when the encoding module includes three encoding units connected in sequence , , When , the convolutional coding layers and downsampling layers contained in the three coding units are connected in series in sequence to form a first series structure, which can be understood as the connection order of the first series structure is the coding unit Convolutional coding layer, downsampling layer, coding unit Convolutional coding layer, downsampling layer, and coding unit Convolutional coding layer and downsampling layer.

[0099] Similarly, the decoding unit includes an upsampling layer, a feature fusion layer and a convolutional decoding layer connected in sequence; the step of obtaining the mask image includes: determining a second series structure consisting of a first preset number of convolutional decoding layers, a first preset number of feature fusion layers and a first preset number of upsampling layers according to the connection order of the decoding unit; inputting the perceptual features into the second series structure to obtain the mask image.

[0100] As an example, when the decoding module includes three decoding units connected in sequence , , When , the upsampling layer, feature fusion layer and convolutional decoding layer included in the three decoding units are connected in series in sequence to form a second series structure, which can be understood as the connection order of the second series structure is the decoding unit Upsampling layer, feature fusion layer, convolutional decoding layer, decoding unit Upsampling layer, feature fusion layer, convolutional decoding layer, and decoding unit Upsampling layer, feature fusion layer, and convolutional decoding layer.

[0101] Furthermore, the perception module includes a second preset number of first perception units and a second preset number of second perception units connected in sequence, the first preset number of encoding units and the second preset number of first perception units can constitute a whole system for downsampling processing, the second preset number of second perception units and the first preset number of decoding units can constitute a whole system for upsampling processing; and, the output end of the last first perception unit is connected to the second preset number of second perception units connected in sequence, the output end of the last second perception unit is connected to the output ends of the remaining first perception units except the last first perception unit, and the perception features output by the last second perception unit and the features output by the remaining first perception units except the last first perception unit are accumulated in sequence and input into the first preset number of decoding units connected in sequence.

[0102] Moreover, the number of channels corresponding to each downsampling layer and the number of channels corresponding to each first perception unit increase in sequence according to the connection order between the encoding unit corresponding to each downsampling layer and the first perception unit; the number of channels corresponding to each upsampling layer and the number of channels corresponding to each second perception unit decrease in sequence according to the connection order between the decoding unit corresponding to each upsampling layer and the second perception unit.

[0103] As an example, when the first image segmentation model includes three encoding units connected in sequence , , , two first perception units Tok-MLP1, Tok-MLP2, two second perception units Tok-MLP3, Tok-MLP4 and three decoding units , , When the coding unit With decoding unit , coding unit With decoding unit , coding unit With decoding unit , the first perception unit Tok-MLP1 and the second perception unit Tok-MLP4, the first perception unit Tok-MLP2 and the second perception unit Tok-MLP3 are in the same layer and have the same number of channels, which can be respectively the number of channels , , , and In one embodiment, =16, =32, =64, =128, =256.

[0104] In some optional embodiments, step 206 includes:

[0105] Using a three-dimensional reconstruction algorithm, three-dimensionally reconstruct the first segmented image and the second segmented image respectively to obtain a first initial model corresponding to the first segmented image and a second initial model corresponding to the second segmented image;

[0106] The first initial model and the second initial model are respectively voxelized to obtain a first three-dimensional model and a second three-dimensional model.

[0107] Voxelization refers to the process of dividing the first initial model or the second initial model into small cubic units (i.e., voxels). Performing voxelization on the binary first initial model or the second initial model can obtain a set of voxel data, which can be used to represent the shape and structure of the first initial model or the second initial model. After voxelization, voxel data of various attributes of the first initial model or the second initial model can be obtained, such as information such as the position, size, and density of the voxels.

[0108] In some optional embodiments, the target deformation field includes spatial state information;

[0109] Step 208 includes:

[0110] Inputting the first three-dimensional model and the second three-dimensional model into the feature prediction model respectively, obtaining at least one first predicted feature point included in the first three-dimensional model and at least one second predicted feature point included in the second three-dimensional model;

[0111] Based on the spatial state information, a mapping is established between the first predicted feature point and the second predicted feature point to perform registration of the first three-dimensional model and the second three-dimensional model.

[0112] The feature prediction model can adopt common models such as convolutional neural networks and be pre-trained using multiple sample three-dimensional models. The first predicted feature point can be used to mark a location or area of ​​great significance in the first three-dimensional model. The first predicted feature point can represent a significant shape, structure or attribute in the first three-dimensional model, and can further be used to indicate the surface features, geometric features or voxel features of the first three-dimensional model. Similarly, the second predicted feature point is used to mark a location or area of ​​great significance in the second three-dimensional model. The second predicted feature point can represent a significant shape, structure or attribute in the second three-dimensional model, and can further be used to indicate the surface features, geometric features or voxel features of the second three-dimensional model.

[0113] The spatial state information may include the deformation variables of the voxels on the initial model described by the target deformation field transformed into the voxels on the prediction model. The deformation variables may be displacement values, rotation values, scaling values, etc.; alternatively, the spatial state information may also include the deformation rate information of the target deformation field in each direction of the initial model, the deformation speed of each point on the initial model, that is, the rate of change of the deformation variable of each point over time, etc.

[0114] The deformation field may include one or more transformation matrices, each of which is used to indicate specific spatial state information.

[0115] As an example, a method for jointly training multiple 3D MRI sample models and multiple 3D TRUS sample models to obtain an image registration model may include: inputting each 3D MRI sample model into the above-mentioned feature prediction model to obtain a number of ultrasonic feature points corresponding to each 3D MRI sample model, and inputting each 3D TRUS sample model into the above-mentioned feature prediction model to obtain a number of magnetic resonance feature points corresponding to each 3DTRUS sample model; taking any 3D MRI sample model as an initial model, taking any 3D TRUS sample model as a prediction model, and obtaining a transformation matrix between each ultrasonic feature point in the initial model and the corresponding magnetic resonance feature point in the prediction model, at which time the number of transformation matrices is consistent with the number of ultrasonic feature points in the initial model, and all change matrices constitute a deformation field between the initial model and the prediction model, which can also be understood as the deformation field label of the initial model and the prediction model.

[0116] Subsequently, multiple 3D MRI sample models and multiple 3D TRUS sample models are randomly matched to form multiple groups of "3DMRI sample model-3D TRUS sample model" training samples, and each training sample carries a corresponding deformation field label. The image registration model finally trained using the above training samples can output a target deformation field applicable to the first three-dimensional model and the second three-dimensional model according to the first three-dimensional model and the second three-dimensional model input in step 208, and the target deformation field includes a transformation matrix that transforms the voxels in the first three-dimensional model into the corresponding voxels in the second three-dimensional model.

[0117] Alternatively, in another embodiment, a method for jointly training multiple 3D MRI sample models and multiple 3D TRUS sample models to obtain an image registration model may include: inputting each 3D MRI sample model into the above-mentioned feature prediction model to obtain a number of ultrasonic feature points corresponding to each 3D MRI sample model, and inputting each 3D TRUS sample model into the above-mentioned feature prediction model to obtain a number of magnetic resonance feature points corresponding to each 3D TRUS sample model; taking any one of the 3D MRI sample models as an initial model, taking any one of the 3D TRUS sample models as a prediction model, and obtaining a transformation matrix between each ultrasonic feature point in the initial model and the corresponding magnetic resonance feature point in the prediction model, wherein the number of transformation matrices is consistent with the number of ultrasonic feature points in the initial model; further, taking the middle value of all transformation matrices to obtain a rigid change matrix applicable to all ultrasonic feature points, and the rigid change matrix can be directly understood as a deformation field, that is, the deformation field label of the initial model and the prediction model.

[0118] Subsequently, multiple 3D MRI sample models and multiple 3D TRUS sample models are randomly matched to form multiple groups of "3DMRI sample model-3D TRUS sample model" training samples, and each training sample carries a corresponding deformation field label. The image registration model finally trained using the above training samples can output a target deformation field applicable to the first three-dimensional model and the second three-dimensional model according to the first three-dimensional model and the second three-dimensional model input in step 208, and the target deformation field includes a rigid change matrix, and all voxels in the first three-dimensional model can be converted into corresponding voxels in the second three-dimensional model using the rigid change matrix.

[0119] The above-mentioned image registration method adopts a convolutional coding layer and a downsampling layer to form an encoding module, and adopts an upsampling layer and a convolutional decoding layer to form a decoding module, and adds a second preset number of first perception units and a second preset number of second perception units between the encoding module and the decoding module to form a lightweight model, and uses the lightweight model to segment the first image of the patient, so that the first three-dimensional model finally obtained can learn more complex feature representations in the first image sequence, thereby improving the expressive ability of the first three-dimensional model.

[0120] like Figure 4 As shown, based on the same inventive concept, the embodiment of the present application also provides an image optimization display method, which can, for example, use the image registration method in any of the above embodiments to register the MRI image and the TRUS image, and provide accurate position guidance for the puncture biopsy during the operation based on the registered MRI image and TRUS image, such as Figure 5 shown.

[0121] The above image optimization display method can also be applied to a terminal, a server, or a system composed of a terminal and a server. The image optimization display method adopts the image registration method in any of the above embodiments to obtain the first three-dimensional model, the second three-dimensional model, and the registration relationship between the first three-dimensional model and the second three-dimensional model corresponding to the target object, and specifically includes:

[0122] Step 402: In response to the acquisition instruction, obtain the real-time position information of the puncture needle head, and obtain a real-time first image corresponding to the target object based on the real-time position information.

[0123] The acquisition instruction refers to an instruction for acquiring a fused image of a first image and a second image corresponding to the real-time position of the puncture needle in the patient's body during the operation.

[0124] The puncture needle in this step may refer to the puncture needle provided on the puncture needle robot.

[0125] The real-time position information may include the position and posture information of the puncture needle head. The position of the ultrasound probe is consistent with the position of the puncture needle head, and a real-time first image corresponding to the target object is acquired.

[0126] Step 404: input the real-time first image and the first three-dimensional model into a pre-trained transformation model to obtain a first model section corresponding to the real-time first image in the first three-dimensional model.

[0127] In this step, first, the terminal can obtain the prostate area contained in the real-time first image based on the above-mentioned first image segmentation model, and further extract image features. The image features can be pixel features, edge features, texture features, etc. that can uniquely characterize the real-time first image. The image features are then input into the exchange model and matched to the first model section corresponding to the real-time first image in the first three-dimensional model.

[0128] The transformation model can adopt a deep neural network and be pre-trained using multiple groups of sample image features and multiple sample three-dimensional models, wherein the sample image features carry the corresponding sample three-dimensional model and the label of the corresponding model section in the sample three-dimensional model.

[0129] Step 406: Based on the registration relationship between the first three-dimensional model and the second three-dimensional model, match the second model section corresponding to the first model section in the second three-dimensional model.

[0130] Based on the registration relationship between the first three-dimensional model and the second three-dimensional model, the points corresponding to each pixel point in the first model section in the second three-dimensional model are obtained to obtain the second model section.

[0131] Step 408: The first model section and the second model section are fused and displayed to guide the puncture needle to move to a designated position.

[0132] In this step, the terminal may also directly use the second model section to replace the prostate region in the real-time first image to achieve the purpose of optimizing the display.

[0133] The above-mentioned image optimization display method realizes the rapid registration of the second three-dimensional model corresponding to the second image before surgery to the real-time first image during surgery. At the same time, through the fusion display technology, the prostate information in the second image is accurately replaced with the first image during surgery, providing doctors with an intuitive and clear first image optimization display, which helps to guide surgical operations and improve the success rate of surgery.

[0134] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0135] Based on the same inventive concept, the embodiment of the present application also provides an image registration device for implementing the above-mentioned image registration method. The implementation solution provided by the image registration device to solve the problem is similar to the implementation solution recorded in the above-mentioned image registration method, so the specific limitations in one or more device embodiments provided below can refer to the limitations of the image registration method above, and will not be repeated here.

[0136] In one embodiment, Figure 6 As shown, an image registration device 600 is provided, comprising:

[0137] An acquisition module 602 is used to acquire a first image and a second image corresponding to a target object in response to a configuration instruction;

[0138] The segmentation module 604 is used to input the first image into a pre-trained first image segmentation model to obtain a first segmented image corresponding to the first image, and input the second image into a pre-trained second image segmentation model to obtain a second segmented image corresponding to the second image; the first image segmentation model includes an encoding module, a perception module and a decoding module;

[0139] A reconstruction module 606, configured to perform three-dimensional reconstruction based on the first segmented image and the second segmented image, and obtain a first three-dimensional model corresponding to the first segmented image and a second three-dimensional model corresponding to the second segmented image;

[0140] The registration module 608 is used to input the first 3D model and the second 3D model into a pre-trained image registration model to obtain a target deformation field, and register the first 3D model and the second 3D model based on the target deformation field.

[0141] Furthermore, the embodiment of the present application also provides an image optimization display device for implementing the above-mentioned image optimization display method. The implementation solution provided by the image registration device is similar to the implementation solution described in the above-mentioned image optimization display method, so the specific limitations in one or more device embodiments provided below can refer to the limitations of the image optimization display method above, and will not be repeated here.

[0142] In one embodiment, Figure 7 As shown, an image optimization display device 700 is provided, comprising:

[0143] The acquisition module 702 is used to acquire the real-time position information of the puncture needle head in response to the acquisition instruction, and acquire the real-time first image corresponding to the target object based on the real-time position information;

[0144] A transformation module 704 is used to input the real-time first image and the first three-dimensional model into a pre-trained transformation model to obtain a first model section corresponding to the real-time first image in the first three-dimensional model;

[0145] A matching module 706 is used to match the second model section corresponding to the first model section in the second three-dimensional model based on the registration relationship between the first three-dimensional model and the second three-dimensional model;

[0146] The fusion module 708 is used to fuse the first model section and the second model section and display them to guide the puncture needle to move to a specified position.

[0147] Each module in the above device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module above.

[0148] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 8As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, an image registration method or an image optimization display method is realized. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0149] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0150] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, each step of the above-mentioned image registration method or image optimization display method is implemented.

[0151] In one embodiment, a computer program product is provided, including a computer program, and when the computer program product is executed by a processor, the computer program product implements each step of the above-mentioned image registration method or image optimization display method.

[0152] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0153] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0154] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. An image registration method, characterized in that: include: In response to the configuration instruction, acquiring a first image and a second image corresponding to the target object; Input the first image into a pre-trained first image segmentation model to obtain a first segmented image corresponding to the first image, and input the second image into a pre-trained second image segmentation model to obtain a second segmented image corresponding to the second image; the first image segmentation model includes an encoding module, a perception module and a decoding module; the encoding module includes a first preset number of encoding units connected in sequence, and the encoding unit includes a convolutional encoding layer and a downsampling layer connected in sequence; the decoding module includes a first preset number of decoding units connected in sequence, and the decoding unit includes an upsampling layer, a feature fusion layer and a convolutional decoding layer connected in sequence; the perception module includes a second preset number of first perception units and a second preset number of second perception units connected in sequence; wherein the number of channels corresponding to the downsampling layer and the number of channels corresponding to each of the first perception units increase in sequence according to the connection sequence of the encoding unit corresponding to each of the downsampling layers and the first perception unit; the number of channels corresponding to each of the upsampling layers and the number of channels corresponding to each of the second perception units decrease in sequence according to the connection sequence of the decoding unit corresponding to each of the upsampling layers and the second perception unit; Performing three-dimensional reconstruction based on the first segmented image and the second segmented image to obtain a first three-dimensional model corresponding to the first segmented image and a second three-dimensional model corresponding to the second segmented image; The first three-dimensional model and the second three-dimensional model are input into a pre-trained image registration model to obtain a target deformation field, and the first three-dimensional model and the second three-dimensional model are registered based on the target deformation field.

2. The method according to claim 1, characterized in that: The step of inputting the first image into a pre-trained first image segmentation model to obtain a first segmented image corresponding to the first image includes: Inputting the first image into the sequentially connected encoding units to obtain convolution sampling features corresponding to the first image; Inputting the convolution sampling features into the perception module to obtain perception features corresponding to the first image; Inputting the perceptual features into sequentially connected decoding units to obtain a mask image corresponding to the first image; Based on the mask image, the first image is binarized to obtain the first segmented image.

3. The method according to claim 2, characterized in that The step of inputting the first image into the sequentially connected encoding units to obtain the convolution sampling features corresponding to the first image includes: Determining a first serial structure consisting of a first preset number of convolutional coding layers and a first preset number of downsampling layers according to a connection order of the coding units; Inputting the first image into the first series structure to obtain the convolution sampling feature; The step of inputting the perceptual features into sequentially connected decoding units to obtain a mask image corresponding to the first image comprises: Determine, according to the connection order of the decoding units, a second series structure consisting of a first preset number of convolution decoding layers, a first preset number of feature fusion layers, and a first preset number of upsampling layers; The perception feature is input into the second series structure to obtain the mask image.

4. The method according to claim 1, characterized in that: The performing three-dimensional reconstruction based on the first segmented image and the second segmented image to obtain a first three-dimensional model corresponding to the first segmented image and a second three-dimensional model corresponding to the second segmented image includes: Using a three-dimensional reconstruction algorithm, three-dimensionally reconstruct the first segmented image and the second segmented image respectively to obtain a first initial model corresponding to the first segmented image and a second initial model corresponding to the second segmented image; The first initial model and the second initial model are respectively voxelized to obtain the first three-dimensional model and the second three-dimensional model.

5. The method according to claim 1, characterized in that The target deformation field includes spatial state information; The registering the first three-dimensional model and the second three-dimensional model based on the target deformation field includes: Inputting the first three-dimensional model and the second three-dimensional model into a feature prediction model respectively, to obtain at least one first predicted feature point included in the first three-dimensional model and at least one second predicted feature point included in the second three-dimensional model; Based on the spatial state information, a mapping is established between the first predicted feature points and the second predicted feature points to perform registration of the first three-dimensional model and the second three-dimensional model.

6. The method according to claim 1, characterized in that The step of acquiring the first image and the second image corresponding to the target object includes: When the first image is a two-dimensional image, acquiring at least two first images corresponding to the target object; When the first image is a three-dimensional graphic, obtaining a first image corresponding to the target object; When the second image is a two-dimensional image, acquiring at least two second images corresponding to the target object; When the second image is a three-dimensional graphic, a second image corresponding to the target object is obtained.

7. The method according to claim 6, characterized in that The acquiring at least two first images corresponding to the target object includes: Along a preset direction, a capture device is used to capture a sequence of images at a preset frequency to obtain at least two of the first images.

8. An image optimization display method, characterized in that: The image registration method according to any one of claims 1 to 7 is used to obtain a first three-dimensional model, a second three-dimensional model, and a registration relationship between the first three-dimensional model and the second three-dimensional model corresponding to the target object, including: In response to the acquisition instruction, real-time position information of the puncture needle head is acquired, and a real-time first image corresponding to the target object is acquired based on the real-time position information; Inputting the real-time first image and the first three-dimensional model into a pre-trained transformation model to obtain a first model section corresponding to the real-time first image in the first three-dimensional model; Based on the registration relationship between the first three-dimensional model and the second three-dimensional model, matching a second model section corresponding to the first model section in the second three-dimensional model; The first model section and the second model section are fused and displayed to guide the puncture needle to move to a specified position.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the image registration method described in any one of claims 1 to 7 or the image optimization display method described in claim 8 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the image registration method described in any one of claims 1 to 7 or the image optimization display method described in claim 8 are implemented.

11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the image registration method described in any one of claims 1 to 7 or the image optimization display method described in claim 8 are implemented.