Lung navigation path generation device, lung navigation path generation equipment, medium and coupling display method

Through the lung navigation path generation device, the bronchial segmentation model and transformation processing technology are used to quickly extract the bronchial centerline, which solves the problem of long navigation path generation in the existing technology and improves the efficiency and accuracy of navigation planning.

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

Patent Information

Application Number
CN202410810582.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

In the existing technology, bronchial path navigation technology based on CT images during lung puncture and biopsy takes a long time, takes up a lot of computing resources, and affects clinical decision-making and treatment processes.

Method used

A lung navigation path generation device is used, including an acquisition unit, a processing unit and a storage unit. Through bronchus segmentation model, transformation processing and topological structure establishment, the bronchus centerline is quickly extracted and a smooth navigation path is generated.

Benefits of technology

It improves the efficiency of navigation planning, saves computing resources and time, and improves the accuracy and reliability of navigation paths.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118644641A
    Figure CN118644641A
Patent Text Reader

Abstract

The invention relates to the field of medical image processing, and provides a lung navigation path generation device and equipment, a medium and a coupling display method, and the device comprises an acquisition unit which is used for obtaining an original three-dimensional image containing a lung; the processing unit is used for executing the following steps: S1, segmenting an original three-dimensional image based on a bronchus segmentation model to obtain a target area image containing bronchus; s2, performing transformation processing based on the target area image to extract a center line of the bronchus; establishing a bronchial tree based on the topological structure of the center line; s3, performing segmentation processing on the target area image based on the nodule detection network to obtain an end point area; s4, performing navigation path planning based on the end point region and the bronchial tree to obtain a target path; s5, smoothing the target path to obtain a smooth path; and the storage unit is used for storing the smooth path. The device is used for efficiently extracting the center line of the bronchial tube to improve the navigation planning efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of medical image processing, and in particular to a lung navigation path generation device, equipment, medium and coupled display method. Background Art

[0002] Lung puncture and biopsy are important means of screening lung cancer and other lesions. The current navigation bronchoscope and related technologies mainly include the biopsy diagnosis of early peripheral lesions through thin bronchoscopes or ultra-thin bronchoscopes based on X-ray guidance, CT manual drawing guidance or virtual navigation guidance. X-ray-guided biopsy surgery has high radiation and is very harmful to the patient's body. CT manual drawing guidance requires a lot of work before surgery and is not accurate enough for intraoperative surgical guidance.

[0003] In traditional bronchial path navigation technology based on CT images, the process of reconstructing the bronchial tree from image data and accurately extracting the centerline is time-consuming and involves complex image processing and analysis algorithms. This process takes up a lot of computing resources, especially when faced with high-quality, high-resolution three-dimensional image data. Therefore, from image reconstruction to obtaining the bronchial centerline that can be used for preoperative navigation planning, the time of the entire planning stage is extended, thereby affecting clinical decision-making and treatment progress. Therefore, a new type of lung navigation path generation device, equipment, medium and coupled display method is urgently needed to improve the above problems. Summary of the invention

[0004] The purpose of the present invention is to provide a lung navigation path generation device, equipment, medium and coupled display method, which is used to efficiently extract the center line of the bronchus to improve the navigation planning efficiency.

[0005] In a first aspect, the present invention provides a lung navigation path generation device, comprising: an acquisition unit, for acquiring an original three-dimensional image containing lungs; a processing unit, for performing the following steps: S1, based on a bronchial segmentation model, segmenting the original three-dimensional image to obtain a target area image containing bronchi; S2, based on the target area image, performing transformation processing to extract the centerline of the bronchus; establishing a bronchial tree based on the topological structure of the centerline; S3, based on a nodule detection network, segmenting the target area image to obtain an end point area; S4, based on the end point area and the bronchial tree, performing navigation path planning to obtain a target path; S5, smoothing the target path to obtain a smoothed path; a storage unit, for storing the smoothed path; the storage unit and the acquisition unit are both electrically connected to the processing unit.

