A semi-supervised clustering method for cerebral infarction lesion images

Through a semi-supervised clustering method for cerebral infarction lesions and using the inter-class balance factor and membership fusion mechanism, the class imbalance and complexity problems in DWI image segmentation are solved, and the accuracy and efficiency of cerebral infarction lesion segmentation are improved.

CN118397389BActive Publication Date: 2024-10-29CHANGSHU FIRST PEOPLES HOSPITAL (CHANGSHU OCCUPATIONAL DISEASE HOSPITAL)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410457395.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-16
Publication Date
2024-10-29
Estimated Expiration
2044-04-16

AI Technical Summary

Technical Problem

Existing automated image segmentation methods face problems of quality, diversity, shape, and boundary complexity when processing DWI images and segmenting stroke lesions. The design and training process are complex, require a large amount of data and computing resources, and are difficult to interpret and verify complex cases.

Method used

Using a semi-supervised clustering method for cerebral obstruction lesions, by constructing an objective function, combined with the inter-class balance factor and membership fusion mechanism, it processes unlabeled and labeled samples, iteratively calculates the cluster center and membership matrix, and solves the class imbalance. problems and improve classification accuracy.

Benefits of technology

It improves the accuracy and efficiency of lesion segmentation in DWI images of cerebral infarction, especially when dealing with class imbalance problems, showing higher accuracy and stability, and enhancing the sensitivity and classification accuracy of the algorithm.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118397389B_ABST
    Figure CN118397389B_ABST
Patent Text Reader

Abstract

The present invention discloses a semi-supervised clustering method for cerebral infarction lesion images, comprising constructing an objective function, and inputting image samples, wherein the image samples include unlabeled samples and labeled samples; presetting the number of iterations and stopping conditions, and inputting a known membership matrix of the samples; randomly initializing cluster centers, and calculating an initial membership matrix; iteratively calculating cluster centers and membership matrices, and judging whether the preset number of iterations is reached and the stopping conditions are satisfied: if so, outputting the cluster centers and membership matrices; if not, updating the number of iterations, and recalculating new cluster centers and new membership matrices, which can effectively solve the class imbalance problem, and by adjusting the weights of different categories, enable the algorithm to more fairly process classes of different sizes; the membership fusion mechanism enhances the sensitivity of the algorithm to data point classification and improves the accuracy of classification; the combination of the two makes the algorithm have significant advantages in the field of medical image segmentation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of medical image processing, and in particular to a semi-supervised clustering method for cerebral infarction lesion images. Background Art

[0002] In the existing technology, although automated image segmentation methods such as deep learning models can effectively improve the certainty of lesion areas and help early detection and effective treatment of stroke, these methods face many challenges and limitations when processing DWI images and segmenting stroke lesions. The quality of the image, the diversity of lesions, and the complexity of lesion shape, size, and boundaries may affect the accuracy of segmentation. In addition, although the existing segmentation methods are effective, their design and training process is quite complex and requires a lot of data and computing resources. For complex cases, these automated methods still require the knowledge and experience of professional doctors to interpret and verify the segmentation results. Therefore, a semi-supervised clustering method for cerebral infarction lesion images is urgently needed to solve the above problems. Summary of the invention

[0003] The purpose of the present invention is to provide a semi-supervised clustering method for cerebral infarction lesion images, which can effectively solve the problems existing in the above-mentioned prior art.

[0004] To solve the above technical problems, the present invention adopts the following technical solution: a semi-supervised clustering method for cerebral infarction lesion images, comprising the following steps:

[0005] Constructing an objective function and inputting image samples, wherein the image samples include unlabeled samples and labeled samples;

[0006] Preset the number of iterations and stop conditions, and input the known membership matrix of the samples;

[0007] Randomly initialize the cluster centers and calculate the initial membership matrix;

[0008] Iteratively calculate the cluster center and membership matrix, and determine whether the preset number of iterations is reached and the stop condition is met:

[0009] If so, output the cluster center and membership matrix;

[0010] If not, update the number of iterations and recalculate the new cluster centers and the new membership matrix.

[0011] Preferably, the objective function is specifically:

[0012]

[0013] in, is the unlabeled sample data loss, involving unlabeled sample data, σ iis the inter-class balance factor, m is the fuzzy coefficient, m∈(1,100]; is the labeled sample data loss, involving labeled sample data, η is the supervision rate, η∈[0,1), α is the scale factor, b j is a Boolean value representing whether there is a label at j, f ij is the supervision information, C is the number of clustering categories, N is the total number of samples, and u ij is the degree of membership, d ij is the distance between the jth sample and the centroid of the i-th class.

