A rare disease classification method based on federated meta-learning

By adopting enhanced classification meta-learning methods and dynamic feature fusion strategies in rare disease classification, the problems of low rare disease classification accuracy and low model communication efficiency in the existing technology are solved, and higher disease diagnosis accuracy and communication efficiency are achieved. .

CN114566277BActive Publication Date: 2024-09-06CHINA UNIV OF PETROLEUM (EAST CHINA)
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202210173273.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-24
Publication Date
2024-09-06
Estimated Expiration
2042-02-24

AI Technical Summary

Technical Problem

Existing federated learning methods have low accuracy and low model communication efficiency in rare disease classification, especially when the sample categories are unbalanced. The effect is limited, and the large Transformer model used takes up a large amount of video memory space and reduces communication efficiency.

Method used

Adopting a meta-learning method and dynamic feature fusion strategy based on reinforcement classification, by uploading only meta-models with a higher F-score than the global model in each hospital, and combining the model's F-score, accuracy and data volume for dynamic feature fusion, it improves federation Diagnostic accuracy of learning and communication efficiency between models.

Benefits of technology

It significantly improves the classification accuracy of rare diseases and the communication efficiency between models, alleviates the negative impact of average model fusion on diagnostic accuracy, and improves the diagnostic accuracy and scientific research efficiency of rare diseases.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114566277B
    Figure CN114566277B
Patent Text Reader

Abstract

The present invention belongs to the medical field, and discloses a rare disease classification method based on federated meta-learning, including: pre-processing local medical data, dividing common diseases into support sets and query sets for meta-model training, and dividing rare diseases into test sets and validation sets; based on the meta-learning method of enhanced classification, dynamically updating and classifying the support set and the query set to obtain the trained meta-model; dynamically screening the trained meta-model with the F score, and performing dynamic feature fusion to obtain the updated global model; sending the updated global model parameters to the local meta-model for initialization, and starting the next round of training; until each local converged meta-model is obtained, and obtaining the rare disease probability value according to the converged meta-model. The present invention applies meta-learning based on enhanced classification and federated learning based on dynamic fusion strategy to the federated meta-learning framework, which helps to improve the accuracy of the model for rare disease classification and the communication efficiency between models.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of medical care and federated learning technology, and more specifically to a rare disease classification method based on federated meta-learning. Background Art

[0002] At present, the patent application number is 202010843441.3. This method uses meta-learning technology to discover the ability of unseen disease categories to diagnose diseases; the patent application number is 202011107453.6. This invention corrects the label recognition accuracy by analyzing the probability distribution based on the impact of the imbalanced data problem on the model. According to the impact of the abnormal data problem on the model, encrypted data sharing is proposed. By processing the abnormal data, the weighted coefficients of each participant or computing node are modified to ensure the accuracy of federated learning diagnosis; the patent application number is 202011633747.2. This application uses the meta-learning algorithm to quickly converge to its optimal solution with only a small amount of training. The initial model can ensure that it can quickly converge on similar tasks in the future to obtain the corresponding result model, saving computing resources and facilitating the healthy operation of the system; the paper Feature-context driven Federated Meta-Learning for Rare Although DiseasePrediction has improved meta-learning and federated learning, its dynamic fusion strategy uses accuracy as the main parameter, ignoring the negative impact of imbalanced sample categories on model performance. Secondly, it uses Transformer with large model parameters as the base model, which requires huge video memory space for secondary gradient calculation in the meta-learning framework, reducing the model communication efficiency. In addition, it uses the MAML framework to train the model with a fixed learning rate, and the prediction effect is relatively limited.

[0003] Although the above patents have made certain improvements for different problems, there are still deficiencies in the improvement of federated learning or meta-learning methods, and the problems of inaccurate classification of rare diseases and low model communication efficiency have not been well solved.

[0004] Therefore, how to provide a classification method that can improve the accuracy of rare disease classification and the efficiency of communication between models is an urgent problem that technicians in this field need to solve. Summary of the invention

