A semi-supervised classification method for cervical cell images based on granularity optimization features
Through the combination of granular optimization features and BP neural network, a small amount of labeled data and unlabeled data are used for semi-supervised classification of cervical cell images, which solves the problem of massive data and imbalance, improves classification accuracy and efficiency, and reduces misjudgments. Rate.
Patent Information
- Application Number
- CN202111163979.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-30
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-09-30
AI Technical Summary
Existing technology is difficult to effectively utilize unlabeled data for semi-supervised classification of cervical cell images, resulting in low classification accuracy and efficiency. Especially when faced with massive data and imbalance problems, medical personnel need to perform manual analysis for a long time to reduce misjudgments. .
Using a method based on granularity optimization features, the features are optimized through the category membership fuzzy method and the nearest neighbor rough set method. Combined with the BP neural network, a small amount of labeled data is used to train the base classifier, and the labeled data set is expanded by selecting candidate samples from unlabeled data. , repeatedly train the BP network until the corresponding standard is reached.
It improves the classification accuracy of cervical cell images, effectively utilizes unlabeled data, reduces the scale of sample granularity features, reduces the misjudgment rate, and improves recognition efficiency.
Smart Images

Figure CN113902006B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of medical image processing, and in particular relates to a semi-supervised classification method of cervical cell images based on granularity optimization features. Background Art
[0002] At present, with the gradual improvement of electronic patient files and medical records, hospital information systems, etc. in medical institutions, hospitals collect more and more digital image data of patients, and the same is true for cervical cell images. Therefore, how to use precious and massive image resources to assist medical work is a new issue facing medical workers and scientists. The tissue samples collected by hospital samplers from a woman contain dozens to hundreds of cells, so there are thousands of cells to be checked for a hundred women. There are more than one billion people in my country, and there are also hundreds of millions of women who meet the conditions for cervical cancer. If each person does a Pap test once a year, it is roughly estimated that there are at least billions of cells to be observed one by one to determine whether they are cancerous. Medical personnel have to use the naked eye to find several or dozens of cancer cells with tiny cancerous changes from thousands of microscopic images of cervical cells, which is a huge workload. In addition, medical personnel will inevitably miss or misjudge some cancer cells after a long and boring reading of images. If the intelligent analysis system based on artificial intelligence technology can correctly and efficiently perform quantitative cell analysis, then the use of intelligent analysis systems to assist medical work can reduce the misjudgment rate of cancer cells and improve recognition efficiency.
[0003] Accurate cervical cell multi-classification models rely heavily on a large number of labeled training samples, but a large number of labeled training samples is precisely the bottleneck in the field of medical image data classification. Moreover, for medical image data, many image analysis applications often face serious imbalance problems (dimensionality curse), that is, a limited number of training samples are accompanied by higher dimensions, making the decision process more difficult. Under the above unavoidable conditions, using semi-supervised learning granular neural networks to improve the performance of classification models is a new research direction.
[0004] In conclusion, for the intelligent analysis of cervical cell images, classification is an important foothold of intelligent analysis. Therefore, the present invention proposes a method for accurately and effectively using unlabeled data to perform semi-supervised classification on cervical cell images. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a semi-supervised classification method for cervical cell images based on granularity optimization features, using a BP neural network trained with a small amount of labeled data sets as a base classifier, and using a strategy of expanding the labeled data set by selecting candidate samples from unlabeled data, repeatedly expanding the labeled data set and training the BP neural network to achieve accurate classification of color cervical cell images. The semi-supervised classification method for cervical cell images based on granularity optimization features proposed by the present invention has the advantages of both the BP neural network model and the granularity feature optimization selection algorithm, and can effectively utilize unlabeled cervical cell data, thereby improving the classification accuracy of cervical cell images.
[0006] In order to solve the above technical problems, an embodiment of the present invention provides a semi-supervised classification method of cervical cell images based on granularity optimization features, comprising the following steps:
[0007] (1) Using limited labeled training samples and the category membership fuzzy method, the granular characteristics of the test samples are obtained;
[0008] (2) Use the nearest neighbor rough set method to remove redundant features and optimize the granularity features to reduce the scale of sample granularity features;
[0009] (3) Use the labeled samples to train the BP neural network to obtain the base classifier;
[0010] (4) Continuously select candidate samples from the unlabeled sample data for labeling, expand the newly labeled candidate samples into the original training samples to retrain the BP network, and repeat the expansion and retraining process until the number of labeled samples reaches the corresponding standard.
[0011] Among them, in the step (1), the goal of the category membership fuzzy method is to characterize each feature into a fuzzy membership, and reconstruct the original feature using the category membership information. The specific steps are:
[0012] (1-1) Assume that each sample has n-dimensional features F i =(F i1 ,F i2 ,…,F in ), each dimension of the sample is represented as a fuzzy granularity, and a matrix of size n×C is obtained:
[0013] F i '=[μ1(F i1 ),μ2(F i1 ),…,μ c (F i1 ),…,μ C (F i1 ),
[0014] μ1(F i2 ),μ2(Fi2 ),…,μ c (F i2 ),…,μ C (F i2 ),…,
[0015] μ1(F in ),μ2(F in ),…,μ c (F in ),…,μ C (F in )];
[0016] Among them, C (c = 1, 2, ..., C) is the number of sample categories, μ1 (F in ),μ2(F in ),…,μ c (F in ),…,μ C (F in ) represents the degree of membership of each dimensional feature of the sample to different categories;
[0017] (1-2) Map the membership of each feature category to the fuzzy granularity space, and the space element is: μ(F in ; a, r, b)
[0018] =0 F in ≤a,
[0019] =2 N-1 [(F in -a)÷(ra)] N a <F in ≤p,
[0020] =1-2 N-1 [(rF in )÷(ra)] N p <F in ≤r,
[0021] =1-2 N-1 [(F in -r)÷(br)] N r <F in ≤q,
[0022] =2 N-1 [(bF in )÷(br)] N q <F in ≤ b,
[0023] =0 F in ≥ b;
[0024] Where N is the fuzziness of the membership function, which is 2. The center of the fuzzy membership function is r = (p + q) ÷ 2, and p and q are the intersection points.
[0025] When the training sample is closer to category C, the value of r is closer to 1; when the sample is closer to the intersection, the value is closer to 0.5; the center point of the training sample r = mean (F n ), is the average value of the n-th dimension feature;
[0026] The estimation formula for the above intersection point is:
[0027] p=mean(F n )-[max(F n )-min(F n )]÷2,
[0028] q=mean(F n )+[max(F n )-min(F n )]÷2;
[0029] Among them, max(F n ) and min(F n ) are the maximum and minimum values of the n-th dimension feature.
[0030] The estimation formula for extreme points is:
[0031] a=mean(F n )-[max(F n )-min(F n )],
[0032] b=mean(F n )+[max(F n )-min(F n )];
[0033] (1-3) Save the fuzzy granular feature expression of the above training and test samples;
[0034] (1-4) The fuzzy granular features are divided into conditional features D and decision features E. The conditional features D represent the descriptive and pattern information of the samples, and the decision features E represent the category labels assigned to the conditional features.
[0035] The specific steps of step (2) are as follows:
[0036] (2-1) Starting from the empty set, gradually select features and expand the set red;
[0037] (2-2) The loop starts, for each unselected conditional feature set element a i Make a selection;
[0038] (2-3) In the loop body, calculate a i Dependency Factor:
[0039] (2-4) In the loop body, calculate a i The importance of the feature Sig(a i ,red,D)=γ red∪a (D)-γ red (D);
[0040] (2-5) The cycle ends;
[0041] (2-6) Select feature a with the largest importance Sig k ;
[0042] (2-7) If feature a k The importance Sig is greater than ε, then a k Add the red set and return to step 2, where ε is a positive real number used to control convergence;
[0043] (2-8) If feature a k If the importance Sig is less than or equal to ε, then the output set is red.
[0044] The specific steps of step (3) are as follows:
[0045] (3-1) Initialization setting, assign all network coefficients to the smallest random number;
[0046] (3-2) Assign the training sample feature values to the input layer neurons and assign the training sample labels to the output neurons;
[0047] (3-3) Calculate the actual output: Calculate the output of each neuron in the hidden layer and output layer;
[0048] (3-4) Calculate the error between the expected value and the actual output. The error function is:
[0049] Where L is the number of network output nodes, k is any neuron, t is the target value, o is the actual output value, and p is any sample;
[0050] (3-5) Adjust the weight coefficient w of the output layer ki , the weight increment formula of any neuron k when acting on sample p is: Where η is the learning rate;
[0051] (3-6) Adjust the weight coefficient w of the hidden layer ij , the weight increment formula of any neuron i when acting on sample p is:
[0052] (3-7) Return to step (3-3) until the guidance error meets the requirements.
[0053] The specific steps of step (4) are as follows:
[0054] (4-1) Select multiple unlabeled test samples of the same category and perform the following calculations respectively to select several candidate samples;
[0055] (4-2) Calculate the confusion matrix CM of the classifier;
[0056] (4-3) Calculate the DS score for each category:
[0057] Among them, c (values 1, 2, ..., C) is the number of categories, V c is the covariance of the cth row of CM, is the maximum possible variance up to row c, Z c is the number of zero elements in the cth row of CM;
[0058] (4-4) Select the test sample with the lowest DS score;
[0059] (4-5) Condition 1: Mark the test sample with the highest reliability (i.e., the smaller DS value) (unlabeled sample);
[0060] (4-6) Condition 2: Calculate and select the test sample that is closest to the training sample;
[0061] (4-7) Among the test samples that meet condition 1, select the test samples that meet condition 2 as candidate samples;
[0062] (4-8) Add candidate samples to the training samples.
[0063] The beneficial effects of the above technical solution of the present invention are as follows:
[0064] The present invention adopts a semi-supervised classification method for cervical cell images based on granularity optimization features, which combines the features after granularity optimization with the BP neural network model to accurately classify color cervical cell images. The semi-supervised classification method for cervical cell images based on granularity optimization features proposed in the present invention has the advantages of both the BP neural network model and the granularity feature optimization selection algorithm, and can effectively utilize unlabeled cervical cell data, thereby improving the classification accuracy of cervical cell images. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] Figure 1 It is a schematic diagram of BP neural network model;
[0066] Figure 2 It is a schematic diagram of the overall process of the present invention; DETAILED DESCRIPTION
[0067] In order to make the technical problems to be solved, technical solutions and advantages of the present invention more clear, a detailed description is given below with reference to the accompanying drawings and specific embodiments.
[0068] The present invention provides a semi-supervised classification method for cervical cell images based on granularity optimization features, comprising the following steps:
[0069] (1) Using limited labeled training samples and the category membership fuzzy method, the granular characteristics of the test samples are obtained;
[0070] (2) Use the nearest neighbor rough set method to remove redundant features and optimize the granularity features to reduce the scale of sample granularity features;
[0071] (3) Use the labeled samples to train the BP neural network to obtain the base classifier;
[0072] (4) Continuously select candidate samples from the unlabeled sample data for labeling, expand the newly labeled candidate samples into the original training samples to retrain the BP network, and repeat the expansion and retraining process until the number of labeled samples reaches the corresponding standard.
[0073] The specific implementation process of the present invention is as follows Figure 2 The specific implementation details of each part are as follows:
[0074] (1) Using limited labeled training samples and the category membership fuzzy method, the granular features of the training and test samples are obtained. The specific steps are as follows:
[0075] (1-1) Assume that each sample has n-dimensional features F i =(F i1 ,F i2 ,…,F in ), each dimension of the sample is represented as a fuzzy granularity, and a matrix of size n×C is obtained:
[0076] F i '=[μ1(F i1 ),μ2(F i1 ),…,μ c (F i1 ),…,μ C (F i1 ),
[0077] μ1(F i2 ),μ2(F i2 ),…,μ c (F i2 ),…,μ C (Fi2 ),…,
[0078] μ1(F in ),μ2(F in ),…,μ c (F in ),…,μ C (F in )];
[0079] Among them, C (c = 1, 2, ..., C) is the number of sample categories, μ1 (F in ),μ2(F in ),…,μ c (F in ),…,μ C (F in ) represents the degree of membership of each dimensional feature of the sample to different categories.
[0080] (1-2) Map the membership of each feature category to the fuzzy granularity space, and the space element is: μ(F in ; a, r, b)
[0081] =0 F in ≤a,
[0082] =2 N-1 [(F in -a)÷(ra)] N a <F in ≤p,
[0083] =1-2 N-1 [(rF in )÷(ra)] N p <F in ≤r,
[0084] =1-2 N-1 [(F in -r)÷(br)] N r <F in ≤q,
[0085] =2 N-1 [(bF in )÷(br)] N q <F in ≤ b,
[0086] =0 F in ≥ b;
[0087] Wherein, N is the fuzziness of the membership function, which is 2, the center of the fuzzy membership function is r=(p+q)÷2, and p and q are intersection points.
[0088] When the training sample is closer to category C, the value of r is closer to 1; when the sample is closer to the intersection, the value is closer to 0.5; the center point of the training sample r = mean (F n ), is the average value of the n-th dimension feature;
[0089] The estimation formula for the above intersection point is:
[0090] p=mean(F n )-[max(F n )-min(F n )]÷2,
[0091] q=mean(F n )+[max(F n )-min(F n )]÷2,
[0092] Among them, max(F n ) and min(F n ) are the maximum and minimum values of the n-th dimension feature.
[0093] The estimation formula for extreme points is:
[0094] a=mean(F n )-[max(F n )-min(F n )],
[0095] b=mean(F n )+[max(F n )-min(F n )].
[0096] (1-3) Save the fuzzy granular feature expression of the above training and test samples;
[0097] (1-4) The fuzzy granular features are divided into conditional features D and decision features E. The conditional features D represent the descriptive and pattern information of the samples, and the decision features E represent the category labels assigned to the conditional features.
[0098] (2) Use the nearest neighbor rough set method to remove redundant features and optimize the granularity features to reduce the scale of sample granularity features, such as Figure 1 As shown, the BP neural network model includes an input layer, a hidden layer and an output layer. Each layer contains a number of neuron nodes. The neuron nodes in adjacent layers are fully connected, and there are weight coefficients on the connecting edges. The specific steps are:
[0099] (2-1) Starting from the empty set, gradually select features and expand the set red;
[0100] (2-2) The loop starts, for each unselected conditional feature set element a i Make a selection;
[0101] (2-3) In the loop body, calculate a i Dependency Factor:
[0102] (2-4) In the loop body, calculate a i The importance of the feature Sig(a i ,red,D)=γ red∪a (D)-γ red (D);
[0103] (2-5) The cycle ends;
[0104] (2-6) Select feature a with the largest importance Sig k ;
[0105] (2-7) If feature a k The importance Sig is greater than ε, then a k Add the red set and return to step 2, where ε is a positive real number used to control convergence;
[0106] (2-8) If feature a k If the importance Sig is less than or equal to ε, then the output set is red.
[0107] (3) Use the labeled samples to train the BP neural network to obtain the base classifier; Figure 1 As shown, the BP neural network model includes an input layer, a hidden layer and an output layer. Each layer contains a number of neuron nodes. The neuron nodes in adjacent layers are fully connected, and there are weight coefficients on the connecting edges. The specific steps of the BP neural network training are:
[0108] (3-1) Initialization setting, assign all network coefficients to the smallest random number;
[0109] (3-2) Assign the training sample feature values to the input layer neurons and assign the training sample labels to the output neurons;
[0110] (3-3) Calculate the actual output: Calculate the output of each neuron in the hidden layer and output layer;
[0111] (3-4) Calculate the error between the expected value and the actual output. The error function is:
[0112] Where L is the number of network output nodes, k is any neuron, t is the target value, o is the actual output value, and p is any sample;
[0113] (3-5) Adjust the weight coefficient w of the output layer ki , the weight increment formula of any neuron k when acting on sample p is: Where η is the learning rate;
[0114] (3-6) Adjust the weight coefficient w of the hidden layer ij , the weight increment formula of any neuron i when acting on sample p is:
[0115] (3-7) Return to step (3-3) until the guidance error meets the requirements.
[0116] (4) Continuously select candidate samples from the unlabeled sample data for labeling, expand the newly labeled candidate samples into the original training samples to retrain the BP network, and repeat the expansion and retraining process until the number of labeled samples reaches the corresponding standard. The specific steps are as follows:
[0117] (4-1) Select multiple unlabeled test samples of the same category and perform the following calculations respectively to select several candidate samples;
[0118] (4-2) Calculate the confusion matrix CM of the classifier;
[0119] (4-3) Calculate the DS score for each category:
[0120] Among them, c (values 1, 2, ..., C) is the number of categories, V c is the covariance of the cth row of CM, is the maximum possible variance up to row c, Z c is the number of zero elements in the cth row of CM;
[0121] (4-4) Select the test sample with the lowest DS score;
[0122] (4-5) Condition 1: Mark the test sample with the highest reliability (i.e., the smaller DS value) (unlabeled sample);
[0123] (4-6) Condition 2: Calculate and select the test sample that is closest to the training sample;
[0124] (4-7) Among the test samples that meet condition 1, select the test samples that meet condition 2 as candidate samples;
[0125] (4-8) Add candidate samples to the training samples.
[0126] The two key points of modeling and solving the semi-supervised classification method of cervical cell images based on granularity optimization features provided by the present invention are:
[0127] (1) How to design an effective base classifier. The BP neural network has three layers, namely the input layer, the hidden layer and the output layer. The input granularity features and the number of data categories determine the number of input and output layer nodes. The difference of the proposed method lies in the use of granularity features as network input. First, the granularity features are used to reconstruct with clear category membership information; then the neighbor-based rough set method is used to reduce useless features and achieve the preprocessing goal of feature selection, which is the characteristic of this method.
[0128] (2) How to select useful candidate samples from unlabeled samples. Compared with other semi-supervised models, the proposed method uses the DS scoring method to evaluate the quality of selected candidate samples. The smaller the DS value, the fewer the number of misclassified samples. Therefore, given a dataset with overlapping categories, a lower DS value is expected. This method limits the search space for selecting candidate samples from the unlabeled sample set.
[0129] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A semi-supervised classification method for cervical cell images based on granularity optimization features, characterized in that: The steps include: (1) Using limited labeled training samples and the category membership fuzzy method, the granular characteristics of the test samples are obtained; (2) Use the nearest neighbor rough set method to remove redundant features and optimize the granularity features to reduce the scale of sample granularity features; (3) Use the labeled samples to train the BP neural network to obtain the base classifier; (4) Continuously select candidate samples from the unlabeled sample data for labeling, expand the newly labeled candidate samples into the original training samples to retrain the BP network, and repeat the expansion and retraining process until the number of labeled samples reaches the corresponding standard; In step (1), the goal of the category membership fuzzy method is to characterize each feature as a fuzzy membership, and to reconstruct the original feature using the category membership information. The specific steps are: (1-1) Assume that each sample has n-dimensional features F i =(F i1 ,F i2 ,…,F in ), each dimension of the sample is represented as a fuzzy granularity, and a matrix of size n×C is obtained: F' i =[μ1(F i1 ),μ2(F i1 ),…,m c (F i1 ),…,m C (F i1 ), μ1(F i2 ),μ2(F i2 ),…,m c (F i2 ),…,m C (F i2 ),…, μ1(F in ),μ2(F in ),…,m c (F in ),…,m C (F in )]; Where C is the number of sample categories, c = 1, 2, ..., C, μ1 (F in ),μ2(F in ),…,μ c (F in ),…,μ C (F in ) represents the degree of membership of each dimensional feature of the sample to different categories; (1-2) Map the membership of each feature category to the fuzzy granularity space, and the space elements are: Where N is the fuzziness of the membership function, which is 2. The center of the fuzzy membership function is r = (p + q) ÷ 2, and p and q are the intersection points. When the training sample is closer to category C, the value of r is closer to 1; when the sample is closer to the intersection, the value is closer to 0.5; the center point of the training sample r = mean (F n ), is the average value of the n-th dimension feature; The estimation formula for the above intersection point is: p=mean(F n )-[max(F n )-min(F n )]÷2, q=mean(F n )+[max(F n )-min(F n )]÷2; Among them, max(F n ) and min(F n ) is the maximum and minimum value of the n-th dimension feature; The estimation formula for extreme points is: a=mean(F n )-[max(F n )-min(F n )], b=mean(F n )+[max(F n )-min(F n )]; (1-3) Save the fuzzy granular feature expression of the above training and test samples; (1-4) The fuzzy granular features are divided into conditional features D and decision features E. The conditional features D represent the descriptive and pattern information of the samples, and the decision features E represent the category labels assigned to the conditional features.
2. According to claim 1, a semi-supervised classification method for cervical cell images based on granularity optimization features is characterized in that: The specific steps of step (2) are: (2-1) Starting from the empty set, gradually select features and expand the set red; (2-2) The loop starts, for each unselected conditional feature set element a i Make a selection; (2-3) In the loop body, calculate a i Dependency Factor: (2-4) In the loop body, calculate a i The importance of the feature Sig(a i ,red,D)=γ red∪a (D)-γ red (D); (2-5) The cycle ends; (2-6) Select feature a with the largest importance Sig k ; (2-7) If feature a k The importance Sig is greater than ε, then a k Add the red set and return to step 2, where ε is a positive real number used to control convergence; (2-8) If feature a k If the importance Sig is less than or equal to ε, then the output set is red.
3. The semi-supervised classification method of cervical cell images based on granularity optimization features according to claim 1, characterized in that: The specific steps of step (3) are: (3-1) Initialization setting, assign all network coefficients to the smallest random number; (3-2) Assign the training sample feature values to the input layer neurons and assign the training sample labels to the output neurons; (3-3) Calculate the actual output: Calculate the output of each neuron in the hidden layer and output layer; (3-4) Calculate the error between the expected value and the actual output. The error function is: Where L is the number of network output nodes, k is any neuron, t is the target value, o is the actual output value, and p is any sample; (3-5) Adjust the weight coefficient w of the output layer ki , the weight increment formula of any neuron k when acting on sample p is: Where η is the learning rate; (3-6) Adjust the weight coefficient w of the hidden layer ij , the weight increment formula of any neuron i when acting on sample p is: (3-7) Return to step (3-3) until the guidance error meets the requirements.
4. The semi-supervised classification method of cervical cell images based on granularity optimization features according to claim 1, characterized in that: The specific steps of step (4) are: (4-1) Select multiple unlabeled test samples of the same category and perform the following calculations respectively to select several candidate samples; (4-2) Calculate the confusion matrix CM of the classifier; (4-3) Calculate the DS score for each category: Where c is the number of categories, and its value is 1, 2, ..., C, V c is the covariance of the cth row of CM, is the maximum possible variance up to row c, Z c is the number of zero elements in the cth row of CM; (4-4) Select the test sample with the lowest DS score; (4-5) Condition 1: Mark the highest reliability test sample; (4-6) Condition 2: Calculate and select the test sample that is closest to the training sample; (4-7) Among the test samples that meet condition 1, select the test samples that meet condition 2 as candidate samples; (4-8) Add candidate samples to the training samples.