[0014] Preferably, the scale factor α is Among them, L is the number of labeled samples.

[0015] Preferably, for the labeled samples in the sample, define: b = [b j ]j=1,2,…,n;

[0016] in:

[0017] Preferably, the membership matrix of the input of the unlabeled sample is random.

[0018] Preferably, the membership of the labeled sample is: F = [f ij ]i=1,2,…,c,j=1,2,…,n.

[0019] Preferably, the cluster center iterative calculation formula is:

[0020]

[0021] Preferably, the membership matrix iteration formula is:

[0022]

[0023] Beneficial effects: The present invention processes image samples by constructing an objective function, thereby improving the accuracy and efficiency of lesion segmentation in cerebral infarction DWI images, especially showing higher precision and stability when dealing with class imbalance problems; wherein, the inter-class balance factor and membership fusion mechanism are introduced in the objective function; the inter-class balance factor can effectively solve the class imbalance problem, and by adjusting the weights of different categories, the algorithm can more fairly handle classes of different sizes; the membership fusion mechanism enhances the algorithm's sensitivity to data point classification and improves classification accuracy; the combination of the two makes the algorithm have significant advantages in the field of medical image segmentation. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention.

[0025] In the attached picture:

[0026] Figure 1 The present invention is a flowchart of a semi-supervised clustering algorithm for cerebral infarction lesion images. DETAILED DESCRIPTION

[0027] The embodiments of the present invention are described below in conjunction with the drawings in the embodiments of the present invention. The terms used in the implementation mode of the present invention are only used to explain the specific embodiments of the present invention, and are not intended to limit the present invention. The embodiments of the present application are described below in conjunction with the drawings.

[0028] Example: Figure 1 As shown, a semi-supervised clustering method for cerebral infarction lesion images includes the following steps:

[0029] Construct the objective function and input image samples, which include unlabeled samples and labeled samples;

[0030] The specific objective function is:

[0031]

[0032] in, is the unlabeled sample data loss, involving unlabeled sample data, σ i is the inter-class balance factor, m is the fuzzy coefficient, m∈(1,100]; is the labeled sample data loss, involving labeled sample data, η is the supervision rate, η∈[0,1), α is the scale factor, b j is a Boolean value representing whether there is a label at j, f ij is the supervision information, C is the number of clustering categories, N is the total number of samples, and u ij is the degree of membership, d ij is the distance between the jth sample and the centroid of the i-th class;

[0033] Among them, the description of each parameter in the objective function is:

[0034] Introducing inter-class balancing factor σ i In the process of achieving balance between different categories of unlabeled data, the different degrees of influence of each category on unlabeled data processing are intuitively handled. By adjusting the contribution of different categories, σ iAims to coordinate their influence and ensure that no one category has a disproportionate impact on the model's learning process from unlabeled data; when there is a class imbalance in the categories you want to split, in traditional fuzzy clustering algorithms, small classes can tolerate larger ones because of their small number. This leads to the phenomenon of incorrect clustering of members of small categories; they are sometimes classified into a category without semantics that should not exist because this category is large, and traditional fuzzy clustering methods tend to cluster data into categories of similar size due to the characteristics of their objective functions;

[0035] This is acceptable when the purpose of clustering is to find hidden commonalities or patterns between data. However, when clustering is used as a means of medical image segmentation, the features of the categories are often known and the purpose is to use the features for segmentation. In this case, the emergence of such categories that are large but lack semantics is unnecessary and should be avoided.

[0036] In addition, the objective function of the present invention introduces the guidance of prior knowledge (|u ij -f ij | m ), so that the order of categories in the clustering process is no longer random, but the clustering tendency is known before clustering, so their corresponding relationship is often in line with expectations;

[0037] By i Introduced into the unsupervised term, we get When the inter-class balance factor σ, the membership degree, or the distance is small, the single unsupervised term is small; when the membership degree is 0 or the distance is 0, the single unsupervised term is minimized; and when all three values ​​are large, the term is large; therefore, when it is necessary that a smaller class is not ignored, as long as the σ corresponding to the class is set larger, the objective function for this class is More sensitive, encouraging smaller Value, and vice versa; the inter-class balance factor σ i The purpose of adding is to make the algorithm not only adapt to diverse data sets, but also perform better when dealing with category imbalance and data sparsity problems.

[0038] In order to strategically balance the impact of labeled data and unlabeled data in the model, the supervision rate η is introduced into the objective function; the performance of the model is optimized by precisely adjusting the weight given to each data type.