[0005] In view of this, the present invention provides a rare disease classification method based on federated meta-learning, which improves the accuracy of disease classification through a meta-learning method based on reinforcement classification, and helps to improve the recognition effect of rare diseases; the present invention proposes a dynamic feature fusion strategy, that is, only upload meta-models with higher F scores than the global model in each hospital, and the fusion is no longer only weighted by the amount of data, but the F score, accuracy and data volume of the model are dynamically fused to ensure the accuracy of federated learning detection. The present invention applies the meta-learning method based on reinforcement classification and the federated learning method of dynamic fusion strategy to the federated meta-learning framework, which improves the accuracy of rare disease classification, helps to improve the diagnostic accuracy of the model for rare diseases and the communication efficiency between models.

[0006] In order to achieve the above object, the present invention adopts the following technical solution:

[0007] A rare disease classification method based on federated meta-learning, the specific steps are as follows:

[0008] S1. Divide local medical data into common diseases and rare diseases. Common diseases are divided into support sets and query sets for meta-model training, and rare diseases are divided into test sets and validation sets.

[0009] S2, a meta-learning method based on enhanced classification, supports the set and query set to dynamically update the meta-model and obtain the trained meta-model;

[0010] S3, the local server evaluates and screens the trained meta-model on the test set;

[0011] S4, the local server uploads the filtered meta-model to the central server, and the central server performs dynamic feature fusion to obtain an updated global model;

[0012] S5. The central server sends the updated global model parameters to each local server. The local server initializes each meta-model and starts a new round of meta-model training.

[0013] S6, iterating steps S3-S5 until the local server obtains the converged meta-model;

[0014] S7. Input the validation set into the converged meta-model to obtain rare disease classification results.

[0015] Preferably, in S1, the specific steps are as follows:

[0016] S11. Definition of common diseases and rare diseases: Based on the experience of medical experts, disease categories with large sample sizes are considered common diseases, and the remaining disease categories are considered rare diseases;

[0017] S12, divide common diseases into tasks to obtain a support set for meta-model training: randomly select K samples of N types of common diseases to form a task, and select multiple tasks to form the support set for meta-model training;

[0018] S13, divide common diseases into tasks to obtain a query set for meta-model training: select N categories of common diseases that are the same as the support set, randomly select 3K samples from each category to form a task, and use tasks with the same number and distribution as the support set to form the query set;

[0019] S14. Divide rare diseases into test sets and validation sets: Select a sample from each type of rare disease as the test set to adjust the trained meta-model, and then use the rare disease samples that did not participate in the training as the validation set for classification and diagnosis.

[0020] Preferably, the step S2 specifically includes the following steps:

[0021] S21, in the inner loop of meta-learning, calculating the loss of the support set based on the loss function, and determining the inner loop update parameters according to the loss and gradient information;

[0022] S22. In the outer loop of meta-learning, outer loop parameter training is performed on the meta-model parameters according to the query set and the inner loop update parameters to obtain outer loop update parameters; and meta-model training is performed according to the outer loop update parameters.

[0023] Preferably, the step S3 specifically includes the following steps:

[0024] S31, the local server evaluates the trained meta-model score on the test set;

[0025] S32. The local server selects a meta-model with an F score higher than the F score of the global model in the previous round for uploading.

[0026] Preferably, the step S4 specifically includes the following steps:

[0027] The central server calculates the weight based on the F score, accuracy and data volume of the selected meta-model. The central server performs dynamic feature fusion processing on the selected meta-model to obtain an updated global model.

[0028] The dynamic feature fusion process includes:

[0029] The weights of the selected meta-models are calculated using F-score, accuracy, and data volume, respectively. The formula is as follows:

[0030]

[0031] Among them, w rj is the weight of the jth meta-model uploaded in the rth round, i means that a total of i hospitals uploaded meta-models in this round, represents the F score of the j-th meta-model uploaded, Represents the corresponding accuracy and data volume, and softmax means that the sum of all parameters is 1;

[0032] The formula for the global model update process is as follows:

[0033]

[0034] F(θ, lr) is the global model obtained in this round of update, θ is the initialization parameter of the model, lr represents the learning rate, and f j (θ, lr) represents the metamodel uploaded by the current j-th hospital.

[0035] Preferably, in S21, the inner loop strengthens the classification conditions and dynamically updates the parameters as follows:

[0036] In the classification task, the probability p(x) of a certain category can be expressed as:

[0037] p(x) = softmax(<z,w> )

[0038] Where z represents the input vector and w is the corresponding weight.<z,w> represents inner product calculation;

[0039] Assumptions:

