COVID-19 risk assessment method and system based on self-supervision and domain adversarial neural network
Through the combination of self-supervised learning and domain adversarial neural networks, it solves the problems of small sample data and cross-hospital deployment in COVID-19 risk assessment, realizes the extraction of disease features under limited data and improves model generalization capabilities, adapts to different medical environments, and supports scientific epidemic prevention and control.
Patent Information
- Application Number
- CN202410804063.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-09-27
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing technologies face limitations in small sample data and generalization capabilities when deployed across hospitals in COVID-19 risk assessment. Especially in medical environments with data scarcity and resource constraints, it is difficult to build an effective COVID-19 risk assessment model.
Using a method based on self-supervised learning and domain adversarial neural network, by constructing a self-supervised pre-training data set and a new coronavirus screening model data set, the inherent structure and correlation in unlabeled data are used for model training, and combined with the domain adversarial neural network construction The COVID-19 risk assessment model is suitable for small samples and improves its adaptability and generalization performance in various medical scenarios.
Effectively extracting disease features in a small sample data environment improves the generalization ability of the model, flexibly responds to differences in different hospital environments, improves the accuracy of COVID-19 risk identification and the stability of cross-hospital deployment, and supports scientific epidemic prevention and control strategies. .
Smart Images

Figure CN118412131B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a novel coronavirus risk assessment method and system based on self-supervised learning and domain adversarial neural network. Background Art
[0002] Against the backdrop of a global public health emergency, the novel coronavirus pneumonia (COVID-19) has highlighted the urgency and strategic value of implementing early and accurate risk assessment of COVID-19 in the healthcare system due to its strong infectiousness and potential health threats to specific high-risk groups (such as patients with coronary heart disease). At present, artificial intelligence technology is increasingly used in the field of intelligent COVID-19 screening. These studies mainly rely on labeled data to build screening models through supervised learning methods. However, due to the scale of COVID-19 screening operations, high-quality, labeled case data that can be used for model training is significantly sparse, posing a real challenge to the problem of small sample data.
[0003] At present, there are the following problems in the application of artificial intelligence technology in COVID-19 risk identification:
[0004] Model training is limited by data scarcity: As the scale of COVID-19 screening is reduced, the amount of routine test data annotated with COVID-19 has decreased dramatically. Traditional deep learning models are usually highly dependent on sufficient labeled data to ensure that disease characteristics are fully captured and the expected prediction accuracy is achieved. In view of this, it is difficult for hospitals to independently build effective COVID-19 risk assessment models based on their limited and sparse case data in the current data environment.
[0005] Generalization capability challenges in cross-hospital deployment: Given that it is difficult for hospitals to train COVID-19 risk assessment models based on their own data, they often need to rely on external trained models for deployment and application. However, when deployed in different hospital environments, performance may decline significantly due to large differences in data distribution. The Domain Adversarial Neural Network (DANN) enhances the adaptability of the model in different medical scenarios by adjusting the alignment of the source domain and target domain data distribution, but its effectiveness depends largely on the amount of source domain data. In the current COVID-19 environment, most medical institutions are limited by resources, costs and other factors, and it is difficult to provide large-scale labeled sample sets sufficient to support the efficient operation of DANN, which seriously restricts the practical application of this method in the field of COVID-19 intelligent risk assessment.
[0006] Therefore, how to provide a new crown risk assessment method and system based on self-supervised learning and domain adversarial neural network that can break through the limitations of small sample data is a technical problem that needs to be urgently solved by technical personnel in this field. Summary of the invention
[0007] In response to the above research status and existing problems, the present invention provides a new crown risk assessment method based on self-supervised learning and domain adversarial neural network. By designing auxiliary tasks and utilizing the inherent structure and correlation in unlabeled data, the model is guided to self-learn and self-supervise, so that disease characteristics can be effectively extracted even with limited data. Combined with the domain adversarial neural network, a new crown risk assessment model suitable for small samples is constructed, thereby improving its adaptability and generalization performance in various medical scenarios.
[0008] The present invention provides a novel coronavirus risk assessment method based on self-supervised learning and domain adversarial neural network, comprising the following steps:
[0009] Model training phase:
[0010] Construct a self-supervised pre-training data set: obtain the blood routine test data of healthy people and the corresponding personnel information to construct a self-supervised pre-training data set, select a specified number of blood routine test items as masked blood routine indicators, and perform masking operations to form a masked indicator data set;
[0011] Construct a COVID-19 screening model dataset: obtain the blood routine test data of the general population and the corresponding personnel information, COVID-19 labels and domain labels; the COVID-19 labels are used to distinguish between COVID-19 positive test results and COVID-19 negative test results; the domain labels are used to distinguish between the source domain large sample dataset and the target domain small sample dataset. The number of COVID-19 screening model dataset samples contained in the source domain large sample dataset is greater than the number of samples in the target domain small sample dataset;
[0012] Build a self-supervised pre-trained model: use the mask indicator dataset as input and the self-supervised pre-trained dataset as output to train the model and obtain a trained self-supervised pre-trained model;
[0013] Construct a COVID-19 screening model based on a domain adversarial neural network: transfer learning the trained self-supervised pre-trained model to extract the feature vector of the source domain large sample data set, and perform COVID-19 label classification learning; transfer learning the trained self-supervised pre-trained model to extract the feature vector of the COVID-19 screening model data set, and perform domain label classification learning to obtain a trained COVID-19 screening model;
[0014] Model prediction stage:
[0015] The routine blood test data to be predicted and the corresponding personnel information are input into the trained COVID-19 screening model as a small sample data set of the target domain, and the corresponding COVID-19 classification results are output.
[0016] Preferably, the mask operation step includes:
[0017] A specified number of routine blood test items are randomly selected as masked routine blood test indicators, and the average values of the corresponding routine blood test items in the self-supervised pre-training dataset are used as the masked routine blood test indicator value to form a masked indicator dataset.
[0018] Preferably, the personnel information includes: age and gender.
[0019] Preferably, the self-supervised pre-training model is a fully connected neural network based on a residual structure, comprising:
[0020] The input of the fully connected layer is the mask indicator dataset. The fully connected layer performs a linear transformation on the input data and applies a ReLU activation function to generate an intermediate output.
[0021] Using a residual connection mechanism, the original input and the intermediate output are element-wise added to form an output of a residual block;
[0022] The output of the residual block is sent to the final output layer, and the predicted output of the true value of the mask indicator dataset is obtained through linear transformation;
[0023] The MAE indicator is used to determine whether the model meets the training requirements. If so, the training is completed.
[0024] Preferably, the COVID-19 screening model based on domain adversarial neural network includes a feature extractor, a label classifier and a domain discriminator:
[0025] The self-supervised pre-trained model described in transfer learning is used as a feature extractor, and is iteratively optimized according to the COVID-19 label classification results to extract features associated with COVID-19 risk in routine blood data;
[0026] The label classifier adopts a fully connected neural network structure, inputs the feature vector extracted by the feature extractor of the source domain large sample data set into the fully connected layer with ReLU as the activation function, and sends the transformed features into the output layer with sigmoid as the activation function to obtain the predicted probability value of the individual suffering from COVID-19;
[0027] The domain discriminator adopts a fully connected neural network structure, and inputs the feature vector extracted by the feature extractor of the source domain large sample data set and the target domain small sample data set into the fully connected layer with ReLU as the activation function, and sends the transformed features to the output layer with sigmoid as the activation function to obtain the probability that the sample originates from the target domain.
[0028] The present invention provides a COVID-19 risk assessment system based on self-supervised learning and domain adversarial neural network, comprising:
[0029] A self-supervised pre-training data set construction module is used to obtain the blood routine test data of healthy people and the corresponding personnel information to construct a self-supervised pre-training data set, select a specified number of blood routine test items as masked blood routine indicators, and perform masking operations to form a masked indicator data set;
[0030] The COVID-19 screening model dataset construction module is used to obtain the blood routine test data of the general population and the corresponding personnel information, COVID-19 labels and domain labels; the COVID-19 labels are used to distinguish between COVID-19 positive test results and COVID-19 negative test results; the domain labels are used to distinguish between the source domain large sample dataset and the target domain small sample dataset. The number of COVID-19 screening model dataset samples contained in the source domain large sample dataset is greater than the number of samples in the target domain small sample dataset;
[0031] A self-supervised pre-training model building module is used to take the mask indicator dataset as input and the self-supervised pre-training dataset as output to train the model, thereby obtaining a trained self-supervised pre-training model;
[0032] A COVID-19 screening model construction module based on a domain adversarial neural network is used for transfer learning, wherein the trained self-supervised pre-trained model is used to extract the feature vector of the source domain large sample data set, and perform COVID-19 label classification learning; the trained self-supervised pre-trained model is used for transfer learning to extract the feature vector of the COVID-19 screening model data set, and perform domain label classification learning to obtain a trained COVID-19 screening model;
[0033] The model evaluation unit is used to receive the routine blood test data to be predicted and the corresponding personnel information, and input it as a small sample data set of the target domain into the trained new crown screening model, and output the corresponding new crown classification result.
[0034] Preferably, the self-supervised pre-training data set construction module also includes a mask unit, which is used to randomly screen a specified number of routine blood test items as masked routine blood test indicators, and use the average value of the corresponding routine blood test items in the self-supervised pre-training data set as the masked routine blood test indicator value to form a masked indicator data set.
[0035] Preferably, the personnel information includes: age and gender.
[0036] Preferably, the self-supervised pre-training model is a fully connected neural network based on a residual structure, comprising:
[0037] The input of the fully connected layer is the mask indicator dataset. The fully connected layer performs a linear transformation on the input data and applies a ReLU activation function to generate an intermediate output.
[0038] Using a residual connection mechanism, the original input and the intermediate output are element-wise added to form an output of a residual block;
[0039] The output of the residual block is sent to the final output layer, and the predicted output of the true value of the mask indicator dataset is obtained through linear transformation;
[0040] The MAE indicator is used to determine whether the model meets the training requirements. If so, the training is completed.
[0041] Preferably, the COVID-19 screening model based on domain adversarial neural network includes a feature extractor, a label classifier and a domain discriminator:
[0042] The self-supervised pre-trained model described in transfer learning is used as a feature extractor, and is iteratively optimized according to the COVID-19 label classification results to extract features associated with COVID-19 risk in routine blood data;
[0043] The label classifier adopts a fully connected neural network structure, inputs the feature vector extracted by the feature extractor of the source domain large sample data set into the fully connected layer with ReLU as the activation function, and sends the transformed features into the output layer with sigmoid as the activation function to obtain the predicted probability value of the individual suffering from COVID-19;
[0044] The domain discriminator adopts a fully connected neural network structure, and inputs the feature vector extracted by the feature extractor of the source domain large sample data set and the target domain small sample data set into the fully connected layer with ReLU as the activation function, and sends the transformed features to the output layer with sigmoid as the activation function to obtain the probability that the sample originates from the target domain.
[0045] The COVID-19 risk assessment method based on self-supervised learning and domain adversarial neural network proposed in the present invention has the following beneficial effects compared with the prior art:
[0046] The present invention is aimed at constructing a risk assessment model for COVID-19 in a small sample data environment, and has significant effects in dealing with small sample data and generalization capabilities across hospitals. It can reveal the complexity of the disease based on limited data, while flexibly responding to the differences in different hospital environments, efficiently mining disease characteristics, and helping to identify COVID-19 risks in various medical scenarios, effectively improving the generalization capabilities of the model, and providing strong support for the formulation and implementation of scientific epidemic prevention and control strategies. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on the provided drawings without creative work.
[0048] Figure 1 It is a schematic diagram of a novel coronavirus risk assessment method based on self-supervised learning and domain adversarial neural network provided by an embodiment of the present invention;
[0049] Figure 2 It is a flowchart of the implementation of the COVID-19 risk assessment method based on self-supervised learning and domain adversarial neural network provided by an embodiment of the present invention;
[0050] Figure 3 It is an organizational chart of a COVID-19 risk assessment system based on self-supervised learning and domain adversarial neural network provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0051] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0052] like Figure 1-2 As shown, the COVID-19 risk assessment method based on self-supervised learning and domain adversarial neural network provided in the first aspect of the embodiment of the present invention includes the following steps:
[0053] Model training phase:
[0054] Construct a self-supervised pre-training dataset: obtain the blood routine test data of healthy people and the corresponding personnel information to construct a self-supervised pre-training dataset, select a specified number of blood routine test items as masked blood routine indicators, and perform masking operations to form a masked indicator dataset.
[0055] Construct a COVID-19 screening model dataset: obtain routine blood test data of the general population and the corresponding personnel information, COVID-19 labels, and domain labels; COVID-19 labels are used to distinguish between COVID-positive test results and COVID-negative test results; domain labels are used to distinguish between the source domain large sample dataset and the target domain small sample dataset. The number of COVID-19 screening model dataset samples contained in the source domain large sample dataset is greater than the number of samples in the target domain small sample dataset; the general population includes healthy people and COVID-19 people.
[0056] Construct a self-supervised pre-training model: Use the masked indicator dataset as input and the self-supervised pre-training dataset as output to train the model, and obtain a trained self-supervised pre-training model. The model predicts the true value of the masked indicator based on the unmasked blood routine indicators, thereby learning the correlation and internal rules between the indicators.
[0057] Build a new coronavirus screening model based on domain adversarial neural network: transfer the trained self-supervised pre-trained model learning to extract feature vectors of large sample data sets in the source domain, and perform new coronavirus label classification learning; transfer the trained self-supervised pre-trained model learning to extract feature vectors of the new coronavirus screening model data set, and perform domain label classification learning to obtain a trained new coronavirus screening model, solve the problem of sparse data in the target domain, and realize knowledge transfer and model adaptability optimization across medical institutions.
[0058] Model prediction stage:
[0059] The routine blood test data to be predicted and the corresponding personnel information are input into the trained COVID-19 screening model as a small sample data set of the target domain, and the corresponding COVID-19 classification results are output.
[0060] It should be noted that the purpose of domain label classification learning during the model training phase is to better align the source domain samples and the target domain samples; during the model testing phase, only the routine blood test data to be predicted in the target domain and the corresponding personnel information are input into the new crown screening model for new crown classification, and the corresponding new crown classification results are output.
[0061] In one embodiment, routine blood test data and patient information are collected from electronic medical record systems, laboratory information systems, and other channels of medical institutions to construct self-supervised pre-training datasets and COVID-19 screening datasets. The COVID-19 screening datasets with a scale of 1,000 are used as the source domain, and the COVID-19 screening datasets with a scale of 100 are used as the target domain.
[0062] In one embodiment, the personnel information includes: age and gender.
[0063] In one embodiment, the masking step includes:
[0064] A specified number of routine blood test items are randomly selected as masked routine blood test indicators, and the average values of the corresponding routine blood test items in the self-supervised pre-training dataset are used as the masked routine blood test indicator value to form a masked indicator dataset.
[0065] The specific construction and execution examples of the dataset are as follows:
[0066] The self-supervised pre-training data set mainly consists of healthy people aged 2-100 years old, including 345721 records. This embodiment requires random masking of the 20-dimensional blood routine test data. The specific method is: randomly select 10 indicators from the blood routine indicators of each sample, and replace the values of these indicators with the average values of the corresponding indicators to form a masked data set.
[0067] The COVID-19 screening dataset focuses on the period from August 2022 to March 2023, and collects patient records from two different hospitals (Hospital A and Hospital B) with nucleic acid test results and blood test data during this period, and the age is between 5-100 years old. The data annotation process is based on the nucleic acid test results, with nucleic acid positive samples marked as 1 and negative samples marked as 0, forming a labeled COVID-19 screening dataset. This dataset divides samples into positive (marked as 1) and negative (marked as 0) according to the nucleic acid test results. In addition, in order to achieve domain adaptability, the dataset is further annotated to distinguish between the source domain (Hospital A, marked as 0) and the target domain (Hospital B, marked as 1). Under this framework, Hospital A contributed a total of 3,456 samples, including 1,353 positive samples and 2,103 negative samples; Hospital B provided 1,251 samples, including 348 positive and 903 negative samples.
[0068] In this embodiment, 20 blood routine test indicators randomly selected in the masked data set include: red blood cell count (RBC), mean corpuscular volume (MCV), platelet distribution width (PDW), white blood cell count (WBC), lymphocyte percentage (LYMPH%), eosinophil percentage (EO%), basophil percentage (BASO%), lymphocyte count (LYMPH), basophil count (BASO), hemoglobin (HGB), hematocrit (HCT), mean corpuscular hemoglobin content (MCH), mean corpuscular hemoglobin concentration (MCHC), red blood cell distribution width (R-CV), platelet count (PLT), mean platelet volume (MPV), platelet packed volume (PCT), monocyte count (MONO), monocyte percentage (MONO%), and eosinophil count (EO).
[0069] In one embodiment, the data is preprocessed to make it more suitable for subsequent model training and prediction, thereby improving the accuracy and efficiency of the model. The preprocessing includes the following:
[0070] Remove outliers: Delete data points that are significantly different from the normal range or inconsistent with other samples to prevent them from affecting the learning effect of the model. This includes removing samples that are too different or too small from the normal range due to measurement errors, equipment failures, human interference, etc.
[0071] Standardization: The Z-score standardization method is used to standardize the data. The mean of the feature is subtracted from each data point, and then divided by the standard deviation of the feature to convert it into a normal distribution with a mean of 0 and a standard deviation of 1. This eliminates the dimensional and scale differences between different features and makes the data more standardized and unified.
[0072] In one embodiment, the self-supervised pre-training model is a fully connected neural network based on a residual structure. The embodiment of the present invention introduces a residual structure on the basis of the fully connected neural network, aiming to reduce the complexity of model training and effectively prevent local optimal problems, thereby improving the performance of the model in learning the intrinsic correlations and rules of routine blood data.
[0073] The specific implementation steps are as follows:
[0074] The masked dataset X is used as input and fed into the fully connected neural network. The fully connected layer performs a linear transformation on the input data and applies a ReLU activation function to introduce nonlinear characteristics and generate an intermediate output. :
[0075] (1)
[0076] in and Represent the weight matrix and bias vector of the fully connected layer respectively.
[0077] Using the residual connection mechanism, the original input X is connected to the intermediate output of the fully connected layer Perform element-wise addition to form the output of the residual block .
[0078] The output of the residual block Send it to the final output layer and get the predicted output through linear transformation :
[0079] (2)
[0080] in, and Represent the weight matrix and bias vector of the output layer respectively.
[0081] In this embodiment, the masked data set is used as input and the complete data set is used as output, and the unobstructed blood routine indicators as well as age and gender are used to predict the obstructed indicators. The model architecture includes a 22-dimensional input layer, 3 fully connected layers with 64, 288, and 224 neurons respectively, each fully connected layer is followed by a Dropout layer, and a 22-dimensional output layer and an Add layer. The neural network is compiled using the RMSPORP optimizer and the MSE loss function, and the epochs are set to 100 and the batch_size is set to 3000 for model training. To prevent overfitting, the model introduces an early stopping mechanism, with the minimum val_mae as the goal. If the MAE indicator no longer decreases in 10 consecutive epochs, it indicates that the model has achieved the best prediction performance in the current state, and no further iteration is required, and the training process is terminated in time.
[0082] In one embodiment, the COVID-19 screening model based on the domain adversarial neural network is mainly composed of a feature extractor, a label classifier, and a domain discriminator. The feature extractor innovatively uses a transfer learning strategy to transfer the self-supervised learning pre-training model trained by the learning method to extract features closely related to the COVID-19 risk in the routine blood data. The feature extractor optimizes the feature extractor in the domain adversarial neural network according to the final COVID-19 label classification performance. The iterative optimization process enables the feature extractor to extract features of routine blood data related to COVID-19.
[0083] Both the label classifier and the domain discriminator use a fully connected neural network structure. The former aims to accurately classify the COVID-19 risk level based on the extracted features, while the latter focuses on identifying and adapting to the differences in feature distribution between different medical data sources to improve the generalization performance of the model in a multivariate environment. The specific execution steps are as follows:
[0084] The COVID-19 screening dataset Y in the source domain and the dataset Z for domain discrimination are input into the feature extractor together. Through a series of complex nonlinear transformation processes, the two sets of data are converted into feature vectors F containing rich semantic information. The dataset Z is composed of the COVID-19 screening datasets in the source domain and the target domain, where the source domain dataset is marked as 1 and the target domain dataset is marked as 0, so that the domain discriminator can effectively distinguish them.
[0085] The feature vector F is refined and classified by the label classifier. First, a set of fully connected layers with ReLU as the activation function is used to introduce nonlinear characteristics to further enhance the model's ability to depict complex relationships. Subsequently, the fully transformed features are sent to the output layer with sigmoid as the activation function and converted into the predicted probability value of an individual suffering from COVID-19.
[0086] (3)
[0087] in and Represent the weight matrix and bias vector of the fully connected layer in the label classifier respectively.
[0088] The feature vector F is sent to the domain discriminator to distinguish whether the feature vector F comes from the source domain or the target domain. The domain discriminator is also composed of a set of fully connected layers with ReLU as the activation function and an output layer with sigmoid as the activation function. Finally, it outputs the probability that the sample comes from the source domain. .
[0089] In this embodiment, the model feature extraction layer is composed of the first 3 layers of the self-supervised pre-training model and a Dropout layer; the label classifier is composed of 6 fully connected layers, and the number of neurons is 64, 64, 128, 64, 32, and 32 respectively, and each fully connected layer is followed by a Dropout layer with a rate of 0.5; the domain discriminator is composed of 1 gradient flipping layer and 2 fully connected layers, and the number of neurons is 64 and 32, and each fully connected layer is followed by a Dropout layer with a rate of 0.4.
[0090] The embodiment of the present invention uses AUC, accuracy, specificity, and sensitivity to evaluate the generalization performance of the COVID-19 screening model of Hospital A built based on different algorithms in Hospital B. The detailed results are shown in Table 1.
[0091] Table 1 Comparison of the generalization performance of the COVID-19 screening model of Hospital A constructed with different algorithms in Hospital B
[0092]
[0093] In the table, model1 is the COVID-19 screening model of Hospital A based on fully connected neural network training; model2 is the COVID-19 screening model of Hospital A based on domain adversarial neural network training; model3 is the COVID-19 screening model of Hospital A based on self-supervised learning and domain adversarial neural network training.
[0094] The experimental results show that when the COVID-19 screening was conducted in Hospital B, the AUC of the model integrating self-supervised learning and domain adversarial neural network reached 0.77, which was 10% higher than the model using only fully connected neural network, and 6% higher than the model using only domain adversarial neural network. This significant improvement fully verifies the superiority and practicality of the method of the present invention in improving the generalization ability of the COVID-19 screening model, and is expected to become an important tool for primary medical institutions to conduct efficient and accurate COVID-19 risk assessment under limited resource conditions.
[0095] The training goal of the COVID-19 screening model that combines self-supervised learning and domain adversarial neural network in the present invention is to minimize the COVID-19 classification error in the source domain and maximize the domain classification error, so that the features extracted by the feature extractor can confuse the domain discriminator, thereby aligning the source domain features and the target domain features.
[0096] The second aspect of an embodiment of the present invention provides a COVID-19 risk assessment system based on self-supervised learning and domain adversarial neural network, comprising:
[0097] A self-supervised pre-training data set construction module is used to obtain the blood routine test data of healthy people and the corresponding personnel information to construct a self-supervised pre-training data set, select a specified number of blood routine test items as masked blood routine indicators, and perform masking operations to form a masked indicator data set;
[0098] The COVID-19 screening model dataset construction module is used to obtain the blood routine test data of the general population and the corresponding personnel information, COVID-19 labels and domain labels; the COVID-19 labels are used to distinguish between COVID-19 positive test results and COVID-19 negative test results; the domain labels are used to distinguish between the source domain large sample dataset and the target domain small sample dataset. The number of COVID-19 screening model dataset samples contained in the source domain large sample dataset is greater than the number of samples in the target domain small sample dataset;
[0099] A self-supervised pre-training model building module is used to take the mask indicator dataset as input and the self-supervised pre-training dataset as output to train the model, thereby obtaining a trained self-supervised pre-training model;
[0100] A COVID-19 screening model construction module based on a domain adversarial neural network is used to transfer the trained self-supervised pre-trained model learning to extract feature vectors of a large sample data set in the source domain and perform COVID-19 label classification learning; transfer the trained self-supervised pre-trained model learning to extract feature vectors of a COVID-19 screening model data set and perform domain label classification learning to obtain a trained COVID-19 screening model;
[0101] The model evaluation unit is used to receive the routine blood test data to be predicted and the corresponding personnel information, and input them as a small sample data set in the target domain and a large sample data set in the source domain to the trained new crown screening model, and output the domain discrimination results and the corresponding new crown classification results.
[0102] In one embodiment, the self-supervised pre-training data set construction module also includes a mask unit, which is used to randomly screen a specified number of routine blood test items as masked routine blood test indicators, and use the average value of the corresponding routine blood test items in the self-supervised pre-training data set as the masked routine blood test indicator value to form a masked indicator data set.
[0103] In one embodiment, the personnel information includes: age and gender.
[0104] In one embodiment, the self-supervised pre-training model is a fully connected neural network based on a residual structure, including:
[0105] The input of the fully connected layer is the mask indicator dataset. The fully connected layer performs a linear transformation on the input data and applies a ReLU activation function to generate an intermediate output.
[0106] Using the residual connection mechanism, the original input and the intermediate output are element-wise added to form the output of the residual block;
[0107] The output of the residual block is sent to the final output layer, and the predicted output of the true value of the mask indicator dataset is obtained through linear transformation;
[0108] The MAE indicator is used to determine whether the model meets the training requirements. If so, the training is completed.
[0109] In one embodiment, the COVID-19 screening model based on the domain adversarial neural network includes a feature extractor, a label classifier, and a domain discriminator:
[0110] The transfer learning self-supervised pre-trained model is used as a feature extractor, and it is iteratively optimized based on the COVID-19 label classification results to extract features associated with COVID-19 risk in routine blood data;
[0111] The label classifier uses a fully connected neural network structure. The feature vector extracted by the feature extractor from the source domain large sample data set is input into the fully connected layer with ReLU as the activation function, and the transformed features are sent to the output layer with sigmoid as the activation function to obtain the predicted probability value of an individual suffering from COVID-19.
[0112] The domain discriminator adopts a fully connected neural network structure. The feature vector extracted by the feature extractor from the large sample data set of the source domain and the small sample data set of the target domain is input into the fully connected layer with ReLU as the activation function, and the transformed features are sent to the output layer with sigmoid as the activation function to obtain the probability that the sample originates from the target domain.
[0113] The second aspect of the embodiment of the present invention can be used to execute all the method steps in the first aspect of the embodiment.
[0114] This invention aims to solve the problem of cross-hospital deployment of COVID-19 screening models in a small sample data environment, and innovatively integrates self-supervised learning and domain adversarial neural network technology. Self-supervised learning mines supervisory information from large-scale unlabeled data to improve the learning efficiency and feature extraction capabilities of the model under limited samples; domain adversarial neural networks align the data distribution of the source domain and the target domain to ensure the stable performance of the model in the new environment. This fusion model effectively overcomes data limitations and cross-domain distribution differences, significantly improves the generalization ability of the model, and achieves efficient COVID-19 risk assessment, which is conducive to source prevention and control and reducing the pressure on the medical system.
[0115] The above is a detailed introduction to the new crown risk assessment method and system based on self-supervised learning and domain adversarial neural network provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the ideas of the present invention, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present invention.
[0116] In this article, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
Claims
1. A COVID-19 risk assessment method based on self-supervised learning and domain adversarial neural network, characterized by: The steps include: Model training phase: Constructing a self-supervised pre-training data set: obtaining blood routine test data of healthy people and corresponding personnel information to construct a self-supervised pre-training data set, screening a specified number of blood routine test items as masked blood routine indicators, and performing a masking operation to form a masked indicator data set; the masking operation step includes: randomly screening a specified number of blood routine test items as masked blood routine indicators, and taking the average value of the corresponding blood routine test items in the self-supervised pre-training data set as the masked blood routine indicator value to form a masked indicator data set; Construct a COVID-19 screening model dataset: obtain the blood routine test data of the general population and the corresponding personnel information, COVID-19 labels and domain labels; the COVID-19 labels are used to distinguish between COVID-19 positive test results and COVID-19 negative test results; the domain labels are used to distinguish between the source domain large sample dataset and the target domain small sample dataset. The number of COVID-19 screening model dataset samples contained in the source domain large sample dataset is greater than the number of samples in the target domain small sample dataset; Construct a self-supervised pre-trained model: use the mask indicator dataset as input and the self-supervised pre-trained dataset as output to train the model, and obtain a trained self-supervised pre-trained model; the self-supervised pre-trained model is a fully connected neural network based on a residual structure, including: the fully connected layer input is the mask indicator dataset, the fully connected layer performs a linear transformation on the input data, and applies a ReLU activation function to generate an intermediate output; using the residual connection mechanism, the mask indicator dataset and the intermediate output are element-wise added to form the output of the residual block; the output of the residual block is sent to the final output layer, and the predicted output of the true value of the mask indicator dataset is obtained through linear transformation; according to the MAE indicator, it is judged whether the model meets the training requirements, and if so, the training is completed; Construct a COVID-19 screening model based on a domain adversarial neural network: transfer learning the trained self-supervised pre-trained model to extract the feature vector of the source domain large sample data set, and perform COVID-19 label classification learning; transfer learning the trained self-supervised pre-trained model to extract the feature vector of the COVID-19 screening model data set, and perform domain label classification learning to obtain a trained COVID-19 screening model; the COVID-19 screening model based on a domain adversarial neural network includes a feature extractor, a label classifier, and a domain discriminator: transfer learning the self-supervised pre-trained model as a feature extractor, and iteratively optimize it according to the COVID-19 label classification results to extract features related to COVID-19 risks in routine blood data. The label classifier adopts a fully connected neural network structure, inputs the feature vector extracted by the feature extractor of the source domain large sample data set into the fully connected layer with ReLU as the activation function, and sends the transformed features into the output layer with sigmoid as the activation function to obtain the predicted probability value of the individual suffering from the new crown; the domain discriminator adopts a fully connected neural network structure, inputs the feature vector extracted by the feature extractor of the source domain large sample data set and the target domain small sample data set into the fully connected layer with ReLU as the activation function, and sends the transformed features into the output layer with sigmoid as the activation function to obtain the probability that the sample originates from the target domain; Model prediction stage: The routine blood test data to be predicted and the corresponding personnel information are input into the trained COVID-19 screening model as a small sample data set of the target domain, and the corresponding COVID-19 classification results are output.
2. According to claim 1, a new crown risk assessment method based on self-supervised learning and domain adversarial neural network is characterized in that: The personnel information includes: age and gender.
3. A COVID-19 risk assessment system based on self-supervised learning and domain adversarial neural network, characterized in that: include: A self-supervised pre-training data set construction module is used to obtain the blood routine test data of healthy people and the corresponding personnel information to construct a self-supervised pre-training data set, select a specified number of blood routine test items as masked blood routine indicators, and perform masking operations to form a masked indicator data set; The COVID-19 screening model dataset construction module is used to obtain the blood routine test data of the general population and the corresponding personnel information, COVID-19 labels and domain labels; the COVID-19 labels are used to distinguish between COVID-19 positive test results and COVID-19 negative test results; the domain labels are used to distinguish between the source domain large sample dataset and the target domain small sample dataset. The number of COVID-19 screening model dataset samples contained in the source domain large sample dataset is greater than the number of samples in the target domain small sample dataset; A self-supervised pre-training model construction module is used to use the masked indicator data set as input and the self-supervised pre-training data set as output training model to obtain a trained self-supervised pre-training model; including a mask unit, which is used to randomly select a specified number of routine blood test items as masked routine blood test indicators, and use the average value of the corresponding routine blood test items in the self-supervised pre-training data set as the masked routine blood test indicator value to form a masked indicator data set; The self-supervised pre-training model is a fully connected neural network based on a residual structure, including: the input of the fully connected layer is a mask indicator data set, the fully connected layer performs a linear transformation on the input data, and applies a ReLU activation function to generate an intermediate output; using a residual connection mechanism, the mask indicator data set and the intermediate output are element-wise added to form the output of the residual block; the output of the residual block is sent to the final output layer, and the predicted output of the true value of the mask indicator data set is obtained through linear transformation; according to the MAE indicator, it is judged whether the model meets the training requirements, and if so, the training is completed; The COVID-19 screening model construction module based on domain adversarial neural network is used for transfer learning. The trained self-supervised pre-trained model is used to extract the feature vector of the source domain large sample data set, and perform COVID-19 label classification learning; transfer learning. The trained self-supervised pre-trained model is used to extract the feature vector of the COVID-19 screening model data set, and perform domain label classification learning to obtain a trained COVID-19 screening model; the COVID-19 screening model based on domain adversarial neural network includes a feature extractor, a label classifier and a domain discriminator: transfer learning. The self-supervised pre-trained model is used as a feature extractor, and iterative optimization is performed according to the COVID-19 label classification results to extract COVID-19 risk related features in the blood routine data. The label classifier adopts a fully connected neural network structure, inputs the feature vector extracted by the feature extractor of the source domain large sample data set into the fully connected layer with ReLU as the activation function, and sends the transformed features into the output layer with sigmoid as the activation function to obtain the predicted probability value of the individual suffering from the new crown; the domain discriminator adopts a fully connected neural network structure, inputs the feature vector extracted by the feature extractor of the source domain large sample data set and the target domain small sample data set into the fully connected layer with ReLU as the activation function, and sends the transformed features into the output layer with sigmoid as the activation function to obtain the probability that the sample originates from the target domain; The model evaluation unit is used to receive the routine blood test data to be predicted and the corresponding personnel information, and input it as a small sample data set of the target domain into the trained new crown screening model, and output the corresponding new crown classification result.
4. According to claim 3, a new crown risk assessment system based on self-supervised learning and domain adversarial neural network is characterized in that: The personnel information includes: age and gender.