[0006] Optionally, when the processing unit executes the transformation processing of the bronchi in the target area image using a refinement algorithm, it is also used to execute: generating a three-dimensional binary mask image based on the target area image; searching for the center line point of the current mask image, judging the points to be deleted from the center line points in parallel from N directions in each iteration, and counting all the points to be deleted in each sub-iteration, where N is a positive integer greater than 2; when the number of points to be deleted is greater than zero, removing the center line point from the current mask image, otherwise continuing to the next sub-iteration; when the sum of all the points to be deleted in the N sub-iterations is 0, stopping the iteration and generating a binary image of the center line.

[0007] Optionally, the processing unit includes a central processing unit (CPU) and a graphics processing unit (GPU); the central processing unit and the graphics processing unit are used to execute the judgment of the points to be deleted in N directions in the sub-iteration in parallel, so as to accelerate the extraction of the center line.

[0008] Optionally, the processing unit is used to set N to 12; obtain 26 neighborhood points of the current center line point in order of the current direction, and determine whether the current center line point is a point to be deleted according to 14 templates; when one of the templates is calculated as 0, determine that the current center line point is a point to be deleted; the 14 templates T1-T14 satisfy:

[0009]

[0010]

[0011]

[0012]

[0013]

[0014]

[0015]

[0016]

[0017]

[0018]

[0019]

[0020]

[0021]

[0022]

[0023] Among them, x2-x 27 are the values ​​of the 26 neighborhood points, and the 26 neighborhood points are arranged in a 3*3*3 cubic grid from west to east, from south to north, and from top to bottom on the surrounding side of the current center line point.

[0024] Optionally, when the processing unit executes the establishment of a bronchial tree based on the topological structure of the center line, it is also used to: use a multi-branch tree data structure to store the bronchial tree, set the root node in the multi-branch tree data structure as the entry center point of the bronchial tree, and start searching and generating subsequent nodes based on the entry center point based on a depth-first traversal or breadth-first traversal method; when the number of non-zero neighboring points in the current 26 neighborhoods is 1, confirm that the centerline point is a leaf node and stop traversing the centerline point; when the number of non-zero neighboring points in the current 26 neighborhoods is 2, confirm that the centerline point is a path node; when the number of non-zero neighboring points in the current 26 neighborhoods is greater than 2, confirm that the centerline point is a bifurcation node.

[0025] Optionally, when the processing unit executes S4, it is also used to: when the end point area and the bronchial tree intersect, find the point on the centerline of the bronchial tree closest to the intersection as the nearest point, and generate a path from the root node to the nearest point according to the bronchial tree as the target path; when the end point area and the bronchial tree do not intersect, starting from the starting position of the end point area, avoiding blood vessels, gradually selecting points in the lung area until the nearest bronchus is selected, find the point on the bronchus selected to the nearest point on the centerline as the nearest point, connect the nearest points in series as the external bronchial navigation path, and the path generated in the bronchus as the internal navigation path, and combine the two to generate the target path.

[0026] Optionally, when the processing unit executes S3, it is also used to: perform lung contour recognition based on the Otsu threshold method, and then eliminate areas outside the lungs from the target area image to obtain a lung area map; send the lung area map to the nodule detection network, and obtain all possible nodule detection frames through network regression; set a confidence threshold, and extract nodule detection frames with a probability greater than the confidence threshold as the endpoint area; calculate the size of the sub-region in the endpoint area based on the nodule detection frame, and eliminate the sub-region smaller than N mm in the endpoint area, where N is greater than 0.

[0027] Optionally, when the processing unit executes S1, it is also used to: input the original three-dimensional image into a bronchial segmentation model, perform forward reasoning, and obtain a bronchial segmentation mask image; the bronchial segmentation model is set as a three-dimensional convolutional neural network based on a U-type network, including an encoder and a decoder; the encoder includes multiple down-sampling encoding blocks for reducing the scale; the decoder includes multiple up-sampling decoding blocks for enlarging the scale; the encoding block or the decoding block includes a multi-scale attention layer, multiple convolutions, normalization and activation layers; a connection channel is set between each same layer in the encoder and the decoder.