[0040] w=(w1,w2,...w n )

[0041] but:

[0042] p(x) = softmax(<z,w1> ,<z,w2> , ..., <z,w n >)

[0043] If z, w i (i=1, 2...n) L2 norm normalization:

[0044]

[0045] Among them, c i Represents the product after L2 norm processing, and the loss is calculated using the cross entropy function:

[0046]

[0047] Among them, t represents the target label. Since the model is less effective in identifying marginal samples, the loss of each round of model training is updated by strengthening the classification conditions. The formula is as follows:

[0048]

[0049] Where v represents the sample weight of the current linear layer. On the basis of strengthening the classification conditions, for edge samples, the v value is small, the sample distance is large, and the classification conditions should be slightly loose; for center samples, the v value is large, the intra-class distance is small, and the classification conditions are stricter.

[0050] The local server updates the model parameters by stochastic gradient descent. The specific formula is as follows:

[0051]

[0052] in, represents the base model trained on the support set, α represents the learning rate of the base model in the inner loop, T i is the i-th task, θ is the initialization parameter, θ c are the parameters of the base model, It means taking the derivative with respect to θ.

[0053] Preferably, in S22, the loss is calculated in the query set, and the outer loop update parameter is obtained according to the loss and the inner loop update parameter, and the process is as follows:

[0054] The local server updates the model parameters by stochastic gradient descent and dynamically updates the base model parameters θ c And the base model learning rate α, the specific formula is as follows:

[0055]

[0056] Among them, β represents the learning rate of the outer loop of the model, θ c′ are the parameters of the metamodel, and P(T) represents the distribution of tasks.

[0057] It can be seen from the above technical solutions that, compared with the prior art, the present invention has the following beneficial effects:

[0058] (1) A meta-learning method based on reinforcement classification is adopted to improve the recognition accuracy of the model for marginal samples by dynamically updating the classification conditions, thereby improving the accuracy of disease classification and helping to improve the recognition accuracy of rare diseases;

[0059] (2) In order to alleviate the negative impact of average model fusion on diagnostic accuracy in federated learning, the present invention proposes a dynamic feature fusion strategy, that is, each hospital only uploads a meta-model with an F score higher than the F score of the global model, and the fusion is no longer weighted only by the amount of data, but a dynamic feature fusion is performed by comprehensively considering the F score, accuracy and data amount of the model to ensure the accuracy of federated learning classification;

[0060] (3) The present invention applies the meta-learning method based on reinforcement classification and the federated learning method based on dynamic fusion strategy to the federated meta-learning framework, which helps to improve the classification accuracy of the model for rare diseases and the communication efficiency between models. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] 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 description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0062] Figure 1 The accompanying drawing is a schematic diagram of the process of the present invention.

[0063] Figure 2 The accompanying drawing is a schematic diagram of the metamodel structure based on enhanced classification of the present invention.

[0064] Figure 3 The accompanying figure is a schematic diagram of the federated meta-learning principle based on dynamic feature fusion of the present invention. DETAILED DESCRIPTION

[0065] 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.

[0066] 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.

[0067] The embodiment of the present invention discloses a rare disease classification method based on federated meta-learning, which can be used in hospitals and disease research institutes, can provide a large amount of medical data of rare diseases to the research institutes and hospitals, and can quickly classify rare diseases, thereby helping to quickly identify the categories of rare diseases and improve scientific research efficiency and the speed of identifying rare diseases.

[0068] The specific steps of the classification method are as follows:

[0069] S1. Divide local medical data into common diseases and rare diseases, divide tasks for common diseases, obtain support sets and query sets for meta-model training, and divide rare diseases into test sets and validation sets;

[0070] S2. The local server uses a meta-learning method based on reinforcement classification to train the meta-model by dynamically updating the classification conditions in combination with the support set and the query set, thereby obtaining a trained meta-model. The present invention can improve the detection efficiency of the model for marginal samples, and also help improve the detection and classification effect of the meta-model of each hospital for rare diseases.

[0071] S3. The classification model of the present invention adopts the F score, and the formula is as follows:

[0072] Among them, Precision is the accuracy, Recall is the recall rate, and β is the weight used to balance Precision and Recall;

