A multi-source image fusion method for robotic surgery based on edge enhancement sampling

The multi-source image fusion method through edge-enhanced sampling solves the problem of insufficient visual perception in laparoscopic surgery, achieves precise image fusion and real-time positioning, and improves surgical accuracy and safety.

CN118469839BActive Publication Date: 2024-09-27HUNAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410941877.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-09-27
Estimated Expiration
2044-07-15

AI Technical Summary

Technical Problem

The existing endoscopic surgical robot's visual perception system is insufficient and cannot effectively observe the internal information under the surface of the organ. This may lead to problems such as bleeding, inaccurate positioning of lesions, and excessive removal of healthy tissue during surgery, which affects the surgical effect and patient recovery.

Method used

A multi-source image fusion method for robotic surgery based on edge-enhanced sampling is adopted. By constructing an edge-enhanced fusion network and a multi-point perspective imaging model with random sampling consistency, the anatomical features of the two-dimensional intraoperative images are extracted and matched with the preoperative three-dimensional images. Accurate, achieving precise fusion and real-time positioning of images.

Benefits of technology

It improves the doctor's target recognition and positioning capabilities during surgery, enhances the accuracy and safety of surgical operations, meets real-time requirements, and reduces errors and recovery time during surgery.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118469839B
    Figure CN118469839B
Patent Text Reader

Abstract

The present invention discloses a multi-source image fusion method for robotic surgery based on edge enhancement sampling. An improved multi-directional Sobel operator is used to process an input image to obtain a preliminary edge feature map. A dual encoder is used to encode the input image and the preliminary edge feature map. The encoding result of each stage is input into an edge attention enhancement module to calculate the attention weights of the edge feature maps of different stages, and the attention weights are fused with the input features of the same stage to obtain the edge enhancement feature map of each stage. The edge enhancement feature maps of different stages are fused using a feature multi-order fusion module, and the output is jump-connected with the decoder of the same stage to extract the features of anatomical markers of two-dimensional intraoperative images. A multi-point perspective imaging model is used to calculate the conversion matrix between the extracted two-dimensional intraoperative anatomical features and the known three-dimensional preoperative anatomical features, and the position and posture of the two-dimensional intraoperative image in the three-dimensional preoperative image are predicted to realize the registration and fusion of anatomical features of multi-source images of robotic surgery.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of computer vision, and in particular relates to a multi-source image fusion method for robotic surgery based on edge enhancement sampling. Background Art

[0002] As an innovative intelligent medical device, laparoscopic surgical robots are a typical application of robot-assisted surgery. They can perform delicate surgical operations in human cavities, blood vessels and nerve-dense areas. They have the advantages of small surgical trauma, low infection risk and fast postoperative recovery. They are a research hotspot in the current field of medical robots. However, the visual perception system of existing laparoscopic surgical robots is still incomplete. They only provide doctors with surgical vision through simple laparoscopic equipment. The limited field of view seriously limits the ability of doctors to identify key anatomical structures during surgery. In addition, the essence of the laparoscope is an optical camera with weak environmental perception ability. It is impossible to effectively observe the internal information under the surface of the organ (such as the location of lesions, blood vessels, etc.). Therefore, doctors often rely on the naked eye to observe preoperative images to infer the location of hidden targets inside during surgery. However, since this positioning is mostly based on the doctor's clinical experience and inference, it may cause bleeding (miscutting blood vessels), inaccurate lesion positioning, and excessive removal of healthy tissue during surgery, which seriously affects the surgical effect and the patient's postoperative recovery. Therefore, if we can develop a method that can accurately register and fuse preoperative images during surgery through technical means such as computer vision and multi-source image registration and fusion, and integrate the global information about the surgical environment in the preoperative images into the doctor's laparoscopic video field of view, and locate the position of the surgical target in real time, it will greatly enhance the doctor's ability to identify and locate the surgical target, realize the transformation of clinical decision-making from subjective to objective, and effectively improve the accuracy of surgical operations.

[0003] Multi-source image registration and fusion technology has been initially applied to medical images of eyes, brain, spine, liver and other parts. A school proposed a method for registration of preoperative 3D models and intraoperative laparoscopic video images based on key point matching. This method first selects key points on the preoperative 3D reconstruction model, and then uses these feature points to match the intraoperative laparoscopic video targets. However, due to the complexity of the laparoscopic surgery scene, the registration effect of tissue edge targets is poor, and because the features are artificially marked, the robustness and efficiency of the registration need to be improved. The school proposed an improved closest point iteration technology to achieve the registration of laparoscopic video and CT reconstruction model, which is used to display the structure reconstructed by preoperative CT images during laparoscopic nephrectomy. However, this method requires iterative optimization of each image, which takes a long time and does not meet the real-time requirements of intraoperative registration. Based on this, the present invention proposes a multi-source image fusion method for robotic surgery based on edge enhancement sampling. Summary of the invention

