Lung cancer lesion localization and segmentation method based on region growing in chest CT

By using edge detection and trend change models in chest CT images to screen seed points and perform region growing segmentation, the problem of irrelevant regions being extracted in traditional algorithms is solved, and accurate segmentation of small cell lung cancer is achieved.

CN118429370BActive Publication Date: 2024-09-06DEZHOU ZEYU MEDICAL DEVICE TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410889229.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-09-06
Estimated Expiration
2044-07-04

AI Technical Summary

Technical Problem

When the traditional region growing algorithm is used to segment small cell lung cancer lesions in chest CT images, due to the similar grayscale expression of the bronchi and lung wall, irrelevant areas are also segmented and extracted, making it difficult to effectively extract the small cell lung cancer part.

Method used

By acquiring chest CT images, use edge detection algorithms to extract target areas, establish a trend change model based on grayscale data and location data, screen seed points, screen out growth points, and identify regions based on grayscale difference thresholds and trend change characteristics. growth to ensure that invalid parts are not extracted.

Benefits of technology

It effectively extracts the small cell lung cancer part, avoids the segmentation and extraction of irrelevant areas, and improves the segmentation accuracy of lung cancer lesions in chest CT images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118429370B
    Figure CN118429370B
Patent Text Reader

Abstract

The present invention relates to the field of image analysis technology, and specifically to a method for locating and segmenting lung cancer lesions based on chest CT based on regional growth, the method comprising: obtaining a chest CT image, extracting a target area of ​​the chest CT image according to an edge detection algorithm; extracting seed points according to the target area; establishing a trend change model according to the grayscale data and position data of the target area; screening the seed points according to the trend change model to extract the growable points; completing regional growth according to the growable points to obtain the final segmentation result. The present invention adds a step of screening the seed points, and establishes a trend change model in combination with the characteristic analysis of small cell lung cancer to adjust and limit the seed point growth criteria, thereby re-screening the seed points and completing regional growth segmentation, effectively extracting the small cell lung cancer part, and solving the technical problem in the prior art that other irrelevant areas are also extracted by growth segmentation due to similar grayscale performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of image analysis, and in particular to a method for locating and segmenting chest CT lung cancer lesions based on region growing. Background Art

[0002] Lung cancer is a malignant tumor that originates from the bronchial mucosa or glands of the lungs. Lung cancer is mainly divided into small cell lung cancer and non-small cell lung cancer. Small cell lung cancer can usually be detected in chest computed tomography (CT) examinations. Segmentation and extraction of small cell lung cancer in CT images through computer vision can effectively help doctors determine whether there are abnormal lesions in the lung images.

[0003] When segmenting and extracting small cell lung cancer in chest CT images, the region growing algorithm is often used for segmentation because it appears as a white highlight in the image. However, when the traditional region growing algorithm performs growth segmentation on small cell lung cancer lesions, due to the presence of bronchi, it may cause more bronchi to be segmented and extracted. At the same time, because the grayscale performance is similar, the lung wall area is also extracted by growth segmentation. Therefore, there is a problem that the traditional region growing algorithm cannot effectively extract the small cell lung cancer part. Summary of the invention

[0004] In order to solve the above technical problems, the purpose of the present invention is to provide a method for locating and segmenting chest CT lung cancer lesions based on region growing. The technical solution adopted is as follows:

[0005] A method for locating and segmenting chest CT lung cancer lesions based on region growing, the method comprising:

[0006] Acquire a chest CT image, and extract a target area of ​​the chest CT image according to an edge detection algorithm;

[0007] Extracting seed points according to the target area;

[0008] Establishing a trend change model based on the grayscale data and position data of the target area;

[0009] Screening the seed points and extracting growth points according to the trend change model;

[0010] The final segmentation result is obtained by completing region growing according to the growable points.

[0011] Furthermore, after obtaining the chest CT image, the method further includes:

[0012] The chest CT image is gray-scaled using a gray-scale algorithm.

[0013] Furthermore, extracting the target area of ​​the chest CT image according to the edge detection algorithm further includes:

[0014] After performing threshold segmentation on the chest CT image using the Otsu threshold, extracting a portion with a larger grayscale value;

[0015] Apply edge detection algorithm to the part with larger gray value to screen the part and extract the target area.

[0016] Furthermore, the seed point is the center point of each target area.

[0017] Furthermore, establishing the trend change model based on the grayscale data and position data of the target area further includes:

[0018] For each seed point in the target area, the strike angle feature of the seed point is calculated based on the grayscale data and position data of the seed point;