[0039] In addition, an adaptive parameter α is added to the objective function to fine-tune the overall impact of label data on our algorithm; α is based on the formula Dynamic adjustment, L is the number of labeled samples; this adjustment depends on the relative size of the labeled and unlabeled pattern sets, and adjusts the impact of labeled pixels according to their proportion in the dataset to ensure that they are fully taken into account.

[0040] In the above sample, the binary vector b=[b j ]j=1,2,…,n, It can clearly distinguish between labeled and unlabeled modes, which is convenient for more accurate algorithm adjustment; the membership degree of labeled samples is expressed in the matrix F = [f ij ]i=1,2,…,c,j=1,2,…,n, and is intended to quantitatively represent the association of each sample with the identified category; by providing a structured framework to evaluate the certainty of each label association, this matrix is ​​key to refining the classification accuracy of our model.

[0041] The number of iterations loop is preset, for example, within 100 and the stop condition ε is set, and the known membership matrix of the sample is input; wherein the input membership matrix of the unlabeled sample is random;

[0042] Initialize the iteration counter t=0, randomly initialize the cluster center V(t); calculate the initial membership matrix;

[0043] Iteratively calculate the cluster center V(t+1) and the membership matrix, and determine whether the preset number of iterations is reached and the stop condition is met:

[0044] If so, the cluster center and membership matrix are output; that is, the number of iterations is satisfied, and the difference between the cluster centers calculated in adjacent iterations is less than the stopping condition ε: ||V(t+1)-V(t)||<ε;

[0045] If not, update the number of iterations and recalculate the new cluster centers and the new membership matrix.

[0046] For the above calculations, an iterative algorithm for minimizing the objective function is derived by evaluating the centroids and memberships that satisfy the zero gradient condition; Lagrange multipliers are used to enforce Constraints, and take the objective function relative to u ij The partial derivative of , we get:

[0047]

[0048] Let the partial derivative equal to 0, when m = 2, there is an explicit formula:

[0049]

[0050] To solve λ j , using the constraint equation get:

[0051]

[0052] λ j Expressed as:

[0053]

[0054] Based on the above, we can conclude that u ij Necessary conditions for being in the local minimum of the objective function:

[0055]

[0056] The presence of the m parameter in the supervision term allows u ij Get elegant expressions;

[0057] About cluster center v i The iterative formula is to take the objective function relative to v i The partial derivative of , we get:

[0058]

[0059] Let the partial derivative equal to 0:

[0060]

[0061] When the preset number of iterations and the stopping condition are met at the same time, the cluster center and membership matrix are output.

[0062] The embodiments of the present invention are described in detail above in conjunction with the accompanying drawings, but the present invention is not limited to the above embodiments. For ordinary technicians in this technical field, after knowing the contents recorded in the present invention, they can make several equivalent changes and substitutions without departing from the principle of the present invention. These equivalent changes and substitutions should also be regarded as belonging to the protection scope of the present invention.

Claims

1. A semi-supervised clustering method for cerebral infarction lesion images. It is characterized in that The steps include: Constructing an objective function and inputting image samples, wherein the image samples include unlabeled samples and labeled samples; The objective function is specifically: in, is the unlabeled sample data loss, involving unlabeled sample data, σ i is the inter-class balance factor, m is the fuzzy coefficient, m∈(1,100]; is the labeled sample data loss, involving labeled sample data, η is the supervision rate, η∈[0,1), α is the scale factor, b j is a Boolean value representing whether there is a label at j, f ij is the supervision information, C is the number of clustering categories, N is the total number of samples, and u ij is the degree of membership, d ij is the distance between the jth sample and the centroid of the i-th class; Preset the number of iterations and stop conditions, and input the known membership matrix of the samples; Randomly initialize the cluster centers and calculate the initial membership matrix; The iterative calculation formula of cluster center is: The membership matrix iteration formula is: Iteratively calculate the cluster center and membership matrix, and determine whether the preset number of iterations is reached and the stop condition is met: If so, output the cluster center and membership matrix; If not, update the number of iterations and recalculate the new cluster centers and the new membership matrix.

2. A semi-supervised clustering method for cerebral infarction lesion images according to claim 1, Features: Scale factor α, Among them, L is the number of labeled samples.

3. A semi-supervised clustering method for cerebral infarction lesion images according to claim 1, Features: For the labeled samples in the sample definition: b = [b j ]j=1,2,…,n;where:

4. The semi-supervised clustering method for cerebral infarction lesion images according to claim 1, Features: The membership matrix of the input of unlabeled samples is random.

5. The semi-supervised clustering method for cerebral infarction lesion images according to claim 1, Features: The membership degree of labeled samples is: F = [f ij ]i=1,2,…,c,j=1,2,…,n.