[0073] That is, the local server screens each meta-model after training according to the F-score and uploads it to the central server. With the help of the federated learning method, the meta-models of each hospital can learn the characteristics of more common diseases while protecting the privacy of medical data. Model screening not only further improves the effect of rare disease diagnosis, but also helps to improve the communication efficiency between models.

[0074] S4. The central server performs dynamic feature fusion on the screened meta-model to obtain an updated global model. In order to alleviate the negative impact of average fusion of models on the diagnostic effect in federated learning, the present invention designs a dynamic feature fusion strategy, which again helps to improve the diagnostic effect of rare diseases.

[0075] S5. The central server sends the updated global model parameters to the local server. The local server initializes each meta-model and starts a new round of meta-model training.

[0076] S6, iterating steps S3-S5 until the local server obtains the converged meta-model;

[0077] S7. Input the validation set into the converged meta-model to obtain the classification results of rare diseases.

[0078] In this embodiment, S1 specifically includes the following steps:

[0079] S11. Define common diseases and rare diseases: Disease categories with large sample sizes are considered common diseases, and the remaining disease categories are considered rare diseases;

[0080] S12. Divide common diseases to obtain a support set for meta-model training: randomly select K samples of N common diseases to form a task, and select multiple tasks in a P(T) distribution to form a support set for meta-model training;

[0081] S13, divide common diseases to obtain the query set for meta-model training: select N categories of common diseases that are the same as the support set in S12, randomly select 3K samples from each category to form a task, and use the same number and distribution of tasks as the support set to form the query set;

[0082] S14. Divide rare diseases into test sets and validation sets: Select a sample from each type of rare disease as the test set to adjust the trained meta-model, and then use the rare disease samples that did not participate in the training as the validation set for classification and diagnosis.

[0083] In this embodiment, in order to improve the diagnostic accuracy of the model for rare diseases, a meta-learning method based on reinforcement classification is designed. The schematic diagram of the model structure is shown in the figure below: Figure 2 As shown in FIG. 1 , the classification conditions are dynamically updated according to the edge samples and the center samples to improve the classification effect of the meta-model on rare diseases. S2 specifically includes the following steps:

[0084] S21. In the inner loop of meta-learning, the local server calculates the loss of the support set based on the loss function, and determines the inner loop update parameters according to the loss and gradient information, as follows;

[0085] The inner loop strengthens the classification conditions and dynamically updates the parameters as follows:

[0086] In the classification task, the probability p(x) of a certain category can be expressed as:

[0087] p(x) = softmax(<z,w> )

[0088] Where z represents the input vector and w is the corresponding weight.<z,w> represents inner product calculation;

[0089] Assumptions:

[0090] w=(w1,w2,...w n )

[0091] but:

[0092] p(x) = softmax(<z,w1> ,<z,w2> , ..., <z,w n >)

[0093] If z, w i (i=1, 2...n) L2 norm normalization:

[0094]

[0095] Among them, c i Represents the product after L2 norm processing, and the loss is calculated using the cross entropy function:

[0096]

[0097] Among them, t represents the target label. Since the model is less effective in identifying marginal samples, the loss of each round of model training is updated by strengthening the classification conditions. The formula is as follows:

[0098]

[0099] Where v represents the sample weight of the current linear layer. On the basis of strengthening the classification conditions, for edge samples, the v value is small, the sample distance is large, and the classification conditions should be slightly loose; for center samples, the v value is large, the intra-class distance is small, and the classification conditions are stricter.

[0100] The local server updates the model parameters by stochastic gradient descent. The specific formula is as follows:

[0101]

[0102] in, represents the base model trained on the support set, α represents the learning rate of the base model in the inner loop, T i is the i-th task, θ is the initialization parameter, θ c are the parameters of the base model, It means taking the derivative with respect to θ.

[0103] S22. In the outer loop of meta-learning, the local server performs outer loop parameter training on the meta-model parameters according to the query set and the inner loop update parameters to obtain the outer loop update parameters; and performs meta-model training according to the outer loop update parameters, as follows:

[0104] The local server updates the model parameters by stochastic gradient descent and dynamically updates the base model parameters θ c And the base model learning rate α, the specific formula is as follows:

[0105]

[0106] Among them, β represents the learning rate of the outer loop of the model, θ c′ are the parameters of the metamodel, and P(T) represents the distribution of tasks.