[0028] Optionally, when the processing unit executes S5, it is also used to: segment the target path to obtain a number of path segments; calculate the curvature of each path segment; when the curvature of the current path segment is greater than the curvature threshold, downsample the current path segment to obtain discrete path points; interpolate based on the discrete path points to generate a smooth path segment to update the path segment; when the curvature of the current path segment is less than the curvature threshold, jump to the next path segment until the path segments in the target path are traversed. Coding blocks downsampled using a thinning algorithm.

[0029] In a second aspect, the present invention provides a medical device comprising a memory and a processor, wherein the memory stores a program for running on the processor, and when the program is executed by the processor, the medical device implements the steps that can be implemented by the device described in any one of the first aspects.

[0030] In a third aspect, the present invention provides a readable storage medium, wherein the readable storage medium stores a program, and when the program is executed, the steps that can be implemented by the device described in any one of the first aspects are implemented.

[0031] In a fourth aspect, the present invention provides a method for coupled display, which is used for coupling the apparatus described in any one of the first aspects to a display device, comprising: S01, generating at least one window; each of the windows is used to output at least one of a block image and a linear image; S02, the block image includes the original three-dimensional image, the target area image and the mask image; the linear image includes the center line of the bronchus, the target path and the smooth path; S03, when the current window is used to simultaneously output the block image and the linear image, segmenting the block image to generate a cross-sectional view of the block image; rendering the cross-sectional view and the linear image to update the current window.

[0032] The beneficial effects of the present invention are as follows: the present invention adopts the bronchial segmentation model to segment and obtain the target area image, performs transformation processing on the target area, and the bronchial centerline extraction process is not affected by the quality of the original three-dimensional image. By performing transformation processing based on the target area image, the bronchial centerline can be extracted quickly and accurately, which is conducive to saving computing resources and computing time and improving navigation planning efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 A schematic diagram of the structure of a lung navigation path generation device provided by the present invention;

[0034] Figure 2 A schematic flow chart of execution steps of a processing unit provided by the present invention;

[0035] Figure 3 A schematic diagram of the network structure of a three-dimensional convolutional neural network provided by the present invention;

[0036] Figure 4 A schematic diagram of a network structure of a first encoder module provided by the present invention;

[0037] Figure 5 A schematic diagram of a network structure of a second encoder module provided by the present invention;

[0038] Figure 6 A schematic diagram of a network structure of a third encoder module provided by the present invention;

[0039] Figure 7 A schematic diagram of a network structure of a fourth encoder module provided by the present invention;

[0040] Figure 8 A schematic diagram of a network structure of a decoder module provided by the present invention;

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

[0042] Fig.10 A schematic diagram of the arrangement of 26 neighborhood points relative to the current center line point provided by the present invention;

[0043] Fig.11 A schematic diagram of a main direction and 12 iterative sub-directions provided by the present invention;

[0044] Fig.12 A schematic diagram of a centerline extraction result provided by the present invention;

[0045] Fig.13 A schematic diagram of an optimal path planning result provided by the present invention;

[0046] Fig.14 A schematic diagram of the structure of a medical device provided by the present invention;

[0047] Fig.15 A schematic flow chart of a coupled display method provided by the present invention. DETAILED DESCRIPTION

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

[0049] In view of the problems existing in the existing technology, such as Figure 1 As shown, the first embodiment of the present invention provides a lung navigation path generation device 10, including: an acquisition unit 13, used to obtain an original three-dimensional image containing the lungs; a storage unit 12, used to store the smooth path; the storage unit 12 and the acquisition unit 13 are both electrically connected to the processing unit 11. Specifically, the acquisition unit 13 is configured as a computer X-ray tomography machine. The processing unit 11 is configured as a processor or a processing chip. The storage unit 12 is configured as a memory or a storage chip.

[0050] like Figure 2 As shown, the processing unit is used to perform the following steps: S1, based on the bronchial segmentation model, the original three-dimensional image is segmented to obtain a target area image containing the bronchus; S2, based on the target area image, a transformation process is performed to extract the centerline of the bronchus; based on the topological structure of the centerline, a bronchial tree is established; S3, based on the nodule detection network, the target area image is segmented to obtain the terminal area; S4, based on the terminal area and the bronchial tree, a navigation path is planned to obtain a target path; S5, the target path is smoothed to obtain a smooth path.