[0004] In view of the above technical problems, the present invention provides a robotic surgery multi-source image fusion method based on edge enhancement sampling.

[0005] The technical solution adopted by the present invention to solve the technical problem is:

[0006] A multi-source image fusion method for robotic surgery based on edge enhancement sampling, the method comprising the following steps:

[0007] S100: Construct an edge enhancement fusion network and a multi-point perspective imaging model with random sampling consistency, wherein the edge enhancement fusion network includes a backbone structure with dual encoders and decoders, an edge attention enhancement module, and a feature multi-order fusion module, designs a connected domain loss function, and uses the connected domain loss, cross entropy loss, and dice loss as a hybrid loss to optimize the edge enhancement fusion network;

[0008] S200: obtaining an input image, processing the input image using an improved multi-directional Sobel operator to obtain a preliminary edge feature map, encoding the input image and the preliminary edge feature map simultaneously using a dual encoder, and outputting encoding results at different stages;

[0009] S300: Input the encoding result of each stage into the edge attention enhancement module, calculate the attention weights of the edge feature maps of different stages through strip convolutions and channel attentions of different scales, and fuse them with the input features of the same stage to obtain the edge enhancement feature map of each stage;

[0010] S400: using a feature multi-stage fusion module to fuse edge enhancement feature maps at different stages in a multiplication and addition manner, and jump-connecting the output to the decoder at the same stage, ultimately effectively extracting features of anatomical landmarks in two-dimensional intraoperative images;

[0011] S500: Use the multi-point perspective imaging model with random sampling consistency to calculate the transformation matrix between the extracted 2D intraoperative anatomical features and the known 3D preoperative image anatomical features, predict the position of the 2D intraoperative image in the 3D preoperative image, and ultimately achieve effective registration and fusion of anatomical features of multi-source images in robotic surgery.

[0012] Preferably, S200 includes:

[0013] S210: Obtain an input image, and use an improved multi-directional Sobel operator to process the input image to obtain a preliminary edge feature map, wherein the multi-directional Sobel operation is mathematically expressed as:

[0014] ;

[0015] ;

[0016] ;

[0017] ;

[0018] ;

[0019] in, represents the input image, Represents the result of Sobel operation on the input image in the horizontal direction. Represents the result of Sobel operation on the input image in the vertical direction. Represents the result of Sobel operation on the input image at a 45-degree tilt angle. Represents the result of Sobel operation on the input image at an angle of -45 degrees. Represents the preliminary edge feature map obtained after multi-directional Sobel operation, Represents the convolution operation;

[0020] S220: Use a dual encoder to simultaneously encode the input image and the preliminary edge feature map, wherein the original image is input into the Swin Transformer encoder pre-trained with ImageNet for encoding, and the preliminary edge feature map is input into the ResNet-50 encoder pre-trained with ImageNet for encoding. When making the encoder, the last pooling layer and the fully connected layer of the ResNet-50 network are removed, and a 1×1 convolution operation and a PReLu nonlinear activation layer are added after the primary features output by each stage of the dual encoder for preliminary feature integration, and the first Phase coding features and edge encoding features , ,in Represents different encoding stages.

[0021] Preferably, the edge attention enhancement module comprises an edge enhancement unit for extracting edge attention weights and a feature integration unit for extracting deep coding features;

[0022] The edge enhancement unit contains four edge attention branches, each of which consists of strip convolutions of different scales and channel attention. The strip convolutions include four scales of 1×9, 9×1, 1×15, and 15×1, which are used for four branches respectively. The channel attention consists of four parts, namely, the two-branch global average pooling and maximum pooling layer for extracting deep features of the channel dimension, the MLP layer in each branch for establishing the association between channels, the two-branch element-by-element addition operation for preliminary integration of feature weights, and the sigmoid activation layer for activating feature weights as attention weights.

[0023] The feature integration unit consists of two branches, each of which is composed of a series of long strip convolutions with convolution kernels of 9×1, 1×9 and 15×1, 1×15.

[0024] Preferably, S300 includes:

[0025] S310: Edge encoding features for input , the edge attention weights are extracted through the four edge attention branches of the edge enhancement unit, and then the weights obtained from the branches with the same convolution kernel size are initially fused in an element-by-element addition manner to obtain the first Edge fusion attention weights at each stage , ;

[0026] S320: Encoding features for input , deep encoding features are extracted respectively through the two branches of the feature integration unit;

[0027] S330: The two types of deep coding features obtained are fused with the edge fusion attention weights of the same convolution kernel size by element-by-element multiplication to obtain two types of fused attention features. In order to prevent the gradient from disappearing, the residual branch is finally introduced to fuse the two types of fused attention features with the input original coding features by element-by-element addition to obtain the output Stage edge attention enhancement features .