[0107] In the process of model feature extraction, a convolutional neural network with spatial attention is used for feature extraction: for medical image samples, a spatial attention corresponds to a height × width matrix, and the pixel at each position corresponding to the original feature map is an attention score. Specifically, the feature map is subjected to maximum pooling and average pooling based on the channel, and then the two are concatenated and the channel is reduced to 1 dimension through convolution. Finally, the result is passed through the activation function to generate an attention score, which is multiplied with the corresponding position of the feature map. By adding spatial attention to the features, the feature extraction capability of the convolutional neural network is improved. In addition, the AdamW optimizer is used in the model, and the learning rate is defined as 0.0001 for rare disease diagnosis.

[0108] In this embodiment, by means of the federated learning method, while protecting the privacy of medical data, the categories of common diseases are increased, so that the meta-models of each hospital in step S2 can learn the characteristics of more types of common diseases, thereby improving the accuracy of rare disease diagnosis. S3 specifically includes the following steps:

[0109] S31, the local server evaluates the trained meta-model on the test set;

[0110] S32. The local server selects a meta-model with an F score higher than the F score of the global model and uploads it to the central server.

[0111] In this embodiment, in order to reduce the negative impact of model average fusion on the diagnosis effect in the federated learning of step S3, a dynamic feature fusion strategy is designed. The principle is as follows: Figure 3 As shown, to further improve the diagnosis effect of rare diseases, S4 specifically includes the following steps:

[0112] The central server uses the accuracy of the filtered meta-model as a weight, and performs dynamic feature fusion processing on the filtered meta-model to obtain an updated global model.

[0113] The dynamic feature fusion process is as follows:

[0114] After screening, the meta-model calculates weights based on F score, accuracy and data volume, and the formula is as follows:

[0115]

[0116] Among them, w r j is the weight of the jth meta-model uploaded in the rth round, i means that a total of i hospitals uploaded meta-models in this round, represents the F score of the j-th meta-model uploaded, Represents the corresponding accuracy and data volume, and softmax means that the sum of all parameters is 1;

[0117] The formula for the global model update process is as follows:

[0118]

[0119] F(θ, lr) is the global model obtained in this round of update, θ is the initialization parameter of the model, lr represents the learning rate, and f j (θ, lr) represents the metamodel uploaded by the current j-th hospital.

[0120] The present invention combines the meta-learning method based on reinforcement classification with the federated learning method of dynamic fusion strategy, applies the federated meta-learning framework to the classification of rare diseases, and improves the default federated meta-learning framework. The diagnostic effects of various hospitals have been significantly improved.

[0121] When evaluating whether the method is effective, it is judged whether the accuracy of each metamodel is improved compared with the effect of each metamodel before the improvement, and this is used as an evaluation strategy. In addition, the present invention uses F-score and accuracy as evaluation indicators at the same time, fully considering the deficiency that accuracy is difficult to effectively evaluate the effect of the model when the samples are unbalanced. The improved method of the present invention makes the diagnostic effect and model communication efficiency of each hospital metamodel significantly improved compared with the metamodels in the default setting of federated meta-learning.

[0122] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0123] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A rare disease classification method based on federated meta-learning, Features: The specific steps are as follows: S1. Divide local medical data into common diseases and rare diseases. Common diseases are divided into support sets and query sets for meta-model training, and rare diseases are divided into test sets and validation sets. S2, a meta-learning method based on enhanced classification, supports the set and query set to dynamically update the meta-model and obtain the trained meta-model; The S2 specifically includes the following steps: S21, in the inner loop of meta-learning, calculating the loss of the support set based on the loss function, and determining the inner loop update parameters according to the loss and gradient information; S22, in the outer loop of meta-learning, the query set and the inner loop update parameters perform outer loop parameter training on the meta-model parameters to obtain outer loop update parameters; and perform meta-model training according to the outer loop update parameters; S3, the local server evaluates and screens the trained meta-model on the test set; S4, the local server uploads the filtered meta-model to the central server, and the central server performs dynamic feature fusion to obtain an updated global model; The S4 specifically includes the following steps: The central server calculates the weight based on the F score, accuracy and data volume of the selected meta-model. The central server performs dynamic feature fusion processing on the selected meta-model to obtain an updated global model. The dynamic feature fusion process includes: The weights of the selected meta-models are calculated using F-score, accuracy, and data volume, respectively. The formula is as follows: Among them, wrj is the weight of the jth meta-model uploaded in the rth round, i means that a total of i hospitals uploaded the meta-model in this round, represents the F score of the j-th meta-model uploaded, Represents the corresponding accuracy and data volume, and softmax means that the sum of all parameters is 1; The formula for the global model update process is as follows: F(θ, lr) is the global model obtained in this round of update, θ is the initialization parameter of the model, lr represents the learning rate, and f j (θ, lr) represents the metamodel uploaded by the current j-th hospital; S5. The central server sends the updated global model parameters to each local server. The local server initializes each meta-model and starts a new round of meta-model training. S6, iterating steps S3-S5 until the local server obtains the converged meta-model; S7. Input the validation set into the converged meta-model to obtain rare disease classification results.

