Image analysis method and system based on colorectal polyp CT image dataset
The inner wall length of polyps in colorectal CT images is obtained through image stripping method and optimized to obtain the standard length, which solves the problem of low image analysis efficiency in the existing technology and realizes a method of rapid identification and diagnosis of colorectal polyps.
Patent Information
- Application Number
- CN202410576463.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-10
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-05-10
AI Technical Summary
Existing image analysis methods based on colorectal polyp CT image data sets lack methods to directly analyze and differentiate colorectal polyp CT images, resulting in model optimization and algorithm improvement requiring a lot of time and reducing image analysis efficiency.
The inner wall length of polyps in colorectal CT images is obtained through image stripping method, and the standard polyp length is obtained through optimization. The standard polyp length is used to identify the images that need to be analyzed, and the maximum polyp length of colorectal polyps is obtained to obtain the analysis results.
It improves the efficiency of image analysis and can quickly obtain standards for judging colorectal polyps, helping doctors diagnose and treat them in a timely manner.
Smart Images

Figure CN118154602B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of medical assistance technology, and in particular to an image analysis method and system based on a colorectal polyp CT image data set. Background Art
[0002] Colorectal polyps are tumors that protrude from the surface of the colorectum. They can be adenomas or hyperplasia of the intestinal mucosa. Before the pathological nature is determined, they are collectively referred to as polyps. Polyps can be single or multiple, hereditary or non-hereditary. CT scans can generally show the size and location of colon polyps, but usually cannot determine the specific nature of colon polyps.
[0003] Existing image analysis methods based on colorectal polyp CT image datasets usually determine the location of polyps in images by establishing models and target detection algorithms. For example, in a Chinese patent application with publication number CN114092414A, an image analysis method based on colorectal polyp CT image data is disclosed. This solution proposes a polyp detection algorithm based on spatial continuity to assist radiologists in improving detection accuracy and accurately locating the location of polyps in images. Other image analysis methods based on colorectal polyp CT image datasets are usually based on deep learning to improve the accuracy of polyp detection. In the improvement of image analysis methods of image datasets, there is a lack of methods for directly analyzing CT images of colorectal polyps, distinguishing colorectal polyps from normal colorectum through image processing, and then accurately marking colorectal polyps. When detecting colorectal polyps based on model building, target detection algorithm and deep learning, it takes a lot of time to optimize the model and algorithm when obtaining the judgment criteria for colorectal polyps, and it still needs to be continuously improved when it is actually put into operation and faces different usage scenarios, which reduces the actual image analysis efficiency. In view of this, it is necessary to improve the existing image analysis method based on colorectal polyp CT image dataset. Summary of the invention
[0004] The present invention aims to solve one of the technical problems in the prior art at least to a certain extent. By proposing an image analysis method and system for a colorectal polyp CT image data set, the present invention is used to solve the problem that in the improvement of the image analysis method based on the colorectal polyp CT image data set in the prior art, there is a lack of a method for directly analyzing the CT images of colorectal polyps, distinguishing colorectal polyps from normal colorectum through image processing, and then accurately marking the colorectal polyps. When detecting colorectal polyps based on model building, target detection algorithm and deep learning, it takes a lot of time to optimize the model and algorithm when obtaining the judgment criteria for judging colorectal polyps, and it still needs to be continuously improved when it is actually put into operation and faces different usage scenarios, resulting in a reduction in the actual image analysis efficiency.
[0005] To achieve the above objectives, in a first aspect, the present invention provides an image analysis method based on a colorectal polyp CT image dataset, comprising:
[0006] Analyze the colorectal CT images containing polyps, and obtain the inner wall length of the polyps in the colorectal CT images containing polyps by image stripping method;
[0007] Obtain multiple CT images of colorectal polyps, optimize the length of the inner wall of the polyps, and obtain the standard polyp length;
[0008] Using the standard polyp length to identify the colorectal polyp CT image to be analyzed, and obtaining the maximum polyp length of the polyp in the colorectal polyp CT image based on the identification result;
[0009] The analysis results of colorectal polyp CT images were obtained based on the maximum polyp length.
[0010] Furthermore, the colorectal CT images containing polyps are analyzed, and the inner wall length of the polyps in the colorectal CT images containing polyps is obtained by the image stripping method, including:
[0011] Obtain multiple normal colorectal CT images and one colorectal CT image containing a polyp;
[0012] A plurality of normal colorectal CT images are sequentially recorded as standard intestinal image 1 to standard intestinal image N; a colorectal CT image containing polyps is recorded as a reference polyp image;
[0013] The standard intestinal images and reference polyp images were analyzed using the image stripping method to obtain the inner wall length of the polyp in the reference polyp image.
[0014] Further, the image stripping method comprises:
[0015] For any standard intestinal image N1 among the standard intestinal images 1 to N, grayscale processing is performed on the standard intestinal image N1, and the grayscale processed standard intestinal image N1 is recorded as grayscale intestinal image N1;
[0016] The pixel points whose grayscale values in the grayscale intestinal image N1 are less than the grayscale value of the black mark are recorded as black pixel points, the grayscale values of all black pixel points are obtained, and the mode of the grayscale values of all black pixel points is obtained and recorded as the black reference value; the mode of the grayscale values of all pixel points in the grayscale intestinal image N1 is obtained and recorded as the meat-colored grayscale value, and the pixel points whose grayscale values are the meat-colored grayscale values are recorded as the meat-colored pixel points;
[0017] For any pixel point A in the grayscale intestinal image N1, obtain the pixels in the eight neighborhoods of pixel point A and record them as pixel points A~1 to pixel point A~8 in sequence, and record the pixels whose grayscale values are equal to the black reference value among pixel points A~1 to pixel point A~8 as external pixels; when any pixel point among pixel points A~1 to pixel point A~8 is recorded as an external pixel point and pixel point A is a flesh-colored pixel point, pixel point A is recorded as a critical pixel point;
[0018] For any critical pixel point A in the grayscale intestinal image N1, when any pixel point B in the eight neighborhoods of the critical pixel point is a critical pixel point, the critical pixel point A is connected to the pixel point B, and the connecting line is recorded as the critical line;
[0019] For any critical line in the grayscale intestinal image N1, the polyline where the critical line is located is recorded as a boundary polyline, and all boundary polylines are recorded as boundary polyline 1 to boundary polyline G in sequence.
[0020] Furthermore, the image stripping method also includes:
[0021] For any boundary polyline G1 from boundary polyline 1 to boundary polyline G, all vertices in boundary polyline G1 are recorded as vertex G1~1 to vertex G1~K in sequence; boundary polyline G1 is fitted into an arc curve and recorded as boundary curve G1;
[0022] For any vertex G1~K1 in the boundary curve G1, a tangent line of the boundary curve G1 is drawn at the vertex G1~K1, recorded as the tangent line G1~K1, and a perpendicular line to the tangent line G1~K1 is drawn at the vertex G1~K1, recorded as the tangent perpendicular line G1~K1; multiple independent areas in the tangent perpendicular line G1~K1 that coincide with the flesh-colored pixel points are sequentially recorded as flesh-colored line segments K1~1 to flesh-colored line segments K1~L, wherein the flesh-colored line segment may coincide with multiple continuous flesh-colored pixel points;
[0023] The flesh-colored line segment from the flesh-colored line segment K1~1 to the flesh-colored line segment K1~L containing the vertex G1~K1 is recorded as the inner wall line segment, and the length of the inner wall line segment is obtained, which is recorded as the inner wall reference length; the average value of the inner wall reference lengths corresponding to all vertices in the boundary curve G1 is obtained, which is recorded as the curve inner wall length;
[0024] The average value of the inner wall lengths of all boundary curves of all standard intestinal images was obtained and recorded as the standard inner wall length.
[0025] Furthermore, the image stripping method also includes:
[0026] The area where the polyp is located in the reference polyp image is obtained, recorded as the polyp area, the flesh-colored pixels and black pixels corresponding to the reference polyp image are obtained, and the inner wall length of the boundary curve in the polyp area is obtained based on the flesh-colored pixels and black pixels of the polyp reference image. When the inner wall length of the curve is greater than the standard inner wall length, the inner wall length of the curve is recorded as the inner wall length of the polyp.
[0027] Furthermore, multiple colorectal polyp CT images were obtained, and the length of the inner wall of the polyp was optimized to obtain the standard polyp length including:
[0028] Acquire multiple colorectal polyp CT images and record them as optimized polyp image 1 to optimized polyp image P in sequence;
[0029] The length of the inner wall of the polyp is optimized in sequence using optimized polyp images 1 to optimized polyp images P, and the optimized inner wall length of the polyp is recorded as the standard polyp length.
[0030] Further, the optimized polyp images 1 to the optimized polyp images P are used to optimize the inner wall length of the polyp in sequence, and the optimized inner wall length of the polyp is recorded as the standard polyp length, including:
[0031] The length of the inner wall of the polyp in the optimized polyp image 1 is obtained based on the method for obtaining the inner wall length of the polyp in the image stripping method, and is recorded as the optimized polyp length;
[0032] The average of the optimized polyp length and the polyp inner wall length is recorded as the undetermined polyp length 1;
[0033] The value of the polyp inner wall length is replaced by the value of the undetermined polyp length 1, and the optimized polyp length of the optimized polyp image 2 and the undetermined polyp length 2 are continuously obtained, and the undetermined polyp length P is obtained by analogy, and the undetermined polyp length P is recorded as the standard polyp length.
[0034] Furthermore, the standard polyp length is used to perform polyp recognition on the colorectal polyp CT image to be analyzed, and the maximum polyp length of the polyp in the colorectal polyp CT image is obtained based on the recognition result, including:
[0035] Acquire a CT image of a colorectal polyp that needs to be analyzed, which is recorded as an analyzed polyp image;
[0036] All inner wall reference lengths of all boundary curves in the analyzed polyp images were obtained using the image stripping method;
[0037] When any inner wall reference length is greater than or equal to the standard polyp length, the inner wall reference length is recorded as the analysis polyp length, and the boundary curve where the inner wall reference length is located is recorded as the undetermined polyp curve;
[0038] The maximum value of all analyzed polyp lengths in the analyzed polyp images is obtained and recorded as the maximum polyp length.
[0039] Furthermore, the analysis results of colorectal polyp CT images based on the maximum polyp length include:
[0040] The undetermined polyp curve with the maximum polyp length is recorded as a severe polyp curve, and the undetermined polyp curves other than the severe polyp curve are recorded as standard polyp curves;
[0041] The positions of the severe polyp curve and the standard polyp curve are obtained and marked in the analysis polyp image, and the maximum polyp length and the analysis polyp length in the severe polyp curve and the standard polyp curve are marked.
[0042] In a second aspect, the present invention also provides an image analysis system based on a colorectal polyp CT image data set, including an image stripping module, a standard length acquisition module, a maximum extraction module, and an image analysis module;
[0043] The image stripping module is used to analyze the colorectal CT image containing polyps, and obtain the inner wall length of the polyp in the colorectal CT image containing polyps by an image stripping method;
[0044] The standard length acquisition module is used to acquire multiple colorectal polyp CT images, optimize the inner wall length of the polyp, and obtain the standard polyp length;
[0045] The maximum extraction module is used to identify polyps in the colorectal polyp CT image to be analyzed using the standard polyp length, and obtain the maximum polyp length of the polyps in the colorectal polyp CT image based on the identification result;
[0046] The image analysis module is used to obtain the analysis results of colorectal polyp CT images based on the maximum polyp length.
[0047] Beneficial effects of the present invention: The present invention first analyzes a colorectal CT image containing polyps, obtains the inner wall length of the polyps in the colorectal CT image containing polyps by an image stripping method, then obtains multiple colorectal polyp CT images, optimizes the inner wall length of the polyps, and obtains a standard polyp length. The advantage of this is that by using the image stripping method to obtain the inner wall length of the polyps in the colorectal CT image, and obtaining the standard polyp length by optimization, the judgment standard for judging colorectal polyps, that is, the standard polyp length, can be quickly obtained, and in actual use, the standard polyp length can be used to judge the polyps in the colorectal CT images obtained under different environments, thereby improving the analysis efficiency of the actual image;
[0048] The present invention also uses the standard polyp length to identify polyps in the colorectal polyp CT image that needs to be analyzed, obtains the maximum polyp length of the polyps in the colorectal polyp CT image based on the identification result, and finally obtains the analysis result of the colorectal polyp CT image based on the maximum polyp length. The advantage of this is that by identifying polyps in the colorectal polyp CT image and obtaining the maximum polyp length, the colorectal polyps in the patient's body can be judged based on the maximum polyp length when the analysis result is obtained. When the maximum polyp length is large, it helps doctors to pay more attention to the patient's colorectal polyps, so as to make timely diagnosis and treatment.
[0049] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 is a functional block diagram of the system of the present invention;
[0051] Figure 2 is a flow chart of the steps of the method of the present invention;
[0052] Figure 3 A schematic diagram of obtaining critical pixel points of the present invention;
[0053] Figure 4 It is a schematic diagram of obtaining the inner wall line segment of the present invention. DETAILED DESCRIPTION
[0054] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0055] Example 1, please refer to Figure 1 As shown, in the first aspect, the present application provides an image analysis system based on a colorectal polyp CT image data set, including an image stripping module, a standard length acquisition module, a maximum extraction module and an image analysis module;
[0056] The image stripping module is used to analyze the colorectal CT image containing polyps, and obtain the inner wall length of the polyp in the colorectal CT image containing polyps by an image stripping method;
[0057] The image stripping module is equipped with a polyp length acquisition strategy, which includes:
[0058] Obtain multiple normal colorectal CT images and one colorectal CT image containing a polyp;
[0059] In the specific implementation process, a plurality of normal colorectal CT images are obtained in order to obtain the standard inner wall length corresponding to the colorectal in the CT images under normal conditions, so as to obtain the judgment standard for the thickness of the normal colorectal. A colorectal CT image containing a polyp is obtained in order to obtain the thickness of the polyp in the colorectal in general conditions, that is, the standard polyp length.
[0060] A plurality of normal colorectal CT images are sequentially recorded as standard intestinal image 1 to standard intestinal image N; a colorectal CT image containing polyps is recorded as a reference polyp image;
[0061] The standard intestinal images and reference polyp images were analyzed using the image stripping method to obtain the inner wall length of the polyp in the reference polyp image.
[0062] The image stripping method includes: for any one standard intestinal image N1 among the standard intestinal images 1 to N, graying the standard intestinal image N1, and recording the grayed standard intestinal image N1 as grayscale intestinal image N1;
[0063] The pixel points whose grayscale values in the grayscale intestinal image N1 are less than the grayscale value of the black mark are recorded as black pixel points, the grayscale values of all black pixel points are obtained, and the mode of the grayscale values of all black pixel points is obtained and recorded as the black reference value; the mode of the grayscale values of all pixel points in the grayscale intestinal image N1 is obtained and recorded as the meat-colored grayscale value, and the pixel points whose grayscale values are the meat-colored grayscale values are recorded as the meat-colored pixel points;
[0064] In the specific implementation process, in this embodiment, the black gray value is set to 20. The purpose of setting the black gray value and obtaining the black pixel point is to obtain the gray value of the black area in the CT image. In actual situations, when determining the gray value of the black area in the CT image, this step can be omitted and the gray value of the black area in the CT image can be recorded as the black reference value.
[0065] For any pixel point A in the grayscale intestinal image N1, obtain the pixels in the eight neighborhoods of pixel point A and record them as pixel points A~1 to pixel point A~8 in sequence, and record the pixels whose grayscale values are equal to the black reference value among pixel points A~1 to pixel point A~8 as external pixels; when any pixel point among pixel points A~1 to pixel point A~8 is recorded as an external pixel point and pixel point A is a flesh-colored pixel point, pixel point A is recorded as a critical pixel point;
[0066] See also Figure 3 As shown, DD5 is any pixel in the grayscale intestinal image, DD1, DD2, DD3, DD4, DD6, DD7, DD8 and DD9 are pixels in the eight neighborhoods of DD5, and if the grayscale value of DD1 is equal to the black reference value and DD5 is a flesh-colored pixel, DD5 is recorded as a critical pixel;
[0067] In a specific implementation process, for example, in actual analysis, the black reference value is 15, and the grayscale values of pixel points A~1 to pixel point A~8 are 15, 15, 60, 65, 55, 15, 55, and 15, respectively, then pixel point A~1, pixel point A~2, pixel point A~6, and pixel point A~8 are recorded as external pixel points;
[0068] For any critical pixel point A in the grayscale intestinal image N1, when any pixel point B in the eight neighborhoods of the critical pixel point is a critical pixel point, the critical pixel point A is connected to the pixel point B, and the connecting line is recorded as the critical line;
[0069] For any critical line in the grayscale intestinal image N1, the polyline where the critical line is located is recorded as a boundary polyline, and all boundary polylines are recorded as boundary polyline 1 to boundary polyline G in sequence.
[0070] The image stripping method further includes: for any boundary polyline G1 from the boundary polyline 1 to the boundary polyline G, recording all vertices in the boundary polyline G1 as vertex G1~1 to vertex G1~K in sequence; fitting the boundary polyline G1 into an arc curve and recording it as boundary curve G1;
[0071] In the specific implementation process, the process of fitting the boundary polyline into a circular arc curve can be processed by CAD. The boundary curve is obtained in order to obtain the tangent line of the vertex on the boundary curve in the subsequent analysis process, so as to obtain the reference length of the inner wall;
[0072] For any vertex G1~K1 in the boundary curve G1, a tangent line of the boundary curve G1 is made at the vertex G1~K1, recorded as the tangent line G1~K1, and a perpendicular line to the tangent line G1~K1 is made at the vertex G1~K1, recorded as the tangent perpendicular line G1~K1; multiple independent areas in the tangent perpendicular line G1~K1 that coincide with the flesh-colored pixel points are sequentially recorded as flesh-colored line segments K1~1 to flesh-colored line segments K1~L, where the flesh-colored line segment can coincide with multiple continuous flesh-colored pixel points.
[0073] See also Figure 4 As shown, the curve corresponding to SS0 is the boundary curve, the triangle corresponding to SS1 is a vertex on the boundary curve SS0, the straight line corresponding to SS2 is the tangent line made at the vertex SS1, the straight line corresponding to SS3 is the perpendicular line made by the tangent line SS1 at the vertex SS1, and the ellipse range corresponding to AA1 to AA4 is all flesh-colored pixel points. It can be obtained through analysis that the line segment AA3 coincides with the perpendicular line SS3 is the inner wall line segment;
[0074] The flesh-colored line segment from the flesh-colored line segment K1~1 to the flesh-colored line segment K1~L containing the vertex G1~K1 is recorded as the inner wall line segment, and the length of the inner wall line segment is obtained, which is recorded as the inner wall reference length; the average value of the inner wall reference lengths corresponding to all vertices in the boundary curve G1 is obtained, which is recorded as the curve inner wall length;
[0075] The average value of the inner wall lengths of all boundary curves of all standard intestinal images is obtained and recorded as the standard inner wall length;
[0076] In a specific implementation process, for example, the inner wall lengths of all boundary curves of all standard intestinal images are 3.9 mm, 4 mm, 3.8 mm, 3.85 mm, 4 mm, 3.8 mm, 3.87 mm, 3.91 mm, 3.77 mm, and 3.88 mm, respectively. Then, by calculation, it can be obtained that the standard inner wall length is 3.878 mm;
[0077] The image stripping method also includes: obtaining the area where the polyp is located in the reference polyp image, recording it as the polyp area, obtaining flesh-colored pixels and black pixels corresponding to the reference polyp image, and obtaining the inner wall length of the boundary curve in the polyp area based on the flesh-colored pixels and black pixels of the polyp reference image; when the inner wall length of the curve is greater than the standard inner wall length, the inner wall length of the curve is recorded as the inner wall length of the polyp.
[0078] The standard length acquisition module is used to acquire multiple colorectal polyp CT images, optimize the inner wall length of the polyp, and obtain a standard polyp length; the standard length acquisition module is configured with a standard polyp acquisition strategy, and the standard polyp acquisition strategy includes: acquiring multiple colorectal polyp CT images, and recording them in sequence as optimized polyp image 1 to optimized polyp image P;
[0079] The length of the inner wall of the polyp is optimized in sequence using the optimized polyp images 1 to the optimized polyp images P, and the optimized inner wall length of the polyp is recorded as the standard polyp length;
[0080] In the specific implementation process, by using the optimized polyp image to optimize the inner wall length of the polyp, the obtained standard polyp length can better reflect the actual length of the polyp in the colorectum;
[0081] The length of the inner wall of the polyp in the optimized polyp image 1 is obtained based on the method for obtaining the inner wall length of the polyp in the image stripping method, and is recorded as the optimized polyp length;
[0082] The average of the optimized polyp length and the polyp inner wall length is recorded as the undetermined polyp length 1;
[0083] The value of the inner wall length of the polyp is replaced by the value of the undetermined polyp length 1, and the optimized polyp length of the optimized polyp image 2 and the undetermined polyp length 2 are continuously obtained, and the undetermined polyp length P is obtained by analogy, and the undetermined polyp length P is recorded as the standard polyp length;
[0084] In the specific implementation process, for example, the inner wall length of the polyp is 5 mm, and the inner wall length of the polyp in the optimized polyp image 1 is 5.2 mm. Then, by calculation, it can be obtained that the undetermined polyp length 1 is 5.1 mm, and the value of the inner wall length of the polyp is replaced with 5.1 mm.
[0085] The maximum extraction module is used to identify polyps in the colorectal polyp CT image to be analyzed using the standard polyp length, and obtain the maximum polyp length of the polyps in the colorectal polyp CT image based on the identification result;
[0086] The maximum extraction module is configured with a maximum polyp extraction strategy, which includes: obtaining a colorectal polyp CT image to be analyzed, recorded as an analysis polyp image; using an image stripping method to obtain all inner wall reference lengths of all boundary curves in the analysis polyp image;
[0087] When any inner wall reference length is greater than or equal to the standard polyp length, the inner wall reference length is recorded as the analysis polyp length, and the boundary curve where the inner wall reference length is located is recorded as the undetermined polyp curve;
[0088] In a specific implementation process, for example, if the standard polyp length is 5.1 mm, and the length of the inner wall reference length F1 in a boundary curve F in the analyzed polyp image is 5.15 mm, the inner wall reference length F1 is recorded as the analyzed polyp length, and the boundary curve F is recorded as the undetermined polyp curve;
[0089] The maximum value of all analyzed polyp lengths in the analyzed polyp images is obtained and recorded as the maximum polyp length.
[0090] The image analysis module is used to obtain the analysis results of the colorectal polyp CT image based on the maximum polyp length;
[0091] The image analysis module is configured with a polyp image analysis strategy, which includes: recording the undetermined polyp curve where the maximum polyp length is located as a severe polyp curve, and recording the undetermined polyp curves other than the severe polyp curve as standard polyp curves;
[0092] Obtaining the positions of the severe polyp curve and the standard polyp curve and marking them in the analyzed polyp image, and marking the maximum polyp length in the severe polyp curve and the standard polyp curve and the analyzed polyp length;
[0093] In the specific implementation process, by marking the severe polyp curve and the standard polyp curve in the image, the image analysis results can be provided to the doctor more intuitively.
[0094] Example 2, please refer to Figure 2 As shown, in a second aspect, the present invention provides an image analysis method based on a colorectal polyp CT image dataset, comprising:
[0095] Step S1, analyzing the colorectal CT image containing the polyp, and obtaining the inner wall length of the polyp in the colorectal CT image containing the polyp by an image stripping method;
[0096] Step S1 includes the following sub-steps: Step S101, acquiring a plurality of normal colorectal CT images and a colorectal CT image containing a polyp;
[0097] A plurality of normal colorectal CT images are sequentially recorded as standard intestinal image 1 to standard intestinal image N; a colorectal CT image containing polyps is recorded as a reference polyp image;
[0098] Step S102, using an image stripping method to analyze the standard intestinal image and the reference polyp image to obtain the inner wall length of the polyp in the reference polyp image;
[0099] The image stripping method includes: step S1021, for any one standard intestinal image N1 among the standard intestinal images 1 to N, graying the standard intestinal image N1, and recording the grayed standard intestinal image N1 as grayscale intestinal image N1;
[0100] Step S1022, record the pixel points whose grayscale values in the grayscale intestinal image N1 are less than the black grayscale value as black pixel points, obtain the grayscale values of all black pixel points, obtain the mode of the grayscale values of all black pixel points, and record it as the black reference value; obtain the mode of the grayscale values of all pixel points in the grayscale intestinal image N1, record it as the flesh-colored grayscale value, and record the pixel points whose grayscale values are the flesh-colored grayscale values as the flesh-colored pixel points;
[0101] Step S1023, for any pixel point A in the grayscale intestinal image N1, obtain the pixels in the eight neighborhoods of the pixel point A, and record them as pixel points A~1 to pixel points A~8 in sequence, and record the pixel points whose grayscale values are equal to the black reference value among the pixel points A~1 to pixel points A~8 as external pixel points; when any pixel point among the pixel points A~1 to pixel points A~8 is recorded as an external pixel point and the pixel point A is a flesh-colored pixel point, the pixel point A is recorded as a critical pixel point;
[0102] For any critical pixel point A in the grayscale intestinal image N1, when any pixel point B in the eight neighborhoods of the critical pixel point is a critical pixel point, the critical pixel point A is connected to the pixel point B, and the connecting line is recorded as the critical line;
[0103] Step S1024, for any critical line in the grayscale intestinal image N1, the polyline where the critical line is located is recorded as a boundary polyline, and all boundary polylines are recorded in sequence as boundary polyline 1 to boundary polyline G;
[0104] Step S1025, for any boundary polyline G1 from boundary polyline 1 to boundary polyline G, all vertices in boundary polyline G1 are recorded as vertex G1~1 to vertex G1~K in sequence; boundary polyline G1 is fitted into an arc curve and recorded as boundary curve G1;
[0105] For any vertex G1~K1 in the boundary curve G1, a tangent line of the boundary curve G1 is drawn at the vertex G1~K1, recorded as the tangent line G1~K1, and a perpendicular line to the tangent line G1~K1 is drawn at the vertex G1~K1, recorded as the tangent perpendicular line G1~K1; multiple independent areas in the tangent perpendicular line G1~K1 that coincide with the flesh-colored pixel points are sequentially recorded as flesh-colored line segments K1~1 to flesh-colored line segments K1~L, wherein the flesh-colored line segment may coincide with multiple continuous flesh-colored pixel points;
[0106] Step S1026, record the flesh-colored line segment containing the vertex G1~ K1 in the flesh-colored line segment K1~1 to the flesh-colored line segment K1~L as the inner wall line segment, obtain the length of the inner wall line segment, and record it as the inner wall reference length; obtain the average value of the inner wall reference lengths corresponding to all vertices in the boundary curve G1, and record it as the curve inner wall length;
[0107] The average value of the inner wall lengths of all boundary curves of all standard intestinal images is obtained and recorded as the standard inner wall length;
[0108] Step S1027, obtain the area where the polyp is located in the reference polyp image, record it as the polyp area, obtain the flesh-colored pixels and black pixels corresponding to the reference polyp image, and obtain the inner wall length of the boundary curve in the polyp area based on the flesh-colored pixels and black pixels of the polyp reference image. When the inner wall length of the curve is greater than the standard inner wall length, the inner wall length of the curve is recorded as the inner wall length of the polyp.
[0109] Step S2, obtaining a plurality of colorectal polyp CT images, optimizing the length of the inner wall of the polyp, and obtaining a standard polyp length;
[0110] Step S2 includes: step S201, obtaining a plurality of colorectal polyp CT images, and recording them sequentially as optimized polyp image 1 to optimized polyp image P;
[0111] Step S202, using the optimized polyp images 1 to the optimized polyp images P to sequentially optimize the inner wall length of the polyp, and recording the optimized inner wall length of the polyp as the standard polyp length;
[0112] Step S202 includes: obtaining the length of the inner wall of the polyp in the optimized polyp image 1 based on the method for obtaining the inner wall length of the polyp in the image stripping method, and recording it as the optimized polyp length;
[0113] The average of the optimized polyp length and the polyp inner wall length is recorded as the undetermined polyp length 1;
[0114] The value of the polyp inner wall length is replaced by the value of the undetermined polyp length 1, and the optimized polyp length of the optimized polyp image 2 and the undetermined polyp length 2 are continuously obtained, and the undetermined polyp length P is obtained by analogy, and the undetermined polyp length P is recorded as the standard polyp length.
[0115] Step S3, using the standard polyp length to perform polyp recognition on the colorectal polyp CT image to be analyzed, and obtaining the maximum polyp length of the polyp in the colorectal polyp CT image based on the recognition result;
[0116] Step S3 includes: step S301, obtaining a colorectal polyp CT image to be analyzed, recorded as an analyzed polyp image;
[0117] Step S302, using an image stripping method to obtain all inner wall reference lengths of all boundary curves in the polyp image for analysis;
[0118] Step S303, when any inner wall reference length is greater than or equal to the standard polyp length, the inner wall reference length is recorded as the analysis polyp length, and the boundary curve where the inner wall reference length is located is recorded as the pending polyp curve;
[0119] Step S304, obtaining the maximum value of all analyzed polyp lengths in the analyzed polyp image, and recording it as the maximum polyp length.
[0120] Step S4, obtaining the analysis result of the colorectal polyp CT image based on the maximum polyp length.
[0121] Step S4 includes: step S401, recording the undetermined polyp curve where the maximum polyp length is located as a severe polyp curve, and recording the undetermined polyp curves other than the severe polyp curve as standard polyp curves;
[0122] Step S402, obtaining the positions of the severe polyp curve and the standard polyp curve and marking them in the analyzed polyp image, and marking the maximum polyp length and the analyzed polyp length in the severe polyp curve and the standard polyp curve.
[0123] Working principle: The present invention first analyzes the colorectal CT image containing polyps, obtains the inner wall length of the polyp in the colorectal CT image containing polyps by an image stripping method, then obtains multiple colorectal polyp CT images, optimizes the inner wall length of the polyp, and obtains a standard polyp length. The present invention also uses the standard polyp length to identify polyps in the colorectal polyp CT image that needs to be analyzed, obtains the maximum polyp length of the polyp in the colorectal polyp CT image based on the identification result, and finally obtains the analysis result of the colorectal polyp CT image based on the maximum polyp length.
[0124] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0125] It should be understood by those skilled in the art that the embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware aspects. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program codes. Among them, the storage medium may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read Only Memory, referred to as EPROM), programmable read-only memory (Programmable Read-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, magnetic disk or optical disk. These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0126] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
Claims
1. An image analysis method based on a colorectal polyp CT image dataset, characterized in that: include: Analyze the colorectal CT images containing polyps, and obtain the inner wall length of the polyps in the colorectal CT images containing polyps by image stripping method; Obtain multiple CT images of colorectal polyps, optimize the length of the inner wall of the polyps, and obtain the standard polyp length; Using the standard polyp length to identify the colorectal polyp CT image to be analyzed, and obtaining the maximum polyp length of the polyp in the colorectal polyp CT image based on the identification result; The analysis results of colorectal polyp CT images were obtained based on the maximum polyp length; The colorectal CT images containing polyps were analyzed, and the inner wall length of the polyps in the colorectal CT images containing polyps was obtained by image stripping method, including: Obtain multiple normal colorectal CT images and one colorectal CT image containing a polyp; A plurality of normal colorectal CT images are sequentially recorded as standard intestinal image 1 to standard intestinal image N; a colorectal CT image containing polyps is recorded as a reference polyp image; The standard intestinal image and the reference polyp image are analyzed using the image stripping method to obtain the inner wall length of the polyp of the reference polyp image; Image stripping methods include: For any standard intestinal image N1 among the standard intestinal images 1 to N, grayscale processing is performed on the standard intestinal image N1, and the grayscale processed standard intestinal image N1 is recorded as grayscale intestinal image N1; The pixel points whose grayscale values in the grayscale intestinal image N1 are less than the grayscale value of the black mark are recorded as black pixel points, the grayscale values of all black pixel points are obtained, and the mode of the grayscale values of all black pixel points is obtained and recorded as the black reference value; the mode of the grayscale values of all pixel points in the grayscale intestinal image N1 is obtained and recorded as the meat-colored grayscale value, and the pixel points whose grayscale values are the meat-colored grayscale values are recorded as the meat-colored pixel points; For any pixel point A in the grayscale intestinal image N1, obtain the pixels in the eight neighborhoods of pixel point A and record them as pixel points A~1 to pixel point A~8 in sequence, and record the pixels whose grayscale values are equal to the black reference value among pixel points A~1 to pixel point A~8 as external pixels; when any pixel point among pixel points A~1 to pixel point A~8 is recorded as an external pixel point and pixel point A is a flesh-colored pixel point, pixel point A is recorded as a critical pixel point; For any critical pixel point A in the grayscale intestinal image N1, when any pixel point B in the eight neighborhoods of the critical pixel point is a critical pixel point, the critical pixel point A is connected to the pixel point B, and the connecting line is recorded as the critical line; For any critical line in the grayscale intestinal image N1, the polyline where the critical line is located is recorded as a boundary polyline, and all boundary polylines are recorded as boundary polyline 1 to boundary polyline G in sequence; Image stripping methods also include: For any boundary polyline G1 from boundary polyline 1 to boundary polyline G, all vertices in boundary polyline G1 are recorded as vertex G1~1 to vertex G1~K in sequence; boundary polyline G1 is fitted into an arc curve and recorded as boundary curve G1; For any vertex G1~K1 in the boundary curve G1, a tangent line of the boundary curve G1 is drawn at the vertex G1~K1, recorded as the tangent line G1~K1, and a perpendicular line to the tangent line G1~K1 is drawn at the vertex G1~K1, recorded as the tangent perpendicular line G1~K1; multiple independent areas in the tangent perpendicular line G1~K1 that coincide with the flesh-colored pixel points are sequentially recorded as flesh-colored line segments K1~1 to flesh-colored line segments K1~L, wherein the flesh-colored line segment may coincide with multiple continuous flesh-colored pixel points; The flesh-colored line segment from the flesh-colored line segment K1~1 to the flesh-colored line segment K1~L containing the vertex G1~K1 is recorded as the inner wall line segment, and the length of the inner wall line segment is obtained, which is recorded as the inner wall reference length; the average value of the inner wall reference lengths corresponding to all vertices in the boundary curve G1 is obtained, which is recorded as the curve inner wall length; The average value of the inner wall lengths of all boundary curves of all standard intestinal images is obtained and recorded as the standard inner wall length; Image stripping methods also include: Obtaining the area where the polyp is located in the reference polyp image, recorded as the polyp area, obtaining the flesh-colored pixels and black pixels corresponding to the reference polyp image, and obtaining the inner wall length of the boundary curve in the polyp area based on the flesh-colored pixels and black pixels of the polyp reference image, and when the inner wall length of the curve is greater than the standard inner wall length, recording the inner wall length of the curve as the inner wall length of the polyp; Obtain multiple colorectal polyp CT images, optimize the length of the polyp inner wall, and obtain the standard polyp length including: Acquire multiple colorectal polyp CT images and record them as optimized polyp image 1 to optimized polyp image P in sequence; The length of the inner wall of the polyp is optimized in sequence using optimized polyp images 1 to optimized polyp images P, and the optimized inner wall length of the polyp is recorded as the standard polyp length.
2. The image analysis method based on colorectal polyp CT image dataset according to claim 1, characterized in that: The length of the inner wall of the polyp is optimized in sequence using the optimized polyp images 1 to the optimized polyp images P, and the optimized inner wall length of the polyp is recorded as the standard polyp length, including: The length of the inner wall of the polyp in the optimized polyp image 1 is obtained based on the method for obtaining the inner wall length of the polyp in the image stripping method, and is recorded as the optimized polyp length; The average of the optimized polyp length and the polyp inner wall length is recorded as the undetermined polyp length 1; The value of the polyp inner wall length is replaced by the value of the undetermined polyp length 1, and the optimized polyp length of the optimized polyp image 2 and the undetermined polyp length 2 are continuously obtained, and the undetermined polyp length P is obtained by analogy, and the undetermined polyp length P is recorded as the standard polyp length.
3. The image analysis method based on colorectal polyp CT image data set according to claim 2, characterized in that: The standard polyp length is used to identify the colorectal polyp CT image to be analyzed, and the maximum polyp length of the polyp in the colorectal polyp CT image is obtained based on the identification result, including: Acquire a CT image of a colorectal polyp that needs to be analyzed, which is recorded as an analyzed polyp image; All inner wall reference lengths of all boundary curves in the analyzed polyp images were obtained using the image stripping method; When any inner wall reference length is greater than or equal to the standard polyp length, the inner wall reference length is recorded as the analysis polyp length, and the boundary curve where the inner wall reference length is located is recorded as the undetermined polyp curve; The maximum value of all analyzed polyp lengths in the analyzed polyp images is obtained and recorded as the maximum polyp length.
4. The image analysis method based on colorectal polyp CT image dataset according to claim 3, characterized in that: The results of the analysis of colorectal polyp CT images based on the maximum polyp length include: The undetermined polyp curve with the maximum polyp length is recorded as a severe polyp curve, and the undetermined polyp curves other than the severe polyp curve are recorded as standard polyp curves; The positions of the severe polyp curve and the standard polyp curve are obtained and marked in the analysis polyp image, and the maximum polyp length and the analysis polyp length in the severe polyp curve and the standard polyp curve are marked.
5. An image analysis system based on a colorectal polyp CT image dataset, applicable to the image analysis method based on a colorectal polyp CT image dataset according to any one of claims 1 to 4, characterized in that: It includes an image stripping module, a standard length acquisition module, a maximum extraction module and an image analysis module; The image stripping module is used to analyze the colorectal CT image containing polyps, and obtain the inner wall length of the polyp in the colorectal CT image containing polyps by an image stripping method; The standard length acquisition module is used to acquire multiple colorectal polyp CT images, optimize the inner wall length of the polyp, and obtain the standard polyp length; The maximum extraction module is used to identify polyps in the colorectal polyp CT image to be analyzed using the standard polyp length, and obtain the maximum polyp length of the polyps in the colorectal polyp CT image based on the identification result; The image analysis module is used to obtain the analysis results of colorectal polyp CT images based on the maximum polyp length.
