Method and system for segmenting overlapping cytoplasm in medical images
By establishing an infinite shape hypothesis set and a constrained multi-shape evolution method, and combining local and global shape information, the problem of insufficient accuracy in overlapping cytoplasm segmentation in the existing technology is solved, and more efficient cytoplasm boundary identification is achieved, which is suitable for Medical applications such as cervical cancer screening.
Patent Information
- Application Number
- CN201980000985.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-06-18
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2039-06-18
AI Technical Summary
When existing technologies segment overlapping cytoplasm in medical images, there are problems such as insufficient prior shape models, inconsistent local shape relationships, and lack of shape constraints, resulting in inaccurate segmentation results.
By establishing an infinite set of shape hypotheses, combining local and global prior shape information for constrained multi-shape evolution, and using shape alignment and learned shape instance importance to update shape hypotheses, the accuracy and consistency of segmentation results are ensured.
Significantly improves the accuracy and efficiency of overlapping cytoplasm segmentation, and can better identify obscured boundary parts, which is suitable for medical diagnosis such as cervical cancer screening.
Smart Images

Figure CN112470166B
Abstract
Description
Technical Field
[0001] The present invention relates to a method and system for segmenting overlapping cytoplasm in a medical image, and more specifically, to a method and system for segmenting overlapping cytoplasm in a medical image for cervical cancer screening. Background Art
[0002] Cervical cancer ranks fourth in mortality and incidence among female malignant tumors, and high-quality cervical cancer screening can greatly reduce the incidence and mortality of cervical cancer. Specifically, cervical cancer screening refers to the examination of the abnormality of each cervical cell sampled from the cervix and placed on a glass slide under a microscope to assess whether there are cervical cancer cells.
[0003] Segmenting the overlapping cytoplasm of cells in cervical images is a critical task for developing an automatic screening system for cervical cancer, because extracting cellular-level features (e.g., cell shape, size, and the area ratio of cytoplasm to nucleus) is clinically important in order to examine the degree of cellular abnormality. However, the lack of intensity (or color) information in overlapping areas is usually confusing and even misleading, making this task very challenging.
[0004] The traditional method of segmenting overlapping cytoplasm in medical images is to leverage the intensity information between the cytoplasms of each cell in the mass or to combine spatial information. This is generally achieved by extending the typical segmentation model, such as threshold segmentation, watershed segmentation, and image cutting. These methods theoretically assume that the intensity information is sufficient to identify the obscured boundary parts. However, this assumption is flawed. In fact, the intensity information of overlapping areas is usually confusing and even misleading.
[0005] In order to eliminate the problem caused by insufficient intensity information, shape prior-based methods have shown good segmentation performance, which inserts additional shape information into the segmentation method. These methods either model the prior shape by simple shape inference (for example, the cytoplasm has an elliptical or star-shaped shape) or match shape instances from a limited set of pre-collected shapes. Then, the intensity information is used to segment the overlapping cytoplasm while requiring the segmentation result to be as similar as possible to the modeled prior shape. It is usually implemented using an active contour model or a level set model, in which the prior shape is designed as a regular term in the energy function, assuming that the minimum (or maximum) value of the energy function is obtained by the segmentation function that produces the best segmentation result.
[0006] Although the prior art has improved the accuracy of segmentation, these existing prior shape methods still have three major disadvantages. First, these methods all model prior shapes through limited shape assumptions (e.g., shape inference or collected shape instances). Since these specific shape assumptions cannot restore the occluded boundary part of the cytoplasm well, the prior shapes modeled by these methods are usually insufficient to find out the occluded boundary part of the cytoplasm. Second, these methods only use local prior shapes (i.e., the prior information is only a single cytoplasm shape) to evolve the shape of the cytoplasm without considering the shape relationship between all cytoplasms and clusters, which leads to the segmentation results of these methods are usually inconsistent with the cluster evidence, and the segmented cytoplasm boundary deviates from the ideal boundary of the cluster. Third, although these methods require the final shape to be as similar as possible to the modeled prior shape, these methods do not impose shape constraints on the final shape. In fact, these methods try to find a suitable compromise between the intensity evidence and the local prior shape by balancing parameters. Therefore, when the intensity evidence contradicts the local prior shape, these methods will produce incredible segmentation results.
[0007] In addition, the prior art discloses relevant contents on the establishment of an infinite set of shape hypotheses (e.g., TF Cootes, CJ Taylor, and et al. DH Cooper. "Active shape models-their training and application", Computer Vision and Image Understanding, 61(1):38-59, 1995). Although this method can obtain an infinite set of shape hypotheses by selecting infinite values, its main disadvantage is that it is difficult to collect a set of shape instances to ensure that the invisible cytoplasmic shape is well restored by the established shape hypothesis. In the prior art, the establishment of a shape hypothesis set depends on how to collect good shape instances. Usually, representative shape instances have to be manually selected. This is an experimental and error-prone method, and is also a labor-intensive method. When it is necessary to collect an infinite number of instances to approximate complex shapes, this method is not feasible. Summary of the invention
[0008] Therefore, a technical problem to be solved by the present invention is to provide a method and system that can segment overlapping cytoplasm in medical images more accurately and effectively based on prior shapes.
[0009] In one embodiment, the present invention relates to a method for segmenting overlapping cytoplasm in a medical image, which includes: establishing a set of cytoplasm shape hypotheses; and selecting a shape hypothesis for each cytoplasm from the established set of cytoplasm shape hypotheses to perform constrained multi-shape evolution, thereby segmenting overlapping cytoplasm in the medical image, wherein the constrained multi-shape evolution includes: segmenting a cluster area composed of multiple overlapping cytoplasms to provide cluster evidence; shape alignment for evaluating the quality of the selected shape hypothesis; and shape evolution to determine a better shape hypothesis for each cytoplasm.
[0010] The method for segmenting overlapping cytoplasm in a medical image further comprises the step of updating the learned shape instance importance of the cytoplasm shape instances for the established cytoplasm shape hypothesis set.
[0011] Preferably, the shape alignment and the shape evolution are performed iteratively, and the output of the shape alignment serves as the input of the shape evolution, and the output of the shape evolution serves as the input of the shape alignment. The shape alignment evaluates whether it is necessary to start a new shape evolution. Once it is determined that a new shape evolution is not needed, the current shape hypothesis after the shape alignment is the segmentation result of the overlapping cytoplasm.
[0012] Preferably, the cytoplasm shape hypothesis set is established by the following formula:
[0013]
[0014] Where μ represents the average shape of the collected shape instances, Mx i The linear combination of the eigenvectors of the covariance matrix of the collected shape, where each column of the matrix M is an eigenvector, x i is the weight vector of the linear combination, s i Represents the shape hypothesis indexed by i.
[0015] Preferably, the shape alignment includes filling a shape hypothesis selected from a cytoplasm shape hypothesis set to obtain a binary image, and using the following formula to obtain the rotation angle and scaling size required for the binary image to be aligned with the corresponding cytoplasm:
[0016]
[0017] Among them, B c An image showing the segmented cluster area; B i Denotes the aligned result image, B i Yes and B c Binary images of the same size and need B i In B c interior.
[0018] Preferably, the shape evolution includes: setting an objective function, wherein the objective function is:
[0019]
[0020] Among them, x represents the set x k represents the k-th evolution of x; N represents the amount of cytoplasm in the mass area; The alignment result is The binary image generated; (x, y) represents the coordinates of the pixels in the image; and With ratio x k Lower values of x k +1.
[0021] Preferably, the determination enables With ratio x k Lower values of x k+1 Including: For the matrix p obtained from the objective function, use Taylor's theorem to obtain the formula:
[0022] in, and Respectively represent the gradient and Hessian matrix calculation; γ is a scalar between the interval (0, 1), so as to obtain k The area with center and radius ||p||2 The overall regional minimum of k Approximate
[0023] Among them, m k Represents x k Where By m k The minimum value of The minimum value of , and solve the formula by the trust region method:
[0024] And get the output result of the k-th evolution: x k+1 =x k +p * .
[0025] Preferably, the step of learning the importance of shape instances comprises: randomly selecting a group of shape instances, and calculating the average shape of the group of shape instances according to the following formula:
[0026]
[0027] Among them, K sis the number of selected shape instances; w i is each shape instance s i The importance of W is the importance of all w i And, the covariance matrix is calculated based on the obtained μ:
[0028]
[0029] Among them, the matrix M c The first t eigenvectors of form the matrix M = (e1 e2 … e t ), whose corresponding eigenvalue is λ1≥λ2≥…≥λ t .
[0030] Preferably, if the segmentation result obtained by the constrained multi-shape evolution is greater than a predetermined threshold, the step of learning the shape instance importance is recalculated to update the shape hypothesis set; the updating is stopped until the segmentation result can no longer be reduced or reaches the predetermined threshold.
[0031] On the other hand, the present invention also relates to a system for segmenting overlapping cytoplasm in medical images, comprising: a shape hypothesis set module for establishing a cytoplasm shape hypothesis set; and a multi-shape evolution module, which is used to select a shape hypothesis for each cytoplasm from the established cytoplasm shape hypothesis set to perform constrained multi-shape evolution, thereby segmenting overlapping cytoplasm in medical images, wherein the multi-shape evolution module is configured to: segment a cluster area composed of multiple overlapping cytoplasms to provide cluster evidence; shape alignment for evaluating the quality of the selected shape hypothesis; and shape evolution to determine a better shape hypothesis for each cytoplasm.
[0032] Preferably, the system for segmenting overlapping cytoplasm in medical images further comprises a learning shape instance importance module for updating cytoplasm shape instances for the established cytoplasm shape hypothesis set.
[0033] Preferably, the shape instance importance learning module is configured to: randomly select a group of shape instances, and calculate the average shape of the group of shape instances according to the following formula:
[0034]
[0035] Among them, K s is the number of selected shape instances; w i is each shape instance s i The importance of W is the importance of all w i And, the covariance matrix is calculated based on the obtained μ:
[0036]
[0037] Among them, the matrix M c The first t eigenvectors of form the matrix M = (e1 e2 … e t ), whose corresponding eigenvalue is λ1≥λ2≥…≥λ t .
[0038] Preferably, if the segmentation result obtained by the constrained multi-shape evolution module is greater than a predetermined threshold, the learned shape instance importance module recalculates to update the shape hypothesis set; the update is stopped until the segmentation result can no longer be reduced or reaches the predetermined threshold. The method and system of the present invention model the prior shape through an infinitely large set of shape hypotheses, while merging the local prior shape and the overall prior shape with intensity information for evolution, and constraining the resulting shape in each evolution to the shape hypothesis set. Compared to existing methods and systems for segmenting overlapping cytoplasm in medical images, the method and system of the present invention can better identify the occluded boundary portion, thereby better segmenting the overlapping cytoplasm, thereby providing more accurate shape features for medical diagnosis. The infinite shape hypothesis set established by the present invention can better describe all possible shapes of cytoplasm, thereby more efficiently segmenting overlapping cytoplasm with different shapes; the constrained multi-shape evolution algorithm of the present invention combines local prior shapes and overall prior shapes with intensity information for evolution by considering the shape relationship between all cytoplasm and the entire mass, thereby obtaining more information for segmentation; the present invention utilizes the importance of each shape instance in shape statistics calculation, so that invisible shapes can be well approximated by shape hypotheses in the shape hypothesis set; the learning step is implanted in the multi-shape evolution step of the present invention, which can more effectively obtain useful information. Therefore, compared with the prior art, the method and system for segmenting overlapping cytoplasm in medical images of the present invention can more effectively obtain more accurate results. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The technical solution of the present invention can be better understood through the accompanying drawings and the following description, wherein:
[0040] Figure 1a-1d A schematic diagram showing segmentation of a mass with overlapping cytoplasm according to the method of the present invention;
[0041] Figure 2 A flow chart showing the method of the present invention is shown;
[0042] Figure 3 A flow chart showing the steps of the constrained multi-shape evolution of the present invention;
[0043] Figure 4 A schematic diagram showing an overlapping cytoplasm partitioning system of the present invention; and
[0044] Figure 5 A comparison image showing the segmentation results obtained by the method of the present invention and the method of the prior art DETAILED DESCRIPTION
[0045] The present invention segments all overlapping cytoplasms in a mass by evolving the cytoplasm shapes guided by the modeled local prior shapes and the overall prior shapes, and by evolving the mutual shape constraints of the cytoplasms, so that the method of segmenting overlapping cytoplasms in medical images based on the prior shapes of the present invention can accurately and efficiently obtain the segmentation results of the cytoplasm, thereby improving the accuracy and efficiency of cervical cancer screening. Specifically, by using statistical shape information to model the local prior shapes, a shape hypothesis set with infinite cytoplasm shape hypotheses is established; in the multi-shape evolution step, in addition to considering the local prior shapes, the present invention evolves the shape of the cytoplasm and then uses an algorithm to make the segmentation results consistent with the mass evidence, thereby obtaining the overall prior shape; in addition, in the multi-shape evolution step, the final shape obtained by the evolution process is required to be in the shape hypothesis set, thereby reducing the incredible segmentation results in the prior art; and in order to make the established shape hypothesis better restore any invisible cytoplasm shape, the present invention also adds a step of learning the importance of shape instances in the shape statistics calculation.
[0046] The present invention adopts the following novel algorithms and steps to implement a novel method for segmenting overlapping cytoplasm masses in medical images. Figure 1a-1d A schematic diagram of segmenting a mass with overlapping cytoplasm using the method of the present invention is shown. Figure 1a An input blob image is shown; Figure 1b The initially segmented mass region is shown; Figure 1c The deviation area 11 in the random evolution and the area 12 covered by all aligned shapes are shown; Figure 1d The segmentation result obtained by using the method of the present invention is shown. Figure 2 The flowchart of the method of the present invention is shown. The method includes three steps: a shape hypothesis set establishment step 201, a constrained multi-shape evolution step 202, and a shape instance importance learning step 203.
[0047] The following content describes in detail the above three steps of establishing a shape hypothesis set step 201, constrained multi-shape evolution step 202, and learning shape instance importance step 203.
[0048] Building a shape hypothesis set
[0049] First, the shape of the cell's cytoplasm is parameterized. The shape of each cell's cytoplasm is described by using boundary points in the form of vector s. The kth item s stores the distance value of the boundary point with an angle value equal to k in a polar coordinate system, and the origin of the polar coordinate system is located at the mass center of the cell nucleus. It should be noted that each cell consists of cytoplasm and cell nucleus. The present invention selects the mass center of the cell nucleus rather than the mass center of the cytoplasm as the origin of the polar coordinate system for feasibility considerations, because when the cytoplasms of each cell overlap (see Figure 1a ), it is much easier to detect the centroid of the nucleus than the centroid of the cytoplasm.
[0050] Secondly, according to the existing method of establishing an infinite shape hypothesis set in the prior art, the shape hypothesis set is established using the cytoplasm statistical shape information. In the present invention, the shape hypothesis set is expressed as the following formula (1):
[0051]
[0052] where μ represents the average shape of the collected shape instances, Mx i The linear combination of the eigenvectors of the covariance matrix representing the shape of the collection (where each column of the matrix M is an eigenvector, x i is the weight vector of the linear combination), s i Represents the shape hypothesis indexed by i.
[0053] By choosing different values of x i Substituting into formula (1), we can obtain different shape hypotheses s i , since there are infinitely many x i Therefore, an infinite set of shape hypotheses can be established. However, it is difficult to collect shape instances that can well restore the invisible cytoplasmic shape using the shape hypothesis set established by formula (1). The present invention overcomes this defect by applying the steps of learning the importance of shape instances described below in shape statistics calculation.
[0054] Constrained Multi-Shape Evolution
[0055] Figure 3is a flow chart of the constrained multi-shape evolution of the present invention. The constrained multi-shape evolution step of the present invention is to segment the overlapping cytoplasm based on the clumping evidence while selecting a shape hypothesis for each cytoplasm from the established shape hypothesis set. It includes three steps: clumping region segmentation (step 301) for providing clumping evidence; shape alignment (step 302) for evaluating the quality of the current shape hypothesis; and shape evolution (step 303) for finding a better shape hypothesis for each cytoplasm. Among them, shape alignment (step 302) and shape evolution (step 303) are performed iteratively, and shape evolution (step 303) uses the result of shape alignment as input, and the output of shape evolution (step 303) is used as the input of shape alignment to detect whether a new round of shape evolution needs to be started. Once it is determined that a new shape evolution is not needed, the current shape hypothesis after shape alignment is regarded as the segmentation result of the cytoplasm (see Figure 1d ).
[0056] In the mass region segmentation (step 301), the present invention uses a multi-scale convolutional neural network (CNN) to segment the cytoplasm and nucleus regions (see Figure 1b ). This multi-scale convolutional neural network divides each pixel in the image into three groups: the nucleus part, the cytoplasm part, and the background part. It contains three parallel CNNs, each with a different size in terms of the resolution of the input patch. The outputs of these three CNNs are then fused to help capture more contextual information at different scales. Finally, a Markov random field is used to further optimize the segmentation results.
[0057] In shape alignment (step 302), for the shape hypothesis s i , since it is only a vector storing boundary point information, it is necessary to fill s i The area inside the contour described by s i The corresponding binary image (i.e., a binary image) has pixels inside the contour marked as 1 and pixels outside the contour marked as 0. As mentioned above, s i is assigned as the output of the shape evolution step, but the average shape of the instances collected from the shape hypothesis set is used as the initial shape of each cytoplasm. i Furthermore, since the present invention can circumvent non-rigid transformations through the evolving shape assumption described below, the present invention limits shape alignment to rigid alignment.
[0058] Specifically, for each s i , firstly, i The centroid of the filled area is aligned with the centroid of the cell nucleus in the image. Then, the scaling factor (r) used for alignment is obtained by the following formula (2): i ) and the rotation coefficient θi .
[0059]
[0060] Among them, B c An image showing the segmented cluster area; B i Represents the result of alignment, which is obtained by replacing s i The filled area is rotated by angle θ i And use the number r i After scaling, we get i Yes and B c Binary images of the same size; where r i With θ i The value of is determined by a grid search.
[0061] Result B that needs to be aligned i In B c Without this constraint, the actual resulting shape is assumed to be aligned with the entire mass region, rather than with the cytoplasm itself.
[0062] In the shape evolution (step 303), for the aligned result B i , the shape evolution algorithm of the present invention can find i A more appropriate cytoplasmic shape hypothesis. First, it is necessary to define the objective function as shown in the following formula (3):
[0063]
[0064] Among them, x is used to represent the set Use x k To represent the k-th evolution x, as described in formula (1), x i To determine i ; N represents the amount of cytoplasm in the mass; The alignment result is The resulting binary image; (x, y) represents the coordinates of the pixel in the image.
[0065] It can be seen that the objective function expressed by formula (3) is actually to detect the pixel difference between the segmented mass area and the mass area composed of the alignment result. In an ideal state, if all the cytoplasm is segmented very accurately, is equal to 0. As mentioned above, this ideal state is difficult to achieve, and thus, an objective function is designed in the method of the present invention, the main reason of which is to make full use of the boundary information of the blob and minimize the influence of insufficient intensity information in the overlapping area.
[0066] Therefore, the present invention uses the following formulas (4)-(6) to find the formula that can make With ratio x k Lower values of x k+1 . Where, for any matrix p obtained from formula (3), Taylor's theorem is used here to obtain the following formula (4):
[0067]
[0068] in, and denote the gradient and Hessian calculations respectively; γ is a scalar between the interval (0, 1). The above formula (4) indicates that only the function value, x k The information of the first and second derivatives at x is used to approximate x k Nearby So as to obtain x k The area with center and radius ||p||2 The overall regional minimum.
[0069] Theoretically, the global regional minimum is the best x that can be used in the kth evolution. k+1 However, since the value of the scalar γ is unknown, it cannot be directly analyzed. So, back to x k Approximate From the following formula (5), m k To represent x k Where
[0070]
[0071] It is very accurate when ||p||2 is very small, and the approximation error is Then by m k The minimum value of The minimum value of is shown in formula (6):
[0072]
[0073] Formula (6) can be solved by the existing trust region method (see J. Nocedal and SJ Wright. "Numerical Optimization". Springer, 2006). Finally, the output result of the k-th evolution is shown in formula (7):
[0074] x k+1 =x k +p * (7)
[0075] Once you get x k+1, the new shape hypothesis is aligned with the image, and a new round of evolution calculation begins until Cannot be reduced any further or has reached a predetermined threshold For cytoplasm i, the final shape after alignment assumes s i is the final segmentation result.
[0076] Learning shape instance importance
[0077] In order to make the shape hypothesis set calculated according to the above formula (1) The shape assumption in the image can better restore any invisible cytoplasm shape. The present invention also adopts step 203 of learning the importance of shape instances in shape statistics calculation. The method of learning the importance of shape instances in the present invention can solve a series of problems caused by the need to manually collect shape instances in the prior art.
[0078] Specifically, a set of K input-output pairs is randomly selected, as shown in the following formula (8):
[0079]
[0080] in, is the image where the cluster region in the training image j is segmented; N represents the shape vector of cytoplasm i in image j; j is the amount of cytoplasm in image j. From the above formula (8), we get Select a small group of shape instances Each instance i Initially has an importance, given by w i Then, the average shape is calculated using the following formula (9):
[0081]
[0082] Where W is all w i Then, the covariance matrix is calculated using the following formula (10):
[0083]
[0084] Among them, the matrix M c The first t eigenvectors of form the matrix M = (e1 e2 … e t ), whose corresponding eigenvalue is λ1≥λ2≥…≥λ t .
[0085] The step 203 of learning the importance of shape instances is associated with the above-mentioned step 202 of constrained multi-shape evolution and the step 201 of establishing a shape hypothesis set (see Figure 2 ) is: in each training image In the step of establishing the shape hypothesis set, the constrained multi-shape evolution step is run, and then the final if Greater than a predetermined threshold The current μ and M are not ideal, so they need to be recalculated according to formulas (9) and (10) in the step of learning the importance of shape instances to increase Thus, μ and M in the shape hypothesis set are updated. During the update process, the importance of each shape instance is determined by grid search. Continue with the above addition steps until The entire step of learning the importance of shape instances is based on formula (8) Repeat until all final differences The sum no longer decreases.
[0086] like Figure 4 As shown, the present invention also relates to an overlapping cytoplasm segmentation system, which includes: a shape hypothesis set module M1 for establishing a shape hypothesis set, an evolution module M2 for performing constrained multi-shape evolution, and a learning module M3 for learning shape instance importance. First, the shape hypothesis set module M1 provides initial μ and M, then runs constrained multi-shape evolution in the evolution module M2, and then detects the final if Greater than a predetermined threshold This indicates that the current μ and M are not ideal. Therefore, it is necessary to recalculate in the learning module M3 according to the above formulas (9) and (10) to increase Thus, μ and M in the shape hypothesis set are updated. Continue with the above increase steps until Start to get smaller.
[0087] Example
[0088] This example is based on two typical cervical scraping data sets, namely the Papanicolaou staining data set and the eosin staining (H&Estain) data set. The Papanicolaou staining data set is obtained by referring to (Z. Lu, G. Cameiro, A. Bradley, et al., "Evaluation of three algorithms for the segmentation of overlapping cervical cells", IEEE Journal of Biomedical and Health Informatics, 21(2): 441-450, 2017). This data set includes 8 publicly available images, each of which has 11 clusters with an average of 3.3 cytoplasms. The eosin staining data set is prepared by eosin staining, and the data set includes 21 images, each of which has 7 clusters with an average of 6.1 cytoplasms.
[0089] First, we randomly select 3 images from the Pap staining dataset and 5 images from the eosin staining dataset to construct the training set. The remaining images constitute the test set. There are 72 clumps and 324 cytoplasm instances, of which 28 isolated cytoplasms are used to initialize a small set of shape instances. There are 184 clusters containing 907 cytoplasms in the test set, and the number of cytoplasms in each cluster ranges from 2 to 13 (mean 4.93, standard deviation 1.81).
[0090] In the method described in the present invention, two parameters need to be set: a predetermined threshold for terminating the multi-shape evolution step and the numerical value used to calculate the eigenvector t of the matrix M. Although usually small It helps to improve the accuracy of the segmentation results, but the smaller the The calculation time will be longer. In order to balance the accuracy of the segmentation result and the calculation time, the present invention sets the predetermined threshold The value is set to be between 3% and 7% of the number of pixels in the cluster, preferably about 5%. For the value of the feature vector t, a larger t will make the evaluated shape si present more details of the overall shape, but it will also consume more computing resources in the shape evolution process. In the present invention, according to the existing formula in the prior art (see TF Cootes, CJ Taylor, DH Cooper, etc., "Active shape models-their training and application", Computer Vision and Image Understanding, 61 (1): 38-59, 1995) To determine t, in this example, the t value is set to 20.
[0091] In this example, the results obtained by the method of the present invention are compared with four prior arts (see Table 1 below). The four existing technologies are the joint level set function method (see Z. Lu, G. Carneiro and A. P. Bradley. "An improved joint optimization of multiple level set functions for the segmentation of overlapping cervical cells", IEEE Transactions on Image Processing, 24(4): 1261-1272, 2015.), the multiple cell labeling method (see Y. Song, E. L. Tan, X. Jiang et al., "Accurate cervical cell segmentation from overlapping clumps in papsmear images", IEEE Transactions on Medical Imaging, 36(1): 288-300, 2017), the multi-channel watershed method (see A. Tareef, Y. Song, H. Huang et al., "Multi-pass fast watershed for accurate segmentation of overlapping cervical cells", IEEE Transactions on Medical Imaging, 2018.) and the contour segmentation method (see Y. Song, J. Qin, B. Lei et al., "Automated segmentation of overlapping cytoplasm in Cervical smear images via contourfragments”, In Proceedings of the 32th AAAI Conference on ArtificialIntelligence, pp. 168-175. AAAI, 2018.), LSF, MCL, MPW and CF are used in Table 1 to represent the segmentation results of the above four existing technologies. Among them, LSF, MCL and CF belong to the existing prior shape-based methods, and MPW belongs to a variant of the watershed-based method.
[0092]
[0093] Table 1
[0094] Table 1 lists the quantitative comparison of the segmentation results obtained by different methods under multiple overlap conditions. The overlap is a measure of the degree of overlap, which is calculated by the ratio of the length of the obscured boundary portion to the length of the entire boundary portion of the cytoplasm. From the results in Table 1, it can be seen that the method of the present invention obtains the best segmentation results. Compared with other methods, the accuracy of the method of the present invention is improved by about 5% on average. Specifically, when the overlap is less than 0.5 (see Table 1), the segmentation results of the method of the present invention are better than those of other methods. When the overlap is greater than 0.5 (see the contents of the table), the accuracy of the method of the present invention is improved by about 3% on average; when the overlap is greater than 0.5 (see the contents of the table When the content of the column is changed, the accuracy is improved by about 8% on average.
[0095] also, Figure 5 The comparison image of the segmentation results obtained by the method of the present invention and the method of the prior art is shown. Figure 5 - (a) is the original input image, Figure 5 -(b) to Figure 5 - (f) respectively represent the images of the segmentation results obtained by LSF, MCL, MPW, CF and the method of the present invention, Figure 5 -(g) is the actual segmented image. Figure 5 It can be seen more intuitively that the segmentation method of the present invention (such as Figure 5 -(f)) obtained the best segmentation result, and for some cytoplasm instances, it was even different from the actual segmentation result (such as Figure 5 -(g) is exactly the same.
[0096] The method and system of the present invention overcome the problem that the cytoplasm cannot be accurately segmented due to the lack of intensity information in the overlapping area. Compared with the existing prior shape-based technology, the method and system of the present invention provide a more accurate overlapping area cytoplasm segmentation method and system by establishing an infinite set of shape assumptions, calculating and evolving local prior shapes and overall prior shapes, and applying shape constraints to the final result.
[0097] The method and system of the present invention are not limited to use in cervical cancer detection, and those skilled in the art can make appropriate modifications to apply the method and system of the present invention to other microscopic examination images for quantitative measurement of cell-level characteristics, such as pathological image measurement.
[0098] Although the present invention has been described above with reference to a specific embodiment of a method and system for segmenting overlapping cytoplasm based on a priori shape detection, it is of course conceivable that many variations can be derived by a person skilled in the art, and therefore, variations that are easily conceivable to a person skilled in the art are considered to be part of the present invention. The scope of the present invention is defined in the appended claims.
Claims
1. A method for segmenting overlapping cytoplasm in a medical image, wherein include: Establish a set of cytoplasm shape hypotheses; as well as A constrained multi-shape evolution is performed by selecting a shape hypothesis for each cytoplasm from a set of established cytoplasm shape hypotheses to segment overlapping cytoplasms in medical images. The constrained multi-shape evolution comprises the following steps: a mass region segmentation, which segments a mass region in the medical image composed of a plurality of overlapping cytoplasms to provide mass evidence; shape alignment, which is used to assess the quality of a chosen shape hypothesis; and shape evolution, which determines a better shape hypothesis for each cytoplasm, The shape alignment includes filling the shape hypothesis selected from the cytoplasm shape hypothesis set to obtain a binary image, and using the following formula to obtain the rotation angle and scaling size required for the binary image to be aligned with the corresponding cytoplasm: Among them, B c An image showing the segmented cluster area; B i Denotes the aligned result image, B i Yes and B c Binary images of the same size and need B i In B c interior.
2. The method according to claim 1 further comprises the step of updating the learned shape instance importance of the cytoplasm shape instance for the established cytoplasm shape hypothesis set.
3. The method according to claim 1, in, The shape alignment and the shape evolution are performed iteratively, and the output of shape alignment serves as the input of shape evolution, and the output of shape evolution serves as the input of shape alignment. The shape alignment evaluates whether it is necessary to start a new shape evolution. Once it is determined that a new shape evolution is not needed, the current shape hypothesis after shape alignment is the segmentation result of the overlapping cytoplasm.
4. The method according to claim 1, in, The cytoplasm shape hypothesis set is established by the following formula: Where μ represents the average shape of the collected shape instances, Mx i The linear combination of the eigenvectors of the covariance matrix of the collected shape, where each column of the matrix M is an eigenvector, x i is the weight vector of the linear combination, s i Represents the shape hypothesis indexed by i.
5. The method according to claim 1, in, The shape evolution includes: -Set the objective function, which is: Among them, x represents the set x k represents the k-th evolution of x; N represents the amount of cytoplasm in the mass area; The alignment result is The generated binary image; (x, y) represents the coordinates of the pixel in the image; and - Make sure you can With ratio x k Lower values of x k+1 .
6. The method according to claim 5, in, The determination enables With ratio x k Lower values of x k+1 include: -For the matrix p obtained from the objective function, Taylor's theorem is used to obtain the formula: in, and Respectively represent the gradient and Hessian matrix calculation; γ is a scalar between the interval (0, 1), so as to obtain k As the center of the circle, with ||p|| 2 The radius of the area The overall regional minimum value of -Back to x k Approximate Among them, m k Represents x k Where -By m k The minimum value of The minimum value of , and solve the formula by the trust region method: as well as -Get the output result of the kth evolution: x k+1 =x k +p * .
7. The method according to claim 2, in, The step of learning the importance of shape instances comprises: - Randomly select a group of shape instances and calculate the average shape of the group of shape instances according to the following formula: Among them, K s is the number of selected shape instances; w i is each shape instance s i The importance of W is the importance of all w i and, -Calculate the covariance matrix based on the obtained μ: Among them, the matrix M c The first t eigenvectors of form the matrix M = (e 1 e 2 … e t ), whose corresponding eigenvalue is λ 1 ≥λ 2 ≥…≥λ t .
8. The method according to claim 7, in, If the segmentation result obtained by the constrained multi-shape evolution is greater than a predetermined threshold, the step of learning the shape instance importance is recalculated to update the shape hypothesis set; the update is stopped until the segmentation result can no longer be reduced or reaches the predetermined threshold.
9. A system for segmenting overlapping cytoplasm in a medical image, wherein include: a shape hypothesis set module for building a cytoplasm shape hypothesis set; as well as A multiple shape evolution module for performing constrained multiple shape evolution by selecting a shape hypothesis for each cytoplasm from a set of established cytoplasm shape hypotheses to segment overlapping cytoplasms in medical images, Wherein, the multi-shape evolution module is configured to perform the following steps: a mass region segmentation, which segments a mass region in the medical image composed of a plurality of overlapping cytoplasms to provide mass evidence; shape alignment, which is used to assess the quality of a chosen shape hypothesis; and shape evolution, which determines a better shape hypothesis for each cytoplasm, The shape alignment includes filling the shape hypothesis selected from the cytoplasm shape hypothesis set to obtain a binary image, and using the following formula to obtain the rotation angle and scaling size required for the binary image to be aligned with the corresponding cytoplasm: Among them, B c An image showing the segmented cluster area; B i Denotes the aligned result image, B i Yes and B c Binary images of the same size and need B i In B c interior.
10. The system of claim 9, further comprising a learning shape instance importance module that updates cytoplasm shape instances for the established cytoplasm shape hypothesis set.
11. The system according to claim 9, in, The shape alignment and the shape evolution are performed iteratively, and the output of shape alignment serves as the input of shape evolution, and the output of shape evolution serves as the input of shape alignment. The shape alignment evaluates whether it is necessary to start a new shape evolution. Once it is determined that a new shape evolution is not needed, the current shape hypothesis after shape alignment is the segmentation result of the overlapping cytoplasm.
12. The system according to claim 9, in, The cytoplasm shape hypothesis set is established by the following formula: Where μ represents the average shape of the collected shape instances, Mx i The linear combination of the eigenvectors of the covariance matrix of the collected shape, where each column of the matrix M is an eigenvector, x i is the weight vector of the linear combination, s i Represents the shape hypothesis indexed by i.
13. The system according to claim 9, in, The shape evolution includes: -Set the objective function, which is: Among them, x represents the set x k represents the k-th evolution of x; N represents the amount of cytoplasm in the mass area; B i , is the result of the alignment The generated binary image; (x, y) represents the coordinates of the pixel in the image; and - Make sure you can With ratio x k Lower values of x k+1 .
14. The system according to claim 13, in, The determination enables With ratio x k Lower values of x k+1 include: -For the matrix p obtained from the objective function, Taylor's theorem is used to obtain the formula: in, and Respectively represent the gradient and Hessian matrix calculation; γ is a scalar between the interval (0, 1), so as to obtain k As the center of the circle, with ||p|| 2 The radius of the area The overall regional minimum value of -Back to x k Approximate Among them, m k Represents x k Where -By m k The minimum value of The minimum value of , and solve the formula by the trust region method: as well as -Get the output result of the kth evolution: x k+1 =x k +p * .
15. The system according to claim 10, in, The learning shape instance importance module is configured as follows: - Randomly select a group of shape instances and calculate the average shape of the group of shape instances according to the following formula: Among them, K s is the number of selected shape instances; w i is each shape instance s i The importance of W is the importance of all w i and, -Calculate the covariance matrix based on the obtained μ: Among them, the matrix M c The first t eigenvectors of form the matrix M = (e 1 e 2 … e t ), whose corresponding eigenvalue is λ 1 ≥λ 2 ≥…≥λ t .
16. The system according to claim 15, in, If the segmentation result obtained by the constrained multi-shape evolution module is greater than a predetermined threshold, the learned shape instance importance module recalculates to update the shape hypothesis set; the update is stopped until the segmentation result can no longer be reduced or reaches the predetermined threshold.
