Navigation method, device and equipment in bronchial operation and medium
Through the respiratory motion fitting model and real-time path matching recognition algorithm, combined with bronchoscope images, adaptive motion fitting, the problem of reduced registration accuracy caused by respiratory motion in traditional navigation methods is solved, and higher navigation precision and accuracy are achieved. sex.
Patent Information
- Application Number
- CN202410810575.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-06-21
AI Technical Summary
Traditional bronchial navigation methods cannot adaptively predict the deformation of the lungs and bronchial airways, resulting in a decrease in registration accuracy due to changes in respiratory motion, especially when navigating to the end of the bronchus. The registration error is large.
Develop a respiratory motion fitting model, combine the interventional device sensor system and bronchoscope images, real-time path matching recognition algorithm, implement local elastic registration when detecting bronchial deformation, and map the virtual planned path to the lumen in the bronchoscope image through path matching , adaptively fitting motion to improve the accuracy of registration navigation.
By predicting tracheal deviation caused by respiratory movement in real time, navigation accuracy is improved, ensuring the accuracy of the interventional end on the planned path, and reducing registration errors.
Smart Images

Figure CN118806437A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of medical devices, and in particular to a navigation method, device, equipment and medium during bronchial surgery. Background Art
[0002] At present, intraoperative navigation of bronchial surgery usually generates a 3D model of the airway from a preoperative CT (Computed Tomography) image dataset, measures the patient's specific airway, generates measured point cloud data, calculates the registration score of the point cloud data with all potential matches (possible paths) in the airway 3D model, extracts the potential match with the highest registration score, and performs deformation modeling on the current local lumen based on the point cloud data and the best potential match. The preoperative CT image dataset and the airway model generated by it are registered (converted) to the actual measurement data of the patient using the deformation model. This method first determines the matching relationship between the local point cloud data and the corresponding branch airway by comparing the point cloud data with the 3D airway model, and then selects a reasonable deformation model based on the paired data information. The defect is that before data matching, the actual airway position is shifted to the spatial position of another branch in the 3D airway model due to the large deformation, resulting in the potential match with the highest registration score being incorrect, and the subsequent deformation model cannot be executed correctly. Therefore, the method using similarity measurement cannot guarantee the accuracy of matching.
[0003] Therefore, it is necessary to propose a bronchial intraoperative navigation method, device, equipment and medium to solve the above problems. Summary of the invention
[0004] The purpose of the present invention is to provide a bronchial surgery navigation method, device, equipment and medium to improve the problem that the method using similarity measurement cannot guarantee the matching accuracy.
[0005] In a first aspect, the present invention provides a method for intrabronchial navigation, the method comprising:
[0006] S101: acquiring navigation data collected in real time during surgery, the navigation data including position coordinates of a first sensor, a bronchoscope image, and a respiratory curve, the first sensor and the bronchoscope being arranged at an intervention end of an interventional instrument;
[0007] S102: determining a current bronchial tree model and current planned path point cloud data corresponding to a current respiratory phase according to the respiratory curve;
[0008] S103: Obtaining current virtual coordinates of the first sensor in a medical image coordinate system according to a first conversion relationship and position coordinates of the first sensor, wherein the first conversion relationship is a conversion relationship between the first sensor coordinate system and the medical image coordinate system;
[0009] S104: Determine whether the intervention end is currently located on the planned path based on the bronchoscope image, the current bronchial tree model, the current planned path point cloud data, and the current virtual coordinates.
[0010] In a possible embodiment, before the operation, main airway skeleton point cloud data is extracted from the bronchial tree model, the interventional instrument is used to traverse the main airway, and the trajectory point cloud data of the first sensor is collected, and the rigid transformation matrix of the first sensor coordinate system converted to the medical image coordinate system is calculated based on the trajectory point cloud data and the main airway skeleton point cloud data, and the initial global rigid transformation matrix is obtained through iterative registration processing;
[0011] Obtaining the current virtual coordinates of the first sensor in the medical image coordinate system according to the first conversion relationship and the position coordinates of the first sensor includes:
[0012] According to the position coordinates of the first sensor and the initial global rigid transformation matrix, the current virtual coordinates of the first sensor in the medical image coordinate system are obtained.
[0013] In a possible embodiment, after step S104, the method further includes step S105: finding the nearest neighbor point of the current virtual coordinate in the current planned path point cloud data, and if the current virtual coordinate does not meet the accuracy requirement, then
[0014] When the first correction condition is met, the current global rigid transformation matrix is iteratively registered according to the historical trajectory point cloud data of the first sensor during the operation and the part from the main trachea to the current branch in the current planned path point cloud data to obtain an updated global rigid transformation matrix, wherein the first correction condition is that the current navigation depth is within the first depth threshold range or the inner diameter of the current branch is within the first inner diameter threshold range;
[0015] When the second correction condition is met, the planned path point cloud on the current branch is elastically registered and transformed according to the historical trajectory point cloud of the first sensor on the current branch to obtain the registered bronchial tree model and the registered branch planning path point cloud, and the second correction condition is that the current navigation depth is within the second depth threshold range or the inner diameter of the current branch is within the second inner diameter threshold range.
[0016] In a possible embodiment, according to the historical trajectory point cloud of the first sensor on the current branch, the planned path point cloud on the current branch is elastically registered and transformed to obtain the registered bronchial tree model and the registered branch planned path point cloud, including:
[0017] Performing line segment fitting on the planned path point cloud on the current branch and the historical trajectory point cloud of the current branch respectively to obtain a first fitting line segment and a second fitting line segment;
[0018] According to the length deviation between the first fitting line segment and the second fitting line segment, stretching the historical trajectory point cloud of the current branch to obtain a stretched historical trajectory point cloud, and performing line segment fitting on the stretched historical trajectory point cloud to obtain a third fitting line segment;
[0019] According to the direction deviation of the first fitting line segment and the third fitting line segment, the planned path point cloud on the current branch is rotated and transformed to obtain the registered bronchial tree model and the registered branch planned path point cloud.
[0020] In a possible embodiment, determining whether the current intervention end is located on the planned path according to the bronchoscope image, the current bronchial tree model, the current planned path point cloud data, and the current virtual coordinates includes:
[0021] Segment the cavity area in the bronchoscope image at the current moment and the previous moment, perform connected domain analysis and relative position matching on the segmentation results, and obtain the relative position relationship of the cavity at the current moment and the previous moment;
[0022] According to the first conversion relationship and the position rotation information of the first sensor, a second conversion relationship between the bronchoscope coordinate system and the medical image coordinate system is obtained, wherein the navigation data further includes the position rotation information of the first sensor;
[0023] According to the second conversion relationship, the current bronchial airway three-dimensional model and the current bronchial tree model at the plane where the bronchoscope is located are intercepted to obtain a virtual bronchial image at the current moment;
[0024] According to the virtual trachea image at the current moment, the relative position relationship of the cavities, and the point cloud data of the current planned path, it is determined whether the intervention end is currently located on the planned path.
[0025] In a possible embodiment, before the operation, medical images of the bronchi in the inspiratory phase and the expiratory phase are collected, voxel segmentation of the bronchial airways is performed on the medical images in the inspiratory phase to obtain a three-dimensional model of the bronchial airways, and skeletonization is performed on the three-dimensional model of the bronchial airways to obtain a bronchial tree model and a planning path point cloud in the inspiratory phase.
[0026] In a possible embodiment, after skeletonizing the three-dimensional model of the bronchial airway to obtain the bronchial tree model and the planning path point cloud of the inspiratory phase, the method further includes:
[0027] Perform deformation registration on the medical images of the bronchus inspiratory phase and expiratory phase to obtain the expiratory phase deformation field;
[0028] Applying the expiratory phase deformation field to the bronchial tree model of the inspiratory phase to obtain the bronchial tree model of the expiratory phase and the planning path point cloud;
[0029] According to the exhalation phase deformation field, a second phase deformation field and a third phase deformation field are obtained by a linear interpolation method, wherein the second phase and the third phase are the breathing phases between the inhalation phase and the exhalation phase;
[0030] The second phase deformation field and the third phase deformation field are respectively applied to the bronchial tree model in the inspiratory phase to obtain the bronchial tree model and the planning path point cloud in the second phase and the bronchial tree model and the planning path point cloud in the third phase.
[0031] In a second aspect, an embodiment of the present invention further provides a bronchial intraoperative navigation device, which includes a module / unit for executing any possible design method of the first aspect. These modules / units can be implemented by hardware, or by hardware executing corresponding software implementations.
[0032] In a third aspect, an embodiment of the present invention further provides an electronic device, including a processor and a memory, wherein the memory is used to store one or more computer programs; when the one or more computer programs stored in the memory are executed by the processor, the electronic device can implement any possible design method of the first aspect.
[0033] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, the computer-readable storage medium comprising a computer program, and when the computer program runs on an electronic device, the electronic device executes any possible design method of the first aspect above.
[0034] In a fifth aspect, an embodiment of the present invention further provides a method comprising a computer program product, which, when running on an electronic device, enables the electronic device to execute any possible design of any of the above aspects.
[0035] The purpose of the present invention is to provide an improved bronchoscopic-assisted intraoperative navigation solution, which mainly solves the problem that the traditional bronchial navigation method cannot adaptively predict the deformation of the lungs and bronchial airways, the registration accuracy changes due to respiratory movement, and the registration error is large when navigating to the end of the bronchus. The present invention develops a respiratory motion fitting model to predict the tracheal deviation caused by respiratory movement; based on the sensor system and bronchoscope image at the interventional end of the interventional instrument, a real-time path matching recognition algorithm is developed, and when obvious deformation of the bronchus is detected, local corresponding data is extracted to implement local elastic registration. In addition, the virtual planned path is mapped to the corresponding cavity of the bronchoscope image through path matching recognition, indicating the route of travel, and adaptively fitting the movement and deformation to improve the accuracy of registration navigation. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 It is a schematic diagram of the flow chart of the navigation method during bronchial surgery of the present invention.
[0037] Figure 2 It is a schematic diagram of the bronchial airway three-dimensional model and the bronchial tree model in the intrabronchial navigation method of the present invention.
[0038] Figure 3a It is a schematic diagram of the intrabronchial navigation method of the present invention after rigid registration based on three corresponding points.
[0039] Figure 3b It is a schematic diagram of the initial registration fine-tuning based on the ICP method in the intrabronchial navigation method of the present invention.
[0040] Figure 4 It is a schematic diagram of the navigation planning path in the intrabronchial navigation method of the present invention on the bronchial tree model.
[0041] Figure 5a It is a schematic diagram of a bronchoscope image at a previous moment in the intrabronchial navigation method of the present invention.
[0042] Figure 5b It is a schematic diagram of the bronchoscope image at the current moment in the intrabronchial navigation method of the present invention.
[0043] Figure 5c It is a schematic diagram of a virtual tracheal image at the current moment in the intrabronchial navigation method of the present invention.
[0044] Figure 5d It is a schematic diagram of the current moment virtual tracheal image interception plane on the current bronchial tree model in the intrabronchial navigation method of the present invention.
[0045] Figure 6a It is a schematic diagram of global rigid registration before dynamic correction in the intrabronchial navigation method of the present invention.
[0046] Figure 6b It is a schematic diagram of the global rigid registration after dynamic correction in the intrabronchial navigation method of the present invention.
[0047] Figure 7 It is a schematic diagram of the dynamic correction process of local elastic registration in the intrabronchial navigation method of the present invention.
[0048] Figure 8 A schematic diagram of a process for preparing respiratory cycle bronchial tree model data in the intrabronchial navigation method of the present invention.
[0049] Fig. 9 It is a schematic diagram of the process of coarse main airway registration in the intrabronchial navigation method of the present invention.
[0050] Fig.10 The figure is a flowchart of a specific implementation of the intrabronchial navigation method of the present invention.
[0051] Fig.11 It is a schematic diagram of the navigation device during bronchial surgery of the present invention.
[0052] Fig.12 It is a schematic diagram of the structure of the electronic device of the present invention. DETAILED DESCRIPTION
[0053] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0054] In view of the problems existing in the above-mentioned technologies, an embodiment of the present invention provides a bronchial intraoperative navigation method, see Figure 1 , the method comprising:
[0055] S101: Acquire navigation data collected in real time during the operation, the navigation data including the position coordinates of the first sensor, the bronchoscope image and the respiratory curve, the first sensor and the bronchoscope are arranged at the intervention end of the interventional instrument. Specifically, the interventional instrument is a slender flexible catheter, the first sensor and the bronchoscope are integrated at the tip of the catheter, the first sensor is used to collect positioning data, and the bronchoscope is used to collect images.
[0056] S102: Determine the current bronchial tree model and the current planned path point cloud data corresponding to the current respiratory phase according to the respiratory curve.
[0057] S103: Obtaining current virtual coordinates of the first sensor in the medical image coordinate system according to a first conversion relationship and position coordinates of the first sensor, where the first conversion relationship is a conversion relationship between the first sensor coordinate system and the medical image coordinate system.
[0058] S104: Determine whether the current intervention end is located on the planned path according to the bronchoscope image, the current bronchial tree model, the current planned path point cloud data, and the current virtual coordinates.
[0059] In this embodiment, the current bronchial tree model and the current planned path point cloud data corresponding to the current respiratory phase are determined according to the respiratory curve, and the current virtual coordinates are mapped to the current bronchial tree model of the corresponding phase to eliminate the influence of respiratory movement on the airway structure and improve the registration accuracy. The relative position relationship of the cavity at the current moment and the previous moment is obtained by using the bronchoscope image. The current virtual coordinates represent the current position information of the intervention end. The current bronchial tree model can be used to determine the cavity position of the intervention end. Combined with the current planned path point cloud data, it can be obtained whether the bronchial branch corresponding to the cavity within the current lens range is on the planned path.
[0060] In one embodiment, corresponding data collection and data processing preparations are made before the operation. Before the operation, medical images of the inspiratory phase and the expiratory phase of the bronchi are collected. Before performing the rough registration operation, the skeleton point cloud of the trachea and the left and right main bronchi is extracted, and the trachea and the left and right main bronchi are defined as the main airways. The two are equivalent in the following text. The voxel segmentation of the bronchial airway is performed on the medical image of the inspiratory phase to obtain a 3D model of the bronchial airway, such as Figure 2 As shown in the bronchial airway three-dimensional model on the left, the bronchial airway three-dimensional model is skeletonized to obtain the bronchial tree model and planning path point cloud S1 in the inspiratory phase, as shown in FIG. Figure 2 As shown in the bronchial tree model on the right, the bronchial tree in the inspiratory phase determines the tree structure of the airway in the order from the airway entrance to the bifurcation end. Figure 2 The thick line part in the bronchial tree model is the branch skeleton of the main airway. Mark the target lesion location on the medical image of the inspiratory phase, find the target bronchial tree end (leaf node) closest to the target lesion location, and trace back from the target bronchial tree end along the bronchial tree structure to the main airway to obtain the navigation planning path. Specifically, the medical image can be a CT image or a magnetic resonance image (MRI) or other medical image that can feedback the bronchial anatomical structure, and the corresponding medical image coordinate system can be a CT image coordinate system, a magnetic resonance image coordinate system, etc. In the process of coarse registration data acquisition, only the main airway is traversed, which can reduce patient discomfort.
[0061] In yet another embodiment, see Figure 8, respiratory cycle data preparation. The respiratory curve is obtained by setting a second sensor on the body surface or monitoring the blood oxygen concentration. The first sensor and the second sensor are electromagnetic (EM) sensors. For example, the external manifestation of breathing is the expansion and contraction of the thorax. The second sensor is fixed at several positions on the patient's body surface, and the respiratory movement is monitored by using the change in relative position relationship. The corresponding respiratory curve presents periodic fluctuations of a sine-like curve, and the peaks and troughs of the curve correspond to inhalation and exhalation, respectively. Let the first phase (i.e., the inspiratory phase) be P1, the fourth phase (i.e., the expiratory phase) be P4, the respiratory phase between the two be the second phase P2, and the third phase P3. An example of a complete respiratory cycle is P1->P2->P3->P4->P3->P2->P1. The inspiratory phase P1 corresponds to the inspiratory phase bronchial tree model S1.
[0062] In a preferred embodiment, see Figure 8 After skeletonizing the three-dimensional model of the bronchial airway to obtain the bronchial tree model of the inspiratory phase and the planning path point cloud, it also includes: deforming and registering the medical images of the inspiratory phase and the expiratory phase of the bronchus to obtain the expiratory phase deformation field D4. The expiratory phase deformation field D4 is applied to the bronchial tree model S1 of the inspiratory phase to perform a deformation operation to obtain the bronchial tree model S4 of the expiratory phase and the planning path point cloud. According to the expiratory phase deformation field D4, the second phase deformation field D2 and the third phase deformation field D3 are obtained by a linear interpolation method, and the second phase P2 and the third phase P3 are the respiratory phases between the inspiratory phase and the expiratory phase. The second phase deformation field D2 and the third phase deformation field D3 are applied to the bronchial tree model S1 of the inspiratory phase to perform a deformation operation respectively to obtain the bronchial tree model S2 of the second phase and the planning path point cloud, and the bronchial tree model S3 of the third phase and the planning path point cloud. Therefore, the bronchial tree model corresponding to different respiratory phases can be used to predict the tracheal deviation caused by respiratory movement and consider the morphological changes caused by lung respiratory movement during intraoperative navigation to improve navigation accuracy.
[0063] In a specific embodiment, see Figure 8, the medical images of the inspiratory phase and expiratory phase of the bronchi are deformed and registered to obtain the expiratory phase deformation field D4, including: taking the medical image CT_I of the inspiratory phase as a fixed image and the medical image CT_O of the expiratory phase as a floating image, and performing rigid transformation registration to obtain the rigid transformation registration image CT_Oa. Taking the rigid transformation registration image CT_Oa as a fixed image and the medical image CT_I of the inspiratory phase as a floating image, and performing affine transformation registration to obtain the affine transformation registration image CT_Ia. Taking the rigid transformation registration image CT_Oa as a fixed image and the affine transformation registration image CT_Ia as a floating image, and performing elastic transformation registration to obtain the elastic transformation registration image CT_Ib. The expiratory phase deformation field D4 from the medical image CT_I of the inspiratory phase to the elastic transformation registration image CT_Ib is calculated. After the registration transformation, the elastic transformation registration image CT_Ib has an anatomical structure similar to that of the medical image CT_O of the expiratory phase. The expiratory phase deformation field D4 is applied to the inspiratory phase bronchial tree model S1 corresponding to the medical image CT_I of the inspiratory phase, and the expiratory phase bronchial tree model S4 corresponding to the medical image CT_O of the expiratory phase can be obtained. In this embodiment, the rigid body transformation registration is used to eliminate the difference in the spatial origin and rotation angle of the two medical image acquisitions to ensure their alignment in the same spatial coordinate system. The image alignment is optimized by affine transformation registration, making the images of the two respiratory phases more consistent. The elastic transformation registration can better handle the nonlinear deformation between images, further improving the accuracy and stability of the registration.
[0064] In a specific embodiment, see Fig. 9 Before surgery, the main airway skeleton point cloud data is extracted from the bronchial tree model, the main airway is traversed by an interventional instrument, and the trajectory point cloud data of the first sensor is collected. Based on the trajectory point cloud data and the main airway skeleton point cloud data, the rigid transformation matrix of the first sensor coordinate system converted to the medical image coordinate system is calculated, and the initial global rigid transformation matrix is obtained through iterative registration processing. Figure 3a As shown, point cloud 301 is the main airway skeleton point cloud in the medical image coordinate system, point cloud 302 is the trajectory point cloud collected by the first sensor, and point cloud 303 is the trajectory point cloud after rigid transformation. Figure 3b As shown, point cloud 304 is the trajectory point cloud after initial iterative registration. The purpose of iterative registration is to reduce the registration error so as to rotate and translate the collected trajectory point cloud to the vicinity of the main airway skeleton point cloud.
[0065] For further information, see Fig. 9, the initial global rigid transformation matrix is obtained through iterative registration processing, including: using the iterative closest point (ICP) algorithm to iteratively register to obtain the initial global rigid transformation matrix. The main airway diameter is relatively thick, and there is an error between the coordinate information collected during the catheter traversal and the actual airway skeleton endpoint. The rigid transformation matrix obtained by the rigid registration method corresponding to only a few points still needs iterative fine-tuning. In this scheme, based on all the main airway skeleton point clouds and the trajectory point clouds collected by the first sensor, the ICP algorithm is used for further iterative registration, combined with Figure 3a and Figure 3b Compared with the point cloud 303 before fine-tuning, the point cloud 304 after fine-tuning has a higher similarity matching degree with the point cloud 301, and the initial global rigid transformation matrix H is obtained. 0 .
[0066] For example, the rigid transformation matrix H is defined as Where R is the rotation matrix, T is the translation vector, and O = [0, 0, 0]. Calculate R and T to obtain the coordinate information of the three endpoints in the main airway skeleton point cloud. And the points collected by the first sensor corresponding to the three endpoints q 1 ,q 2 ,q 3 Represent the position coordinates of the three endpoints in the main airway skeleton point cloud, p 1 ,p 2 ,p 3 They represent the position coordinates of the three endpoints in the trajectory point cloud collected by the first sensor. The rotation and translation effects are as follows: Figure 3a The arrow in the figure shows that the upper end of the arrow is the endpoint of the trajectory point cloud of the first sensor, and the lower end of the arrow points to the endpoint corresponding to the trajectory point cloud after the rigid transformation. The solution process is equivalent to Taking the derivative of this equation, we get Will Substituting into the above formula, we can get R = argmin ‖ Rx i +y i ‖ 2 ,in, Do SVD decomposition, S = UΣV T , where S = XY T , The solution is, Among them, p i is the position coordinate of the i-th endpoint in the trajectory point cloud, q i is the position coordinate of the i-th endpoint of the main airway skeleton point cloud, are the center position coordinates of the three endpoints in the trajectory point cloud, x is the center position coordinate of the three endpoints in the main airway skeleton point cloud, i is the offset vector of the i-th endpoint in the trajectory point cloud relative to the center of the trajectory point cloud, y i is the offset vector of the ith endpoint of the main airway skeleton point cloud relative to the center position of the main airway skeleton point cloud, SVD is the singular value decomposition, U is an orthogonal matrix, Σ is a diagonal matrix, V T is the transpose of another orthogonal matrix.
[0067] According to the first conversion relationship and the position coordinates of the first sensor, the current virtual coordinates of the first sensor in the medical image coordinate system are obtained, including: according to the position coordinates of the first sensor and the initial global rigid transformation matrix, the current virtual coordinates of the first sensor in the medical image coordinate system are obtained.
[0068] Based on the global rigid transformation matrix H obtained above 0 , the position coordinates obtained by the first sensor can be converted to the medical imaging coordinate system to obtain the current virtual coordinates, and the respiratory phase can be determined by combining the respiratory movement feedback from the second sensor on the patient's body surface. The current virtual coordinates are mapped to the current bronchial tree model of the corresponding phase to eliminate the influence of respiratory movement. The initial global rigid transformation matrix is obtained by registration based only on the main airway data. Further, in the real-time path navigation process, it is adjusted in combination with the real-time collected intraoperative historical trajectory point cloud data. This scheme performs real-time navigation based on the planned path of the lesion. The planned path is as follows: Figure 4 As shown in the figure, the dot is the location of the lesion, and the bold line is the planned path from the target to the lesion. During the real-time navigation process, the operator inserts the interventional instrument from the patient's mouth along the bronchus to the lesion, and the historical trajectory point cloud of the route is converted to the medical imaging coordinate system to match the planned path.
[0069] In the real-time navigation process, navigation data is collected at a fixed frequency. The navigation data at time t includes the data E of the first sensor 0 , data of n second sensors {E i}(i=1,2,…,n) and bronchoscope images. The sensor data is composed of E=[x,y,z,s,u,v,w], which contains position coordinate information [x,y,z] and position rotation information [s,u,v,w]. x, y, z represent the coordinate information of x-axis, y-axis and z-axis respectively; s represents the real part of the quaternion, which is related to the rotation angle; u, v, w represent the imaginary part of the quaternion, which is related to the rotation axis. According to the position coordinate information of the n second sensors, fit it to the periodic breathing curve to determine the respiratory phase P t ∈{P1,P2,P3,P4}, select the corresponding bronchial tree model. The position coordinates of the first sensor [x 0 ,y 0,z 0 ] is transformed by the global rigid transformation matrix H 0 Convert to the medical imaging coordinate system to get [x, y, z, 1] T =H 0 [x 0 ,y 0 ,z 0 ,1] T Find the nearest neighbor point of the current virtual coordinate in the current planned path point cloud data and calculate the Euclidean distance.
[0070] In one embodiment, according to the bronchoscope image, the current bronchial tree model, the current planned path point cloud data, and the current virtual coordinates, it is determined whether the current intervention end is located on the planned path, including: segmenting the cavity area in the bronchoscope image at the current moment and the previous moment, performing connected domain analysis and relative position matching on the segmentation results, and obtaining the relative position relationship of the cavity at the current moment and the previous moment. According to the first conversion relationship and the posture rotation information of the first sensor, the second conversion relationship between the bronchoscope coordinate system and the medical image coordinate system is obtained, and the navigation data also includes the posture rotation information of the first sensor. According to the second conversion relationship, the current bronchial airway three-dimensional model and the current bronchial tree model at the plane where the bronchoscope is located are intercepted to obtain the virtual bronchial image at the current moment. The current bronchial airway three-dimensional model is the bronchial airway three-dimensional model corresponding to the current respiratory phase. The virtual bronchial image at the current moment includes the cavity area at the plane where the bronchoscope is located and the bronchial tree branches located in the cavity area. According to the virtual bronchial image at the current moment, the relative position relationship of the cavity, and the current planned path point cloud data, it is determined whether the current intervention end is located on the planned path.
[0071] Based on the two frames of bronchoscopic images at the previous moment and the current moment, combined with the coordinate information, it is determined whether the current intervention end is still on the planned path. Figure 5a and Figure 5b As shown in the figure, two frames of bronchial images show that as the interventional device moves forward, one of the cavities representing different branches at the bifurcation of the trachea disappears in the bronchial lens. The purpose of path recognition is to infer whether the bronchial tree branch corresponding to the cavity still within the lens range is located on the planned path through the position relationship. The specific steps are:
[0072] a) If Figure 5a and Figure 5b As shown in the figure, the cavity area in the bronchoscope image is segmented. The segmentation algorithm can use other traditional segmentation methods such as threshold segmentation, simple linear iterative clustering (SLIC) or segmentation methods based on deep learning. Connected domain analysis and relative position matching of the segmentation results can be performed to obtain the relative position of the cavity in the image at the current moment (as shown in the figure, the cavity at the current moment is located on the left side of the image at the previous moment).
[0073] b) Based on the rigid transformation matrix H 0 The position and rotation information [s,u,v,w] of the first sensor is used to derive the conversion relationship between the bronchoscope coordinate system and the medical image coordinate system, and the current bronchial airway three-dimensional model and the current bronchial tree model are intercepted to obtain a virtual tracheal image corresponding to the bronchoscope image. Figure 5d As shown in the figure, the arrow direction is the direction of the interventional instrument (also the shooting direction of the bronchoscope), and the frame in front of the direction of travel is the interception plane of the virtual trachea image. The virtual trachea image at the current moment is as follows: Figure 5c As shown in the figure, the white area is the airway segmentation pixel, and the pixel points in the two white areas are the intersection points of the corresponding airway bronchial tree branches and the plane. According to the position correspondence, it can be judged whether the current intervention end is still on the planned path. If the path judgment is correct, the position coordinates of the first sensor [x 0 ,y 0 ,z 0 ] is stored in the current breathing phase P t The corresponding historical trajectory point cloud L t If the path judgment is incorrect, a path error prompt message is sent to prompt the operator to return to the previous fork node.
[0074] In a preferred embodiment, see Fig.10, after step S104, it also includes step S105: finding the nearest neighbor point of the current virtual coordinate in the current planned path point cloud data, if the current virtual coordinate does not meet the accuracy requirement, then when meeting the first correction situation, according to the historical trajectory point cloud data of the first sensor during the operation and the main trachea to the current branch part in the current planned path point cloud data, the current global rigid transformation matrix is iteratively aligned to obtain an updated global rigid transformation matrix, the first correction situation is that the current navigation depth is within the first depth threshold range or the current branch inner diameter is within the first inner diameter threshold range, that is, the depth of the current branch in the bronchial tree is shallow or the branch inner diameter is large. When the second correction situation is met, the planned path point cloud on the current branch is elastically registered and transformed according to the historical trajectory point cloud of the first sensor on the current branch to obtain the registered bronchial tree model and the registered branch planning path point cloud. The second correction situation is that the current navigation depth is in the second depth threshold range or the inner diameter of the current branch is in the second inner diameter threshold range, that is, the depth of the current branch in the bronchial tree is deeper or the inner diameter of the branch is smaller, the minimum value of the second depth threshold range is greater than the maximum value of the first depth threshold range, and the maximum value of the second inner diameter threshold range is less than the minimum value of the first inner diameter threshold range. Specifically, the current virtual coordinates do not meet the accuracy requirements, including: the Euclidean distance between the nearest neighbor point and the current virtual coordinates is greater than the set distance threshold. In addition, for the second correction situation, the current global rigid transformation matrix is iteratively registered to obtain an updated global rigid transformation matrix. By updating the global rigid transformation matrix in real time, the calculated current virtual coordinates are made more accurate.
[0075] In a specific embodiment, based on the historical trajectory point cloud of the first sensor on the current branch, the planned path point cloud on the current branch is elastically registered and transformed to obtain the registered bronchial tree model and the registered branch planned path point cloud, including: performing line segment fitting on the planned path point cloud on the current branch and the historical trajectory point cloud of the current branch, respectively, to obtain the first fitting line segment and the second fitting line segment. According to the length deviation of the first fitting line segment and the second fitting line segment, the historical trajectory point cloud of the current branch is stretched to obtain the stretched historical trajectory point cloud, and the stretched historical trajectory point cloud is line segment fitted to obtain the third fitting line segment. According to the direction deviation of the first fitting line segment and the third fitting line segment, the planned path point cloud on the current branch is rotated to obtain the registered bronchial tree model and the registered branch planned path point cloud.
[0076] In another embodiment, before performing line segment fitting on the planned path point cloud on the current branch and the historical trajectory point cloud on the current branch to obtain the first fitting line segment and the second fitting line segment, the method further includes: finding the nearest neighbor point of the current virtual coordinate in the current planned path point cloud, extracting the planned path point cloud on the current branch from the current planned path point cloud according to the nearest neighbor point and the starting point of the planned path point cloud on the current branch. Extract the part matching the planned path point cloud on the current branch from the historical trajectory point cloud to obtain the historical trajectory point cloud of the current branch.
[0077] Path recognition is used to judge whether the current virtual coordinates meet the accuracy requirements on the planned path. If the accuracy does not meet the requirements, dynamic registration correction is performed. Because the inner diameter of the bronchus varies greatly in different bronchial tree branches, the stress effect of the catheter on the inner wall of the bronchus is different. This solution uses global rigid registration and local elastic registration methods for different situations to achieve dynamic registration correction during real-time navigation. The use of dynamic registration methods can compensate for the errors caused by offset deformation and improve navigation accuracy.
[0078] Dynamic correction by global rigid registration. Based on the calculated bronchial tree branch where the nearest neighbor point is located, if the branch is shallow in the bronchial tree or has a large inner diameter, the branch is defined as a tracheal branch. It can be considered that the effect of catheter stress on the bronchial wall is negligible, and global rigid registration is used for correction. For specific methods, see Figure 6a and Figure 6b , set the current breathing phase P t The corresponding historical trajectory point cloud L t is a floating point cloud, and the bronchial point cloud from the main trachea to the current branch on the planned path point cloud is a fixed point cloud. The ICP algorithm is used to iteratively update the global rigid transformation matrix H 0 .
[0079] See also Figure 7 , local elastic registration dynamic correction. If the current branch is deep in the bronchial tree or the inner diameter of the branch is small, the branch is defined as a small bronchial branch, and the catheter stress has a greater impact on the bronchial wall. The tracheal displacement and deformation caused by this stress are modeled as a rotation transformation with the branch starting point as the rotation center and a stretching transformation with a length difference. The position coordinates of the first sensor are transformed by the global rigid transformation matrix H 0 Convert the current virtual coordinates to the medical imaging coordinate system, such as Figure 7 Zhonge 1 Point, find the nearest neighbor point e on the current planning path point cloud 2 , extract the nearest neighbor point e 2 The path point cloud p of the branch 2 e 2 (p 2 e 2The starting point is the branch starting point p 2 , the end point is e 2 ), extract the historical trajectory point cloud and p 2 e 2 The matching part p 1 e 1 , for the point cloud p 1 e 1 、Point cloud 2 e 2 Fit the line segment to obtain two fitted line segments. Based on the length deviation of the two fitted line segments, stretch the point cloud p 1 e 1 , based on the direction deviation of the two fitting line segments, a rotation transformation is performed, and the point cloud p is set 2 e 2 Starting point p 2 is the rotation point, for the point cloud p 2 e 2 An elastic registration transformation is performed to improve the registration accuracy between the current branch of the transformed bronchial tree and the historical trajectory point cloud of the current branch.
[0080] The technical effects of the intrabronchial navigation method of the present invention are explained in detail below.
[0081] 1. In order to cope with the changes in the bronchial tree structure caused by respiratory movement, CT images of the patient's inspiratory and expiratory phases are collected before surgery, and the bronchial tree model of the inspiratory phase is obtained based on the inspiratory phase image. The deformation field from the inspiratory phase to the expiratory phase is obtained by medical image registration. The deformation field from the inspiratory phase to other phases in the respiratory cycle is obtained by interpolation. Based on the deformation field, the bronchial tree model corresponding to all phases in the respiratory cycle is obtained, thereby suppressing the influence of respiratory movement during navigation.
[0082] 2. Only the data collected by the main airway roaming is used to complete the rigid registration with the main airway point cloud of the bronchial tree, and the transformation relationship from the first sensor coordinate system to the medical image coordinate system is obtained. This method is easy to operate, can quickly obtain the initial global rigid transformation matrix, and will not cause obvious discomfort to the patient.
[0083] 3. During real-time navigation, bronchoscope images are used to assist in determining whether the navigation position is on the planned path, thereby increasing the accuracy of path navigation. When the navigation accuracy is insufficient, different registration correction schemes are used for dynamic correction. When the navigation depth is shallow or the inner diameter of the tracheal branch is large, the stress of the interventional device has little effect on the bronchial wall. At this time, the bronchial tree is still regarded as a rigid body, and the possibility of elastic deformation is ignored. At this time, the global rigid matrix is corrected based on the historical trajectory point cloud; when the navigation depth is deep or the inner diameter of the tracheal branch is small, the stress of the interventional device cannot be ignored. At this time, the elastic deformation of the current branch is modeled as a rotation and stretching transformation with the branch vertex as the rotation point, so that the current branch of the bronchial tree after the transformation is more matched with the historical trajectory point cloud of the current branch.
[0084] In addition, the present invention also proposes a bronchial intraoperative navigation device, see Fig.11 The device includes: an acquisition unit 1101, which is used to acquire real-time navigation data collected during the operation, and the navigation data includes the position coordinates of the first sensor, the bronchoscope image and the respiratory curve. The first sensor and the bronchoscope are arranged at the intervention end of the interventional instrument; a determination unit 1102, which is used to determine the current bronchial tree model and the current planned path point cloud data corresponding to the current respiratory phase according to the respiratory curve; a conversion unit 1103, which is used to obtain the current virtual coordinates of the first sensor in the medical image coordinate system according to the first conversion relationship and the position coordinates of the first sensor, and the first conversion relationship is the conversion relationship between the first sensor coordinate system and the medical image coordinate system; a judgment unit 1104, which is used to determine whether the current intervention end is located on the planned path according to the bronchoscope image, the current bronchial tree model, the current planned path point cloud data, and the current virtual coordinates. All relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, which will not be repeated here.
[0085] Preferably, the device also includes: a correction unit, which is used to find the nearest neighbor point of the current virtual coordinate in the current planned path point cloud data. If the current virtual coordinate does not meet the accuracy requirement, then when the first correction situation is met, the current global rigid transformation matrix is iteratively registered according to the historical trajectory point cloud data of the first sensor during the operation and the main trachea to the current branch part in the current planned path point cloud data to obtain an updated global rigid transformation matrix. The first correction situation is that the current navigation depth is within the first depth threshold range or the inner diameter of the current branch is within the first inner diameter threshold range; when the second correction situation is met, the planned path point cloud on the current branch is elastically registered and transformed according to the historical trajectory point cloud of the first sensor on the current branch to obtain a registered bronchial tree model and a registered branch planned path point cloud. The second correction situation is that the current navigation depth is within the second depth threshold range or the inner diameter of the current branch is within the second inner diameter threshold range, the minimum value of the second depth threshold range is greater than the maximum value of the first depth threshold range, and the maximum value of the second inner diameter threshold range is less than the minimum value of the first inner diameter threshold range.
[0086] In some other embodiments of the present invention, an electronic device is disclosed. Fig.12 , the electronic device may include: one or more processors 1201; memory 1202; display 1203; one or more applications (not shown); and one or more computer programs 1204, and the above components may be connected via one or more communication buses 1205. The one or more computer programs 1204 are stored in the above memory 1202 and configured to be executed by the one or more processors 1201, and the one or more computer programs 1204 include instructions, which can be used to execute the following: Figure 1 and Fig.11 And each step in the corresponding embodiment.
[0087] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0088] Each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0089] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: flash memory, mobile hard disk, read-only memory, random access memory, disk or optical disk and other media that can store program codes.
[0090] Although the embodiments of the present invention are described in detail above, it is obvious to those skilled in the art that various modifications and changes can be made to these embodiments. However, it should be understood that such modifications and changes are within the scope and spirit of the present invention described in the claims. Moreover, the present invention described herein may have other embodiments and may be implemented or realized in a variety of ways. Unless otherwise defined, the technical terms or scientific terms used herein should be understood by people with ordinary skills in the field to which the present invention belongs. The words "including" and the like used herein mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects.
Claims
1. A bronchial intraoperative navigation method, characterized in that: The method comprises: S101: acquiring navigation data collected in real time during surgery, the navigation data including position coordinates of a first sensor, a bronchoscope image, and a respiratory curve, the first sensor and the bronchoscope being arranged at an intervention end of an interventional instrument; S102: determining a current bronchial tree model and current planned path point cloud data corresponding to a current respiratory phase according to the respiratory curve; S103: Obtaining current virtual coordinates of the first sensor in a medical image coordinate system according to a first conversion relationship and position coordinates of the first sensor, wherein the first conversion relationship is a conversion relationship between the first sensor coordinate system and the medical image coordinate system; S104: Determine whether the intervention end is currently located on the planned path based on the bronchoscope image, the current bronchial tree model, the current planned path point cloud data, and the current virtual coordinates.
2. The method according to claim 1, characterized in that Before the operation, main airway skeleton point cloud data is extracted from the bronchial tree model, the interventional instrument is used to traverse the main airway, and the trajectory point cloud data of the first sensor is collected, and the rigid transformation matrix of the first sensor coordinate system converted to the medical image coordinate system is calculated according to the trajectory point cloud data and the main airway skeleton point cloud data, and the initial global rigid transformation matrix is obtained through iterative registration processing; Obtaining the current virtual coordinates of the first sensor in the medical image coordinate system according to the first conversion relationship and the position coordinates of the first sensor includes: According to the position coordinates of the first sensor and the initial global rigid transformation matrix, the current virtual coordinates of the first sensor in the medical image coordinate system are obtained.
3. The method according to claim 2, characterized in that After step S104, the method further includes step S105: Find the nearest neighbor point of the current virtual coordinate in the current planned path point cloud data. If the current virtual coordinate does not meet the accuracy requirements, then When the first correction condition is met, the current global rigid transformation matrix is iteratively registered according to the historical trajectory point cloud data of the first sensor during the operation and the part from the main trachea to the current branch in the current planned path point cloud data to obtain an updated global rigid transformation matrix, wherein the first correction condition is that the current navigation depth is within the first depth threshold range or the inner diameter of the current branch is within the first inner diameter threshold range; When the second correction condition is met, the planned path point cloud on the current branch is elastically registered and transformed according to the historical trajectory point cloud of the first sensor on the current branch to obtain the registered bronchial tree model and the registered branch planning path point cloud. The second correction condition is that the current navigation depth is in the second depth threshold range or the inner diameter of the current branch is in the second inner diameter threshold range, the minimum value of the second depth threshold range is greater than the maximum value of the first depth threshold range, and the maximum value of the second inner diameter threshold range is less than the minimum value of the first inner diameter threshold range.
4. The method according to claim 3, characterized in that According to the historical trajectory point cloud of the first sensor on the current branch, the planned path point cloud on the current branch is elastically registered and transformed to obtain a registered bronchial tree model and a registered branch planned path point cloud, including: Performing line segment fitting on the planned path point cloud on the current branch and the historical trajectory point cloud of the current branch respectively to obtain a first fitting line segment and a second fitting line segment; According to the length deviation between the first fitting line segment and the second fitting line segment, stretching the historical trajectory point cloud of the current branch to obtain a stretched historical trajectory point cloud, and performing line segment fitting on the stretched historical trajectory point cloud to obtain a third fitting line segment; According to the direction deviation of the first fitting line segment and the third fitting line segment, the planned path point cloud on the current branch is rotated and transformed to obtain the registered bronchial tree model and the registered branch planned path point cloud.
5. The method according to claim 1, characterized in that Determining whether the current intervention end is located on the planned path according to the bronchoscope image, the current bronchial tree model, the current planned path point cloud data, and the current virtual coordinates includes: Segment the cavity area in the bronchoscope image at the current moment and the previous moment, perform connected domain analysis and relative position matching on the segmentation results, and obtain the relative position relationship of the cavity at the current moment and the previous moment; According to the first conversion relationship and the position rotation information of the first sensor, a second conversion relationship between the bronchoscope coordinate system and the medical image coordinate system is obtained, wherein the navigation data further includes the position rotation information of the first sensor; According to the second conversion relationship, the current bronchial airway three-dimensional model and the current bronchial tree model at the plane where the bronchoscope is located are intercepted to obtain a virtual bronchial image at the current moment; According to the virtual trachea image at the current moment, the relative position relationship of the cavities, and the point cloud data of the current planned path, it is determined whether the intervention end is currently located on the planned path.
6. The method according to claim 1, characterized in that Before the operation, medical images of the bronchi in the inspiratory and expiratory phases are collected, and voxel segmentation of the bronchial airways is performed on the medical images in the inspiratory phase to obtain a bronchial airway three-dimensional model, and the bronchial airway three-dimensional model is skeletonized to obtain a bronchial tree model and a planning path point cloud in the inspiratory phase.
7. The method according to claim 6, characterized in that After skeletonizing the three-dimensional model of the bronchial airway to obtain the bronchial tree model and the planning path point cloud of the inspiratory phase, the method further includes: Perform deformation registration on the medical images of the bronchus inspiratory phase and expiratory phase to obtain the expiratory phase deformation field; Applying the expiratory phase deformation field to the bronchial tree model of the inspiratory phase to obtain the bronchial tree model of the expiratory phase and the planning path point cloud; According to the exhalation phase deformation field, a second phase deformation field and a third phase deformation field are obtained by a linear interpolation method, wherein the second phase and the third phase are the breathing phases between the inhalation phase and the exhalation phase; The second phase deformation field and the third phase deformation field are respectively applied to the bronchial tree model in the inspiratory phase to obtain the bronchial tree model and the planning path point cloud in the second phase and the bronchial tree model and the planning path point cloud in the third phase.
8. A bronchial surgery navigation device, characterized in that: The device comprises: An acquisition unit, used for acquiring navigation data collected in real time during surgery, wherein the navigation data includes the position coordinates of a first sensor, a bronchoscope image, and a respiratory curve, wherein the first sensor and the bronchoscope are arranged at an intervention end of the interventional instrument; A determination unit, configured to determine a current bronchial tree model and current planned path point cloud data corresponding to a current respiratory phase according to the respiratory curve; a conversion unit, configured to obtain the current virtual coordinates of the first sensor in the medical image coordinate system according to a first conversion relationship and the position coordinates of the first sensor, wherein the first conversion relationship is a conversion relationship between the first sensor coordinate system and the medical image coordinate system; A judgment unit is used to determine whether the current intervention end is located on the planned path based on the bronchoscope image, the current bronchial tree model, the current planned path point cloud data, and the current virtual coordinates.
9. An electronic device, characterized in that: include: A processor and a memory, wherein the memory is used to store a computer program; The processor is configured to execute the computer program stored in the memory so as to enable the electronic device to perform the method according to any one of claims 1 to 7.
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 method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Bronchial electromagnetic navigation system
CN114073581A
Method and device for correcting breathing real-time image of flexible tissue in abdominal cavity
CN114451994A
Precise lung cancer puncture navigation system and method based on respiratory movement compensation
CN114938994A
Registration method and device
CN116712170A
Self-adaptive bronchoscope navigation system based on information feedback
CN117796752A
Cited By
Dynamic bronchial environment mapping and positioning method of lung interventional surgical robot
CN119732739A
Bronchoscope path planning method, system and device based on augmented reality and storage medium
CN120643307A
Electromagnetic navigation real-time registration method and system in bronchial operation, terminal and storage medium
CN121685605A
Intelligent navigation system and device for digestive tract endoscope
CN121714363A
Bronchoscope navigation correction system and method and computer readable storage medium
CN122624178A