[0019] Determining the trend change characteristics according to the trend angle characteristic quantity;

[0020] A trend change model is established based on the trend change characteristics of each seed point.

[0021] Furthermore, for each seed point of the target area, calculating the trend angle feature value of the seed point according to the grayscale data and position data of the seed point further includes:

[0022] Preset a grayscale difference threshold based on the region growing algorithm, and select seed points whose grayscale data meet the grayscale difference threshold as points to be grown;

[0023] For each point to be grown, extract the pixels within its neighborhood, and determine the number of pixels within its neighborhood that meet the grayscale difference threshold;

[0024] The direction difference feature of the point to be grown is determined according to the number of pixel points within the neighborhood that meet the grayscale difference threshold.

[0025] Furthermore, for each seed point of the target area, calculating the trend angle feature value of the seed point according to the grayscale data and position data of the seed point further includes:

[0026] Calculate the growth characteristic value of the point to be grown according to the difference characteristics of the orientation of the point to be grown;

[0027] The growth characteristic value of the point to be grown and the number of pixel points in its neighborhood that meet the grayscale difference threshold are used to calculate the strike angle characteristic value of the point to be grown.

[0028] Furthermore, determining the trend change feature according to the trend angle feature; and establishing the trend change model according to the trend change feature of each seed point further includes:

[0029] Calculating the correlation between the growth area of ​​each to-be-grown point and the adjacent points according to the growth characteristic value of the to-be-grown point and the growth characteristic value of the adjacent points;

[0030] The growth conformity of the point to be grown is calculated based on the correlation of the growth area and the strike angle characteristic quantity of each point to be grown;

[0031] Determine the trend change characteristics of each growth point according to its growth compliance degree;

[0032] A model is established according to the trend change characteristics of each growth point to obtain a trend change model.

[0033] Furthermore, the step of screening the seed points to extract the growth points according to the trend change model further includes:

[0034] Input all seed points into the trend change model, and screen all seed points;

[0035] The seed points whose trend change characteristics are greater than a preset threshold are extracted as growth points.

[0036] Furthermore, the grayscale difference threshold and the preset threshold are both empirical values.

[0037] The present invention has the following beneficial effects: the present invention obtains a chest CT image, extracts a target area of ​​the chest CT image according to an edge detection algorithm; extracts seed points according to the target area; establishes a trend change model according to the grayscale data and position data of the target area; screens the seed points according to the trend change model to extract the growth points; and completes regional growth according to the growth points to obtain the final segmentation result. The present invention uses the position difference and grayscale difference between different regions to establish a corresponding trend change model to re-screen the growth points that meet the grayscale difference threshold range, thereby ensuring that invalid parts will not be extracted into the segmentation result; by adding a step of screening the seed points, and combining the characteristic analysis of small cell lung cancer to establish a trend change model to adjust and limit the seed point growth criteria, the seed points are re-screened and the regional growth segmentation is completed, and the segmentation result of the lung cancer lesion site of the chest CT image is obtained, and the small cell lung cancer part is effectively extracted, which solves the technical problem in the prior art that other irrelevant areas are also extracted by growth segmentation due to similar grayscale performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0039] Figure 1 A flowchart of a method for locating and segmenting chest CT lung cancer lesions based on region growing is provided in one embodiment of the present invention. DETAILED DESCRIPTION

[0040] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation method, structure, features and effects of a chest CT lung cancer lesion localization and segmentation method based on regional growth proposed by the present invention in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0041] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0042] The present invention utilizes the position differences and grayscale differences between different regions in CT images to establish a corresponding trend change model to re-screen the growth points that meet the grayscale difference threshold range, thereby ensuring that invalid parts will not be extracted into the segmentation results. By increasing the screening of seed points and combining the characteristic analysis of small cell lung cancer to establish a trend change model to adjust and restrict the growth criterion, the seed points are re-screened and the regional growth is completed, thereby obtaining the segmentation result of the lung cancer lesion site in the chest CT image.

[0043] The following specifically describes a method for locating and segmenting chest CT lung cancer lesions based on region growing provided by the present invention in conjunction with the accompanying drawings.

[0044] See also Figure 1 , which shows a flow chart of a method for locating and segmenting lung cancer lesions in chest CT based on region growing provided by an embodiment of the present invention, the method comprising:

[0045] Step S110: Acquire a chest CT image, and extract a target area of ​​the chest CT image according to an edge detection algorithm.

[0046] In an optional implementation, after acquiring the chest CT image, the method further includes: performing grayscale processing on the chest CT image using a grayscale algorithm.