[0051] In some embodiments, when the processing unit executes S1, it is used to input the original three-dimensional image into the bronchial segmentation model, perform forward reasoning, and obtain a bronchial segmentation mask image; the bronchial segmentation model is set as a three-dimensional convolutional neural network based on a U-type network, including an encoder and a decoder; the encoder includes multiple down-sampling encoding blocks for reducing the scale; the decoder includes multiple up-sampling decoding blocks for enlarging the scale; the encoding block or the decoding block includes a multi-scale attention layer, multiple convolutions, normalization and activation layers; a connection channel is set between each same layer in the encoder and the decoder.

[0052] In some specific embodiments, the original three-dimensional image is set to a thin-layer computed tomography (CT) image of the lung.

[0053] In some other specific embodiments, before segmenting the thin-layer CT image of the lung, the thin-layer CT image of the lung is enlarged to generate a multi-scale CT image group. The multi-scale CT image group includes CT images at several different scales, and the CT images at different scales are respectively used as the original three-dimensional images in S1.

[0054] The three-dimensional convolutional neural network is implemented by an encoder and a decoder, such as Figure 3 As shown, the encoder encoder includes multiple down-sampling encoder modules, and the decoder decoder includes multiple up-sampling decoder modules. Each encoder module or decoder module includes a multi-scale attention layer, multiple three-dimensional convolution layers, normalization and activation layers. There are cross-layer connections between the multi-scale attention layer, multiple three-dimensional convolution layers, normalization and activation layers, and the cross-layer connection can be in the form of channel merging and / or channel addition.

[0055] Specifically, the encoder encoder includes a first encoder module E1, a second encoder module E2, two third encoder modules E3, and a fourth encoder module E4 connected in sequence according to the downsampling direction. The decoder decoder includes four decoder modules D0 connected in sequence according to the upsampling direction. An attention threshold module atenGateBlock is connected between the encoder modules and decoder modules of the same scale. The output end of the fourth encoder module E4 is connected to the attention threshold module atenGateBlock at the smallest scale and the decoder module D0 at the smallest scale. The input end of the first encoder module E1 at the largest scale is used to receive input data Inputs, and the decoder module D0 at the largest scale is used to send output data Outputs.

[0056] Each same layer in the encoder and decoder is connected (concat). Exemplarily, the activation layer uses Gaussian Error Linear Units (GELU) function, which is smoother than Relu activation and avoids the problem of neuron inactivation due to gradient truncation in Relu activation. The three-dimensional convolutional neural network is also provided with an input layer and an output layer. During the training process, the loss function adopts the Dice plus Hausdorff weighted form, which is conducive to extracting the characteristics of the blood vessel edge.

[0057] For example, Figure 4 As shown, the first encoder module E1 is composed of three ConvGnGeluDrop modules with residual connections and a downsampling layer downSampling is added. A cross-layer connection is set between the output end of the first ConvGnGeluDrop module and the input end of the third ConvGnGeluDrop module.

[0058] like Figure 5 As shown, the second encoder module E2 is composed of three ConvGnGeluDrop modules with residual connections, and a downsampling layer downSampling is added. A cross-layer connection is set between the input end of the first ConvGnGeluDrop module and the input end of the third ConvGnGeluDrop module.

[0059] like Figure 6 As shown, it is the third encoder module E3, which is composed of three ConvGnGeluDrop modules with residual connections, and a downsampling layer downSampling is added. A cross-layer connection is set between the input end of the first ConvGnGeluDrop module and the output end of the third ConvGnGeluDrop module.

[0060] like Figure 7 As shown, the fourth encoder module E4 is composed of three ConvGnGeluDrop modules with residual connections, and a cross-layer connection is set between the input end of the first ConvGnGeluDrop module and the output end of the third ConvGnGeluDrop module.

[0061] like Figure 8 As shown, the decoder module D0 is composed of two ConvGnGeluDrop modules connected by residuals, and an upsampling layer upSampling is added. A cross-layer connection is set between the input end of the first ConvGnGeluDrop module and the input end of the upsampling layer upSampling.

