Semi-supervised selection method and system for pathology slide digital image dataset
Through the semi-supervised selection method, the pathological slide digital image data set is cleaned and expanded, which solves the problem of insufficient quality of annotation results, improves the accuracy of the classification model and the stability of the data set, and enhances the versatility of the model.
Patent Information
- Application Number
- CN202210228192.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-08
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-03-08
AI Technical Summary
In the existing technology, the quality of the annotation results of digital images of pathological slides is limited, resulting in low quality training sets, which affects the accuracy of the classification model. In addition, the annotation levels of different medical institutions are different, and annotation errors may occur, affecting the versatility of the model. .
Using a semi-supervised selection method, through preparation steps and update steps, a data set with and without annotation results is formed, multiple classification models are used to evaluate the data, low-quality data is identified and cleaned, and misclassified values and consistent values are Evaluate the data set, pseudo-label the results and adjust sample weights, and update iteratively until the data set is stable.
It effectively cleans up the low-quality data in the pathology slide digital image data set, expands the high-quality data set, improves the accuracy and stability of the classification model, and enhances the credibility of the data set and the versatility of the model.
Smart Images

Figure CN114581715B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of artificial intelligence, and in particular to a semi-supervised selection method and selection system for a pathology slide digital image dataset. Background Art
[0002] As the country increases its efforts to popularize cervical screening, the demand for cervical screening in various regions has also increased. Therefore, it is of practical significance to use computer algorithm models to assist in the diagnosis of digital images of pathological slides to help pathologists speed up diagnosis.
[0003] The most common recognition process of pathology slide digital images is to first extract features from the pathology slide digital images through a classification model, and then obtain recognition results based on the image features. As the most important factor affecting the classification model, the quality of the training set is crucial. Currently, the training set is generally formed using pathology slide digital images with existing annotation results, and the classification model is trained using a fully supervised approach.
[0004] However, the number of digital images of pathology slides with annotation results is limited. The annotation levels of different medical institutions are different, and annotation errors may occur. The annotation results may also be mismatched with the digital images of pathology slides due to errors in the recording process. These situations will affect the quality of the training set and thus reduce the accuracy of the classification model. Summary of the invention
[0005] The present disclosure is completed in view of the above-mentioned state of the prior art, and its purpose is to provide a semi-supervised selection method and selection system for pathology slide digital image datasets that can clean up low-quality data in pathology slide digital image datasets and expand high-quality data.
[0006] To this end, a first aspect of the present disclosure provides a semi-supervised selection method for a pathology glass slide digital image dataset, which includes a preparation step of obtaining a plurality of pathology glass slide digital images, and forming the pathology glass slide digital images with annotation results into a first dataset, and forming the pathology glass slide digital images without annotation results into a second dataset; and an updating step of obtaining a training set and a validation set using the first dataset, training a plurality of classification models using the training set, inputting the validation sets into each of the trained classification models respectively, and obtaining each first classification result corresponding to each of the classification models respectively, forming a first classification result set using each of the first classification results, obtaining a misclassification value of each pathology glass slide digital image in the validation set based on the first classification result set, the misclassification value of each pathology glass slide digital image indicating the degree of inconsistency of the first classification result of each classification model in the first classification result set for the pathology glass slide digital image relative to the annotation result, and updating the misclassification value in the first dataset greater than the first A pathological glass slide digital image with a preset value is moved from the first data set to the second data set, the second data set is input into each of the trained classification models respectively, and each second classification result corresponding to each classification model is obtained, and a second classification result set is formed using each second classification result, and a consistency value of each pathological glass slide digital image in the second data set is obtained based on the second classification result set, the consistency value of each pathological glass slide digital image represents the degree of consistency between the second classification results of each classification model in the second data set for the pathological glass slide digital image, the second classification result with the highest probability of appearing in the second classification result set of each classification model for the pathological glass slide digital image is used as the pseudo-annotation result of the pathological glass slide digital image, and the pathological glass slide digital image with a consistency value greater than the second preset value in the second data set is moved from the second data set to the first data set, and the pseudo-annotation result of the pathological glass slide digital image is used as the annotation result of the pathological glass slide digital image.
[0007] In this case, digital images of pathology slides with and without annotation results can be obtained, the classification model can be trained using the training set and the data can be verified using the validation set, the degree of inconsistency of the classification results of the first data set relative to the annotation results can be evaluated by the misclassification value, and the most likely annotation results of the digital images of pathology slides in the second data set can be evaluated by the consistency value, so that suspicious data in the first data set can be removed, and the suspicious data can be re-evaluated subsequently and the data with higher quality and higher credibility in the second data set can be moved to the first data set, so that the data in the first data set can be expanded.
[0008] In addition, in the semi-supervised selection method of the pathology slide digital image dataset involved in the present disclosure, optionally, the updating step also includes obtaining a sample weight of the pathology slide digital image based on the consistency value of the pathology slide digital image when the pathology slide digital image with a consistency value greater than the second preset value in the second dataset is moved from the second dataset to the first dataset, and assigning a sample weight corresponding to the pathology slide digital image, wherein the sample weight indicates the importance of the pathology slide digital image. In this case, a weight can be assigned to the pathology slide digital image sample moved from the second dataset to the first dataset, and the influence of the pathology slide digital image sample moved from the second dataset to the first dataset on the first dataset is adjusted.
[0009] In addition, in the semi-supervised selection method of the pathological glass slide digital image data set involved in the present disclosure, optionally, the updating step also includes, after the pathological glass slide digital images whose consistency values in the second data set are greater than the second preset value are moved from the second data set to the first data set, using the updated first data set to obtain a training set and a validation set, using the training set to train multiple classification models, inputting the validation set into each of the trained classification models respectively and obtaining each first classification result corresponding to each classification model respectively, using each first classification result to form a first classification result set, obtaining a corrected consistency value of each pathological glass slide digital image in the validation set based on the first classification result set, the corrected consistency value of each pathological glass slide digital image represents the degree of consistency between the first classification results of each classification model in the first data set for the pathological glass slide digital image, and updating the sample weight of the pathological glass slide digital image whose corrected consistency value in the first data set is greater than the third preset value to the first preset weight value. In this case, the sample weight of the pathological glass slide digital image moved from the second data set to the first data set can be adjusted.
[0010] In addition, in the semi-supervised selection method of the pathology slide digital image dataset involved in the present disclosure, optionally, it also includes an iteration step, repeating the update step until the data movement amount of the first dataset and the second dataset is less than a fourth preset value, and the data movement amount represents the degree of change of the first dataset and the second dataset. In this case, the iteration step can be used to stabilize the first dataset and the second dataset, thereby improving the stability of the dataset.
[0011] In addition, in the semi-supervised selection method of the pathology slide digital image dataset involved in the present disclosure, optionally, after the iteration step, if the annotation result and the pseudo-annotation result of the pathology slide digital image are different, the sample weight of the pathology slide digital image is updated to a second preset weight value. In this case, the sample weight of the pathology slide digital image with different annotation results and pseudo-annotation results can be adjusted.
[0012] In addition, in the semi-supervised selection method of the pathology slide digital image dataset involved in the present disclosure, optionally, the first preset weight value is not greater than 1, and the second preset weight value is less than 1. In this case, the credibility of the pathology slide digital images with higher corrected consistency values can be further improved, and the sample weights of the pathology slide digital images with different annotation results and pseudo-annotation results can be appropriately reduced.
[0013] In addition, in the semi-supervised selection method of the pathology glass slide digital image dataset involved in the present disclosure, optionally, the multiple classification models include different types of classification models, the multiple classification models include classification models for different features, the multiple classification models include classification models with different network structures, and the multiple classification models include classification models using different hyperparameters. In this case, different types of classification models can be used to evaluate the pathology glass slide digital images in the validation set, thereby improving the comprehensiveness and accuracy of the evaluation.
[0014] In addition, in the semi-supervised selection method of the pathology slide digital image dataset involved in the present disclosure, optionally, in the updating step, multiple training sets and multiple verification sets matching the multiple training sets are obtained using the first dataset, and the pathology slide digital images in each verification set in the multiple verification sets are not repeated. In this case, multiple training sets and multiple verification sets can be obtained, and each pathology slide digital image in the first dataset can appear at most once in the verification set.
[0015] In addition, in the semi-supervised selection method of the pathology slide digital image data set involved in the present disclosure, optionally, the second preset value is less than the third preset value. In this case, since the higher the corrected consistency value, the higher the consistency between the first classification results of the pathology slide digital image, that is, the higher the accuracy of the corresponding pseudo-labeling result, the sample weight of the pathology slide digital image with a higher accuracy of the pseudo-labeling result (that is, high-quality data) can be increased.
[0016] A second aspect of the present disclosure provides a system for selecting a pathology slide digital image dataset, which includes selecting a pathology slide digital image dataset using the semi-supervised selection method involved in the first aspect of the present disclosure.
[0017] According to the present invention, a semi-supervised selection method and system for a pathology slide digital image dataset can be provided, which can clean up low-quality data in the pathology slide digital image dataset and expand high-quality data. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Embodiments of the present disclosure will now be explained in further detail, by way of example only, with reference to the accompanying drawings, in which:
[0019] Figure 1 Schematic diagram showing an application scenario of the semi-supervised selection method involved in an embodiment of the present disclosure.
[0020] Figure 2 is a schematic diagram showing a flow chart of a semi-supervised selection method according to an embodiment of the present disclosure.
[0021] Figure 3 Detailed description of the invention is provided in detail.
[0022] Figure 4 Detailed description of the invention is given in detail below.
[0023] Figure 5 is a flowchart showing the updating steps of the semi-supervised selection method involved in another embodiment of the present disclosure.
[0024] Figure 6 is a flowchart showing the updating steps of the semi-supervised selection method involved in another embodiment of the present disclosure.
[0025] Figure 7 It is a schematic diagram showing a flow chart of a semi-supervised selection method involved in another embodiment of the present disclosure. DETAILED DESCRIPTION
[0026] All references cited in the present disclosure are incorporated herein by reference in their entirety, as if fully elaborated. Unless otherwise defined, the technical and scientific terms used in the present disclosure have the same meanings as those generally understood by those of ordinary skill in the art to which the present disclosure belongs. A general guide to many terms used in the application is provided for those skilled in the art. Those skilled in the art will recognize that many methods and materials similar or equivalent to those described in the present disclosure can be used in the practice of the present disclosure. In fact, the present disclosure is by no means limited to the described methods and materials.
[0027] Figure 1 Schematic diagram showing an application scenario of the semi-supervised selection method involved in an embodiment of the present disclosure. Figure 2 is a schematic diagram showing a flow chart of a semi-supervised selection method according to an embodiment of the present disclosure. Figure 3 Detailed description of the invention is provided in detail. Figure 4 Detailed description of the invention is given in detail below.
[0028] The present disclosure relates to a semi-supervised selection method for a pathology slide digital image dataset. The semi-supervised selection method for a pathology slide digital image dataset involved in the present disclosure can also be referred to as a semi-supervised selection method.
[0029] like Figure 1 As shown, the present disclosure relates to a semi-supervised selection method capable of cleaning low-quality data in a pathology slide digital image dataset and expanding high-quality data.
[0030] like Figure 1 As shown, the pathology slide digital image A involved in the present disclosure may be a pathology image acquired by a pathology scanner 2, and the pathology slide digital image A may be a pyramid image with different resolutions (that is, the pathology slide digital image A may include images of multiple resolutions). The pathology slide digital image A is generally very large, such as a whole slide image (WSI), and the size of the WSI image may be 600Mb to 10Gb.
[0031] In some examples, such as Figure 2 As shown, the semi-supervised selection method may include: a preparation step (step S100) and an updating step (step S200).
[0032] In some examples, a data set may be obtained through the preparation step. In some examples, the data set may include a first data set B1 and a second data set B2. In some examples, the first data set B1 may include a pathology slide digital image A with annotated results, and the second data set B2 may include a pathology slide digital image A without annotated results. In this case, the pathology slide digital image A with annotated results and the pathology slide digital image A without annotated results can be obtained, and then the pathology slide digital image A with annotated results and the pathology slide digital image A without annotated results can be processed.
[0033] In some examples, the first data set B1 and the second data set B2 may be updated by the updating step. Specifically, the first data set B1 may be used to obtain a training set and a validation set, and the training set may be used to train multiple classification models. In this case, the classification model may be trained using the training set and the data may be validated using the validation set.
[0034] In some examples, the validation set can be input into each trained classification model and the misclassification value can be obtained. In this case, the misclassification value can be used to evaluate the inconsistency between the classification result of the first data set B1 and the annotation result, and then the pathological slide digital image A that may have an erroneous annotation result can be identified, that is, suspicious data can be identified.
[0035] In some examples, the pathology slide digital images A with misclassification values greater than a first preset value in the first data set B1 can be moved from the first data set B1 to the second data set B2. In this case, the suspicious data in the first data set B1 can be removed and subsequently re-evaluated.
[0036] In some examples, the second data set B2 can be input into each trained classification model to obtain a consistent value and a pseudo-labeling result. In this case, the labeling result of the pathological slide digital image A in the second data set B2 can be evaluated by the consistent value.
[0037] In some examples, the pathology slide digital image A whose consistency value in the second data set B2 is greater than the second preset value can be moved from the second data set B2 to the first data set B1, and the pseudo-annotation result of the pathology slide digital image A is used as the annotation result of the pathology slide digital image A. In this case, the data with higher quality and higher credibility in the second data set B2 can be moved to the first data set B1, so that the data in the first data set B1 can be expanded.
[0038] Hereinafter, the preparation step and the updating step are described in detail to better describe the present invention.
[0039] As described above, a dataset may be obtained through a preparation step.
[0040] In some examples, such as Figure 3 As shown, the preparation step may include obtaining a digital image A of a pathology slide (step S110 ); and forming a data set (step S120 ).
[0041] In step S110, multiple pathology slide digital images A may be obtained and formed into a data set using the pathology slide digital images A. In this case, the data set formed by the multiple pathology slide digital images A may be selected using a semi-supervised selection method, and low-quality data in the pathology slide digital image A data set may be cleaned and high-quality data may be expanded. However, the present disclosure is not limited thereto, and other data may be obtained to form a data set, including but not limited to any image or any text data.
[0042] The following describes the semi-supervised selection method and selection system involved in the present disclosure using a dataset formed by digital images A of pathological slides.
[0043] In some examples, the pathology slide digital image A may include a pathology slide digital image A with annotation results and a pathology slide digital image A without annotation results. In this case, various types of pathology slide digital images A can be collected, and the pathology slide digital image A without annotation results can be used to expand the data set. In some examples, the pathology slide digital image A can be an image obtained by a pathology slide scanner. In some examples, the pathology slide digital image A can be a tissue cell digital image such as a cervical cell slide digital image, a thyroid cell slide digital image, and a liver cell slide digital image. In some examples, the pathology slide digital image A can be a cervical cell slide digital image obtained by scanning a pathology slide scanner. In some examples, the pathology slide digital image A can be a whole slide image (WSIs) obtained by scanning a pathology slide scanner. In this case, a pathology slide digital image A with a large amount of information can be obtained.
[0044] In some examples, such as Figure 1 As shown, the annotation result can be the annotation result obtained after the staff 3 (such as a doctor or a reader) in the medical institution annotates the pathological slide digital image A. In some examples, the annotation result can be the classification result of the slice part shown in the pathological slide digital image A. For example, the annotation result of the pathological slide digital image A can be the lesion cell position, lesion cell type, and lesion type of the pathological slide digital image A. In some examples, when the pathological slide digital image A is a cervical cell slide image, the lesion cell type can include low-grade squamous intraepithelial lesion (LSIL), high-grade squamous intraepithelial lesion (HSIL) and atypical squamous cells of unknown significance (ASC-US). In this case, various annotation results of the pathological slide digital image A can be obtained, and the classification model can be trained using the annotation results.
[0045] In some examples, the pathology slide digital image A may have different sources. For example, in some examples, the pathology slide digital image A may be a pathology slide digital image A from different hospitals or research institutions. In some examples, the pathology slide digital image A may be a pathology slide digital image A from different periods of the target hospital. In some examples, the pathology slide digital image A may be a pathology slide digital image A from different scanners. In this case, multiple pathology slide digital images A can be obtained to improve the versatility of the classification model, and different classification models can also be obtained through training with pathology slide digital images A from different sources.
[0046] In some examples, the annotation results may include correct results and questionable results. In some examples, the correct result may refer to an annotation result that can correctly reflect the information of the pathology slide digital image A, and the questionable result may refer to an annotation result that cannot correctly reflect the information of the pathology slide digital image A. In some examples, if the annotation result of the pathology slide digital image A is a correct result, it can be considered that the pathology slide digital image A belongs to a pathology slide digital image A with a higher quality or high-quality data, and if the annotation result of the pathology slide digital image A is a questionable result, it can be considered that the pathology slide digital image A belongs to a pathology slide digital image A with a lower quality, low-quality data or dirty data. In this case, it is possible to determine whether the pathology slide digital image A belongs to high-quality data or low-quality data based on whether the annotation result of the pathology slide digital image A can correctly reflect the information of the pathology slide digital image A, so that the low-quality data can be removed from the data set.
[0047] In step S110 , a data set may be formed using the pathological slide digital image A.
[0048] In some examples, the pathology slide digital image A with the annotation results can be formed into a first data set B1. In some examples, the first data set B1 can also be called a training verification pool. In some examples, the first data set B1 can be used to store the pathology slide digital image A with the annotation results. In some examples, through the semi-supervised selection method of the pathology slide digital image A data set involved in the present disclosure, the first data set B1 can be used to store the pathology slide digital image A with higher quality. In this case, the high-quality data in the data set can be retained, and the classification accuracy of the classification model can be improved by using the high-quality data.
[0049] In some examples, the pathology slide digital image A without annotation results can be formed into a second data set B2. In some examples, the second data set B2 can also be called a consideration pool. In some examples, the first data set B1 can be used to store the pathology slide digital image A without annotation results or the pathology slide digital image A whose annotation results cannot correctly reflect the image information. In some examples, through the semi-supervised selection method of the pathology slide digital image data set involved in the present disclosure, the second data set B2 can be used to store the pathology slide digital image A with lower quality. In this case, the low-quality data in the data set can be separated from the high-quality data, and the high-quality data can be used to improve the classification accuracy of the classification model.
[0050] In some examples, the pathology slide digital image A in the first data set B1 and the second data set B2 can be moved. Specifically, the pathology slide digital image A in the first data set B1 can be transferred from the first data set B1 to the second data set B2, and the pathology slide digital image A in the second data set B2 can also be transferred from the second data set B2 to the first data set B1. In this case, the first data set B1 and the second data set B2 can be updated.
[0051] like Figure 4 As shown, the updating step may include: using the first data set B1 to form a training set and a validation set (step S210), using the training set to train a classification model (step S220), using the validation set to obtain a misclassified value (step S230), updating the second data set B2 (step S240), using the second data set B2 to obtain a consistent value and a pseudo-labeling result (step S250), and updating the first data set B1 (step S260).
[0052] In step S210, a training set and a validation set may be formed using the first data set B1.
[0053] In some examples, the training set may refer to a set used to train the classification model, and the validation set may refer to a set used to validate the data. In this case, the pathology slide digital image A used for training and the pathology slide digital image A used for validation can be classified separately to reduce the impact of the classification model's overfitting that causes a decrease in classification accuracy.
[0054] In some examples, the first data set B1 can be used to obtain multiple training sets and multiple verification sets matching the multiple training sets, and the pathology slide digital images A in each verification set are not repeated. In this case, multiple training sets and multiple verification sets can be obtained, and each pathology slide digital image A in the first data set B1 can appear at most once in the verification set.
[0055] In some examples, the first data set B1 can be evenly divided into multiple sets, and one of the multiple sets can be used as a validation set, and the remaining sets can be used as training sets. In this case, a training set and a validation set matching the training set can be obtained. In some examples, another set of the multiple sets can be used as a validation set, and the remaining sets can be used as training sets. In this case, another training set and a validation set matching the training set can be obtained. In some examples, this step can be repeated until each set in the multiple sets is used as a validation set. In this case, multiple training sets and multiple validation sets matching the multiple training sets can be obtained, and the pathology slide digital images A between the validation sets in the multiple validation sets are not repeated.
[0056] In some examples, a cross-validation method can be used to obtain a training set and a validation set.
[0057] In some examples, a training set can be formed according to the source of the pathology slide digital image A. For example, the pathology slide digital images A with the same source can be combined to form a training set. In some examples, a certain proportion of the pathology slide digital images A can be extracted from the pathology slide digital images A of various sources to form a training set. In this case, training sets with different data ratios can be obtained, thereby improving the richness of the training set.
[0058] In some examples, the pathology slide digital image A may be augmented when forming the training set, for example, the pathology slide digital image A may be rotated, flipped, or the color tone may be changed to obtain more pathology slide digital images A. In this case, the data volume of the training set can be expanded.
[0059] In step S220, the classification model may be trained using the training set.
[0060] In some examples, multiple classification models can be trained using the training set. In this case, multiple classification models can be used to evaluate the pathology slide digital image A in the validation set later.
[0061] In some examples, the classification models may include different types of classification models, and different types of classification models may refer to classification models that use different hyperparameters, different data ratios, and different features. For example, multiple classification models may include classification models for different features, multiple classification models may include classification models with different network structures, and multiple classification models may include classification models using different hyperparameters. In this case, different types of classification models can be used to evaluate the pathology slide digital image A in the validation set, thereby improving the comprehensiveness and accuracy of the evaluation.
[0062] In some examples, preferably, the number of classification models can be 50 to 300, for example, the number of classification models can be 50, 100, 150, 200, 250, 300. In some examples, the fewer the number of classification models, the faster the calculation speed, and the more the number of classification models, the more comprehensive the algorithm, and the appropriate number of classification models can be selected based on the calculation speed and the comprehensiveness of the calculation. In this case, the number of classification models can be set according to actual conditions.
[0063] In some examples, the classification models of different network structures may include classification models that are classified by different classification methods. For example, the classification model may be a classification model based on linear regression, a classification model based on logistic regression, a classification model based on support vector machine, a classification model based on Bayesian theory, a classification model based on k-nearest neighbor algorithm, a classification model based on decision tree, and a classification model that integrates multiple classification methods for classification (such as random forest, LGBM and XGBoost). In some examples, the classification models of different network structures may also include a classification model based on artificial neural network or a classification model of convolutional neural network. In this case, since a specific classification method can have a better effect in a specific usage scenario, the classification model using different network structures can improve the comprehensiveness and accuracy of the classification results.
[0064] In some examples, the classification models using different data ratios may refer to different ratios of pathology glass slide digital images A from different sources in the training set used to train the classification model. Specifically, the pathology glass slide digital images A in the training set may come from different medical institutions or different regions, and the pathology glass slide digital images A from different sources may be adjusted in the training set to change the data ratio, thereby forming different classification models.
[0065] In some examples, the classification model for different features may refer to the classification model classifying the pathological slide digital image A according to different features and obtaining the classification results. For example, the different features may include the type of pathological cells, the number of pathological cells, the shape of pathological cells, the size of pathological cells, the size of the nucleus, and other features that can be obtained in the pathological slide digital image A. In some examples, the different features may also include, for example, the proportion of different types of pathological cells in the pathological cells. In this case, a plurality of classification models for different features can be obtained using the training set.
[0066] In some examples, hyperparameters may include, but are not limited to, the number of trees or the depth of trees for a decision tree-based classification model, the learning rate, the number of hidden layers of a neural network for an artificial neural network-based classification model, the number of clusters in a k-nearest neighbor algorithm-based classification model, and other parameters whose values are set prior to the training process.
[0067] In step S230, the validation set may be used to obtain the misclassification value.
[0068] In some examples, after training a classification model using a training set, the misclassification value can be obtained using a validation set.
[0069] In some examples, the validation set can be input into each trained classification model and obtain each first classification result corresponding to each classification model. As described above, multiple classification models can be trained using the training set, whereby the validation set can be input into multiple classification models to obtain multiple first classification results, and each of the multiple first classification results can correspond to each classification model.
[0070] In some examples, the first classification result may be expressed in the same form as the annotation result, that is, the first classification result of the pathological slide digital image A may be the location of the lesion cells, the type of the lesion cells, and the type of the lesion of the pathological slide digital image A. In some examples, the classification model may be used to obtain the confidence of the presence or absence of the lesion in the pathological slide digital image A, and the result with a higher confidence is used as the first classification result.
[0071] In some examples, each first classification result can be used to form a first classification result set. In other words, each first classification result obtained by each classification model and corresponding to each classification model can be formed into a first classification result set. For example, after a pathology slide digital image A in the validation set is input into each classification model, each first classification result corresponding to each classification model can be obtained. After each first classification result is combined to form a first classification result set, the first classification result set can include each first classification result obtained by the pathology slide digital image A. In this case, the first classification result set of the pathology slide digital image A can be obtained by using multiple classification models, and then the misclassification value of the pathology slide digital image A can be obtained.
[0072] In some examples, the number of first classification results for a pathology slide digital image A may be the same as the number of classification models, and the number of first classification results may be the same as the number of pathology slide digital images A in the validation set. In this case, the first classification result may match the pathology slide digital image A and the classification model, that is, a pathology slide digital image A and a classification model may obtain a first classification result.
[0073] In some examples, the misclassification value of each pathology slide digital image A in the validation set can be obtained based on the first classification result set. In some examples, the misclassification value of each pathology slide digital image A can represent the degree of inconsistency between the first classification result of each classification model in the first classification result set for the pathology slide digital image A and the annotation result. In this case, the misclassification value can be obtained and the degree of inconsistency between the first classification result of the pathology slide digital image A and the annotation result can be determined.
[0074] In some examples, the misclassification value may be obtained in the following manner: after obtaining the first classification result set, each first classification result in the first classification result set of the pathology slide digital image A may be compared with the annotation result of the pathology slide digital image A, and the number of first classification results that are different from the annotation result is recorded as the misclassification value. In some examples, the pathology slide digital image A with a higher misclassification value may be determined as low-quality data.
[0075] In some examples, if the misclassification value of the pathology slide digital image A is high, the pathology slide digital image A can be sent to a more experienced doctor or reader (e.g., an expert or chief physician in the corresponding field) for confirmation. In some examples, the doctor or reader can confirm the pathology slide digital image A and re-annotate the pathology slide digital image A to obtain a new annotation result.
[0076] In some examples, the re-labeled pathology slide digital image A can be input into each trained classification model to obtain the misclassification value. If the misclassification value is high, the pathology slide digital image A can be identified as a difficult image.
[0077] In some examples, the re-labeled pathology slide digital image A can be input into each trained classification model respectively to obtain the misclassification value. If the misclassification value is low, it can be considered that the first labeling result of the pathology slide digital image A is a labeling result with lower credibility (that is, the pathology slide digital image A before re-labeling is low-quality data), and the re-labeled labeling result is a labeling result with higher credibility.
[0078] In step S240, the second data set B2 may be updated. In some examples, the pathology slide digital images A in the first data set B1 whose misclassification values are greater than a first preset value may be moved from the first data set B1 to the second data set B2.
[0079] In some examples, the first preset value may be 50%-95%, for example, the first preset value may be 50%, 55%, 60%, 65%, 70%, 75%, 80%, 85%, 90%, 95%. In some examples, the first preset value may be a dynamic ratio, for example, the first preset value may be obtained based on a plurality of misclassified values. Specifically, the average value of the misclassified values and the variance of the misclassified values may be calculated, and the first preset value may be the average value of the misclassified values plus 1, 2 or 3 times the variance of the misclassified values. In this case, the pathological slide digital image A with a higher misclassified value can be moved to the second data set B2, thereby removing the low-quality data in the first data set B1.
[0080] In step S250, the second data set B2 may be used to obtain consistent values and pseudo-labeling results.
[0081] In some examples, the second data set B2 can be input into each trained classification model, and each second classification result corresponding to each classification model can be obtained. In some examples, the second classification result can be the classification result obtained after the second data set B2 passes through the classification model.
[0082] In some examples, as described above, a plurality of classification models may be trained using a training set, whereby the second data set B2 may be input into the plurality of classification models to obtain a plurality of second classification results, and each of the plurality of second classification results may correspond to each classification model. Taking a pathology slide digital image A in the second data set B2 as an example, a pathology slide digital image A in the second data set B2 may be input into a plurality of classification models, wherein the plurality of classification models may include a first classification model, a second classification model, and a third classification model, and after the pathology slide digital image A is input into the first classification model, a second classification result corresponding to the first classification model may be obtained, after the pathology slide digital image A is input into the second classification model, a second classification result corresponding to the second classification model may be obtained, and after the pathology slide digital image A is input into the third classification model, a second classification result corresponding to the third classification model may be obtained.
[0083] In some examples, similar to the first classification result, the second classification result may be expressed in the same form as the annotation result, that is, the second classification result of the pathology slide digital image A may be the location of the lesion cells, the type of the lesion cells, and the type of the lesion of the pathology slide digital image A. In some examples, the classification model may be used to obtain the confidence of the presence or absence of lesions in the pathology slide digital image A, and the result with a higher confidence is used as the second classification result.
[0084] In some examples, each second classification result can be used to form a second classification result set. In other words, each second classification result obtained by each classification model and corresponding to each classification model can be formed into a second classification result set. For example, after a pathology slide digital image A in the second data set B2 is input into each classification model, each second classification result corresponding to each classification model can be obtained. After each second classification result is combined to form a second classification result set, the second classification result set can include each second classification result obtained by the pathology slide digital image A. In this case, the second classification result set of the pathology slide digital image A can be obtained by using multiple classification models, and then the consistent value and pseudo-labeling result of the pathology slide digital image A can be obtained.
[0085] In some examples, the number of second classification results for a pathology slide digital image A may be the same as the number of classification models. In this case, the second classification result may match the pathology slide digital image A and the classification model, that is, a pathology slide digital image A and a classification model may obtain a classification result (that is, the second classification result).
[0086] In some examples, the consistency value of each pathological glass slide digital image A in the second data set B2 can be obtained based on the second classification result set. In some examples, the consistency value of each pathological glass slide digital image A represents the consistency between the second classification results of each classification model in the second data set B2 for the pathological glass slide digital image A. In this case, the consistency value can be obtained and the inconsistency between the second classification results of the pathological glass slide digital image A can be determined. The following is explained by taking a pathological glass slide digital image A as an example: after obtaining a pathological glass slide digital image A from the second data set B2, the pathological glass slide digital image A can be input into 5 classification models respectively and 1 second classification result set can be obtained, wherein the second classification result set includes 5 second classification results, and each of the 5 second classification results can be a classification result obtained by inputting a classification model into the pathological glass slide digital image A. In other words, the second classification result set can include multiple classification results obtained after the pathological glass slide digital image A from the second data set B2 is input into multiple classification models. After obtaining the second classification result set, the consistency value of the pathological glass slide digital image A can be obtained according to the inconsistency between each second classification result in the second classification result set.
[0087] In some examples, pseudo-annotation results of each pathology slide digital image A in the second data set B2 can be obtained based on the second classification result set.
[0088] In some examples, the consistent value and pseudo-labeling result can be obtained in the following manner: after obtaining the second classification result set, each second classification result in the second classification result set of the pathology slide digital image A can be counted, and the number of the second classification results with the highest probability of appearing in the second classification result set of the pathology slide digital image A by each classification model is taken as the consistent value, and the second classification result with the highest probability of appearing in the second classification result set of the pathology slide digital image A by each classification model is taken as the pseudo-labeling result of the pathology slide digital image A, and the pseudo-labeling result can be taken as the labeling result of the pathology slide digital image A. In this case, the consistent value and pseudo-labeling result can be obtained, so that the pathology slide digital image A without a labeling result or the pathology slide digital image A with a questionable result can be given a labeling result with higher accuracy.
[0089] In step S260 , the first data set B1 may be updated.
[0090] In some examples, a pathology slide digital image A having a consistency value greater than a second preset value in the second data set B2 can be moved from the second data set B2 to the first data set B1, and the pseudo-annotation result of the pathology slide digital image A can be used as the annotation result of the pathology slide digital image A.
[0091] In some examples, the second preset value may be a preset fixed value of 40%-90%, for example, the second preset value may be 40%, 45%, 50%, 55%, 60%, 65%, 70%, 75%, 80%, 85%, 90%. Taking the second preset value of 80% as an example, when the consistency value of the pathology slide digital image A is greater than 80%, the pathology slide digital image A can be considered as high-quality data, and the pathology slide digital image A can be transferred from the second data set B2 to the first data set B1, thereby updating the first data set B1.
[0092] In some examples, the second preset value may be a dynamic ratio, for example, the second preset value may be obtained based on a plurality of consistent values. Specifically, the average value of the consistent value and the variance of the consistent value may be calculated, and the second preset value may be the average value of the consistent value plus 1, 2 or 3 times the mean square error of the consistent value. For example, the second data set B2 may include 10 pathology slide digital images A. After the 10 pathology slide digital images A are input into the classification model, 10 consistent values matching the 10 pathology slide digital images A may be obtained. Let the average value of the 10 consistent values be E and the variance be σ, then the second preset value may be E+σ, E+2*σ, or E+3*σ. Taking the second preset value as E+σ as an example, when the consistent value of the pathology slide digital image A is greater than E+σ, the pathology slide digital image A may be considered as high-quality data, and the pathology slide digital image A may be transferred from the second data set B2 to the first data set B1. In this case, the pathology slide digital image A with a higher consistent value may be moved from the second data set B2 to the first data set B1.
[0093] Figure 5 is a flowchart showing the updating steps of the semi-supervised selection method involved in another embodiment of the present disclosure.
[0094] In other examples, such as Figure 5 As shown, the updating step may include: using the first data set B1 to form a training set and a validation set (step S210), using the training set to train a classification model (step S220), using the validation set to obtain misclassified values (step S230), updating the second data set B2 (step S240), using the second data set B2 to obtain consistent values and pseudo-labeling results (step S250), updating the first data set B1 (step S260), and assigning sample weights (step S270).
[0095] In step S270, sample weights may be assigned. Specifically, the updating step may also include obtaining a sample weight of the pathology slide digital image A based on the consistent value of the pathology slide digital image A when the pathology slide digital image A whose consistent value in the second data set B2 is greater than the second preset value is moved from the second data set B2 to the first data set B1, and assigning a sample weight corresponding to the pathology slide digital image A. In this case, a sample weight of the pathology slide digital image moved from the second data set B2 to the first data set B1 can be assigned, and the influence of the sample weight of the pathology slide digital image moved from the second data set B2 to the first data set B1 on the first data set B1 is adjusted.
[0096] In some examples, the sample weights may satisfy the following formula:
[0097] sw=a*z+b*p
[0098] p=mean(p1+p2+……p n )
[0099] Where sw represents the sample weight, z represents the consistent ratio, that is, the ratio of the consistent value to the number of second classification results in the second classification result set, p represents the average ratio of various second classification results in the second classification result set, p1, p2, and p n It can respectively represent the proportion of the first second classification results, the proportion of the second second classification results, and the proportion of the nth second classification results. n can represent the number of second classification results in the second classification result set, and a and b represent the weights of z and p respectively.
[0100] In some examples, the weight a of the consistent ratio z can be any non-negative number not greater than 1. Preferably, the weight a of the consistent ratio z can be 0.4 to 0.9, for example, the weight a of the consistent ratio z can be 0.4, 0.5, 0.6, 0.7, 0.8, 0.9. In some examples, the weight b of the average value p of the ratio of various second classification results in the second classification result set can be any non-negative number not greater than 1. Preferably, b can be 0.0 to 0.8, for example, p can be 0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8. In some examples, the sum of a and b can be no greater than 1. In this case, since z and p are both less than 1, the sample weight can be made less than 1, and the size of the sample weight can be adjusted by adjusting the weight a and the weight b.
[0101] In some examples, the sample weight may represent the importance of the pathology slide digital image A. In some examples, the sample weight may act on the process of training the classification model. In some examples, the sample weight may act on the loss function in the process of training the classification model.
[0102] Figure 6 is a flowchart showing the updating steps of the semi-supervised selection method involved in another embodiment of the present disclosure.
[0103] like Figure 6 As shown, the updating step may include: using the first data set B1 to form a training set and a validation set (step S210), using the training set to train a classification model (step S220), using the validation set to obtain misclassified values (step S230), updating the second data set B2 (step S240), using the second data set B2 to obtain consistent values and pseudo-labeling results (step S250), updating the first data set B1 (step S260), assigning sample weights (step S270), and updating sample weights (step S280).
[0104] In step S280, the updating step may include updating the sample weights.
[0105] In some examples, updating the sample weight may be after moving the pathology slide digital image A whose consistency value in the second data set B2 is greater than the second preset value from the second data set B2 to the first data set B1, using the updated first data set B1 to obtain a training set and a validation set, using the training set to train multiple classification models, inputting the validation set into each trained classification model to obtain each first classification result corresponding to each classification model, forming a first classification result set using each first classification result, obtaining a corrected consistency value of each pathology slide digital image A in the validation set based on the first classification result set, the corrected consistency value of each pathology slide digital image A indicating the degree of consistency between the first classification results of each classification model in the first data set B1 for the pathology slide digital image A, and updating the sample weight of the pathology slide digital image A whose corrected consistency value in the first data set B1 is greater than the third preset value to the first preset weight value. In this case, the sample weight of the pathology slide digital image A moved from the second data set B2 to the first data set B1 can be adjusted.
[0106] The method of obtaining the training set, the validation set, and the first classification result set using the updated first data set B1 may be substantially the same as the method of obtaining the training set, the validation set, and the first classification result set described above, and will not be elaborated herein.
[0107] In some examples, the corrected consistency value of each pathology slide digital image A in the updated first data set B1 can be obtained based on the first classification result set. In some examples, the corrected consistency value of each pathology slide digital image A represents the consistency between the first classification results of each classification model in the updated first data set B1 for the pathology slide digital image A. In this case, the corrected consistency value can be obtained and the consistency between the first classification results of the pathology slide digital image A can be determined.
[0108] In some examples, the third preset value may be 60%-95%, for example, the third preset value may be 60%, 65%, 70%, 75%, 80%, 85%, 90%, 95%. In some examples, the third preset value may be a dynamic ratio, for example, the third preset value may be obtained based on a plurality of corrected consistent values. Specifically, the mean value of the corrected consistent value and the variance of the corrected consistent value may be calculated, and the second preset value may be the mean value of the corrected consistent value plus 1, 2 or 3 times the mean square error of the corrected consistent value. For example, if the mean value of the plurality of corrected consistent values is E' and the variance is σ', the third preset value may be E'+σ', E'+2*σ', or E'+3*σ'. Taking the second preset value as E'+σ' as an example, if the corrected consistent value of the pathological slide digital image A in the first data set B1 is greater than E'+σ', the sample weight of the pathological slide digital image A is updated to the first preset weight value. In this case, the sample weight of the pathology slide digital image A with a higher corrected consistency value can be adjusted to the first preset weight value, so that the credibility of the pathology slide digital image A with a higher corrected consistency value can be further adjusted.
[0109] In some examples, the second preset value is less than the third preset value. In this case, since the higher the corrected consistency value, the higher the consistency between the first classification results of the pathological glass slide digital image A, that is, the higher the accuracy of the corresponding pseudo-labeling result, the sample weight of the pathological glass slide digital image A (that is, high-quality data) with a higher accuracy of the pseudo-labeling result can be increased.
[0110] In some examples, the first preset weight value is not greater than 1. In some examples, the first preset weight value may be 0.95 to 1, preferably, the first preset weight value may be 1, in which case the credibility of the pathological slide digital image A with a higher correction consistency value can be further improved.
[0111] Figure 7 It is a schematic diagram showing a flow chart of a semi-supervised selection method involved in another embodiment of the present disclosure.
[0112] like Figure 7 As shown, the semi-supervised selection method may further include an iteration step (step S300)
[0113] The iteration step may include: repeating the update step until the data movement of the first dataset B1 and the second dataset B2 is less than a fourth preset value. In this case, the iteration step can be used to stabilize the first dataset B1 and the second dataset B2, thereby improving the stability of the dataset.
[0114] In some examples, the data movement amount may represent the degree of change between the first data set B1 and the second data set B2. Specifically, the data movement amount may be the number of pathology slide digital images A moved from the first data set B1 to the second data set B2, the number of pathology slide digital images A moved from the second data set B2 to the first data set B1, or the sum of the number of pathology slide digital images A moved from the first data set B1 to the second data set B2 and the number of pathology slide digital images A moved from the second data set B2 to the first data set B1 in this update step.
[0115] In some examples, the fourth preset value may be 0 to 10, for example, the fourth preset value may be 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, etc. In some examples, the fourth preset value may be a fourth preset ratio of the number of pathology slide digital images A in the first data set B1 or the second data set B2, and the fourth preset value may be 1% to 5% of the number of pathology slide digital images A in the first data set B1, for example, the fourth preset value may be 1%, 2%, 3%, 4%, 5%, etc. of the number of pathology slide digital images A in the first data set B1.
[0116] In some examples, after the iteration step, if the annotation result and the pseudo-annotation result of the pathology slide digital image A are different, the sample weight of the pathology slide digital image A can be updated to a second preset weight value. In this case, the sample weight of the pathology slide digital image A with different annotation results and pseudo-annotation results can be adjusted.
[0117] In some examples, the second preset weight value may be less than 1. For example, the second preset weight value may be 0.6, 0.7, 0.8, 0.9, 0.95, etc. In this case, the sample weight of the pathological slide digital image A having different annotation results and pseudo-annotation results can be appropriately reduced.
[0118] In some examples, the selection system involved in the embodiments of the present disclosure can select the data set using the semi-supervised selection method described above. In this case, low-quality data in the pathology slide digital image A data set can be cleaned up and high-quality data can be expanded.
[0119] Various embodiments of the present disclosure are described above in the detailed description. Although these descriptions directly describe the above embodiments, it should be understood that modifications and / or variations of the specific embodiments shown and described herein may be conceived by those skilled in the art. Any such modifications or variations that fall within the scope of this specification are also intended to be included therein. Unless otherwise specified, it is the intention of the inventor that the words and phrases in the specification and claims are given the ordinary and customary meanings of ordinary technicians.
[0120] The above description of various embodiments of the present disclosure known to the applicant at the time of filing this application has been presented and is intended for the purpose of illustration and description. This description is not intended to be exhaustive of the present invention, nor to limit the present invention to the exact form disclosed, and many modifications and variations may be made in accordance with the above teachings. The described embodiments are used to explain the principles of the present disclosure and its practical application, and to enable other technical personnel in the art to utilize the present disclosure in various embodiments and various modifications suitable for the intended specific use. Therefore, it is intended that the present disclosure is not limited to the specific embodiments disclosed for implementing the present disclosure.
[0121] Although specific embodiments of the present disclosure have been shown and described, it is apparent to those skilled in the art that, based on the teachings of the present disclosure, variations and modifications may be made without departing from the present disclosure and its broader aspects, and the appended claims will therefore cover within their scope all such changes and modifications within the true spirit and scope of the present disclosure. Those skilled in the art will understand that, in general, the terms used in the present disclosure are generally intended to be "open" terms (e.g., the term "including" should be interpreted as "including but not limited to", the term "having" should be interpreted as "at least having", the term "including" should be interpreted as "including but not limited to", etc.).
Claims
1. A semi-supervised selection method for a pathology slide digital image dataset, characterized in that: include: A preparation step of obtaining a plurality of digital images of pathology slides, and forming the digital images of pathology slides with annotation results into a first data set, and forming the digital images of pathology slides without annotation results into a second data set; as well as an updating step, using the first data set to obtain a training set and a validation set, using the training set to train multiple classification models, inputting the validation set into each trained classification model, and obtaining each first classification result corresponding to each classification model, forming a first classification result set using each first classification result, and obtaining a misclassification value of each pathological glass slide digital image in the validation set based on the first classification result set, wherein the misclassification value of each pathological glass slide digital image represents a degree of inconsistency between the first classification result of each classification model in the first classification result set for the pathological glass slide digital image and the annotation result, The pathological glass slide digital images in the first data set whose misclassification values are greater than a first preset value are moved from the first data set to the second data set, the second data sets are respectively input into the trained classification models, and second classification results corresponding to the classification models are obtained, a second classification result set is formed using the second classification results, and consistent values of the pathological glass slide digital images in the second data set are obtained based on the second classification result set. The consistency value of each pathological glass slide digital image represents the consistency between the second classification results of each classification model in the second data set for the pathological glass slide digital image. The second classification result with the highest probability of appearing in the second classification result set of the pathology slide digital image by each classification model is used as the pseudo-annotation result of the pathology slide digital image, and the pathology slide digital image with a consistency value greater than the second preset value in the second data set is moved from the second data set to the first data set, and the pseudo-annotation result of the pathology slide digital image is used as the annotation result of the pathology slide digital image.
2. The semi-supervised selection method according to claim 1, characterized in that: The updating step also includes obtaining a sample weight of the pathology slide digital image based on the consistency value of the pathology slide digital image when a pathology slide digital image whose consistency value in the second data set is greater than a second preset value is moved from the second data set to the first data set, and assigning a sample weight corresponding to the pathology slide digital image, wherein the sample weight represents the importance of the pathology slide digital image.
3. The semi-supervised selection method according to claim 2, characterized in that: The updating step also includes, after moving the pathology glass slide digital images in the second data set whose consistency values are greater than the second preset value from the second data set to the first data set, using the updated first data set to obtain a training set and a validation set, using the training set to train multiple classification models, inputting the validation set into each of the trained classification models respectively and obtaining each first classification result corresponding to each classification model respectively, forming a first classification result set using each first classification result, obtaining a corrected consistency value of each pathology glass slide digital image in the validation set based on the first classification result set, the corrected consistency value of each pathology glass slide digital image indicating the degree of consistency between the first classification results of each classification model in the first data set for the pathology glass slide digital image, and updating the sample weight of the pathology glass slide digital image in the first data set whose corrected consistency value is greater than the third preset value to the first preset weight value.
4. The semi-supervised selection method according to claim 3, characterized in that: The method further includes an iterative step of repeating the updating step until the data movement amount between the first data set and the second data set is less than a fourth preset value, wherein the data movement amount indicates the degree of change between the first data set and the second data set.
5. The semi-supervised selection method according to claim 4, characterized in that: After the iteration step, if the labeling result and the pseudo-labeling result of the pathology slide digital image are different, the sample weight of the pathology slide digital image is updated to a second preset weight value.
6. The semi-supervised selection method according to claim 5, characterized in that: The first preset weight value is not greater than 1, and the second preset weight value is less than 1.
7. The semi-supervised selection method according to any one of claims 1 to 6, characterized in that: The multiple classification models include classification models of different types, the multiple classification models include classification models for different features, the multiple classification models include classification models with different network structures, and the multiple classification models include classification models using different hyperparameters.
8. The semi-supervised selection method according to any one of claims 1 to 6, characterized in that: In the updating step, a plurality of training sets and a plurality of validation sets matching the plurality of training sets are obtained using the first data set, wherein the pathology slide digital images between the respective validation sets in the plurality of validation sets are not repeated.
9. The semi-supervised selection method according to claim 3, characterized in that: The second preset value is smaller than the third preset value.
10. A system for selecting a pathology slide digital image dataset, characterized in that: A pathology slide digital image dataset is selected using the semi-supervised selection method according to any one of claims 1 to 9.