[0047] In the chest CT grayscale processed images, the small cell lung cancer part, the hilum of the lung, and the lung wall all appear as areas with larger grayscale values, so the chest CT grayscale image can be threshold segmented using the Otsu threshold to obtain the area with larger grayscale values.

[0048] In an optional implementation, the step S110 further includes: extracting a portion with a larger gray value after performing threshold segmentation on the chest CT image using the Otsu threshold; and applying an edge detection algorithm to the portion with a larger gray value to screen the portion to extract a target area. The edge detection algorithm may be, for example, a canny edge detection algorithm, which is not limited thereto.

[0049] Under the region growing algorithm of the prior art, it is difficult to segment and extract the small cell lung cancer part separately because the grayscale values ​​of various parts in the target area are relatively large. It is even difficult to extract it into one region together with the mediastinum or lung wall due to the connection with the bronchus. Therefore, in this embodiment, the parts with larger grayscale values ​​in the image are first obtained by threshold segmentation, and the target area is extracted in combination with the edge detection results, and the seed points are selected by analysis.

[0050] Step S120: extracting seed points according to the target area.

[0051] In an optional implementation, the seed point is a center point of each target area.

[0052] In this step, the foreground part after threshold segmentation is screened through the edge detection algorithm, and the lung wall part with the same gray value as the lesion is removed. Only the seed point is selected for the target area in the lung cavity, avoiding the extraction of irrelevant parts into the segmentation result in the subsequent region growing.

[0053] Specifically, since the chest CT image is a multi-layer image, and the position of the lung wall in each layer of the image will not change, the left and right lung cavities in the chest CT image are blocked by the mediastinum. Through edge detection and threshold segmentation, the lung cavity part is the background part. Traverse each layer of the image and perform threshold segmentation and edge detection on each layer of the image. Compare and analyze the lung cavity background part of each layer of the image with the background part image of the analysis layer. When the left and right lung cavities of any layer of the image are connected through the upper and lower connected areas to form a connected domain, that is, the background part image is connected as a whole and there are other connected domains inside the range, the outer contour edge of the background part is the inner edge of the lung wall. These edges are matched to the analysis layer image to be analyzed and calculated in this embodiment, and the gray value of the lung wall area outside the edge is set to 0. At this time, the binary image of the analysis layer only has the target area (i.e., the lesion site) within the lung cavity range.

[0054] It should be noted that multiple target areas can be circled at the lesion site, and each independent area of ​​the lesion site can be selected as the target area, the center point of the area is used as the seed point, and multiple seed points are used for regional growth.

[0055] The seed points of each target area are obtained through the above steps. Since the mediastinum, bronchus and hilum are invalid areas for the segmentation of small cell lung cancer lesions, these areas will also be segmented if the region growing algorithm is only used on the target area, and even the lesion site will be grown together with these areas, so that the positioning segmentation result of the lesion cannot be obtained.

[0056] Step S130: establishing a trend change model according to the grayscale data and position data of the target area.

[0057] In an optional implementation, step S130 further includes the following steps 1 and 2:

[0058] Step 1: For each seed point in the target area, calculate the strike angle feature of the seed point based on the grayscale data and position data of the seed point.

[0059] In an optional embodiment, step 1 further includes: presetting a grayscale difference threshold based on a regional growing algorithm, selecting a seed point whose grayscale data meets the grayscale difference threshold as a point to be grown; for each point to be grown, extracting pixels within its neighborhood, and determining the number of pixels within its neighborhood that meet the grayscale difference threshold; determining the direction difference feature of the point to be grown based on the number of pixels within its neighborhood that meet the grayscale difference threshold. .

[0060] In an optional embodiment, step 1 further includes: calculating the growth characteristic value of the point to be grown based on the direction difference characteristics of the point to be grown; calculating the direction angle characteristic value of the point to be grown based on the growth characteristic value of the point to be grown and the number of pixel points in its neighborhood that meet the grayscale difference threshold.

[0061] In this field, the mediastinum part is connected to the edge of the lung wall obtained in step S120 in the analysis layer image, the hilum part is partially connected to the mediastinum, and the growing bronchus is a thinner curve; different from these parts, the lesion part and the lung nodule part that helps doctors analyze are respectively shown as strip masses and bifurcated clustered nodes, and are connected to the mediastinum or lung wall by the bronchus. Therefore, according to different grayscale expression differences, the grayscale change characteristics can be obtained, and the seed points that meet the grayscale difference threshold interval of the regional growing algorithm can be re-screened. After the screened seed points complete the regional growth, the segmentation result of the small cell lung cancer lesion part can be obtained.