[0062] It is worth noting that the ConvGnGeluDrop module includes a convolutional layer (Con), a group normalization layer (Gn), a Gaussian Error Linear Units layer (GELU) and a random dropout layer (Dropout). In other embodiments, neural networks with other structures can be used to segment the original three-dimensional image. In some other embodiments, the input image is subjected to a multi-scale amplification input network based on b-spline interpolation, and the bronchi with a radius less than or equal to M mm are marked as target categories, and the loss metric weighting coefficient of the target category is amplified. M is a positive number, and exemplarily, M is 3. In another example, M is 5. In another example, M is 1. This embodiment is beneficial to improving the detection rate of small bronchial branches by amplifying the loss metric weighting coefficient of bronchi less than or equal to M mm.

[0063] In some other examples, the minimum resolution of the thin-layer CT image of the lung is less than or equal to 0.65 x 0.65 x 0.65 mm. This embodiment is conducive to improving the detection level of bronchial branches and reducing the length of the transbronchial navigation path, thereby reducing the lung surgery path and reducing surgical trauma.

[0064] The bronchial segmentation can also be implemented by other traditional image processing methods, or by a combination of deep learning and traditional image processing. In this example, bronchial segmentation is performed on a thin-layer CT image of a lung, and the segmentation result, i.e., the target area image, is shown in FIG. Fig. 9 shown.

[0065] In some embodiments, when a refinement algorithm is used to transform the bronchi in the target area image, it includes: generating a three-dimensional binary mask image based on the target area image; finding the center line point of the current mask image, and judging the points to be deleted from the center line points in parallel from N directions in each iteration, and counting all the points to be deleted in each sub-iteration, where N is a positive integer greater than 2; when the number of points to be deleted is greater than zero, removing the center line point from the current mask image, otherwise continuing to the next sub-iteration; when the sum of all the points to be deleted in the N sub-iterations is 0, stopping the iteration and generating a binary image of the center line.

[0066] Specifically, the processing unit includes a central processing unit and a graphics processing unit; the central processing unit and the graphics processing unit are used to perform the judgment of the points to be deleted in N directions in the sub-iteration in parallel, so as to accelerate the extraction of the center line. This embodiment can improve the speed of center line extraction by performing the judgment of the points to be deleted in parallel, realize the refined processing of the center line, and ensure that only necessary points are retained in the extraction result of the center line. In this way, the final output can be more accurate and efficient, and resource waste can be avoided.

[0067] In some embodiments, N is set to 12; 26 neighborhood points of the current center line point are obtained in order of the current direction, and whether the current center line point is a point to be deleted is determined according to 14 templates; when one of the templates is calculated to be 0, the current center line point is determined to be a point to be deleted; the 14 templates T1-T14 satisfy:

[0068]

[0069]

[0070]

[0071]

[0072]

[0073]

[0074]

[0075]

[0076]

[0077]

[0078]

[0079]

[0080]

[0081]

[0082] Among them, x2-x 27 is the value of the 26 neighborhood points, such as Fig.10 As shown, the 26 neighborhood points are arranged in a 3*3*3 cubic grid from west to east, from south to north, and from top to bottom around the current center line point. In some specific embodiments, the schematic diagram of the 6 main directions and 12 iterative sub-directions is as follows Fig.11 The 12 iterative sub-directions are US, NE, WD, ES, UW, ND, SW, UN, ED, NW, UE, and SD, where U stands for up, D stands for down, N stands for north, S stands for south, E stands for east, and W stands for west.

[0083] In other specific embodiments, the centerline extraction shown can also use other thinning algorithms, distance transformation algorithms, medial axis transformation algorithms or other centerline extraction methods to extract the overall skeleton structure of the target image and retain the basic topological features. These algorithms can gradually refine the object into a skeleton through operations such as iteration, corrosion, and expansion. This example performs centerline extraction on the binary result of bronchial segmentation in the above data, and the centerline extraction result is as follows: Fig.12 shown.