2. A rare disease classification method based on federated meta-learning according to claim 1, Features: In S1, the specific steps are as follows: S11. Definition of common diseases and rare diseases: Based on the experience of medical experts, disease categories with large sample sizes are considered common diseases, and the remaining disease categories are considered rare diseases; S12, divide common diseases into tasks to obtain a support set for meta-model training: randomly select K samples of N types of common diseases to form a task, and select multiple tasks to form the support set for meta-model training; S13, divide common diseases into tasks to obtain a query set for meta-model training: select N categories of common diseases that are the same as the support set, randomly select 3K samples from each category to form a task, and use tasks with the same number and distribution as the support set to form the query set; S14. Divide rare diseases into test sets and validation sets: Select a sample from each type of rare disease as the test set to adjust the trained meta-model, and then use the rare disease samples that did not participate in the training as the validation set for classification and diagnosis.

3. A rare disease classification method based on federated meta-learning according to claim 1, Features: The S3 specifically includes the following steps: S31, the local server evaluates the trained meta-model score on the test set; S32. The local server selects a meta-model with an F score higher than the F score of the global model in the previous round for screening and uploads it to the central server.

4. A rare disease classification method based on federated meta-learning according to claim 1, Features: In S21, the inner loop strengthens the classification conditions and dynamically updates the parameters as follows: In the classification task, the probability p(x) of a certain category can be expressed as: p(x)=softmax(<z,w> ) Where z represents the input vector and w is the corresponding weight.<z,w> represents inner product calculation; Assumptions: in=(in 1 ,In 2 ,...In n ) but: p(x)=softmax(<z,w 1 >,<z,w 2 >,...,<z,w n >) If z, w i (i=1, 2...n) L2 norm normalization: Among them, c i Represents the product after L2 norm processing, and the loss is calculated using the cross entropy function: Among them, t represents the target label. Since the model is less effective in identifying marginal samples, the loss of each round of model training is updated by strengthening the classification conditions. The formula is as follows: Where v represents the sample weight of the current linear layer. On the basis of strengthening the classification conditions, for edge samples, the v value is small, the sample distance is large, and the classification conditions should be slightly loose; for center samples, the v value is large, the intra-class distance is small, and the classification conditions are stricter. The local server updates the model parameters by stochastic gradient descent. The specific formula is as follows: in, represents the base model trained on the support set, α represents the learning rate of the base model in the inner loop, T i is the i-th task, θ is the initialization parameter, θ c are the parameters of the base model, It means taking the derivative with respect to θ.

5. A rare disease classification method based on federated meta-learning according to claim 4, Features: In S22, the local server calculates the loss in the query set, and obtains the outer loop update parameter according to the loss and the inner loop update parameter; The local server updates the model parameters by stochastic gradient descent and dynamically updates the base model parameters θ c And the base model learning rate α, the specific formula is as follows: Among them, β represents the learning rate of the outer loop of the model, θ c′ are the parameters of the metamodel, and P(T) represents the distribution of tasks.

Citation Information

Patent Citations

  • Disease subtype prediction method, system and device based on small samples and medium

    CN112116957A

  • Federal learning method and device, equipment and storage medium

    CN112784995A

  • CNN and transfer learning based disease intelligent identification method and system

    AU2020103613A4

  • Fusion method and system of infectious disease diagnosis data and storage medium

    CN111477336A

  • Medical auxiliary diagnosis method and device based on federated learning, equipment and storage medium

    CN112201342A