[0062] Specifically, based on the traditional region growing algorithm, assuming that the grayscale difference threshold for growth point judgment is set to 5, any seed point that meets the grayscale difference threshold interval is taken as the growth point to be grown, recorded as Points, extract the pixels within its 24 neighborhoods, that is, the 8 neighborhoods of the pixel points, first calculate the difference characteristics of the direction within the 8 neighborhoods of the point to be grown , the formula is as follows (1):

[0063] ; (1)

[0064] in, That means the The number of points within the neighborhood of point 8 that meet the preset grayscale difference threshold; For the The trend difference characteristics of each point.

[0065] At this time, the horizontal right direction is taken as the positive direction, the angle is the angle between the straight line and the positive direction, and the angle of 5 pixels on the same straight line within the 24-neighborhood range is extracted, that is, At four angles, the number of pixels on the four straight lines that meet the grayscale difference threshold range is , compare the sizes of the four values ​​and take the smallest value as , and the corresponding angle is recorded as , the maximum value is recorded as , the corresponding angle is recorded as ; The growth characteristic value calculation formula is as follows (2): ; (2)

[0066] in, Indicates the growth characteristic value of the k-th point, thereby reflecting the growth of the k-th point; For the The number of points that meet the requirements within the 8-neighborhood range of a point; It is the number of satisfying points corresponding to the straight line with the least satisfying points among the horizontal, vertical and two diagonal lines in the 24-neighborhood.

[0067] Further Analyze the 8 neighborhoods of other pixels on the corresponding straight line, that is, Direction of the straight line and Analyze the neighboring pixels on the corresponding straight line. points, there are a total of The point that meets the preset grayscale difference threshold and its neighboring point The points that meet the grayscale difference threshold range are connected, and the angle corresponding to the connection line is recorded as , then for the first The direction angle characteristic value of each point The calculation formula is as follows (3): ; (3)

[0068] In the formula, express The corresponding straight line The number of points in the neighborhood of a point that meet the grayscale difference threshold interval; For the Satisfaction points and The angle of the line connecting the points; for The angle of the corresponding straight line, represents the sine function. Since within the range of 90 degrees, and The greater the angle difference, the greater the corresponding change in direction. Therefore, a specific analysis is performed through the sine function, that is, The larger the value of , the larger the numerical value of the strike angle feature.

[0069] Step 2: Determine the trend change characteristics according to the trend angle characteristic quantity; establish a trend change model according to the trend change characteristics of each seed point.

[0070] In an optional embodiment, step 2 further includes: calculating the correlation between the growth area of ​​each point to be grown and its adjacent points based on the growth characteristic value of the point to be grown and the growth characteristic value of its adjacent points; calculating the growth compliance of the point to be grown based on the correlation of the growth area and the strike angle characteristic of each point to be grown; determining the strike change characteristics of each point to be grown based on the growth compliance degree of each point to be grown; and establishing a model based on the strike change characteristics of each point to be grown to obtain a strike change model.

[0071] For Growth points with trend change characteristics The calculation formula is as follows (4):

[0072] ; (4)

[0073] In the formula, Indicates the growth degree of the k-th point (i.e., the trend change characteristics); The first The direction angle characteristic of each point; It is represented by the first Growth characteristic value of each point; It is represented by the first The growth characteristic value of the points adjacent to each other in the angular direction of each point. Reflecting the correlation of growth areas, through Reflects the first The higher the degree of conformity, the closer the corresponding point is to the growth trend of the lesion.

[0074] Step S140: Screening the seed points to extract growth points according to the trend change model.

[0075] In an optional implementation, step S140 further includes: inputting all seed points into the trend change model, screening all seed points; and extracting the seed points whose trend change characteristics are greater than a preset threshold as growth points.

[0076] In this step, the points that meet the requirements of the 8-neighborhood range are judged. For those with fewer points, it is judged whether there is another group of points with a fixed trend angle in the 24-neighborhood. In order to remove the small bronchial parts from the growth area, the width of the trend angle of this group is judged. A trend change model is established based on the trend change characteristics of each point to be grown. All seed points are input into the trend change model. The preset threshold is set to 0.9 (which can be adjusted according to actual conditions). When When , it indicates that the growth point can be regionally grown as a growth point. When the regional growth touches the edge of the lung cavity obtained in the previous step, it indicates that the region is connected to the lung cavity, and the growth is stopped and the region is removed. That is, because the bronchial part has been removed in the previous step of growth point screening, the lung nodules and small cell lung cancer will not grow a connected area with the mediastinum or lung wall.