[0084] In some embodiments, when establishing a bronchial tree based on the topological structure of the center line, it includes: using a multi-branch tree data structure to store the bronchial tree, setting the root node in the multi-branch tree data structure as the entry center point of the bronchial tree, and starting to search and generate subsequent nodes based on the entry center point based on a depth-first traversal or breadth-first traversal method; when the number of non-zero neighboring points in the current 26 neighborhoods is 1, confirming that the center line point is a leaf node and stopping traversing the center line point; when the number of non-zero neighboring points in the current 26 neighborhoods is 2, confirming that the center line point is a path node; when the number of non-zero neighboring points in the current 26 neighborhoods is greater than 2, confirming that the center line point is a bifurcation node.

[0085] In some specific embodiments, the bronchial tree established based on the centerline topology structure is stored in a multi-tree data structure and implemented based on a depth-first traversal or breadth-first traversal method. When there is one and only one non-zero field in the neighborhood of the current node 26, the node is a leaf node and the traversal of the current node stops. A bifurcation node is a node with more than two non-zero nodes in the neighborhood of 26, and a path node is a node with two non-zero nodes in the neighborhood of the current node 26. The root node of the multi-tree is the center point of the bronchial entrance. Generally, when the CT image is taken in the RAI direction, the search starts from the last cross-section and is descending. The first non-zero point found is used as the root node. Subsequent nodes are generated by traversing and searching from the root node.

[0086] In some embodiments, when the processing unit executes S3, it is used to perform lung contour recognition based on the Otsu threshold method, and then eliminate areas other than the lungs from the target area image to obtain a lung area map; the lung area map is sent to the nodule detection network, and all possible nodule detection frames are obtained through network regression; a confidence threshold is set, and nodule detection frames with a probability greater than the confidence threshold are extracted as the end point area; the size of the sub-area in the end point area is calculated according to the nodule detection frame, and the sub-area in the end point area that is smaller than Nmm is eliminated, and N is greater than 0.

[0087] In some other specific embodiments, the lung lesion segmentation is performed by an automatic detection method, or the contour is automatically identified according to the points near the nodule specified by the doctor. The automatic detection method can be implemented by a deep learning network, firstly the lung contour is identified based on the Otsu threshold method, then the area outside the lung is removed from the original image to obtain a lung area map, the lung area map is sent to the nodule detection network, all possible nodule detection frames are obtained by regression, and the confidence threshold is set to remove the nodules with less possibility.

[0088] In some embodiments, the processing unit is used to deal with two situations when executing S4: when the end point area and the bronchial tree intersect, the point on the centerline of the bronchial tree closest to the intersection is found as the nearest point, and a path from the root node to the nearest point is generated according to the bronchial tree as the target path; when the end point area and the bronchial tree do not intersect, starting from the starting position of the end point area, avoiding blood vessels, and gradually selecting points in the lung area until the nearest bronchus is selected, and the nearest point from the selected point on the bronchus to the centerline is found as the nearest point, the nearest points are connected in series as the external bronchial navigation path, and the path generated in the bronchus is used as the internal navigation path, and the two are combined to generate the target path.

[0089] In some specific embodiments, the end point region is set as a lesion region. Exemplarily, the sub-region in the lesion region is at least one of a nodule sub-region, a mass sub-region, an inflammation sub-region, a fibrosis sub-region, and a calcification sub-region. In some other specific embodiments, the starting position of the end point region is set to a pre-confirmed nodule position. The pre-confirmed nodule position is gradually selected until the path on the nearest bronchus is selected as the external navigation path. The path generated in the bronchus is used as the internal navigation path. The target path is obtained by combining the external navigation path and the internal navigation path.

[0090] In some embodiments, when the processing unit executes S5, it is used to segment the target path to obtain a number of path segments; calculate the curvature of each of the path segments; when the curvature of the current path segment is greater than the curvature threshold, downsample the current path segment to obtain discrete path points; interpolate based on the discrete path points to generate smooth path segments to update the path segments; when the curvature of the current path segment is less than the curvature threshold, jump to the next path segment until the path segments in the target path are traversed.

