Medical image data sample uncertainty evaluation method and system
By constructing a multi-layer fully connected neural network to evaluate the contribution of medical image samples and screening low-uncertainty samples, the problem of low-quality samples and category imbalance in medical image modeling is solved, and the model generalization ability and diagnostic accuracy are improved.
Patent Information
- Application Number
- CN202411041686.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-11-15
AI Technical Summary
In medical image modeling, low-quality image samples and category imbalances lead to poor generalization capabilities of models, affecting diagnostic accuracy and reliability, and urgently needed accurate and automated sample screening methods.
By collecting labeled medical image data sets, training deep network models, building a multi-layer fully connected neural network to evaluate the contribution of samples, and optimizing the model with weighted regular term, a sample uncertainty evaluation model is formed, and low uncertainty samples are selected through the weighted regular term optimization model. Used for modeling.
It improves model generalization capabilities, reduces overfitting, realizes transfer learning, improves data quality and model robustness in specific fields, and ensures the accuracy and reliability of diagnosis.
Smart Images

Figure CN118968232A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of sample uncertainty assessment, and in particular to a method and system for assessing the uncertainty of a medical image data sample. Background Art
[0002] In medical scenarios, medical image modeling plays a vital role in the diagnosis and treatment of diseases. However, if sample screening is not performed when using medical image data for modeling, it may have a serious adverse impact on the establishment of the model and the final diagnostic effect.
[0003] For example, in radiology, doctors need images such as X-rays, CT scans, or MRIs to diagnose diseases. These medical images may contain complex information about various lesions and normal tissues. If the model is trained with poor quality images, such as low image resolution, insufficient contrast, artifacts, or incorrectly labeled samples, the model may learn incorrect features, resulting in its inability to accurately identify lesions in actual applications, and may even misjudge normal tissue as lesions, or vice versa.
[0004] In addition, there may be a class imbalance problem in medical image data, that is, there are far more image samples of certain diseases than other diseases. If these samples are not properly screened and balanced, the model may be biased towards those more common categories and ignore less common but equally important types of diseases, thus affecting the generalization ability and clinical application value of the model.
[0005] Therefore, in medical image modeling, sample screening is not only a key step to improve model performance, but also an important guarantee to ensure the reliability and effectiveness of the model in actual medical environments. It is urgent to research and develop more accurate and automated sample screening methods to improve the accuracy and efficiency of medical image analysis. Summary of the invention
[0006] The object of the present invention is to provide a method and system for uncertainty assessment of medical image data samples to improve the accuracy and efficiency of medical image modeling and analysis.
[0007] The technical solution to achieve the purpose of the present invention is: a method for evaluating uncertainty of medical image data samples, comprising the following steps:
[0008] Step 1: Collect annotated medical image datasets, train a deep network model, and record the modeling contribution of classified samples;
[0009] Step 2: Build a multi-layer fully connected neural network to evaluate the contribution of each sample, and optimize the deep network model through weighted regularization to form a sample uncertainty evaluation model;
[0010] Step 3: Use the sample uncertainty evaluation model to screen out medical image data samples with uncertainties lower than a set threshold for use in medical image data modeling.
[0011] A medical image data sample uncertainty assessment system is used to implement the medical image data sample uncertainty assessment method. The system specifically includes a model training module, an evaluation model generation module and a data modeling module, wherein:
[0012] The model training module is used to collect annotated medical image datasets, train a deep network model, and record the modeling contribution of classified samples;
[0013] The evaluation model generation module is used to build a multi-layer fully connected neural network to evaluate the contribution of each sample and optimize the deep network model through weighted regularization terms to form a sample uncertainty evaluation model;
[0014] The data modeling module uses a sample uncertainty evaluation model to screen out medical image data samples with uncertainties below a set threshold for use in medical image data modeling.
[0015] A mobile terminal comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the uncertainty assessment method of the medical image data sample is implemented when the processor executes the program.
[0016] Compared with the prior art, the present invention has the following significant advantages:
[0017] (1) Quantitative evaluation of sample uncertainty: By constructing a multi-layer fully connected neural network, the contribution of each sample to the model training process, i.e., uncertainty, can be evaluated, which improves the generalization ability of the model and reduces overfitting;
[0018] (2) Application of transfer learning: The sample uncertainty evaluation model obtained through pre-training can be applied in different downstream tasks to effectively screen out samples with low uncertainty, thereby improving the quality of training data in specific fields and realizing the transfer of knowledge from different fields;
[0019] (3) Iterative optimization process: During the training process, the network parameters are continuously optimized iteratively, especially by introducing hyperparameters to adjust the weight of the regularization term, so that the model can gradually adapt and reduce its dependence on uncertain samples, further improving the robustness and accuracy of the model. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 The present invention is a flowchart of a method for constructing a pre-trained model for determining sample uncertainty in medical data modeling.
[0021] Figure 2 Figure 2 is a diagram of the modeling process of the sample uncertainty evaluation model H(·).
[0022] Figure 3 Flowchart of the initialization training method for the deep network model H(·).
[0023] Figure 4 Schematic diagram of the sample uncertainty evaluation model H(·) judging sample uncertainty in downstream tasks. DETAILED DESCRIPTION
[0024] It is easy to understand that according to the technical solution of the present invention, without changing the essential spirit of the present invention, a person skilled in the art can imagine various implementation methods of the present invention. Therefore, the following specific implementation methods and drawings are only exemplary descriptions of the technical solution of the present invention, and should not be regarded as the whole of the present invention or as a limitation or restriction of the technical solution of the present invention.
[0025] The present invention proposes a method and system for evaluating the uncertainty of medical image data samples: first, a deep network model is obtained by training a large-scale labeled data set, and the modeling contribution of the classified samples is recorded; then, a multi-layer fully connected neural network is constructed to evaluate the contribution of the samples, and the original network model is optimized by weighted regularization terms to form a sample uncertainty evaluation model. In downstream tasks, the pre-trained model is used to screen out samples with low uncertainty to optimize the training effect, realize the transfer learning of domain knowledge, and improve the quality of training data in specific fields.
[0026] The present invention provides a method for evaluating uncertainty of a medical image data sample, comprising the following steps:
[0027] Step 1: Collect annotated medical image datasets, train a deep network model, and record the modeling contribution of classified samples;
[0028] Step 2: Build a multi-layer fully connected neural network to evaluate the contribution of each sample, and optimize the deep network model through weighted regularization to form a sample uncertainty evaluation model;
[0029] Step 3: Use the sample uncertainty evaluation model to screen out medical image data samples with uncertainties lower than a set threshold for use in medical image data modeling.
[0030] As a specific example, the step 1 is as follows:
[0031] Step 1.1: Prepare a large-scale annotated database, select a public annotated dataset, or collect enough annotated data locally;
[0032] Step 1.2: Use the deep residual neural network architecture ResNet to perform supervised training of the model, optimize the network parameters through the gradient descent method, and obtain the deep network model D(·);
[0033] Step 1.3, record the contribution of classified samples to modeling during the training process, that is, record the misclassified samples each time the cost function is calculated, and obtain the three-dimensional spatial data of iteration number-sample number-correct judgment, denoted as l=M(i,s), where i represents the i-th iteration and s represents the s-th sample; in the classification model, l=0 represents incorrect classification and l=1 represents correct classification; in the regression model, l represents error.
[0034] As a specific example, the database in step 1.1 is a brain image database, and the annotation is the category of the image.
[0035] As a specific example, in step 1.1, the amount of annotated data collected locally is greater than 10,000 images.
[0036] As a specific example, in step 1.2, the gradient descent method adopts the Adam method.
[0037] As a specific example, in step 2, a multi-layer fully connected neural network is constructed to evaluate the contribution of each sample, as follows:
[0038] Step 2.1, construct the initial training data set: take the average error value of the samples in step 1.3, and perform weighted average at the iteration number i to obtain the training data set, where each row represents the average l value of a sample;
[0039] The weighted average is performed on the iteration number i, and the weight is recorded as w(i,s):
[0040] Since l=M(i,s)
[0041] Supervisory information v^{super}=Sum_{i=1}^{n_{iter}}M(i,s)
[0042] n_{iter} is the number of iterations, v^{super} is the annotation of the training data, that is, l after weighted averaging, M is the data saved in step 1.3, and s is the sample number.
[0043] Step 2.2: Build a multi-layer fully connected neural network and train the neural network using the gradient descent method, i.e., BP algorithm, to obtain the evaluation network model H(·) and evaluate the contribution of each sample. That is, the input of the evaluation network model H(·) is the sample feature x, and the output of the network is the contribution value v of the sample.
[0044] BP algorithm, namely back propagation algorithm, is a supervised learning algorithm used to train weights in neural networks. BP algorithm includes two main steps: forward propagation and back propagation.
[0045] As a specific example, in step 2, the deep network model is optimized by the weighted regularization term to form a sample uncertainty evaluation model, as follows:
[0046] Step 2.3: Retrain the deep network model D(·), repeat the steps in step 1.2. In this training, the contribution value v of each sample is calculated through the evaluation network model H(·) in step 2.2, and the weighted regularization term is introduced into the cost function of the deep network model D(·) to obtain the final cost function Loss:
[0047] Loss=a*Loss_{original}+(1-a)\sum{v(s)*l(s)}
[0048] Where a is a training hyperparameter, which takes a value of 0.5 to 0.1 and gradually decreases in iterations; Loss_{original} is the original cost function; v(s) is the contribution value of the sth sample, given by the deep network model D(·); l(s) is the sample error in the current training process; sum{v(s)*l(s)} represents the sum of v(s) and l(s);
[0049] Step 2.4: During the training process, the gradient descent method is used to simultaneously optimize the parameters of the deep network model D(·) and the evaluation network model H(·). After the training is completed, the final parameters of the evaluation network model H(·) are saved, which is the sample uncertainty evaluation model obtained by pre-training.
[0050] The parameters of a neural network generally include weights, biases, and activation functions. The activation function is used to introduce nonlinearity in each layer of the network.
[0051] As a specific example, step 3 is as follows:
[0052] Step 3.1: Collect medical image data for downstream tasks as training datasets to identify disease types;
[0053] Step 3.2: Use the sample uncertainty evaluation model to determine the uncertainty of each sample, and select medical image data samples with uncertainty lower than the set threshold for training downstream tasks;
[0054] Step 3.3: Select a classifier (such as GRU) for image modeling. Use the medical image data samples selected in step 3.2 during the modeling process.
[0055] The present invention also provides an uncertainty assessment system for medical image data samples, which is used to implement the uncertainty assessment method for medical image data samples. The system specifically includes a model training module, an evaluation model generation module and a data modeling module, wherein:
[0056] The model training module is used to collect annotated medical image datasets, train a deep network model, and record the modeling contribution of classified samples;
[0057] The evaluation model generation module is used to build a multi-layer fully connected neural network to evaluate the contribution of each sample and optimize the deep network model through weighted regularization terms to form a sample uncertainty evaluation model;
[0058] The data modeling module uses a sample uncertainty evaluation model to screen out medical image data samples with uncertainties below a set threshold for use in medical image data modeling.
[0059] The present invention also provides a mobile terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the uncertainty assessment method for medical image data samples when executing the program.
[0060] The key steps of the present invention include the following:
[0061] (1) Pre-training model construction with large-scale annotated database: Protect the method of using large-scale annotated brain image database and deep residual neural network (ResNet) architecture for model pre-training, and record the contribution of sample classification to the model during training.
[0062] (2) Quantitative evaluation of sample contribution: A method for evaluating sample contribution through a multi-layer fully connected neural network, which takes sample features as input and outputs sample contribution evaluation values, and in particular uses the misclassification information of the samples during training for initialization and training.
[0063] (3) Screening and application of pre-trained models in downstream tasks: Protect the sample uncertainty evaluation model obtained by pre-training to screen samples with low uncertainty, and apply these samples to the training process of downstream tasks to improve the performance of the model in specific sub-fields.
[0064] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.
[0065] Example
[0066] like Figure 1 As shown, this embodiment provides an uncertainty assessment method for medical image data samples, including the following steps: first, a pre-training data set is selected, and a deep network model D(·) is trained on the pre-training data set. During the training process, the contribution of the samples is recorded, and based on the contribution degree as training data, a fully connected network H(·) is established to predict the contribution degree of each sample. The model D(·) is retrained, and the weight of the sample is adjusted according to the uncertainty of the sample during the training process. The model H(·) finally obtained is the model used to judge the uncertainty of the sample. H(·) is applied to downstream modeling tasks to select samples and improve the training effect.
[0067] like Figure 2 As shown in the figure, the modeling process of the sample uncertainty evaluation model H(·) is as follows. In the process of training the model D(·) of the upstream task, the contribution of each sample to the modeling is recorded. Specifically, each time the cost function (Loss Function) is calculated, the misclassified samples are recorded to obtain the three-dimensional spatial data of iteration number-sample number-correct judgment, which is recorded as l=M(i,s), where i represents the i-th iteration, s represents the s-th sample, and in the classification model, l=0 or 1 represents misclassification or correct classification. In the regression model, l represents the error. According to the value of l, the fully connected network H(·) is trained so that the trained H(·) can predict the contribution of each sample. After obtaining the model H(·), the upstream training data set is used again to retrain the network model D(·). Specifically, the contribution value v of each sample is calculated through the network H(·), and the weighted regularization term is introduced in the cost function of the network D(·):
[0068] Loss=a*Loss_{original}+(1-a)\sum{v(s)*l(s)}
[0069] Where Loss_{original} is the original cost function, for example, in the form of cross entropy, v(s) is the contribution value parameter of the sth sample, given by the network D(·), and l(s) is the sample error in the current training process. a is a training hyperparameter, ranging from 0.5 to 0.1, which gradually decreases during iterations, controlling the degree of effect of the network D(·), that is, the degree of regulation of sample uncertainty. After training, the final sample uncertainty evaluation model H(·) is obtained.
[0070] like Figure 3As shown in the figure, the initialization training method of the deep network model H(·) is as follows: first define the structure of the network: select a multi-layer fully connected neural network structure; then define the input and output of the network, the input of the network: sample feature x, the output of the network: contribution evaluation value v; finally, perform initialization training on the network, construct an initialization training data set, and obtain the training data set with the average error value of the sample (weighted average at the iteration number i, denoted by weight w(i,s)), where each row represents the average l value of a sample, and train the neural network H(·) using the gradient descent method (BP algorithm).
[0071] like Figure 4 As shown, in the present invention, a sample uncertainty evaluation model H(·) in a certain field is obtained through upstream pre-training data sets and model training. The model can be used to judge the uncertainty of samples in different downstream fields in downstream tasks. In practical applications such as medical data modeling, the effect of the training model is often reduced due to low data quality. It is particularly important to select high-quality samples for modeling. Therefore, the model H(·) is used to evaluate the samples of downstream tasks, select samples with low uncertainty, and perform downstream task modeling to improve the effect of modeling training.
[0072] Taking the brain image classification experiment as an example, by adopting the uncertainty evaluation method of the medical image data sample of the present invention, the F1 index is used as the evaluation index in image classification. The specific scenario is the classification of brain tumor MRI images. The results are shown in Table 1:
[0073] Table 1
[0074]
[0075] In summary, the present invention achieves the following effects: (1) Quantitative evaluation of sample uncertainty: By constructing a multi-layer fully connected neural network, the present invention can evaluate the contribution of each sample to the model training process, that is, uncertainty, which is the key to improving the generalization ability of the model and reducing overfitting. (2) Application of transfer learning: The sample uncertainty evaluation model obtained by pre-training in the present invention can be applied in different downstream tasks, effectively screening out samples with low uncertainty, thereby improving the quality of training data in a specific field and realizing the transfer of knowledge in different fields. (3) Iterative optimization process: During the training process, by continuously iteratively optimizing the network parameters, especially introducing the hyperparameter a to adjust the weight of the regularization term, the model can gradually adapt to and reduce its dependence on uncertain samples, further improving the robustness and accuracy of the model.
[0076] These technical points work together to enable the present invention to effectively improve the training effect of the model in specific sub-fields, especially in the field of medical image analysis such as brain image recognition, which helps to improve the accuracy and reliability of disease diagnosis. In addition, the present invention can also have different implementations in the application field of downstream tasks.
[0077] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.
[0078] It should be understood that in order to simplify the present invention and help those skilled in the art understand the various aspects of the present invention, in the above description of the exemplary embodiments of the present invention, the various features of the present invention are sometimes described in a single embodiment or described with reference to a single figure. However, the present invention should not be interpreted as the features included in the exemplary embodiments are all necessary technical features of the patent claims.
Claims
1. A method for uncertainty assessment of medical image data samples, characterized in that: The following steps are involved: Step 1: Collect annotated medical image datasets, train a deep network model, and record the modeling contribution of classified samples; Step 2: Build a multi-layer fully connected neural network to evaluate the contribution of each sample, and optimize the deep network model through weighted regularization to form a sample uncertainty evaluation model; Step 3: Use the sample uncertainty evaluation model to screen out medical image data samples with uncertainties lower than a set threshold for use in medical image data modeling.
2. The uncertainty assessment method for medical image data samples according to claim 1, characterized in that: The step 1 is specifically as follows: Step 1.1: Prepare a large-scale annotated database, select a public annotated dataset, or collect enough annotated data locally; Step 1.2: Use the deep residual neural network architecture ResNet to perform supervised training of the model, optimize the network parameters through the gradient descent method, and obtain the deep network model D(·); Step 1.3, record the contribution of classified samples to modeling during the training process, that is, record the misclassified samples each time the cost function is calculated, and obtain the three-dimensional spatial data of iteration number-sample number-correct judgment, recorded as l=M(i,s), where i represents the i-th iteration and s represents the s-th sample; In the classification model, l = 0 represents misclassification and l = 1 represents correct classification; In the regression model, l represents the error.
3. The uncertainty assessment method for medical image data samples according to claim 2, characterized in that: The database in step 1.1 is a brain image database, and the annotations are categories of images.
4. The uncertainty assessment method for medical image data samples according to claim 2, characterized in that: In step 1.1, the amount of annotated data collected locally is greater than 10,000 images.
5. The uncertainty assessment method for medical image data samples according to claim 2, characterized in that: In step 1.2, the gradient descent method uses the Adam method.
6. The uncertainty assessment method for medical image data samples according to claim 2, characterized in that: In step 2, a multi-layer fully connected neural network is constructed to evaluate the contribution of each sample, as follows: Step 2.1, construct the initial training data set: take the average error value of the samples in step 1.3, and perform weighted average at the iteration number i to obtain the training data set, where each row represents the average l value of a sample; Step 2.2: Build a multi-layer fully connected neural network and train the neural network using the gradient descent method, i.e., BP algorithm, to obtain the evaluation network model H(·) and evaluate the contribution of each sample. That is, the input of the evaluation network model H(·) is the sample feature x, and the output of the network is the contribution value v of the sample.
7. The uncertainty assessment method for medical image data samples according to claim 6, characterized in that: In step 2, the deep network model is optimized by weighted regularization terms to form a sample uncertainty evaluation model, as follows: Step 2.3: Retrain the deep network model D(·), repeat the steps in step 1.
2. In this training, the contribution value v of each sample is calculated through the evaluation network model H(·) in step 2.2, and the weighted regularization term is introduced into the cost function of the deep network model D(·) to obtain the final cost function Loss: Loss=a*Loss_{original}+(1-a)\sum{v(s)*l(s)} Where a is a training hyperparameter, which takes a value of 0.5 to 0.1 and gradually decreases in iterations; Loss_{original} is the original cost function; v(s) is the contribution value of the sth sample, given by the deep network model D(·); l(s) is the sample error in the current training process; sum{v(s)*l(s)} represents the sum of v(s) and l(s); Step 2.4: During the training process, the gradient descent method is used to simultaneously optimize the parameters of the deep network model D(·) and the evaluation network model H(·). After the training is completed, the final parameters of the evaluation network model H(·) are saved, which is the sample uncertainty evaluation model obtained by pre-training.
8. The uncertainty assessment method for medical image data samples according to claim 7, characterized in that: The step 3 is specifically as follows: Step 3.1: Collect medical image data for downstream tasks as training datasets to identify disease types; Step 3.2: Use the sample uncertainty evaluation model to determine the uncertainty of each sample, and select medical image data samples with uncertainty lower than the set threshold for training downstream tasks; Step 3.3: Select a classifier for image modeling. Use the medical image data samples selected in step 3.2 during the modeling process.
9. An uncertainty assessment system for medical image data samples, characterized in that: The uncertainty assessment method for a medical image data sample according to any one of claims 1 to 8 is implemented, the system specifically comprising a model training module, an evaluation model generation module and a data modeling module, wherein: The model training module is used to collect annotated medical image datasets, train a deep network model, and record the modeling contribution of classified samples; The evaluation model generation module is used to build a multi-layer fully connected neural network to evaluate the contribution of each sample and optimize the deep network model through weighted regularization terms to form a sample uncertainty evaluation model; The data modeling module uses a sample uncertainty evaluation model to screen out medical image data samples with uncertainties below a set threshold for use in medical image data modeling.
10. A mobile terminal comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the uncertainty assessment method for medical image data samples according to any one of claims 1 to 8 is implemented.
Citation Information
Cited By
Action quality assessment method and system based on probabilistic uncertainty guidance
CN119541057A
Medical image feature extraction method and system
CN119991596A
