A lung puncture path planning method based on quality feedback and adaptive sampling
By optimizing lung puncture path planning using a quality feedback and adaptive sampling method, the problem of difficulty in adjusting path quality in existing technologies is solved, improving path search efficiency and safety, and ensuring the discovery of high-quality paths and the continuous exploration of low-quality areas.
Patent Information
- Application Number
- CN202611443058.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-17
- Publication Date
- 2026-11-27
AI Technical Summary
Existing methods for preoperative lung puncture path planning are difficult to adjust the sampling location based on path quality feedback when the lesion is deep, close to the hilum, adjacent to a densely vascularized area, or the range of selectable entry points is small. This results in no feasible path, a small number of feasible paths, or insufficient path safety margin.
By using a quality feedback and adaptive sampling method, the puncture point and target point regions are divided into grids for initial sampling, a set of puncture paths is established, invalid paths are filtered out, path quality is calculated, sampling weights and quantities are iteratively updated, and path search is optimized to ensure the search efficiency of high-quality paths and the continuous exploration of low-quality regions.
It improves the efficiency of searching for high-quality candidate paths under limited sampling budget, reduces the possibility of missing high-quality paths due to insufficient initial sampling, and balances the key search of high-quality areas with the continuous exploration of other areas, thereby improving the feasibility and safety of path planning.
Smart Images