[0091] Specifically, confirm that the smoothed path is the optimal path. Since the generated optimal path points are dense and tortuous, it is necessary to first downsample the optimal path to generate discrete path points, and then perform B-spline interpolation on these discrete points to generate a smoothed optimal path. The optimal path planning result of the above data example is the optimal path as follows Fig.13As shown, during the operation, the optimal path after smoothing planned before the operation is used to navigate to the designated position, and then the biopsy puncture and other operations are performed. This embodiment can provide a simpler and more effective reference solution for intracavitary navigation biopsy, which can improve the success rate of the operation while reducing surgical trauma.

[0092] like Fig.14 As shown, the second embodiment provides a medical device 20, including a memory 22 and a processor 21, wherein the memory 22 stores a program for running on the processor 21, and when the program is executed by the processor 21, the medical device 20 implements the steps that can be implemented by any of the devices in the above embodiments.

[0093] In a possible embodiment, the medical device 20 further includes: an output interface 23 for outputting results; a communication interface 24 for communicating and transmitting signals; an antenna 25 for transmitting or receiving signals; and an image sensor 26 for acquiring an original three-dimensional image containing the lungs.

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

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

[0096] A third embodiment provides a readable storage medium, wherein the readable storage medium stores a program, and when the program is executed, the method according to any one of the first aspects is implemented.

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

[0098] like Fig.15As shown, the fourth embodiment provides a method for coupled display, which is used for coupling the apparatus of any one of the above embodiments to a display device, including: S01, generating at least one window; each of the windows is used to output at least one of a block image and a linear image; S02, the block image includes the original three-dimensional image, the target area image and the mask image; the linear image includes the center line of the bronchus, the target path and the smooth path; S03, when the current window is used to simultaneously output the block image and the linear image, segmenting the block image to generate a cross-sectional view of the block image; rendering the cross-sectional view and the linear image to update the current window.

[0099] Specifically, the display device is configured as a display. In this embodiment, the cross-sectional view and the linear image obtained through the segmentation process are accurately rendered and integrated, ensuring that the user can simultaneously observe the depth structure of the target area through the cross-sectional view and guide information through the linear image path, thereby achieving a more intuitive and efficient interactive experience.

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

Claims

1. A lung navigation path generation device, characterized in that: include: An acquisition unit, used for acquiring an original three-dimensional image including the lungs; The processing unit is used to perform the following steps: S1, segmenting the original three-dimensional image based on the bronchial segmentation model to obtain a target area image containing the bronchial area; S2, performing transformation processing based on the target area image to extract the centerline of the bronchus; and establishing a bronchial tree based on the topological structure of the centerline; S3, segmenting the target area image based on a nodule detection network to obtain an endpoint area; S4, performing navigation path planning based on the end point area and the bronchial tree to obtain a target path; S5, smoothing the target path to obtain a smoothed path; A storage unit is used to store the smooth path; the storage unit and the acquisition unit are both electrically connected to the processing unit.

2. The device according to claim 1, characterized in that When the processing unit executes the transformation processing of the bronchi in the target area image by using the thinning algorithm, it is also used to execute: Generating a three-dimensional binary mask image based on the target area image; Find the center line point of the current mask image, and judge the center line points to be deleted in parallel from N directions in each iteration, and count all the points to be deleted in each sub-iteration, where N is a positive integer greater than 2; When the number of points to be deleted is greater than zero, the center line points are removed from the current mask image, otherwise the next sub-iteration is continued; When the sum of all the points to be deleted in the N sub-iterations is 0, the iteration is stopped and a binary map of the center line is generated.

3. The device according to claim 2, characterized in that The processing unit includes a central processing unit and a graphics processing unit; the central processing unit and the graphics processing unit are used to execute the judgment of the points to be deleted in N directions in the sub-iteration in parallel, so as to accelerate the extraction of the center line.

4. The device according to claim 2, characterized in that The processing unit is used to set N to 12; The 26 neighborhood points of the current center line point are obtained in the order of the current direction, and the 14 templates are used to determine whether the current center line point is a point to be deleted; when one of the templates is calculated as 0, the current center line point is determined to be a point to be deleted; the 14 templates T1-T14 satisfy: Among them, x2-x 27 are the values ​​of the 26 neighborhood points, and the 26 neighborhood points are arranged in a 3*3*3 cubic grid from west to east, from south to north, and from top to bottom on the surrounding side of the current center line point.