[0028] Preferably, S300 specifically includes:

[0029] ;

[0030] ;

[0031] in, Representative The encoded features of the stage input, Representative The edge encoding features of the stage input, Representative Edge attention enhanced features output by the stage EAE module , Representative The stage convolution kernel is The edge fusion attention weight obtained by the branch; and They represent the convolution kernels respectively. and The convolution operation is ; CA() stands for channel attention, which consists of two branches of global average pooling and maximum pooling, MLP, branch element-by-element addition, and continuous operations of sigmoid activation.

[0032] Preferably, S400 includes:

[0033] S410: Edge attention enhancement features output by the stage edge attention enhancement module With the remaining The edge attention enhancement features output by the edge attention enhancement module in the first stage are fused by combining multiplication and addition to obtain Stage edge enhancement feature ;

[0034] S420: The obtained Stage edge enhancement feature Jumping to the decoder at the same stage, firstly, continuous convolution and upsampling operations are used to integrate the scale and channel of the features, and then the decoded features of different stages are fused through cascade operations, and finally the features are integrated into the output image size to obtain the edge enhanced fusion feature map output by the network. , to achieve effective extraction of anatomical landmark features in two-dimensional intraoperative images; among them, the continuous convolutional layers are composed of convolution kernels of 1×1, 3×3, and 1×1, a batch normalization layer, and a PReLu activation layer alternately.

[0035] Preferably, S410 specifically includes:

[0036] ;

[0037] in, , Representative , The edge attention enhancement feature output by the EAE module in the stage, Representative The edge fusion enhancement feature of the stage, represents the point-by-point multiplication operation of the matrix, Represents the consecutive operations of 1×1, 3×3, and 1×1 convolutions, batch normalization, and PReLu activation.

[0038] Preferably, S500 includes: S510: extracting the anatomical marker features of the two-dimensional intraoperative image By taking the average of the ordinates of each column of feature points and rounding them down, we get the central feature point of each column, and then we get the edge feature curve of the marker by evenly connecting the central feature points. ;

[0039] S520: According to the edge characteristic curve The curvature and vector angle relationship is used to calculate the connection relationship between each feature point and the adjacent points, extract the key feature points, and obtain the edge feature point set in the laparoscope camera coordinate system. , and calculate the edge feature point set in the world coordinate system based on the curvature and vector angle relationship of the known three-dimensional feature point set in the three-dimensional preoperative model , is a positive integer;

[0040] S530: From the edge feature point set in the laparoscope camera coordinate system and the world coordinate system , Randomly select three groups of feature points with corresponding relationships, calculate the coordinate transformation relationship between each group of feature points, and predict the rotation matrix between the coordinate systems and the offset vector ;

[0041] S540: Calculate the positions of the remaining feature points in the world coordinate system in the laparoscope camera coordinate system through the predicted conversion relationship between the coordinate systems and through and The Huffman distance calculation error between point sets is calculated. When the predicted pose meets the minimum accuracy requirement of the model, the pose prediction of the laparoscopic camera coordinate system in the world coordinate system is completed, and finally the effective fusion of multi-source image anatomical features of robotic surgery is realized.

[0042] Preferably, in S530, for a group of corresponding feature points , , the transformation relationship between the two points is:

[0043] ;

[0044] The S540 also includes:

[0045] When the predicted pose does not meet the minimum accuracy requirement of the model, the feature points are reselected for calculation. The average prediction error is minimized through multiple iterations to complete the prediction of the pose of the laparoscopic camera coordinate system in the world coordinate system, ultimately achieving the effective fusion of anatomical features of multi-source images in robotic surgery.

[0046] Preferably, the connected domain loss function in S100 is Specifically:

[0047] ;

[0048] in, represents the connected domain loss function, represents the number of connected domains in the true label, Represents the number of connected domains in the prediction results, Is a constant, representing the loss weight of the connected domain;

[0049] Connected domain loss, cross entropy loss and dice loss are used as hybrid losses to jointly optimize the edge enhancement fusion network:

[0050] ;

[0051] ;

[0052] ;

[0053] in, represents the cross entropy loss, represents the dice loss, represents the mixed loss, represents the true label, Represents the predicted result, Representative The true value of pixels, Representative The predicted value of pixels, represents the number of pixels of the sample, , is a constant representing the weight of each function in the mixed loss.

[0054] The above-mentioned multi-source image fusion method for robotic surgery based on edge-enhanced sampling constructs an edge-enhanced fusion network to extract anatomical feature markers, extracts key anatomical curve areas of intraoperative laparoscopic video, and then designs a multi-point perspective imaging model with random sampling consistency to realize the registration and fusion of preoperative and intraoperative target multi-source information into the doctor's laparoscopic video field of view, providing comprehensive visual guidance for the doctor's surgery and ensuring the safe implementation of robotic surgery. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 This is a flow chart of a multi-source image fusion method for robotic surgery based on edge enhancement sampling in one embodiment of the present invention;

