Image classification method based on multi-target domain self-adaption
By combining comparative learning and course learning in multi-objective domain adaptive ASD classification, the problem of data distribution differences in multiple unlabeled data centers is solved, more accurate ASD image classification is achieved, and the diagnostic accuracy and model prediction ability are improved. .
Patent Information
- Application Number
- CN202410845268.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-09-10
AI Technical Summary
The existing technology is difficult to handle the data distribution differences of multiple unlabeled data centers in multi-target domain adaptive ASD classification, resulting in inaccurate classification predictions.
Using a multi-target domain adaptive image classification method, combined with contrastive learning and course learning, the data distribution of the source domain and the target domain is brought closer through the contrastive domain adaptive method, and pseudo label technology is used to expand the source domain and gradually adapt to multiple target domains. This enables domain-invariant feature learning across multiple target domains.
It improves the accuracy and diagnostic accuracy of ASD image classification, reduces the risk of model overfitting, and can learn more useful feature representations under limited training data to assist doctors in making more accurate clinical judgments.
Smart Images

Figure CN118628831A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of medical image processing, and in particular to an image classification method based on multi-target domain adaptation. Background Art
[0002] Autism spectrum disorder (ASD) is a complex neurodevelopmental disorder with social communication deficits, narrow interests, and repetitive stereotyped behaviors as its main clinical manifestations. Over the past 50 years, ASD has evolved from a narrow, rare childhood disorder to a lifelong condition that is widely concerned, advocated, and studied. Researchers have applied resting-state functional magnetic resonance imaging (rs-fMRI) technology to clinical diagnosis. This technology does not require subjects to be stimulated or respond to stimuli, and is widely used in clinical practice. Medical images of patients contain a lot of rich information that cannot be directly observed by the naked eye. With the application of machine learning technology in neuroimaging, many studies on ASD classification have achieved good results and discovered some resting-state functional connections related to ASD.
[0003] In recent years, domain adaptation (DA), a transfer learning technique, has seen initial application in multi-center ASD assisted diagnosis. Currently, unsupervised domain adaptation (UDA) combined with rs-fMRI technology has achieved some success in ASD assisted diagnosis modeling. However, traditional unsupervised domain adaptation methods only consider scenarios with single or multiple labeled data centers and are unable to handle multiple unlabeled data centers.
[0004] Multi-target domain adaptation (MTDA) is capable of classifying multiple unlabeled data domains given only a single labeled data domain. It effectively leverages data from a labeled source domain and multiple unlabeled target domains to learn a model that performs well on multiple target domains. In MTDA, given the differences in data distribution across multiple target domains, adapting the model to each target domain is a significant challenge. Curriculum learning is an effective strategy to address this issue, particularly when dealing with the diverse data distributions across multiple target domains encountered in MTDA.
[0005] In multi-objective classification, learning effective domain-invariant representations across multiple objects is a critical task. Currently, most MTDA research adopts domain adversarial methods, but this requires a large amount of training data. In contrast, contrastive learning can learn more useful feature representations with limited training data. However, when medical datasets are small and feature dimensionality is high, the model is prone to the risk of overfitting. Therefore, combining curriculum learning and contrastive learning in MTDA is of great significance for developing high-performance multi-objective domain-adaptive ASD classification prediction models.
[0006] After searching, Chinese invention patent publication number CN118133014A discloses a method for autism classification based on a variable edge graph convolutional network. The method includes using a pairwise association encoder to construct a population graph, including training the subject's brain imaging data features with a multi-layer perceptron to obtain high-order features of the imaging data, and using the subject's non-imaging data to construct a pairwise association encoder. The population graph is then combined with the subject's brain imaging data to construct the population graph; the constructed population graph is input into a graph convolutional network (GCN) to obtain a jointly optimized population graph, including using the graph convolutional network to learn and semi-supervise disease prediction on the population graph, and then using the powerful aggregation ability of the graph convolutional network to effectively mine the subject's imaging features; and a linear classifier is used for classification, including inputting node information into the linear classifier and outputting the predicted label for each node. This existing patent has the problem of inaccurate autism classification.
[0007] How to achieve accurate classification and prediction of brain imaging data has become a technical problem that needs to be solved. Summary of the Invention
[0008] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and provide an image classification method based on multi-target domain adaptation, which uses computer technology and deep learning methods to conduct in-depth analysis of the characteristic information of rs-fMRI brain images.
[0009] The purpose of the present invention can be achieved by the following technical solutions:
[0010] According to one aspect of the present invention, a method for image classification based on multi-objective domain adaptation is provided, the method comprising the following steps:
[0011] Step S1, obtaining brain rs-fMRI image data of a source domain and multiple target domains, where one target domain is from a subject;
[0012] Step S2, preprocessing the brain rs-fMRI image data obtained in step S1 to obtain the functional connectivity features of each image data;
[0013] Step S3, inputting the result of step S2 into the pre-trained ASD classification prediction model for training;
[0014] Step S4: Using the contrastive domain adaptation method to bring the data distribution of the source domain and the target domain closer;
[0015] Step S5: Use the multi-layer perceptron in the trained ASD classification prediction model to analyze the subject's brain rs -fMRI image data is classified and predicted to obtain classification prediction results.
[0016] Preferably, the ASD classification prediction model includes a feature extractor, a graph convolutional network, a multi-layer perceptron and a contrastive learning module; the feature extractor extracts features of the source domain and the target domain, and inputs them into the graph convolutional network and the multi-layer perceptron for pre-training; the contrastive learning module uses a contrastive domain adaptation method to bring the data distribution of the source domain and the target domain closer.
[0017] Preferably, the training of the ASD classification prediction model selects a target domain based on the uncertainty of the target domain, specifically by adopting a domain adaptation strategy from easy to difficult, that is, starting domain adaptation from the easiest target domain and then gradually moving to the most difficult target domain;
[0018] The target domain with the least uncertainty is selected as the target domain that is easiest to adapt to: Where u(T m ) is the uncertainty of the target domain m, is the target domain selected in course step q, and argmin is the parameter function to be minimized.
[0019] More preferably, the uncertainty of the target domain is calculated by integrating the uncertainty of all samples in the target domain, specifically: the confidence distributions of given sample i and sample j are respectively: and in is the trust quality of category c, u i is the uncertainty of sample i;
[0020] The confidence combination rule is For all samples in the target domain, the confidence quality and uncertainty quality are fused using the following rule:
[0021]
[0022] Finally, the joint confidence distribution of the target domain is obtained
[0023] More preferably, the training of the ASD classification prediction model further includes: using a contrastive learning method to perform domain adaptation to achieve alignment of source domain and target domain data distribution; and performing source domain updating.
[0024] More preferably, the domain adaptation using the contrastive learning method includes:
[0025] First, from the source domain S q Randomly select N A samples, and denote each selected sample as i=1,…,N A ;
[0026] Then randomly select N P samples, that is
[0027] Finally, among the selected samples, two samples with the same label are considered as positive pairs, while two samples with different labels are considered as negative pairs.
[0028] More preferably, the source domain update is to merge high-confidence target domain samples into the source domain to expand the source domain, specifically: use the prediction results of the graph convolutional network on the target domain samples as pseudo labels to train the model, let γ2 be the threshold for selecting pseudo labels, and if the pseudo label confidence of the sample is greater than γ2, then add it to the source domain for subsequent course learning;
[0029] After obtaining all high-confidence samples in the target domain, a dataset is generated. Contains samples and their pseudo labels and adds them to the source domain Sq:
[0030] At the same time, from the target domain T q Remove the target domain selected in the previous step
[0031] Preferably, the final optimization goal of the ASD classification prediction model is:
[0032]
[0033] Among them, λ edge ,λ gcn and λ cl They are and The hyperparameters of and They are the cross entropy loss of multi-layer perceptron, the cross entropy loss of graph convolutional network, the cross entropy loss of graph convolutional network optimized edge network prediction, and the objective function of contrastive learning method for domain adaptation.
[0034] More preferably, the objective function of the contrastive learning method for domain adaptation is:
[0035]
[0036] Among them, N A Select the number of samples for the source domain, N P Choose the number of samples for the target domain, Select samples for the source domain, Select samples for the target domain, f k In the embedding space There are feature representations with different labels, sim(·, ·) is the cosine similarity of two vectors; τ is the temperature hyperparameter that controls the similarity scale.
[0037] More preferably, the cross entropy loss of the graph convolutional network is:
[0038]
[0039] The multi-layer perceptron cross entropy loss is:
[0040]
[0041] in, is the graph convolutional network G gcn For source domain samples predictions, is a multilayer perceptron H mlp For source domain samples predictions, is the number of source domain samples, y S,i is the true label of the sample, G gcn Prediction probability, H mlp Predicted probability.
[0042] Compared with the prior art, the present invention has the following beneficial effects:
[0043] 1) For the extracted ASD resting-state functional connectivity features, the present invention selects the target domain that is most beneficial for domain adaptation through a trusted curriculum learning mechanism, and performs domain adaptation for multiple target domains in order from easy to difficult. At the same time, a contrastive domain adaptation method is introduced to align the data distribution of the source domain and the target domain, thereby promoting the learning of domain-invariant features across multiple target domains. Compared with traditional multi-target domain adaptation methods, the image classification prediction results are more accurate, thereby further improving the accuracy of ASD auxiliary diagnosis.
[0044] 2) The present invention combines pseudo-labeling technology by selecting high-confidence reliable pseudo-labeled target domain data and adding it to the source domain for training, thereby improving the model's predictive ability. Through the trained network model, the present invention can better assist doctors in making clinical judgments and save medical resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 A schematic diagram of the principle of uncertainty domain selection in the present invention;
[0046] Figure 2 Schematic diagram of the principle of dynamic graph comparative learning in the present invention;
[0047] Figure 3Schematic diagram of the principle of source domain update in the present invention;
[0048] Figure 4 Schematic diagram of the process of preprocessing brain rs-fMRI data in the present invention;
[0049] Figure 5 Schematic diagram of the process of the image classification method in the present invention. DETAILED DESCRIPTION
[0050] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.
[0051] This invention is not a direct ASD treatment or diagnosis method, but rather a technical aid. By analyzing the patient's brain imaging data, a comprehensive analysis of the patient can be performed to help doctors determine whether the patient is ill, thereby saving medical resources and improving patient survival rates.
[0052] In multi-center ASD classification prediction, the ASD data of different imaging centers have different distribution differences, which show different domain offsets during the domain adaptation process. To solve this problem, the present invention considers the target domain adaptation order problem in multi-target domain adaptation when constructing a multi-target unsupervised domain adaptation model for multi-center ASD image classification prediction, and uses the Dempster-Shafer (hereinafter referred to as DS) evidence theory to evaluate the difficulty of each target domain adaptation to handle the different offset degrees of multiple target domains.
[0053] This embodiment relates to an image classification method based on multi-objective domain adaptation, such as Figure 5 , including the following steps:
[0054] Step S1, collecting brain rs-fMRI image samples from subjects at multiple imaging centers;
[0055] Step S2: Use the DPARSF toolbox to preprocess the brain rs-fMRI data to obtain the functional connectivity features of each sample. The preprocessing includes brain region division, average BOLD time series, and generation of functional connectivity features, such as Figure 4 ;
[0056] In step S3, multiple imaging centers are divided into a source domain and multiple target domains, and all samples in the source domain and target domain are sent to the graph convolutional network (GCN) and multi-layer perceptron (MLP) for pre-training;
[0057] Step S4: Use DS evidence theory to evaluate the uncertainty of each target domain adaptation, where lower uncertainty indicates that the target domain is more conducive to domain adaptation from the source domain;
[0058] Step S5: Select the target domain with the smallest uncertainty and use the contrastive domain adaptation method to bring the data distribution of the source domain and the target domain closer. Use the graph convolutional network to predict all samples in the target domain and give pseudo labels. Select samples with pseudo label confidence higher than the threshold and add them to the source domain.
[0059] Step S6, fine-tuning using the updated source domain; removing the target domain selected in step 4) from all target domains; repeating steps S4 to S6 repeatedly until all target domains are traversed;
[0060] Step S7: Obtain the subject's brain rs-fMRI image data and input it into the trained network model to complete the ASD image classification prediction of the target domain subject.
[0061] The process of the method of the present invention is as follows Figure 1-Figure 3 As shown, it includes three stages: the first stage: uncertainty-based domain selection, the second stage: dynamic graph comparison domain adaptation, and the third stage: source domain update.
[0062] In the first stage, DS evidence theory is introduced to calculate the uncertainty of each target domain, and the target domain with the lowest uncertainty is selected for subsequent domain adaptation; in the second stage, contrastive learning method is used for domain adaptation to achieve alignment of data distribution of source domain and target domain; in the third stage, samples with confidence higher than the threshold in the target domain selected in the second stage are added to the source domain.
[0063] In the first stage, if Figure 1 , we adopt a domain adaptation strategy from easy to difficult, that is, we start domain adaptation from the simplest target domain and then gradually move to the most difficult target domain. We use the DS evidence theory, which is very effective in dealing with overconfidence. For a C classification task, the Dirichlet distribution of sample i is Dirichlet(α i )=Dirichlet(e i +1), where is the evidence obtained from the network output to support the sample classification. After obtaining the Dirichlet distribution of each sample, we estimate the uncertainty of the overall target domain by integrating the Dirichlet distributions of multiple samples. is the trust quality of category c, u i is the uncertainty of sample i, In order to combine the confidence distribution of the sample, we first calculate the confidence quality of the cth class and the uncertainty u of sample i i :
[0064]
[0065] where δ c is the Dirichlet intensity.
[0066] The uncertainty of the overall target domain is calculated by integrating the uncertainty of all samples in the target domain. Given the confidence distribution of two samples and The confidence combination rule is Given all samples in the target domain, we can fuse the confidence quality and uncertainty quality using the following rule: Finally, the joint confidence distribution of the target domain is obtained In the multi-target domain setting, we calculate the uncertainty of each target domain using the above process. We then select the target domain with the smallest uncertainty as the target domain that is easiest to adapt: Where u(T m ) is the uncertainty of the target domain m, is the target domain selected in course step q, and argmin is the parametric function for minimization.
[0067] The second stage consists of four modules: feature extractor F, graph convolutional network (GCN) G gcn , Multilayer Perceptron (MLP) H mlp and contrastive learning modules, e.g. Figure 2 This stage aims to align the features of the source domain with those in the currently selected target domain, ensuring that they share the same data distribution.
[0068] In most previous graph-based ASD classification methods, edge weights are calculated based on prior information (such as age or gender). However, due to the heterogeneity of ASD, this approach may not accurately reflect the true relationships between samples. To address this issue, we introduced dynamic graph learning, which uses an edge predictor to automatically learn the relationship between two adjacent nodes.
[0069] The graph learning process consists of two steps, namely edge construction and node update. In the first step, the node embedding is fixed and the edge predictor g is used to edge Learn the relationship between two nodes. In the second step, the node embedding is performed using the node network g node Update while keeping the edges fixed.
[0070] Specifically, in the first step, we construct the graph Γ q The adjacency matrix in Represents the relationship between samples. If two nodes belong to the same class, y i =y j When the edge weight The value is 1; otherwise, the value is 0. q The samples have labels, so we use the label information directly to construct But since the target domain The labels of the target domain samples are not available, and the target domain samples Use H mlp Predict and get pseudo labels If the confidence of the predicted pseudo label is less than the threshold γ1, the target domain sample corresponding to the pseudo label is not used to adjust the edge construction.
[0071] The edge network generates an affinity matrix based on node information in is the predicted value of the edge network, reflecting the degree to which samples i and j belong to the same class. A higher value indicates that the two samples are more likely to belong to the same class. We define where f i and f j Represents the nodes in the graph, which are generated by the feature extractor F, g edge (·,·) is a nonlinear mapping used to calculate f i and f j The degree to which they belong to the same class. The predicted edge weights should be as consistent as possible with their true values, so we use binary cross entropy loss To optimize the prediction of the edge network, represents the edge weight between samples i and j predicted by the edge network, For output belonging to probability.
[0072] Specifically, in the second step, the edge weights learned are fixed when the nodes are updated, and the nodes are updated according to Update, g node (·,·) represents the node update network, is the set of neighbor nodes of the current node i. The node update network aggregates features in the neighborhood based on the estimated affinity matrix.
[0073] Because both the source and target domains are class-imbalanced and have different label distributions, classic adversarial domain adaptation methods are ineffective because they assume that the categories in the source and target domains are balanced. This paper proposes a contrastive domain adaptation method that considers category information and aligns features of the same category. The idea is to pull samples of the same category closer together in the embedding space, while pushing samples of different categories farther apart, regardless of whether they are in the same domain. This is essentially a contrastive learning process that reduces the distance between samples of the same category while increasing the distance between samples of different categories in the source and target domains.
[0074] We first start from the source domain S q Randomly select N A samples, and denote each selected sample as We then randomly select N P samples, that is Among the selected samples, two samples with the same label are regarded as a positive pair, while two samples with different labels are regarded as a negative pair, regardless of whether they are in the same domain or not.
[0075] Next, we define the objective function of contrastive domain adaptation as:
[0076]
[0077] where f k is in the embedding space with There are feature representations with different labels; sim(·, ·) is the cosine similarity of two vectors; τ is a temperature hyperparameter that controls the similarity scale.
[0078] This paper transforms the ASD classification prediction task into a classification problem, trains graph convolutional networks and multi-layer perceptrons on the source domain, and defines their cross entropy losses as:
[0079]
[0080] in, and They are H mlp and G gcn For source domain samples predictions, is the number of source domain samples, y S,i is the true label of the sample, G gcn Prediction probability, H mlp Predicted probability.
[0081] The final optimization goal of the network structure designed by the method of the present invention is the weighted sum of four loss functions, which are defined as: Among them, λ edge ,λ gcn and λ cl They are and hyperparameters.
[0082] The third stage is to expand the source domain by merging high-confidence target domain samples into the source domain. Figure 3 , we use the prediction results of the graph convolutional network on the target domain samples as pseudo labels to train the model. Let γ2 be the threshold for selecting pseudo labels. If the pseudo label confidence of the sample is greater than γ2, it is added to the source domain for subsequent course learning. After obtaining all the high-confidence samples in the target domain, we generate a dataset Include the samples and their pseudo labels and add them to the source domain: At the same time, from T q Remove the target domain selected in the previous step
[0083] In this embodiment, the initial learning rate is 0.0005, the SGD optimizer is used, the weight decay Weight_decay is set to 0.0005, and the momentum coefficient Momentum is set to 0.9.
[0084] This example uses the public dataset ABIDE I. Table 1 shows the demographic information of the five imaging center samples used in this example.
[0085] Table 1 Demographic information of the sample from five imaging centers
[0086]
[0087] The following are the results of one of the experiments in this example. The prediction accuracy and average accuracy of the proposed method for the four target domains of LEUVEN, PITT, UCLA_1, and USM were 0.6738, 0.7433, 0.7089, 0.7321, and 0.7146, respectively. This demonstrates that the trained network model can effectively perform image classification and assist physicians in diagnosis.
[0088] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and such modifications or substitutions are intended to be within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of protection of the claims.
Claims
1. An image classification method based on multi-objective domain adaptation, It is characterized in that The method comprises the following steps: Step S1, obtaining brain rs-fMRI image data of a source domain and multiple target domains, wherein one target domain is from a subject; Step S2, preprocessing the brain rs-fMRI image data obtained in step S1 to obtain the functional connection features of each image data; Step S3, inputting the result of step S2 into the pre-trained ASD classification prediction model for training; Step S4, using a comparative domain adaptation method to bring the data distribution of the source domain and the target domain closer; Step S5, using the multi-layer perceptron in the trained ASD classification prediction model to perform classification prediction on the subject's brain rs-fMRI image data to obtain a classification prediction result.
2. The image classification method based on multi-objective domain adaptation according to claim 1, It is characterized in that The ASD classification prediction model includes a feature extractor, a graph convolutional network, a multi-layer perceptron and a contrastive learning module; The feature extractor extracts features of the source domain and the target domain, and inputs them into a graph convolutional network and a multi-layer perceptron for pre-training; the contrastive learning module uses a contrastive domain adaptation method to bring the data distribution of the source domain and the target domain closer.
3. The image classification method based on multi-objective domain adaptation according to claim 1, It is characterized in that The training of the ASD classification prediction model selects a target domain based on the uncertainty of the target domain, specifically: adopting a domain adaptation strategy from easy to difficult, that is, starting domain adaptation from the easiest target domain and then gradually turning to the most difficult target domain; Select the target domain with the least uncertainty as the target domain that is easiest to adapt to: Where u(T m ) is the uncertainty of the target domain m, is the target domain selected in course step q, and argmin is the parameter function for minimization.
4. The image classification method based on multi-objective domain adaptation according to claim 3, It is characterized in that The uncertainty of the target domain is calculated by integrating the uncertainty of all samples in the target domain. Specifically, the confidence distributions of given samples i and j are: and in is the trust quality of category c, u i is the uncertainty of sample i; The confidence combination rule is For all samples in the target domain, the confidence quality and uncertainty quality are fused using the following rule: Finally, we get the joint confidence distribution of the target domain 5. The image classification method based on multi-objective domain adaptation according to claim 3, It is characterized in that The training of the ASD classification prediction model also includes: using a contrastive learning method to perform domain adaptation to achieve alignment of source domain and target domain data distribution; and performing source domain updating.
6. The image classification method based on multi-objective domain adaptation according to claim 5, It is characterized in that The domain adaptation using contrastive learning method includes: First, randomly select N from the source domain Sq A samples, and denote each selected sample as Then randomly select N P samples, that is Finally, among the selected samples, two samples with the same label are considered as positive pairs, while two samples with different labels are considered as negative pairs.
7. The image classification method based on multi-objective domain adaptation according to claim 5, It is characterized in that The source domain update is to merge high-confidence target domain samples into the source domain to expand the source domain. Specifically, the prediction results of the graph convolutional network on the target domain samples are used as pseudo labels to train the model, and γ 2 To select the threshold of pseudo labels, if the pseudo label confidence of the sample is greater than γ 2 , then add it to the source domain for subsequent course learning; After obtaining all high-confidence samples in the target domain, a dataset is generated Contains samples and their pseudo labels and adds them to the source domain Sq: At the same time, from the target domain T q Remove the target domain selected in the previous step 8. The image classification method based on multi-objective domain adaptation according to claim 1, It is characterized in that The ultimate optimization goal of the ASD classification prediction model is: Among them, λ edge , gcn and λ cl They are and The hyperparameters of and They are the cross entropy loss of multi-layer perceptron, the cross entropy loss of graph convolutional network, the cross entropy loss of graph convolutional network optimized edge network prediction, and the objective function of contrastive learning method for domain adaptation.
9. The image classification method based on multi-objective domain adaptation according to claim 8, It is characterized in that The objective function of the contrastive learning method for domain adaptation is: Among them, N A Select the number of samples for the source domain, N P Choose the number of samples for the target domain, Select samples for the source domain, Select samples for the target domain, f k In the embedding space There are feature representations with different labels, sim(·, ·) is the cosine similarity of two vectors; τ is the temperature hyperparameter that controls the similarity scale.
10. The image classification method based on multi-objective domain adaptation according to claim 8, It is characterized in that The cross entropy loss of the graph convolutional network is: The multi-layer perceptron cross entropy loss is: in, G is the graph convolutional network gcn For source domain samples predictions, is a multi-layer perceptron H mlp For source domain samples predictions, is the number of source domain samples, y S,i is the true label of the sample, G gcn Prediction probability, H mlp Predicted probability.
Citation Information
Patent Citations
Autism classification method based on variable edge graph convolutional network
CN118133014A
Cited By
Uncertainty perception passive multi-target field adaptive image classification method
CN120726396A