5. The device according to claim 4, characterized in that When the processing unit executes the establishment of the bronchial tree based on the topological structure of the centerline, the processing unit is further used to: Adopting a multi-tree data structure to store the bronchial tree, setting a root node in the multi-tree data structure as an entry center point of the bronchial tree, and searching and generating subsequent nodes based on the entry center point by a depth-first traversal or a breadth-first traversal method; When the number of non-zero neighborhood points in the current 26 neighborhoods is 1, confirm that the center line point is a leaf node and stop traversing the center line point; When the number of non-zero neighborhood points in the current 26 neighborhoods is 2, confirming that the center line point is a path node; When the number of non-zero neighborhood points in the current 26 neighborhoods is greater than 2, the centerline point is confirmed to be a bifurcation node.

6. The device according to claim 1, characterized in that When the processing unit executes S4, it is further used for: When the end point area intersects with the bronchial tree, finding a point on the center line of the bronchial tree closest to the intersection point as the nearest point, and generating a path from the root node to the nearest point according to the bronchial tree as the target path; When the end point area and the bronchial tree do not intersect, starting from the starting position of the end point area, avoiding blood vessels, gradually select points in the lung area until the nearest bronchus is selected, find the nearest point from the selected point on the bronchus to the center line as the nearest point, connect the nearest points in series as the external bronchial navigation path, and the path generated in the bronchus as the internal navigation path, and combine the two to generate the target path.

7. The device according to claim 1, characterized in that When the processing unit executes S3, it is further used for: Lung contour recognition is performed based on the Otsu threshold method, and then the area outside the lung is eliminated from the target area image to obtain the lung area map; The lung area map is sent to the nodule detection network, and all possible nodule detection boxes are obtained through network regression; Setting a confidence threshold, and extracting a nodule detection frame with a probability greater than the confidence threshold as the end point area; The size of the sub-region in the end point area is calculated according to the nodule detection frame, and the sub-region in the end point area that is smaller than N mm is eliminated, where N is greater than 0.

8. The device according to claim 1, characterized in that When the processing unit executes S1, it is further used for: Inputting the original three-dimensional image into a bronchial segmentation model, performing forward reasoning, and obtaining a bronchial segmentation mask image; the bronchial segmentation model is set as a three-dimensional convolutional neural network based on a U-type network, including an encoder and a decoder; The encoder includes a plurality of down-sampled encoding blocks for reducing the scale; the decoder includes a plurality of up-sampled decoding blocks for enlarging the scale; The encoding block or the decoding block includes a multi-scale attention layer, multiple convolution, normalization and activation layers; A connection channel is set between each peer layer in the encoder and decoder.

9. The device according to claim 1, characterized in that When the processing unit executes S5, it is further used for: The target path is segmented to obtain a plurality of path segments; the curvature of each path segment is calculated; when the curvature of a current path segment is greater than a curvature threshold, the current path segment is downsampled to obtain discrete path points; interpolation is performed based on the discrete path points to generate a smooth path segment to update the path segment; when the curvature of the current path segment is less than the curvature threshold, jump to the next path segment until the path segments in the target path are traversed.

10. A medical device, characterized in that: It comprises a memory and a processor, wherein the memory stores a program for running on the processor, and when the program is executed by the processor, the medical device implements the steps that can be implemented by the device described in any one of claims 1 to 9.

11. A readable storage medium, wherein a program is stored in the readable storage medium, characterized in that: When the program is executed, the steps that can be implemented by the device according to any one of claims 1 to 9 are implemented.

12. A method for coupled display, characterized in that: The device-coupled display device according to any one of claims 1 to 9 comprises: S01, generating at least one window; each of the windows is used to output at least one of a block image and a line image; S02, the block image includes the original three-dimensional image, the target area image and the mask image; the line image includes the center line of the bronchus, the target path and the smooth path; S03, when the current window is used to output the block image and the linear image simultaneously, segment the block image to generate a cross-sectional view of the block image; render the cross-sectional view and the linear image to update the current window.

Citation Information

Cited By

  • Navigation path planning method based on lung tracheal tree

    CN118902615A

  • Airway navigation system and method based on bronchoscope view

    CN119454236A