[0056] Figure 2 This is an overall structural diagram of an edge enhancement fusion network in one embodiment of the present invention;

[0057] Figure 3 Schematic diagram of the structure of an edge attention enhancement module in one embodiment of the present invention;

[0058] Figure 4 Schematic diagram of a multi-point perspective imaging model with random sampling consistency in a surgical scene in one embodiment of the present invention; wherein (a) is a preoperative three-dimensional model, (b) is an intraoperative laparoscopic video, (c) is a world coordinate system, and (d) is a laparoscopic camera coordinate system;

[0059] Figure 5 Schematic diagram of the effect of multi-source image registration in one embodiment of the present invention; wherein (a) is the preoperative three-dimensional model, (b) is the original laparoscope video during the operation, (c) is the edge enhancement fusion feature, (d) is the fusion reference result, and (e) is the preoperative and intraoperative multi-source image fusion result. DETAILED DESCRIPTION

[0060] In order to enable those skilled in the art to better understand the technical solution of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings.

[0061] In one embodiment, Figure 1 and Figure 2 As shown, a multi-source image fusion method for robotic surgery based on edge enhancement sampling, the method comprises the following steps:

[0062] S100: Construct an edge-enhanced fusion network and a multi-point perspective imaging model with random sampling consistency, where the edge-enhanced fusion network includes a backbone structure with dual encoders and decoders, an edge attention enhancement module, and a feature multi-order fusion module. Design a connected domain loss function, and use the connected domain loss, cross entropy loss, and dice loss as a hybrid loss to optimize the edge-enhanced fusion network.

[0063] Specifically, the edge enhancement fusion network is used to extract anatomical feature markers, and the multi-point perspective imaging model with random sampling consistency realizes the registration and fusion of multi-source information of preoperative and intraoperative targets.

[0064] Furthermore, since most of the anatomical landmarks in the two-dimensional laparoscopic image are slender edge curves (contour lines, ligaments, etc.), a connected domain loss function is designed to ensure the continuity of edge curve segmentation. In one embodiment, the connected domain loss function in S100 Specifically:

[0065] ;

[0066] in, represents the connected domain loss function, represents the number of connected domains in the true label, Represents the number of connected domains in the prediction results, Is a constant, representing the loss weight of the connected domain;

[0067] Connected domain loss, cross entropy loss and dice loss are used as hybrid losses to jointly optimize the edge enhancement fusion network:

[0068] ;

[0069] ;

[0070] ;

[0071] in, represents the cross entropy loss, represents the dice loss, represents the mixed loss, represents the true label, Represents the predicted result, Representative The true value of pixels, Representative The predicted value of pixels, represents the number of pixels of the sample, , is a constant representing the weight of each function in the mixed loss.

[0072] Specifically, in this embodiment, ,Pick .

[0073] S200: Obtain an input image, use an improved multi-directional Sobel operator to process the input image to obtain a preliminary edge feature map, use a dual encoder to simultaneously encode the input image and the preliminary edge feature map, and output encoding results at different stages.

[0074] Specifically, the Sobel operator is a discrete differential operator used for edge detection. A single Sobel operator can effectively extract edge features in a certain direction in an image. In order to enhance the network's ability to extract and recognize edge features, an improved multi-directional Sobel operator is designed. The preliminary extraction of edge features is achieved by superposition of Sobel operators in multiple directions.

[0075] In one embodiment, S200 includes:

[0076] S210: Obtain an input image, and use an improved multi-directional Sobel operator to process the input image to obtain a preliminary edge feature map, wherein the multi-directional Sobel operation is mathematically expressed as:

[0077] ;

[0078] ;

[0079] ;

[0080] ;

[0081] ;

[0082] in, represents the input image, Represents the result of Sobel operation on the input image in the horizontal direction. Represents the result of Sobel operation on the input image in the vertical direction. Represents the result of Sobel operation on the input image at a 45-degree tilt angle. Represents the result of Sobel operation on the input image at an angle of -45 degrees. Represents the preliminary edge feature map obtained after multi-directional Sobel operation, Represents the convolution operation;

[0083] S220: Use a dual encoder to simultaneously encode the input image and the preliminary edge feature map, wherein the original image is input into the Swin Transformer encoder pre-trained with ImageNet for encoding, and the preliminary edge feature map is input into the ResNet-50 encoder pre-trained with ImageNet for encoding. When making the encoder, the last pooling layer and the fully connected layer of the ResNet-50 network are removed, and a 1×1 convolution operation and a PReLu nonlinear activation layer are added after the primary features output by each stage of the dual encoder for preliminary feature integration, and the first Phase coding features and edge encoding features , ,in Represents different encoding stages.