Figure CN123166735A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of medical image processing and computer-aided interventional preoperative planning technology, specifically involving a lung puncture path planning method based on quality feedback and adaptive sampling. Background Technology
[0002] Before percutaneous lung biopsy, it is usually necessary to determine the location of the lesion based on chest CT images and, in conjunction with the structural relationships of the lung parenchyma, chest wall, ribs, blood vessels, and airways, select the entry point, direction of needle insertion, and target point on the body surface. Existing path planning methods generally acquire structural information such as lesion, lung tissue, bony structures, blood vessels, or airways from CT images, generate candidate entry points in the body surface or chest wall region, and connect these candidate entry points with the target point to form a candidate puncture path. The path is then screened and ranked based on indicators such as whether it crosses ribs, the length of the puncture within the lung, the safe distance from blood vessels or airways, and the needle insertion angle. When the lesion is deep, close to the hilum, adjacent to areas with dense blood vessels, or the range of selectable entry points is small, existing methods are prone to situations where there are no feasible paths, a limited number of feasible paths, or insufficient safety margins. In such cases, if subsequent sampling still uses a fixed allocation method, it is difficult to adjust the sampling position based on the quality of the obtained path. Therefore, a lung biopsy path planning method is needed that can adjust the sampling allocation of each region based on path quality feedback. Summary of the Invention
[0003] To address the problem that sampling allocation in existing preoperative lung puncture path planning is difficult to adjust based on candidate path quality, this invention proposes a lung puncture path planning method based on quality feedback and adaptive sampling, specifically including the following steps:
[0004] S1. Determine the puncture point region and the target point region, and divide each puncture point region and target point region into multiple puncture point sub-regions and target point sub-regions according to a preset grid.
[0005] S2. Sample each puncture point sub-region and target point sub-region according to the initially set sampling parameters to obtain the puncture point and target point under each sub-region.
[0006] S3. Obtain all sampled entry and target points. Establish a straight line between any entry and target point as the puncture path. Sample the puncture path to form a set of puncture paths.
[0007] S4. If there is a sampling point in the puncture path set whose distance from the risk area is less than the set first risk threshold, then the path is directly considered invalid.
[0008] S5. Calculate the quality of the effective puncture path and determine whether the maximum number of iterations has been reached. If it has been reached, recommend the effective puncture paths in descending order of quality.
[0009] S6. If the maximum number of iterations has not been reached, the sampling weight of each puncture point region and target region is updated and normalized according to the overall quality of each puncture point region and target region, and then the number of sampling points in each puncture point region and target region is determined.
[0010] S7. Based on the confirmed number of sampling points, resample the puncture point and target point in the corresponding puncture point area and target point area, and then return to step S3.
[0011] This invention comprehensively considers the distance to dangerous organs, the safe distance of the post-target extension, the intrapulmonary penetration length, and the pleural puncture angle. It converts the remaining margins of each feature into a normalized score and calculates the overall quality of the puncture path using geometric mean. This ensures that deficiencies in individual features are reflected in the overall evaluation results, providing a quantitative basis for ranking and recommending candidate puncture paths. By statistically analyzing the quality of paths associated with sub-regions and iteratively updating sampling weights and the number of sampling points, subsequent sampling is allocated more to sub-regions capable of generating higher-quality paths, improving the search efficiency for high-quality candidate paths under limited sampling budgets. Simultaneously, a minimum number of samples is reserved for each sub-region, allowing sub-regions with lower current quality to continue exploration, reducing the possibility of missing potential high-quality paths due to insufficient initial sampling, and balancing focused searches of high-quality regions with continuous exploration of other regions. Attached Figure Description
[0012] Figure 1 This is a flowchart of a lung puncture path planning method based on quality feedback and adaptive sampling according to the present invention;
[0013] Figure 2 This is a schematic diagram of the puncture path and its quality evaluation characteristics in a lung puncture path planning method based on quality feedback and adaptive sampling according to the present invention.
[0014] Figure 3 This is a schematic diagram of regional quality feedback and adaptive sampling in a lung puncture path planning method based on quality feedback and adaptive sampling according to the present invention. Detailed Implementation
[0015] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0016] This invention proposes a lung puncture path planning method based on quality feedback and adaptive sampling, such as... Figure 1 Specifically, it includes the following steps:
[0017] S1. Determine the puncture point region and the target point region, and divide each puncture point region and target point region into multiple puncture point sub-regions and target point sub-regions according to a preset grid.
[0018] S2. Sample each puncture point sub-region and target point sub-region according to the initially set sampling parameters to obtain the puncture point and target point under each sub-region.
[0019] S3. Obtain all sampled entry and target points. Establish a straight line between any entry and target point as the puncture path. Sample the puncture path to form a set of puncture paths.
[0020] S4. If there is a sampling point in the puncture path set whose distance from the risk area is less than the set first risk threshold, then the path is directly considered invalid.
[0021] S5. Calculate the quality of the effective puncture path and determine whether the maximum number of iterations has been reached. If it has been reached, recommend the effective puncture paths in descending order of quality.
[0022] S6. If the maximum number of iterations has not been reached, the sampling weight of each puncture point region and target region is updated and normalized according to the overall quality of each puncture point region and target region, and then the number of sampling points in each puncture point region and target region is determined.
[0023] S7. Based on the confirmed number of sampling points, resample the puncture point and target point in the corresponding puncture point area and target point area, and then return to step S3.
[0024] As an optional implementation, in step S1, the present invention determines the permissible puncture area, target area, and space occupied by risk structures based on the spatial information corresponding to the medical image. The permissible puncture area is divided into multiple puncture point sub-regions according to a preset grid, and the target area is divided into multiple target point sub-regions. Initial sampling parameters, initial sampling weights for each sub-region, and maximum iteration counts are set for each sub-region. In this embodiment, the puncture point area and target area used for quality statistics, weight updates, and sampling quantity allocation refer to the puncture point area and target point sub-region after grid division, respectively.
[0025] In the first iteration, the initial sampling weights of each puncture point sub-region and target point sub-region can be determined based on the spatial extent of the corresponding sub-region; the larger the area or volume of the sub-region, the higher its initial sampling weight. When there are candidate puncture points or target points pre-marked by the doctor, the corresponding initial sampling weights can also be set according to the priority of the doctor-marked regions. The initial sampling weights of each sub-region of the same type are normalized and used to determine the number of sampling points in each sub-region in the first iteration. After completing the candidate puncture path generation and quality evaluation in the first iteration, subsequent iterations update the sampling weights based on the path quality feedback corresponding to each sub-region.
[0026] After sampling each sub-region (including each puncture point region and each target point region), all sampling points are obtained (including puncture points obtained from sampling each puncture point region and target points obtained from sampling each target point region). Each puncture point is paired with each target point, and the straight line segment from the puncture point to the target point in each pair is used as a puncture path.
[0027] This embodiment provides a method for determining whether a puncture path is effective, such as... Figure 2 In this invention, a straight line from the entry point P through the pleural junction A to the target point T within the lesion is used as a puncture path. Considering potential needle tip manipulation errors in actual operation, the puncture path is extended by a certain distance as a distance margin. Then, each puncture path and its post-target extension are discretely sampled at preset spatial intervals to determine:
[0028] Whether the shortest distance between discrete sampling points and the designated danger zone is not less than the designated minimum safety distance; and
[0029] Whether the length of the puncture path within the lung is within the permissible range; and
[0030] Is the pleural puncture angle within the permissible range for the puncture path?
[0031] If the above conditions are met, the puncture path is valid; otherwise, the path is discarded. Specifically, the validity condition is still met when the intrapulmonary puncture length and pleural entry angle are equal to the corresponding upper limit; the validity condition is also met when the distance is equal to the corresponding minimum safe distance, with a corresponding mass margin of 0.
[0032] The quality of each region is calculated based on the effective path of each region. This embodiment uses the entry point region as an example. The calculation of the target point region is similar and will not be repeated here.
[0033] As an optional implementation, this embodiment segments the medical image, and the segmentation result includes at least the skin, lung tissue, lesions, bony structures, heart, aorta, important blood vessels, important airways, lung fissures, and diaphragm. According to the clinically permissible approach, the permissible puncture area is determined on the skin surface, and the part near the edge or unsuitable for sampling is removed inside the lesion to form a safe target area. In addition, a danger zone is set centered on important organs such as the heart or bony structures, that is, the puncture path passing through these areas will cause risks, and the selected puncture path must be a certain distance away from the set danger zone.
[0034] In this embodiment, the features involved in quality evaluation include the minimum distance between the needle path and each dangerous organ, the safe distance of the post-target extension, the intrapulmonary penetration length, and the pleural puncture angle. The post-target extension is the line segment formed by extending a preset examination length along the current needle insertion direction after the needle tip reaches the target point. The intrapulmonary penetration length is obtained by accumulating the actual line segment length of the needle path within the lung tissue. The pleural puncture angle is obtained by the angle between the needle path direction and the local normal at the intersection of the needle path and the pleura when the needle enters the lung. The preset sampling interval is set according to the image spatial resolution and distance examination accuracy requirements. The preset examination length of the post-target extension is set according to the sampling stroke of the puncture needle used and the reserved examination range. Consistent settings are used in all iterations of the same plan.
[0035] Since the above features have different physical units and different preferred orientations, they are converted into mass margins in a unified orientation based on the degree of residual of each feature relative to the corresponding allowable boundary.
[0036] Specifically, for the distance to dangerous organs, each dangerous organ has a corresponding minimum safe distance, which is the minimum remaining safety margin between the sampling point and the dangerous organ on the k-th effective puncture path within the specified area. Defined as:
[0037]
[0038] in, A collection of dangerous organs; This indicates the sampling point on the k-th valid puncture path and the... The minimum distance between dangerous organs Indicates the first Minimum safe distance from dangerous organs.
[0039] Similarly, within a designated area, the minimum residual safety margin between the post-target extension and the hazardous organ. Defined as:
[0040]
[0041] in, This indicates that the sampling point on the post-target extension of the k-th effective puncture path is related to the sampling point on the th effective puncture path. The minimum distance between dangerous organs.
[0042] Furthermore, the remaining proportion of the distance from the maximum permissible intrapulmonary travel length. Represented as:
[0043]
[0044] in, To allow the maximum intrapulmonary travel length; This represents the length of the effective puncture path within the lung.
[0045] Furthermore, the remaining proportion of the distance from the maximum permissible insertion angle. Defined as:
[0046]
[0047] in, The maximum permissible angle for pleural puncture; Let be the pleural entry angle for the kth effective puncture path.
[0048] Since the effectiveness screening has been performed before calculating the quality of each puncture path to ensure that all quality margins are non-negative, after the above transformation, path features with different physical meanings have a unified evaluation direction, that is, the larger the quality margin, the farther the feature is from the corresponding allowable boundary.
[0049] After obtaining the mass margin, a continuous saturation-type mass response function is further used to convert the mass margin into a single mass value between 0 and 1. The index of characteristic j of the k-th effective puncture path is expressed as:
[0050]
[0051] in, The index represents the j-th feature of the k-th valid puncture path, where j∈{org,post,lung,angle}; The feature value represents the j-th feature of the k-th effective puncture path. When j=org, the feature value is the minimum remaining safety margin between the sampling point and the dangerous organ on the current effective puncture path. When j=post, the feature value is the minimum remaining safety margin between the post-target extension and the dangerous organ. When j=lung, the feature value is the remaining proportion of the distance to the maximum allowable intrapulmonary penetration length. When j=angle, the feature value is the remaining proportion of the distance to the maximum allowable puncture angle. The quality response parameter for the j-th feature is used to control the rate at which the individual quality value changes with the quality margin. When the candidate needle track is close to the corresponding allowable boundary, the quality margin is small and the individual quality value is correspondingly low. As the quality margin increases, the individual quality value gradually increases. When the feature already has sufficient margin, the individual quality value gradually approaches 1. The reference margin for the j-th feature is used to determine the major transition position of the quality response, when hour, Among them, the quality response parameters and reference margins of each feature are all greater than 0, and the minimum safe distance, maximum allowable intrapulmonary penetration length, and maximum allowable pleural puncture angle of each dangerous organ are all greater than 0.
[0052] When a puncture path is invalid, its quality is set to 0; if the puncture path is valid, the quality of the k-th puncture path is constructed based on the individual quality values, and is represented as:
[0053]
[0054] in, This indicates the quality of the k-th valid puncture path; An index representing the danger organ distance characteristic org of the kth effective puncture path; The index representing the safe distance characteristic of the post-target extension of the kth effective puncture path; An index representing the intrapulmonary travel length characteristic of the k-th effective puncture path; This index represents the pleural entry angle characteristic angle of the k-th effective puncture path. When the quality of any single item is low, the overall quality of the entire needle path will be reduced accordingly; when the quality of all individual items is at a high level, the overall path quality will be improved accordingly.
[0055] Calculate the overall path quality for all current feasible candidate paths, and sort them from largest to smallest based on the overall path quality value:
[0056]
[0057] in, The recommended acupuncture points are prioritized, and the remaining feasible candidate acupuncture points are selected in order of overall path quality.
[0058] In this invention, each puncture path is formed by connecting a candidate puncture point in an puncture sub-region and a candidate target point in a target sub-region. After a round of puncture path generation and quality evaluation is completed, the feasibility results and overall path quality of each puncture path are re-statistically attributed to the puncture and target regions that generated the needle path, and the overall path quality of the region is used to adjust the sampling weight of the next round of regions.
[0059] If a puncture path leads from the puncture entry area The entry point and target area in When the target point is connected as the two endpoints, and the puncture path is effective, it simultaneously participates in the puncture area. and target area Quality statistics. By cross-combining multiple candidate needle paths, the overall performance of each insertion area and target area in producing feasible high-quality needle paths in the current round is obtained.
[0060] Figure 3 The process of updating the number of sampling points in each region in each iteration is given. In the r-th iteration, the number of effective paths in each region in the previous iteration is obtained, and the overall quality of each region is calculated. Then, the weights of each region are updated according to the quality, and the number of sampling points in each region is recalculated. This invention divides regions into two types according to the entry point and the target point, and updates the number of sampling points for each type separately.
[0061] Specifically, in the area of piercing For example, if in the r-th iteration, the piercing region The set of all valid puncture paths with the internal sampling point as the entry point is If this set only counts valid puncture paths, then the regional feedback quality of this region in the current round is defined as follows:
[0062]
[0063] in, This represents the quality of the region at the i-th entry point in the r-th iteration; Represents a set The number of effective puncture paths. In this embodiment, the higher the average quality of the effective puncture paths, the higher the regional feedback quality; when the average quality of the effective puncture paths is low, the regional feedback quality decreases accordingly. When a region has no effective puncture paths, the above average calculation is not performed, the quality of that region is recorded as 0, and the minimum sampling number of that region is retained.
[0064] This embodiment separately calculates the quality of each piercing region and each target region, obtaining the average quality of the piercing region and the average quality of the target region, respectively. That is, the piercing region is compared only with other piercing regions, and the target region is compared only with other target regions. Taking the piercing region as an example, in r iterations, the average quality of the piercing region is expressed as:
[0065]
[0066] Where M represents the number of piercing zones.
[0067] Furthermore, the process of updating the sampling weight of each puncture point region and target point region based on the overall quality includes:
[0068]
[0069] in, This represents the sampling weight of the i-th puncture point region or the i-th target point region in the (r+1)th iteration; This represents the normalized value of the sampling weight of the i-th puncture point region or the i-th target point region in the r-th iteration; e is the base of the natural logarithm. This is the weight update coefficient, used to control the degree of influence of regional feedback quality differences on the sampling weights of the next round.
[0070] when When the overall quality of candidate needle paths generated in this region is higher than the average level of similar regions, the updated region weight increases; when When the two are equal, the updated region weight decreases; when they are equal, the current region weight remains unchanged.
[0071] After updating the weights of all regions of the same type, the region weights are normalized, i.e.:
[0072]
[0073] in, This represents the normalized value of the sampling weight of the i-th puncture point region in the (r+1)th iteration.
[0074] To clarify the relationship between the updated region weights and the number of candidate points sampled in the next round, this embodiment provides a method for determining the number of sampling points in each iteration. Taking the incident point region as an example, the number of sampling points in the i-th puncture point region or the i-th target point region in the (r+1)-th iteration is... Represented as:
[0075]
[0076] in, The present invention first reserves the minimum number of explorations for each effective region, and then allocates the remaining number of samples according to the updated region weight. The larger the region weight, the more candidate points are allocated. The total number of candidate point samples is set for the piercing region and the target region respectively, and is allocated independently within their respective regions.
[0077] Since the actual number of candidate points should be an integer, as an optional implementation method, the number of candidate points can be allocated. First, round down to the nearest integer, then supplement the fractional remainder of each region in descending order to obtain the actual number of sampling points in each region. Until the actual number of samples from all similar regions meets the following requirement:
[0078]
[0079] If no effective puncture path is available for recommendation when the maximum number of iterations is reached, the output will show the result of no effective path obtained within the current parameters and sampling range.
[0080] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.
Claims
1. A lung puncture path planning method based on quality feedback and adaptive sampling, characterized in that, Specifically, the following steps are included: S1. Determine the puncture point region and the target point region, and divide each puncture point region and target point region into multiple puncture point sub-regions and target point sub-regions according to a preset grid. S2. Sample each puncture point sub-region and target point sub-region according to the initially set sampling parameters to obtain the puncture point and target point under each sub-region. S3. Obtain all sampled entry and target points, and establish a straight line between any entry and target point as the puncture path to form a set of puncture paths. S4. If the distance between the puncture path and the risk area is less than the set first risk threshold, the path will be considered invalid. S5. Calculate the quality of the effective puncture path and determine whether the maximum number of iterations has been reached. If it has been reached, recommend the effective puncture paths in descending order of quality. S6. If the maximum number of iterations has not been reached, the sampling weight of each puncture point region and target point region is updated and normalized according to the quality of each puncture point region and target point region, and then the number of sampling points for each puncture point region and target point region is determined. S7. Based on the confirmed number of sampling points, resample the puncture point and target point in the corresponding puncture point area and target point area, and then return to step S3.
2. The lung puncture path planning method based on quality feedback and adaptive sampling according to claim 1, characterized in that, The calculation of the quality of an effective puncture path includes: in, This indicates the quality of the k-th valid puncture path; An index representing the danger organ distance characteristic org of the kth effective puncture path; The index representing the safe distance characteristic of the post-target extension of the kth effective puncture path; An index representing the intrapulmonary travel length characteristic of the k-th effective puncture path; An index representing the pleural entry angle characteristic angle of the kth effective puncture path.
3. The lung puncture path planning method based on quality feedback and adaptive sampling according to claim 2, characterized in that, The characteristic j of the kth effective puncture path is represented by the following index: in, The index represents the j-th feature of the k-th valid puncture path, where j∈{org,post,lung,angle}; The feature value represents the j-th feature of the k-th effective puncture path. When j=org, the feature value is the minimum remaining safety margin between the sampling point and the dangerous organ on the current effective puncture path. When j=post, the feature value is the minimum remaining safety margin between the post-target extension and the dangerous organ. When j=lung, the feature value is the remaining proportion of the distance to the maximum allowable intrapulmonary penetration length. When j=angl, the feature value is the remaining proportion of the distance to the maximum allowable puncture angle. Let j be the quality response parameter of the j-th feature; This is the reference margin for the j-th feature.
4. The lung puncture path planning method based on quality feedback and adaptive sampling according to claim 3, characterized in that, The minimum remaining safety margin between the sampling point and the organ at risk along the current effective puncture path is expressed as: in, This represents the minimum remaining safety margin between the sampling point and the dangerous organ on the k-th effective puncture path; A collection of dangerous organs; This indicates the sampling point on the k-th valid puncture path and the... The minimum distance between dangerous organs Indicates the first Minimum safe distance from dangerous organs.
5. The lung puncture path planning method based on quality feedback and adaptive sampling according to claim 3, characterized in that, The post-target extension refers to the line segment that extends after the puncture needle reaches the target point. The minimum remaining safety margin between the post-target extension and the organ at risk is expressed as: in, This indicates the minimum remaining safety margin between the target extension and the critical organ; A collection of dangerous organs; This indicates that the sampling point on the post-target extension of the k-th effective puncture path is related to the sampling point on the th effective puncture path. The minimum distance between dangerous organs Indicates the first Minimum safe distance from dangerous organs.
6. The lung puncture path planning method based on quality feedback and adaptive sampling according to claim 3, characterized in that, The remaining proportion of the maximum allowable intrapulmonary travel length is expressed as: in, The remaining proportion of the distance to the maximum allowable intrapulmonary travel length; To allow the maximum intrapulmonary travel length; This represents the length of the k-th effective puncture path within the lung.
7. The lung puncture path planning method based on quality feedback and adaptive sampling according to claim 3, characterized in that, The remaining percentage of the distance to the maximum allowable entry angle is expressed as: in, This indicates the remaining percentage of the distance from the maximum permissible insertion angle; The maximum permissible angle for pleural puncture; Let be the pleural entry angle for the kth effective puncture path.
8. The lung puncture path planning method based on quality feedback and adaptive sampling according to claim 1, characterized in that, The calculation process for the overall mass of the puncture point region and the target point region includes: Analyze the effective puncture paths whose starting point belongs to the current puncture point region to obtain the effective puncture path for that puncture point region; analyze the effective puncture paths whose ending point belongs to the current target point region to obtain the effective puncture path for that target point region. For a set of effective puncture paths in an entry point region or target point region, calculate the arithmetic mean of the quality of each path in the set to obtain the overall quality of the entry point region or target point region.
9. The lung puncture path planning method based on quality feedback and adaptive sampling according to claim 1, characterized in that, The process of updating the sampling weight of each puncture point region and the overall quality of the target region includes: in, This represents the sampling weight of the i-th puncture point region or the i-th target point region in the (r+1)th iteration; This represents the normalized value of the sampling weight of the i-th puncture point region or the i-th target point region in the r-th iteration; e is a natural number. Update the coefficients for the weights; This represents the quality of the i-th puncture point region or the i-th target point region in r iterations; This represents the average value of all puncture point regions or all target point regions over r iterations.
10. The lung puncture path planning method based on quality feedback and adaptive sampling according to claim 1, characterized in that, Determining the number of sampling points for each puncture point region or target region includes: in, This represents the number of sampling points in the i-th puncture point region or the i-th target point region in the (r+1)th iteration; This is the minimum number of sampling points in the puncture point region or the target point region. This represents the total number of sampling points in all puncture point regions or all target point regions during the (r+1)th iteration; M is the total number of puncture point regions or the total number of target regions. This represents the normalized value of the sampling weight of the i-th puncture point region or the i-th target point region in the (r+1)th iteration.