[0077] Step S150: completing region growing according to the growable points to obtain a final segmentation result.

[0078] Traverse all images, obtain the growth points according to the grayscale difference threshold and the trend change model, complete the regional growth, and remove the growth area. What is obtained at this time is the segmentation result of the lung cancer lesion part of the chest CT.

[0079] The method of this embodiment is adopted to obtain a chest CT image, extract the target area of ​​the chest CT image according to the edge detection algorithm; extract seed points according to the target area; establish a trend change model according to the grayscale data and position data of the target area; screen the seed points according to the trend change model to extract the growth points; complete the regional growth according to the growth points to obtain the final segmentation result. This method uses the position difference and grayscale difference between different regions to establish a corresponding trend change model to re-screen the growth points that meet the grayscale difference threshold range, thereby ensuring that invalid parts will not be extracted into the segmentation result; by adding the step of screening the seed points, and combining the characteristic analysis of small cell lung cancer to establish a trend change model to adjust and limit the seed point growth criteria, so as to re-screen the seed points and complete the regional growth segmentation, and obtain the segmentation result of the lung cancer lesion site of the chest CT image, effectively extract the small cell lung cancer part, and solve the technical problem in the prior art that other irrelevant areas are also extracted by growth segmentation due to similar grayscale performance.

[0080] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0081] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

Claims

1. A method for localizing and segmenting lung cancer lesions in chest CT based on region growing. It is characterized in that The method comprises: Acquire a chest CT image, and extract a target area of ​​the chest CT image according to an edge detection algorithm; Extracting seed points according to the target area; Establishing a trend change model based on the grayscale data and position data of the target area; Screening the seed points and extracting growth points according to the trend change model; Completing region growth according to the growable points to obtain a final segmentation result; After obtaining the chest CT image, the method further includes: Performing grayscale processing on the chest CT image using a grayscale algorithm; The step of extracting the target area of ​​the chest CT image according to the edge detection algorithm further comprises: After performing threshold segmentation on the chest CT image using the Otsu threshold, extracting a portion with a larger grayscale value; Applying an edge detection algorithm to the portion with a larger gray value to screen the portion and extract the target area; Wherein, the seed point is the center point of each target area; The establishing of the trend change model based on the grayscale data and position data of the target area further comprises: For each seed point in the target area, the strike angle feature of the seed point is calculated based on the grayscale data and position data of the seed point; Determining the trend change characteristics according to the trend angle characteristic quantity; Establish a trend change model based on the trend change characteristics of each seed point; The step of calculating the trend angle feature of each seed point in the target area according to the grayscale data and position data of the seed point further includes: Preset a grayscale difference threshold based on the region growing algorithm, and select seed points whose grayscale data meet the grayscale difference threshold as points to be grown; For each point to be grown, extract the pixels within its neighborhood, and determine the number of pixels within its neighborhood that meet the grayscale difference threshold; Determining the direction difference feature of the point to be grown according to the number of pixel points within the neighborhood that meet the grayscale difference threshold; The step of calculating the strike angle feature of each seed point in the target area according to the grayscale data and position data of the seed point further includes: Calculate the growth characteristic value of the point to be grown according to the difference characteristics of the orientation of the point to be grown; The growth characteristic value of the point to be grown and the number of pixel points in its neighborhood that meet the grayscale difference threshold are calculated to obtain the strike angle characteristic value of the point to be grown; Determining the trend change feature according to the trend angle feature; and establishing the trend change model according to the trend change feature of each seed point further comprises: Calculating the correlation between the growth area of ​​each to-be-grown point and the adjacent points according to the growth characteristic value of the to-be-grown point and the growth characteristic value of the adjacent points; The growth conformity of the point to be grown is calculated based on the correlation of the growth area and the strike angle characteristic quantity of each point to be grown; Determine the trend change characteristics of each growth point according to its growth compliance degree; A trend change model is obtained by establishing a model according to the trend change characteristics of each growth point; The step of screening the seed points and extracting the growth points according to the trend change model further includes: Input all seed points into the trend change model, and screen all seed points; The seed points whose trend change characteristics are greater than a preset threshold are extracted as growth points.

2. According to the method for locating and segmenting chest CT lung cancer lesions based on region growing according to claim 1, It is characterized in that The grayscale difference threshold and the preset threshold are both empirical values.