[0084] In one embodiment, the edge attention enhancement module includes an edge enhancement unit for extracting edge attention weights and a feature integration unit for extracting deep coding features;

[0085] The edge enhancement unit contains four edge attention branches, each of which consists of strip convolutions of different scales and channel attention. The strip convolutions include four scales of 1×9, 9×1, 1×15, and 15×1, which are used for four branches respectively. The channel attention consists of four parts, namely, the two-branch global average pooling and maximum pooling layer for extracting deep features of the channel dimension, the MLP layer in each branch for establishing the association between channels, the two-branch element-by-element addition operation for preliminary integration of feature weights, and the sigmoid activation layer for activating feature weights as attention weights.

[0086] The feature integration unit consists of two branches, each of which is composed of a series of long strip convolutions with convolution kernels of 9×1, 1×9 and 15×1, 1×15.

[0087] Specifically, since long strip convolutions are more likely to capture slender edge features, the attention mechanism can better focus on and filter the region of interest. Therefore, the edge attention enhancement module uses long strip convolutions and channel attention of different scales to focus on the first Encoded features of stage input and edge encoding features Fusion.

[0088] Furthermore, using a larger convolution kernel in the strip convolution can obtain a larger receptive field, which helps to capture more complete and continuous edge information.

[0089] S300: Input the encoding result of each stage into the edge attention enhancement module, calculate the attention weights of the edge feature maps of different stages through strip convolutions and channel attention of different scales, and fuse them with the input features of the same stage to obtain the edge enhanced feature map of each stage.

[0090] In one embodiment, Figure 3 As shown, S300 includes:

[0091] S310: Edge encoding features for input , the edge attention weights are extracted through the four edge attention branches of the edge enhancement unit, and then the weights obtained from the branches with the same convolution kernel size are initially fused in an element-by-element addition manner to obtain the first Edge fusion attention weights at each stage , ;

[0092] S320: Encoding features for input , deep encoding features are extracted respectively through the two branches of the feature integration unit;

[0093] S330: The two types of deep coding features obtained are fused with the edge fusion attention weights of the same convolution kernel size by element-by-element multiplication to obtain two types of fused attention features. In order to prevent the gradient from disappearing, the residual branch is finally introduced to fuse the two types of fused attention features with the input original coding features by element-by-element addition to obtain the output Stage edge attention enhancement features .

[0094] In one embodiment, S300 specifically includes:

[0095] ;

[0096] ;

[0097] in, Representative The encoded features of the stage input, Representative The edge encoding features of the stage input, Representative Edge attention enhanced features output by the stage EAE module , Representative The stage convolution kernel is The edge fusion attention weight obtained by the branch; and They represent the convolution kernels respectively. and The convolution operation is ; CA() stands for channel attention, which consists of two branches of global average pooling and maximum pooling, MLP, branch element-by-element addition, and continuous operations of sigmoid activation.

[0098] S400: The feature multi-stage fusion module is used to fuse the edge enhancement feature maps of different stages in a multiplication and addition manner, and the output is jump-connected to the decoder of the same stage, so as to effectively extract the features of the anatomical landmarks of the two-dimensional intraoperative image.

[0099] In one embodiment, S400 includes:

[0100] S410: Edge attention enhancement features output by the stage edge attention enhancement module With the remaining The edge attention enhancement features output by the edge attention enhancement module in the first stage are fused by combining multiplication and addition to obtain Stage edge enhancement feature ;

[0101] S420: The obtained Stage edge enhancement feature Jumping to the decoder at the same stage, firstly, continuous convolution and upsampling operations are used to integrate the scale and channel of the features, and then the decoded features of different stages are fused through cascade operations, and finally the features are integrated into the output image size to obtain the edge enhanced fusion feature map output by the network. , to achieve effective extraction of anatomical landmark features in two-dimensional intraoperative images; among them, the continuous convolutional layers are composed of convolution kernels of 1×1, 3×3, and 1×1, a batch normalization layer, and a PReLu activation layer alternately.

[0102] Furthermore, in S410, for the first stage, in order to increase the global correlation between branches and reduce the gradient explosion or gradient vanishing problem caused by continuous multiplication operations, the edge attention enhancement features of the remaining three stages are first preliminarily fused by combining element-by-element addition with continuous convolutional layers, and then combined with the edge attention enhancement features of the first stage. The deep fusion is performed by element-by-element multiplication, and then the features are integrated through continuous convolutional layers to obtain the first Stage edge enhancement feature ; For stages 2-4, simply transfer the remaining The edge attention enhancement features of the previous stage are fused with the edge attention enhancement features of the current stage by element-by-element multiplication, and then the features are integrated through continuous convolutional layers to obtain the edge enhancement features of the current stage.

[0103] In one embodiment, S410 specifically includes:

[0104] ;

[0105] in, , Representative , The edge attention enhancement feature output by the EAE module in the stage, Representative The edge fusion enhancement feature of the stage, represents the point-by-point multiplication operation of the matrix, Represents the consecutive operations of 1×1, 3×3, and 1×1 convolutions, batch normalization, and PReLu activation.

[0106] S500: Use the multi-point perspective imaging model with random sampling consistency to calculate the transformation matrix between the extracted 2D intraoperative anatomical features and the known 3D preoperative image anatomical features, predict the position of the 2D intraoperative image in the 3D preoperative image, and ultimately achieve effective registration and fusion of anatomical features of multi-source images in robotic surgery.

[0107] Specifically, the 2D intraoperative image is obtained by using the known camera intrinsic parameters The laparoscope camera captures the relative position of the anatomical structure in the doctor's field of view (including the fixed focal length f and the camera aperture center c). The 3D preoperative image corresponds to the relative position of each key anatomical structure in the real 3D environment. In order to predict the position of the 2D intraoperative image in the 3D preoperative image and achieve a one-to-one correspondence between the key structures in the 2D image and the real patient anatomical structure, first take the optical center of the laparoscope camera as the origin and the optical axis as the z c Axis, parallel to the plane where the two-dimensional image is located x c , yc The axis establishes the camera coordinate system, where z c The axis extends to intersect the center of the 2D image ; Take the origin of the three-dimensional human body model and x w , y w , z w The axis is used as the world coordinate system, which converts the prediction of posture into the transformation and prediction of the relationship between coordinate systems.

[0108] In one embodiment, S500 includes:

[0109] S510: Extracted 2D intraoperative imaging anatomical landmark features By taking the average of the ordinates of each column of feature points and rounding them down, we get the central feature point of each column, and then we get the edge feature curve of the marker by evenly connecting the central feature points. ;

[0110] S520: According to the edge characteristic curve The curvature and vector angle relationship of each feature point is used to calculate the connection relationship between each feature point and the adjacent points, and the key feature points (such as endpoints, inflection points, corner points, etc.) are extracted to obtain the edge feature point set in the laparoscope camera coordinate system. , and calculate the edge feature point set in the world coordinate system based on the curvature and vector angle relationship of the known three-dimensional feature point set in the three-dimensional preoperative model , is a positive integer;

[0111] S530: From the edge feature point set in the laparoscope camera coordinate system and the world coordinate system , Randomly select three groups of feature points with corresponding relationships, calculate the coordinate transformation relationship between each group of feature points, and predict the rotation matrix between the coordinate systems and the offset vector ;

[0112] S540: Calculate the positions of the remaining feature points in the world coordinate system in the laparoscope camera coordinate system through the predicted conversion relationship between the coordinate systems and through and The Huffman distance calculation error between point sets is calculated. When the predicted pose meets the minimum accuracy requirement of the model, the pose prediction of the laparoscopic camera coordinate system in the world coordinate system is completed, and finally the effective fusion of multi-source image anatomical features of robotic surgery is realized.

[0113] In one embodiment, in S530, for a group of corresponding feature points , , the transformation relationship between the two points is:

[0114] ;

[0115] The S540 also includes:

[0116] When the predicted pose does not meet the minimum accuracy requirement of the model, the feature points are reselected for calculation. The average prediction error is minimized through multiple iterations to complete the prediction of the pose of the laparoscopic camera coordinate system (two-dimensional intraoperative image) in the world coordinate system (three-dimensional preoperative image), ultimately achieving the effective fusion of anatomical features of multi-source images in robotic surgery.

[0117] Specifically, the schematic diagram of the multi-point perspective imaging model with random sampling consistency in the surgical scene is as follows: Figure 4 As shown, Represents the edge feature points in the 3D preoperative model (world coordinate system), Represents the edge feature points in the intraoperative laparoscopic video (laparoscopic camera coordinate system), Represents the intersection of the laparoscope camera optical axis and the two-dimensional image. The schematic diagram of the effect of multi-source image registration is as follows Figure 5 As shown, the edge enhancement fusion network is first used to extract the edge enhancement fusion features, and then the preoperative and intraoperative multi-source image fusion results are obtained by calculating the transformation relationship of the feature points between coordinate systems. Figure 5 The fusion reference result in is the standard result obtained based on the known camera intrinsic and extrinsic parameters (in the laparoscopic video image of 1920×1080, the average Hoffman distance error of the feature point set is 89.45 pixels), and the preoperative and intraoperative multi-source image fusion results are the fusion results calculated according to the present invention (in the laparoscopic video image of 1920×1080, the average Hoffman distance error of the feature point set is 55.20 pixels, and the processing time is 0.043 seconds). According to the comparison, it can be seen that the error of the present invention is much smaller than the standard result. It can also be intuitively seen from the picture that the present invention has a higher matching degree for the features and a better fusion effect. In addition, the present invention has a fast fusion speed, which can meet the real-time requirements of the algorithm during the doctor's operation, demonstrating the effectiveness of the present invention for multi-source image fusion in robotic surgery.

[0118] The above-mentioned multi-source image fusion method for robotic surgery based on edge-enhanced sampling constructs an edge-enhanced fusion network to extract anatomical feature markers, extracts key anatomical curve areas of intraoperative laparoscopic video, and then designs a multi-point perspective imaging model with random sampling consistency to realize the registration and fusion of preoperative and intraoperative target multi-source information into the doctor's laparoscopic video field of view, providing comprehensive visual guidance for the doctor's surgery and ensuring the safe implementation of robotic surgery.

[0119] The above is a detailed introduction to a multi-source image fusion method for robotic surgery based on edge enhancement sampling provided by the present invention. This article uses specific examples to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the core idea of ​​the present invention. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.

Claims

1. A multi-source image fusion method for robotic surgery based on edge enhancement sampling, characterized in that: The method comprises the following steps: S100: Construct an edge enhancement fusion network and a multi-point perspective imaging model with random sampling consistency, wherein the edge enhancement fusion network includes a backbone structure with dual encoders and decoders, an edge attention enhancement module and a feature multi-order fusion module, designs a connected domain loss function, and uses the connected domain loss function, the cross entropy loss function and the dice loss function to construct a hybrid loss function to optimize the edge enhancement fusion network; S200: obtaining an input image, processing the input image using an improved multi-directional Sobel operator to obtain a preliminary edge feature map, encoding the input image and the preliminary edge feature map simultaneously using a dual encoder, and outputting encoding results at different stages; S300: Input the encoding result of each stage into the edge attention enhancement module, calculate the attention weights of the edge feature maps of different stages through strip convolutions and channel attentions of different scales, and fuse them with the encoding results of the same stage to obtain the edge enhancement feature map of each stage; S400: using a feature multi-stage fusion module to fuse edge enhancement feature maps at different stages in a multiplication and addition manner, and jump-connecting the output to the decoder at the same stage, ultimately effectively extracting anatomical features of two-dimensional intraoperative images; S500: Use the multi-point perspective imaging model with random sampling consistency to calculate the transformation matrix between the extracted 2D intraoperative image anatomical features and the known 3D preoperative image anatomical features, predict the position of the 2D intraoperative image in the 3D preoperative image, and ultimately achieve effective registration and fusion of multi-source image anatomical features in robotic surgery.

2. The method according to claim 1, characterized in that S200 includes: S210: Obtain an input image, and use an improved multi-directional Sobel operator to process the input image to obtain a preliminary edge feature map, wherein the multi-directional Sobel operation is mathematically expressed as: ; ; ; ; ; in, represents the input image, Represents the result of Sobel operation on the input image in the horizontal direction. Represents the result of Sobel operation on the input image in the vertical direction. Represents the result of Sobel operation on the input image at an angle of 45 degrees. Represents the result of Sobel operation on the input image at an angle of -45 degrees. Represents the preliminary edge feature map obtained after multi-directional Sobel operation, Represents the convolution operation; S220: Use a dual encoder to simultaneously encode the input image and the preliminary edge feature map, wherein the original image is input into the Swin Transformer encoder pre-trained with ImageNet for encoding, and the preliminary edge feature map is input into the ResNet-50 encoder pre-trained with ImageNet for encoding. When making the encoder, the last pooling layer and the fully connected layer of the ResNet-50 network are removed, and a 1×1 convolution operation and a PReLu nonlinear activation layer are added after the primary features output by each stage of the dual encoder for preliminary feature integration, and the first Phase coding features and edge encoding features , ,in Represents different encoding stages.

3. The method according to claim 2, characterized in that The edge attention enhancement module includes an edge enhancement unit for extracting edge attention weights and a feature integration unit for extracting deep coding features; The edge enhancement unit contains four edge attention branches, each of which consists of strip convolutions of different scales and channel attention. The strip convolutions include four scales of 1×9, 9×1, 1×15, and 15×1, which are used for four branches respectively. The channel attention consists of four parts, namely, the two-branch global average pooling and maximum pooling layer for extracting deep features of the channel dimension, the MLP layer in each branch for establishing the association between channels, the two-branch element-by-element addition operation for preliminary integration of feature weights, and the sigmoid activation layer for activating feature weights as attention weights. The feature integration unit consists of two branches, each of which is composed of a series of long strip convolutions with convolution kernels of 9×1, 1×9 and 15×1, 1×15.

4. The method according to claim 3, characterized in that S300 includes: S310: Edge encoding features for input , the edge attention weights are extracted through the four edge attention branches of the edge enhancement unit, and then the weights obtained from the branches with the same convolution kernel size are initially fused in an element-by-element addition manner to obtain the first Edge fusion attention weights at each stage , ; S320: Encoding features for input , deep encoding features are extracted respectively through the two branches of the feature integration unit; S330: The two types of deep coding features obtained are fused with the edge fusion attention weights of the same convolution kernel size by element-by-element multiplication to obtain two types of fused attention features. In order to prevent the gradient from disappearing, the residual branch is finally introduced to fuse the two types of fused attention features with the input original coding features by element-by-element addition to obtain the output Stage edge attention enhancement features .

5. The method according to claim 4, characterized in that S300 is specifically: ; ; in, Representative The encoded features of the stage input, Representative The edge encoding features of the stage input, Representative Edge attention enhanced features output by the stage EAE module , Representative The stage convolution kernel is The edge fusion attention weight obtained by the branch; and They represent the convolution kernels respectively. and The convolution operation is ; CA() stands for channel attention, which consists of two branches of global average pooling and maximum pooling, MLP, branch element-by-element addition, and continuous operations of sigmoid activation.

6. The method according to claim 5, characterized in that S400 includes: S410: Edge attention enhancement features output by the stage edge attention enhancement module With the remaining The edge attention enhancement features output by the edge attention enhancement module in the first stage are fused by combining multiplication and addition to obtain Stage edge enhancement feature ; S420: The obtained Stage edge enhancement feature Jumping to the decoder at the same stage, firstly, continuous convolution and upsampling operations are used to integrate the scale and channel of the features, and then the decoded features of different stages are fused through cascade operations, and finally the features are integrated into the output image size to obtain the edge enhanced fusion feature map output by the network. , to achieve effective extraction of anatomical features of two-dimensional intraoperative images; among them, the continuous convolutional layers are composed of convolution kernels of 1×1, 3×3, 1×1, a batch normalization layer, and a PReLu activation layer alternately.

7. The method according to claim 6, characterized in that S410 is specifically: ; in, , Representative , The edge attention enhancement feature output by the EAE module in the stage, Representative The edge fusion enhancement feature of the stage, represents the point-by-point multiplication operation of the matrix, Represents the consecutive operations of 1×1, 3×3, and 1×1 convolutions, batch normalization, and PReLu activation.

8. The method according to claim 7, characterized in that S500 includes: S510: Extracted 2D intraoperative imaging anatomical features By taking the average of the ordinates of each column of feature points and rounding them down, we get the central feature point of each column, and then we get the edge feature curve of the marker by evenly connecting the central feature points. ; S520: According to the edge characteristic curve The curvature and vector angle relationship is used to calculate the connection relationship between each feature point and the adjacent points, extract the key feature points, and obtain the edge feature point set in the laparoscope camera coordinate system. , and calculate the edge feature point set in the world coordinate system based on the curvature and vector angle relationship of the known three-dimensional feature point set in the three-dimensional preoperative model , is a positive integer; S530: From the edge feature point set in the laparoscope camera coordinate system and the world coordinate system , Randomly select three groups of feature points with corresponding relationships, calculate the coordinate transformation relationship between each group of feature points, and predict the rotation matrix between the coordinate systems and the offset vector ; S540: Calculate the positions of the remaining feature points in the world coordinate system in the laparoscope camera coordinate system through the predicted conversion relationship between the coordinate systems and through and The Huffman distance calculation error between point sets is calculated. When the predicted pose meets the minimum accuracy requirement of the model, the pose prediction of the laparoscopic camera coordinate system in the world coordinate system is completed, and finally the effective fusion of multi-source image anatomical features of robotic surgery is realized.

9. The method according to claim 8, characterized in that In S530, for a group of corresponding feature points , , the transformation relationship between the two points is: ; The S540 also includes: When the predicted pose does not meet the minimum accuracy requirement of the model, the feature points are reselected for calculation. The average prediction error is minimized through multiple iterations to complete the prediction of the pose of the laparoscopic camera coordinate system in the world coordinate system, ultimately achieving the effective fusion of anatomical features of multi-source images in robotic surgery.

10. The method according to claim 9, characterized in that Connected domain loss function in S100 Specifically: ; in, represents the connected domain loss function, represents the number of connected domains in the true label, Represents the number of connected domains in the prediction results, Is a constant, representing the loss weight of the connected domain; A hybrid loss function is constructed using the connected domain loss function, the cross entropy loss function, and the dice loss function to jointly optimize the edge enhancement fusion network: ; ; ; in, represents the cross entropy loss, represents the dice loss, represents the mixed loss, represents the true label, Represents the predicted result, Representative The true value of pixels, Representative The predicted value of pixels, represents the number of pixels of the sample, , is a constant representing the weight of each function in the mixed loss.