A multi-objective clinical decision-making method and system based on collaboration of large and small models
Optimizing the neural network structure and parameters through federated learning and evolutionary algorithms, combined with adaptive compression and low-quality elimination technology, solves the model complexity and privacy security issues in the medical field, and achieves an efficient and accurate clinical decision-making model suitable for resource-constrained environments. .
Patent Information
- Application Number
- CN202410875449.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-07-02
AI Technical Summary
In the medical field, it is difficult to build an accurate and efficient prediction model with existing technologies, especially when the data is huge and complex, and traditional centralized AI model training has data privacy and security risks and focuses too much on a single goal. This results in the model being too complex and difficult to run effectively in a resource-constrained environment.
A multi-objective clinical decision-making method based on the collaboration of large and small models is adopted, and the neural network structure and parameters are collaboratively optimized through federated learning and evolutionary algorithms. The network structure and parameters are optimized based on performance evaluation and diversity measurement, and adaptive model parameter compression and low Quality elimination technology reduces model complexity and communication burden.
It significantly improves the prediction accuracy and efficiency of neural networks, enhances the algorithm's search capabilities and adaptability, protects data privacy, is suitable for resource-constrained environments, and reduces model complexity and computing and storage costs.
Smart Images

Figure CN118430835B
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent medical care, and specifically to a multi-objective clinical decision-making method, system, device and computer-readable storage medium based on collaboration of large and small models. Background Art
[0002] In the medical field, the application of artificial intelligence technology has become an important trend. In particular, deep learning and neural network technology, due to their significant advantages in image recognition, natural language processing, predictive modeling, etc., have been widely used in clinical diagnosis, disease prediction, health monitoring and other aspects. For example, algorithms based on deep learning have been successfully applied to key areas such as tumor recognition, diabetes monitoring, and heart disease prediction. However, despite the significant progress made in the application of AI in the medical field, it still faces some key challenges. One of them is how to build a prediction model that is both accurate and efficient, especially when the data scale is huge and the complexity is high. To solve this problem, the structure and parameter optimization of neural networks have become a hot topic of research. Traditional neural network design often relies on the experience and trial and error methods of domain experts, which is not only time-consuming and labor-intensive, but also difficult to achieve optimal performance. On the other hand, data privacy and security are particularly important in the medical field. In the traditional centralized AI model training process, sensitive data from different sources need to be processed centrally, which brings significant privacy and security risks. In addition, existing technologies may focus too much on a single goal (such as prediction accuracy) and ignore other important factors, resulting in models that are too large and difficult to operate effectively in resource-constrained environments. Summary of the invention
[0003] In view of the above problems, the present invention proposes a multi-objective clinical decision-making method based on the collaboration of large and small models, comprising:
[0004] Obtain patient clinical data;
[0005] Inputting the clinical data into a clinical decision model to obtain a decision result;
[0006] The clinical decision model is trained through federated learning, which includes a central server and K clients, K is a natural number greater than or equal to 1, and the K clients obtain K initial clinical decision models and parameters through local data training, and the parameters are uploaded to the central server for parameter aggregation, and then the aggregated parameters are transmitted down to update the parameters to obtain the clinical decision model; wherein the clinical decision model performs the co-evolution of network structure and network parameters based on an evolutionary algorithm, and the co-evolution obtains the optimized network structure and network parameters by calculating the individual fitness values and individual diversity in the network structure and parameters.
[0007] Furthermore, the calculation formula of the co-evolution is It is expressed as:
[0008]
[0009] in, A measure of the diversity of individuals within a population, is the performance evaluation function, To tune the hyperparameters of the synergy, represents the individuals of the structured population, Represents an individual of the parameter population.
[0010] Furthermore, the diversity metric It is expressed as:
[0011]
[0012] in, is the size of the population, is the number of parameters, and They are respectively and The individual parameters, is a measure of the correlation between neural network layers.
[0013] The evolutionary algorithm optimizes the structure of the neural network, initializes the structure of the neural network to obtain a structural population, performs genetic operations on each individual in the structural population to obtain offspring individuals, calculates the fitness value of each offspring individual and selects the individual with the highest fitness value as the solution of the network structure; wherein the genetic operation includes one or more of the following: crossover and mutation, the crossover adopts a mixed crossover strategy, and the mutation operation includes adding layers, deleting layers or changing layers.
[0014] Furthermore, the hybrid crossover strategy includes single-point crossover and uniform crossover. The single-point crossover selects a random point to divide the network structure of two parent individuals into two parts and exchange them. The uniform crossover randomly selects a network layer to exchange between the two parent individuals.
[0015] The evolutionary algorithm optimizes the parameters of the neural network, initializes the parameters of the network structure to obtain a parameter population, performs genetic operations on each individual in the parameter population to obtain updated offspring individuals, calculates the fitness values of the offspring individuals and takes the individual with the highest fitness value as the solution of the network parameters; the genetic operations include crossover and mutation; the crossover is to obtain offspring parameters through arithmetic crossover or roulette crossover; the mutation adjusts the distribution of offspring parameters through Gaussian mutation or roulette mutation.
[0016] Furthermore, the parameter population also includes dynamically adjusting parameters through adaptive coding, and the coding transformation function is expressed as ,
[0017]
[0018] in, is the parent parameter in this iteration, It is a transcoding parameter that is dynamically adjusted based on network performance. is a preset frequency parameter, The parameters after adaptive re-encoding conversion.
[0019] The co-evolution also includes evaluating the performance and complexity of the updated offspring individuals through a performance evaluation function, and calculating the fitness value of the updated offspring individuals based on the evaluation results. The performance evaluation function It is expressed as:
[0020] F( s i , p i )= [ α× acc( s i , p i ) - β× comp( s i ) ] × L( θ i )
[0021] in, and is a hyperparameter that balances the two objectives, is the loss function of the neural network model, Indicates accuracy, Indicates complexity, represents the individuals of the structured population, Represents an individual of the parameter population.
[0022] The method further includes archive update, determining whether to archive by calculating the angle between the parameters, and archiving the parameters when the angle is greater than a preset threshold, and uploading the archived parameters to a central server. The calculation formula of the angle is expressed as:
[0023]
[0024] in, Represents an individual and Angle, and .
[0025] The method further includes parameter compression, firstly adaptively compressing the parameters of the clinical decision model to obtain compressed parameters, and then uploading the compressed parameters, wherein the compression process is:
[0026] Step 1: Obtain parameters and perform standardization;
[0027] Step 2: Divide the processed parameters into n parameter blocks, where n is a natural number greater than 1;
[0028] Step 3: Encode the parameter block to obtain compression parameters.
[0029] The segmentation calculates the correlation between parameters and divides the parameters with high correlation into a parameter block. The correlation measurement formula is:
[0030]
[0031] in, is the covariance, and The parameters are and The standard deviation of and as a parameter.
[0032] The code is encoded by a reversible coding compression algorithm, and the reversible coding compression process is expressed as:
[0033]
[0034] in, Indicates the compressed parameters. Indicates the parameters before compression. is a reversible coding compression function, is the compression ratio of the t-th parameter aggregation.
[0035] The compression ratio is adjusted in an adaptive manner, which is expressed as:
[0036]
[0037] in, is the compression ratio of the t-th parameter aggregation, is the compression ratio of the t+1th parameter aggregation, is the learning rate, Calculate the error between the original parameters and the compressed parameters, is the maximum acceptable error threshold, is the parameter before compression, The compressed parameters.
[0038] The method also includes low-quality elimination, calculating the similarity of the uploaded parameters of each clinical decision model through Euclidean distance, judging the abnormality of the model, and when the similarity is low, judging it as high abnormality, eliminating the model parameters with high abnormality and then performing parameter aggregation.
[0039] The object of the present invention is to provide a multi-objective clinical decision system based on large and small model collaboration, which has a memory, a processor and a computer program / instruction stored in the memory, including:
[0040] The processor executes the computer program / instructions to implement any one of the above-mentioned multi-objective clinical decision-making methods based on size model collaboration.
[0041] The object of the present invention is to provide a multi-objective clinical decision-making system based on large and small model collaboration, comprising:
[0042] Acquisition unit: Acquisition of patient clinical data;
[0043] Decision making unit: inputs the clinical data into the clinical decision making model to obtain a decision result;
[0044] The clinical decision model is trained through federated learning, which includes a central server and K clients, K is a natural number greater than or equal to 1, and the K clients obtain K initial clinical decision models and parameters through local data training, and the parameters are uploaded to the central server for parameter aggregation, and then the aggregated parameters are transmitted down to update the parameters to obtain the clinical decision model; wherein the clinical decision model performs the co-evolution of network structure and network parameters based on an evolutionary algorithm, and the co-evolution obtains the optimized network structure and network parameters by calculating the individual fitness values and individual diversity in the network structure and parameters.
[0045] The object of the present invention is to provide a device comprising:
[0046] A memory and a processor; the memory is used to store program instructions; the processor is used to call program instructions, and when the program instructions are executed, any one of the multi-objective clinical decision-making methods based on size model collaboration is implemented.
[0047] The object of the present invention is to provide a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, including:
[0048] The computer program is executed by a processor according to any one of the multi-objective clinical decision-making methods based on size model collaboration.
[0049] Advantages of the present invention:
[0050] 1. Evolutionary algorithms for multi-objective optimization are used to apply evolutionary algorithms to the structure and parameter optimization of neural networks, especially in the context of multi-objective optimization, while considering the prediction accuracy and complexity of the network. Through refined structure and parameter optimization, the prediction accuracy of the neural network is significantly improved, which is particularly suitable for complex clinical decision-making scenarios.
[0051] 2. The collaborative evolution mechanism is adopted to simultaneously evolve two populations (neural network structure population and network parameter population) to enhance the algorithm's search ability and adaptability, provide a more efficient optimization path, make the algorithm more efficient in searching for the optimal structure and parameter configuration, and improve the efficiency and effect of the optimization process.
[0052] 3. Adopting the fusion of federated learning, the federated learning framework is combined with the evolutionary algorithm, so that each distributed client can jointly train a global model while protecting data privacy.
[0053] 4. Reduce the communication burden in federated learning through adaptive model parameter compression technology, so that the model parameters can be effectively compressed before uploading to the central server, significantly reducing the communication volume in federated learning. It is particularly suitable for bandwidth-constrained environments, effectively reducing the complexity of neural networks, making the model more lightweight, and reducing computing and storage costs.
[0054] 5. Adopt dynamic adaptive mechanism and adaptive recoding method to dynamically adjust the encoding method of parameters according to the performance of the network on specific tasks, explore the parameter space more effectively, enable the model to adjust its own structure and parameters according to the real-time data performance, and improve the model's ability to adapt to new data. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0056] Figure 1 A flowchart of a multi-objective clinical decision-making method based on large and small model collaboration provided by an embodiment of the present invention;
[0057] Figure 2 A schematic diagram of a multi-objective clinical decision-making system based on large and small model collaboration provided by an embodiment of the present invention;
[0058] Figure 3 A schematic diagram of a multi-objective clinical decision-making device based on large and small model collaboration provided by an embodiment of the present invention;
[0059] Figure 4 A diagram of the federated learning structure provided for an embodiment of the present invention. DETAILED DESCRIPTION
[0060] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0061] In some of the processes described in the specification and claims of the present invention and the above-mentioned figures, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this article or executed in parallel. The sequence numbers of the operations, such as S101, S102, etc., are only used to distinguish between different operations, and the sequence numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different messages, devices, modules, etc., do not represent the order of precedence, and do not limit the "first" and "second" to be different types.
[0062] Figure 1 A schematic diagram of a multi-objective clinical decision-making method based on large and small model collaboration provided by an embodiment of the present invention specifically includes:
[0063] S101: Obtain patient clinical data;
[0064] In one embodiment, in the model training method proposed in the present invention, the basic framework of federated learning is that multiple distributed clients jointly train a global model, and each client has its own private data set for training local models. Figure 4 shown.
[0065] In a specific embodiment, the local client acquires and annotates data. The data sources of the local client include hospital records, public medical data sets, data provided by research institutions, etc. The data may include structured data, such as the patient's age, gender, weight, blood pressure, cholesterol level, diabetes history, smoking history, etc.; it may also include unstructured data, such as doctors' diagnostic notes, imaging examination results, etc., which need to be preprocessed to be converted into a structured format; it may also include time series data, such as electrocardiogram data, real-time blood sugar monitoring data, etc.
[0066] At the same time, constructing a training data set requires labeling the data categories, and the labeled categories are binary labels, such as "heart disease" and "no heart disease".
[0067] In another embodiment, the annotation category is a multi-category annotation, such as "coronary heart disease", "arrhythmia", "myocardial infarction", etc.
[0068] S102: Inputting the clinical data into a clinical decision model to obtain a decision result;
[0069] The clinical decision model is trained through federated learning, which includes a central server and K clients, K is a natural number greater than or equal to 1, and the K clients obtain K initial clinical decision models and parameters through local data training, and the parameters are uploaded to the central server for parameter aggregation, and then the aggregated parameters are transmitted down to update the parameters to obtain the clinical decision model; wherein the clinical decision model performs the co-evolution of network structure and network parameters based on an evolutionary algorithm, and the co-evolution obtains the optimized network structure and network parameters by calculating the individual fitness values and individual diversity in the network structure and parameters.
[0070] In one embodiment, the calculation formula of the co-evolution is It is expressed as:
[0071]
[0072] in, A measure of the diversity of individuals within a population, is the performance evaluation function, To tune the hyperparameters of the synergy, represents the individuals of the structured population, Represents an individual of the parameter population.
[0073] In one embodiment, the diversity metric It is expressed as:
[0074]
[0075] in, is the size of the population, is the number of parameters, and They are respectively and The individual parameters, is a measure of the correlation between neural network layers.
[0076] In one embodiment, the evolutionary algorithm optimizes the structure of the neural network, initializes the structure of the neural network to obtain a structural population, performs genetic operations on each individual in the structural population to obtain offspring individuals, calculates the fitness value of each offspring individual and selects the individual with the highest fitness value as the solution to the network structure; wherein the genetic operation includes one or more of the following: crossover and mutation, the crossover adopts a mixed crossover strategy, and the mutation operation includes adding layers, deleting layers or changing layers.
[0077] In one embodiment, the hybrid crossover strategy includes single-point crossover and uniform crossover. The single-point crossover selects a random point to divide the network structure of two parent individuals into two parts and exchange them. The uniform crossover randomly selects a network layer to exchange between the two parent individuals.
[0078] In one embodiment, the evolutionary algorithm optimizes the parameters of the neural network, initializes the parameters of the network structure to obtain a parameter population, performs genetic operations on each individual in the parameter population to obtain updated offspring individuals, calculates the fitness values of the offspring individuals and takes the individual with the highest fitness value as the solution to the network parameters; the genetic operations include crossover and mutation; the crossover is to obtain offspring parameters through arithmetic crossover or roulette crossover; the mutation adjusts the distribution of offspring parameters through Gaussian mutation or roulette mutation.
[0079] In one embodiment, the parameter population also includes dynamically adjusting parameters through adaptive coding, and the coding transformation function is expressed as ,
[0080]
[0081] in, is the parent parameter in this iteration, It is a transcoding parameter that is dynamically adjusted based on network performance. is a preset frequency parameter, The parameters after adaptive re-encoding conversion.
[0082] In one embodiment, the co-evolution further includes evaluating the performance and complexity of the updated offspring individuals through a performance evaluation function, and calculating the fitness value of the updated offspring individuals based on the evaluation results. The performance evaluation function It is expressed as:
[0083] F( s i , p i )= [ α× acc( s i , p i ) - β× comp( s i ) ] × L( θ i )
[0084] in, and is a hyperparameter that balances the two objectives, is the loss function of the neural network model, Indicates the accuracy, Indicates complexity, represents the individuals of the structured population, Represents an individual of the parameter population.
[0085] In one embodiment, the method further includes archive update, determining whether to archive by calculating the angle between the parameters, and archiving the parameters when the angle is greater than a preset threshold, and uploading the archived parameters to the central server. The calculation formula of the angle is expressed as:
[0086]
[0087] in, Represents an individual and Angle, and .
[0088] In one embodiment, the method further includes parameter compression, firstly adaptively compressing the parameters of the clinical decision model to obtain compressed parameters, and then uploading the compressed parameters, and the compression process is:
[0089] Step 1: Obtain parameters and perform standardization;
[0090] Step 2: Divide the processed parameters into n parameter blocks, where n is a natural number greater than 1;
[0091] Step 3: Encode the parameter block to obtain compression parameters.
[0092] In one embodiment, the segmentation is performed by calculating the correlation between parameters, dividing the parameters with high correlation into a parameter block, and the correlation measurement formula is:
[0093]
[0094] in, is the covariance, and The parameters are and The standard deviation of and as a parameter.
[0095] In one embodiment, the encoding is performed by a reversible coding compression algorithm, and the reversible coding compression process is expressed as:
[0096]
[0097] in, Indicates the compressed parameters. Indicates the parameters before compression. is a reversible coding compression function, is the compression ratio of the t-th parameter aggregation.
[0098] In one embodiment, the compression ratio is adjusted in an adaptive manner, which is expressed as:
[0099]
[0100] in, is the compression ratio of the t-th parameter aggregation, is the compression ratio of the t+1th parameter aggregation, is the learning rate, Calculate the error between the original parameters and the compressed parameters, is the maximum acceptable error threshold, is the parameter before compression, The compressed parameters.
[0101] In one embodiment, the method also includes low-quality elimination, calculating the similarity of the uploaded parameters of each clinical decision model through Euclidean distance, judging the abnormality of the model, and when the similarity is low, judging it as high abnormality, eliminating the model parameters with high abnormality and then performing parameter aggregation.
[0102] In a specific embodiment, the process of the multi-objective optimization method of neural network parameters based on the evolutionary algorithm for the clinical decision model is as follows:
[0103] 1. Initialization; Specifically, initialization includes: 1) For local clients. Each client (in , N is the total number of clients) to initialize the neural network model parameters, and the initial model parameters of each client are recorded as .
[0104] Furthermore, two populations are initialized in the evolutionary algorithm, one for the evolution of the neural network structure and the other for the evolution of network parameters. Specifically, the two populations are the neural network structure population and the network parameter population Assume that the population size is , then each population contains The population is initialized randomly.
[0105] 2) Initialize the evaluation function and define the performance evaluation function Used to evaluate the accuracy and complexity of neural networks on specific tasks.
[0106] 3) For the central server, initialize the global model parameters.
[0107] 2. Evolution of the main population;
[0108] For the neural network structure population, genetic operations (such as crossover and mutation) are performed to generate new network structures. During evolution, for each individual , perform genetic operations, including crossover and mutation The crossover probability is , the mutation probability is .
[0109] In one embodiment, the crossover operation It is a hybrid crossover strategy, including single-point crossover and uniform crossover. Single-point crossover selects a random point to divide the network structure of two parent individuals into two parts, and then exchanges these parts. Uniform crossover randomly selects network layers to exchange between the two parents.
[0110] At the same time, in this embodiment, the mutation operation This includes adding, removing, or changing the type of a layer (e.g., fully connected layer, pooling layer, etc.). The change operation may involve adjusting the parameters of the layer, such as the number of neurons, the size of the pooling window, etc.
[0111] For the parameter population, genetic operations are also performed to optimize the network parameters. Specifically, for the network parameter population The evolution of each individual Execute Crossover and mutation .
[0112] In one embodiment, when performing a crossover operation When , the parameter crossover adopts arithmetic crossover, where the offspring parameters are linear combinations of the two parent parameters. and It is the parent parameter, the child parameter It can be calculated as follows:
[0113]
[0114] in, is a random number in the range [0, 1].
[0115] In the mutation operation When , the parameter variation adopts Gaussian variation, where each parameter Adjusting according to the normal distribution with a certain probability can be expressed as:
[0116]
[0117] in, is the standard deviation, which is used to control the magnitude of variation, Represents a normal distribution with mean 0 and standard deviation 1.
[0118] In another embodiment, when performing a crossover operation When , a crossover operation based on roulette selection is used, that is, first select the parameters to be crossed, and for each parameter , the probability of being selected can be expressed as:
[0119]
[0120] At the same time, when performing mutation operations When , a mutation operation based on roulette selection is used, that is, first select the parameters that need to be crossed, and for each parameter , and its probability of being selected is also given by The calculation method is obtained.
[0121] 3. Evaluation and selection;
[0122] The new network structure and parameters generated by evolution are evaluated, and their performance and complexity are calculated. In one embodiment, the present invention sets the multi-objective optimization function of the algorithm to two goals, namely, achieving the goal of optimal accuracy and achieving the goal of minimum complexity. Specifically, the performance evaluation function of each individual The prediction accuracy and complexity of the neural network are measured. Indicates the accuracy, To express the complexity, we have:
[0123] F( s i , p i )= [ α× acc( s i , p i ) - β× comp( s i ) ] × L( θ i )
[0124] in, and is a hyperparameter that balances the two objectives, is the loss function of the neural network model. In one embodiment, and .
[0125] Furthermore, each client Based on its local dataset Train the neural network. In one embodiment, the cross entropy loss function is used to perform supervised training of the model, and the loss function during local model training can be expressed as:
[0126]
[0127] in, Is the client The model predicts that and are the input data and labels respectively.
[0128] Further, Is the client The output of the neural network can be expressed as:
[0129]
[0130] in, is the number of input features, are the weights of the neural network, is the bias term, is the Sigmoid activation function.
[0131] Further, based on the evaluation results, the fitness function is used to select individuals in the population, and those individuals with good performance or low complexity are preferentially retained. The first 80% of the ranked individuals are calculated.
[0132] Furthermore, the complexity It is related to the number of layers and neurons in the network and can be expressed as:
[0133]
[0134] in, is the number of layers in the network, It is The number of parameters of the layer, is a layer-related weight factor that reflects the contribution of different layers to the overall complexity.
[0135] 4. Co-evolution;
[0136] The two populations work together to optimize the structure and parameters of the neural network. Specifically, during the co-evolution process, the two populations and The interaction of To achieve this. Set To adjust the hyperparameters of the synergy, the function can be expressed as:
[0137]
[0138] in, Measures the diversity of individuals within a population. In one embodiment, you can set In another embodiment, adjusting the hyperparameters of the synergy To determine the dynamic adjustment method, specifically, define the hyperparameter adjustment function as ,in is the current tuning hyperparameter, is the adjustment factor calculated based on the network performance, then the adjusted hyperparameter The calculation method can be expressed as:
[0139]
[0140] in, is a hyperparameter that controls the rate at which the hyperparameter is decreased.
[0141] Furthermore, the adjustment factor It is calculated based on the performance difference between the network on the training set and the validation set, which can be expressed as:
[0142]
[0143] in, and are the accuracy of the network on the training set and the preset validation set respectively.
[0144] Furthermore, in this iteration, the adjustment factor is first calculated , and then apply the hyperparameter tuning function Update and adjust the hyperparameters, which can be expressed as:
[0145]
[0146] in, Tune the synergy hyperparameters for the next iteration.
[0147] Furthermore, the diversity metric It can be expressed as:
[0148]
[0149] in, is the size of the population, is the number of parameters, and They are respectively and The individual parameters, is a measure of the correlation between neural network layers.
[0150] Furthermore, the correlation measure between neural network layers By adding any two layers in the neural network and The correlation is calculated. Specifically, the quantitative method of correlation can be expressed as:
[0151]
[0152] in, It is a layer and The correlation between the feature outputs of is their distance in the network, represents all possible layer pairs in the network. In one embodiment, For Layer and Layer The number of layers between.
[0153] Furthermore, dynamic adaptive mechanisms come into play at this stage, adjusting the population evolution strategy according to the current evolutionary state.
[0154] Furthermore, for the population Adaptive recoding is performed to dynamically adjust the encoding method of parameters according to the performance of the network on a specific task, so as to explore the parameter space more effectively. Specifically, a coding transformation function is defined ,in is the parent parameter in this iteration, is the encoding conversion parameter dynamically adjusted according to network performance, and the parameters after adaptive re-encoding conversion are It can be expressed as:
[0155]
[0156] in, is a preset frequency parameter used to control the periodicity of the coding conversion. In one embodiment, Set the value of 5.0.
[0157] Furthermore, based on the current performance of the network , dynamically adjust encoding conversion parameters , which can be expressed as:
[0158]
[0159] in, is a hyperparameter used to adjust the steepness of the curve. is a performance threshold used to determine the conversion strength. In one embodiment, the performance It is the accuracy of the current iteration model on the preset validation set, and the performance threshold is 85%.
[0160] In this iteration, for the parameter population Each individual in Applying adaptive coding transformation function After transformation, it can be expressed as:
[0161]
[0162] Among them, the parameters of the new encoding The parent parameter for the next iteration.
[0163] In one embodiment, it is checked whether the termination condition is met. If so, the optimal network structure and parameters are output; if not, it returns to step 2 to continue iteration. The termination condition depends on the preset number of iterations T or the performance threshold τ. If either condition is met, the algorithm terminates. In one embodiment, the number of iterations is set to T=500 and the performance threshold is set to τ=0.95.
[0164] In a specific embodiment, updating the parameters of a clinical decision model is archived;
[0165] The archive is updated using an angle-based selection scheme to maintain population diversity while maintaining search pressure on the optimization goal. Specifically, the archive update adopts an angle-based selection scheme. Given two individuals and , and their target vectors are and ,angle The calculation method is as follows:
[0166]
[0167] If the angle If the value is greater than the preset threshold, the parameter and To archive, It is expressed as L1 norm.
[0168] Furthermore, for the archived parameters, the model parameters are uploaded and globally aggregated, that is, the selected client uploads its optimized model parameters to the central server. Suppose the global model parameters on the server are , the process of updating the global model can be expressed as:
[0169]
[0170] Where K is the number of parameters that have been archived in the current round.
[0171] In a specific embodiment, the process of the central server receiving the local model parameters includes:
[0172] 1. Model parameter aggregation;
[0173] After the local client model training is completed, the model parameters are aggregated, that is, the model parameters are uploaded to the central server. In some cases, the excessive model parameters transmitted between the client and the server are likely to cause large communication overhead. Therefore, the present invention adopts an adaptive model parameter compression method to compress the model parameters and then transmit the compressed parameters. After the client updates the model parameters, instead of directly uploading the complete model parameters, the adaptive model parameter compression will compress these parameters.
[0174] Specifically, when the local client performs parameter compression, the client model parameters are set to , the parameter compression function is , the compressed model parameters are:
[0175]
[0176] in, is the compression rate, which determines the degree of compression. In one embodiment, the compression function uses a neural network parameter compression algorithm based on reversible coding compression. Specifically, first, the parameters of the neural network are Standardize it so that it is distributed within a standard range. Let the original parameters be , and its standardized value is , then the standardization process can be expressed as:
[0177]
[0178] in, and They are The mean and standard deviation of .
[0179] Furthermore, the preprocessed parameters Split into multiple small pieces ,in The block index representing the split can be expressed as:
[0180] θ i, j ' = θ i ' [ m j : n j ]
[0181] in, and It is The starting and ending index of the block.
[0182] Furthermore, the parameter segmentation method is segmented in an adaptive parameter grouping manner. Specifically, firstly, the correlation between the parameters is evaluated, and the parameters are defined. and The correlation measure between , which can be expressed as:
[0183]
[0184] in, is the covariance, and The parameters are and The standard deviation of .
[0185] Furthermore, based on the correlation obtained , the parameters are divided into several groups. In one embodiment, the parameters with high correlation are grouped into one group. Let the parameter grouping function be , then each set of parameters is expressed as , which can be expressed as:
[0186]
[0187] in, is the correlation threshold used to decide whether to put parameters into the same group.
[0188] Furthermore, the most suitable encoding strategy is selected for each parameter group, and the encoding strategy selection function is defined , whose output is the encoding strategy for each set of parameters , which can be expressed as:
[0189]
[0190] In one embodiment, The selection criteria include the size of the parameter group, the distribution characteristics, and the compression target. , the encoding operation is performed on each parameter group, which can be expressed as:
[0191]
[0192] in, For a specific encoding strategy The encoding function.
[0193] Further, a reversible coding compression algorithm is applied to each parameter block, that is, a reversible coding compression algorithm is used to ensure that the parameters after coding compression are Not only does it have a high compression ratio, but it can also be restored losslessly. Specifically, a reversible coding compression algorithm is applied to each parameter block, and the encoded and compressed parameters are expressed as , then the process of reversible coding compression can be expressed as:
[0194]
[0195] in, is a reversible coding compression function. The design of this function depends on a specific coding compression algorithm. In one embodiment, the coding compression algorithm is Huffman coding. is the compression ratio of the t-th parameter aggregation.
[0196] Furthermore, the compression ratio is changed by adaptive adjustment, which can be expressed as:
[0197]
[0198] in, is the compression ratio of the t-th parameter aggregation, is the learning rate, Calculate the error between the original parameters and the compressed parameters, is the maximum acceptable error threshold.
[0199] Furthermore, the error calculation method can be expressed as:
[0200]
[0201] in, represents the L2 norm.
[0202] Furthermore, on the server side, decompression after receiving the compressed parameters can be expressed as:
[0203]
[0204] in, is the inverse operation of compression, are the decompressed model parameters.
[0205] 2. Eliminate low-quality parameters;
[0206] In federated learning, the quality of local client data directly affects the model effect. Data problems, such as incorrect labels, will reduce model quality. The client reflects data quality by training a local version of the global model. If data heterogeneity is ignored, the local models of different clients are highly similar, which can be measured by Euclidean distance. The local model caused by low-quality data has low similarity with other models and high abnormality. The present invention evaluates the model abnormality by comparing the average Euclidean distance of the client model to judge the data quality. Since there are fewer clients with low-quality data, their model abnormality is significantly higher than the average level. Specifically, assuming that in the During the round of federated learning parameter aggregation, when receiving the The local model parameters uploaded by the client are , the current global model parameters are , then define the Abnormality of the local model uploaded by the client for:
[0207]
[0208] in, Yes Among the clients, except The set of clients other than clients, the set size is . is the proportionality coefficient, and For the The model abnormality of each client. is a proportionality coefficient, and in one embodiment, is a value between 0 and 1. is the L2 norm, The total number of clients. For the Client No. Local model parameters during round parameter aggregation. For the The parameters of the global model during round parameter aggregation.
[0209] Furthermore, the current global model parameters is the local model parameter received from the previous round Find out, which can be expressed as:
[0210]
[0211] in, is the number of model parameters of the kth client, is the number of model parameters for all clients.
[0212] Furthermore, by calculating the abnormality of each client model, In one embodiment, the present invention uses an abnormal label Indicates that when label label When it is a normal client, label When it is an abnormal client, it can be expressed as:
[0213]
[0214] Among them, the abnormal label To indicate the Whether the client is normal. 1 means normal, 0 means abnormal. is the threshold used to determine whether a client is abnormal. The average abnormality of all clients and the adjustment factor Sure, The calculation method can be expressed as:
[0215]
[0216] in, is the adjustment factor.
[0217] Based on this, the present invention is oriented to the optimization goal of each local client selection mechanism algorithm It can be expressed as:
[0218]
[0219] The constraints are:
[0220] Constraint 1: ;
[0221] Constraint 2: ;
[0222] in, is the total number of iterations, is the number of times the rth client uploads parameters, R is the number of clients that upload parameters, constraint 1 ensures that the selected client can achieve the expected goals in terms of computing resources and communication resources, and constraint 2 ensures that the selected client can achieve the expected goals in terms of data resources.
[0223] In one specific embodiment, the newly collected patient data is classified using the clinical decision support model, and the result obtained may be "heart disease" or "no heart disease". In another embodiment, the result obtained may be "coronary heart disease", "arrhythmia", "myocardial infarction", etc. Further, the doctor confirms the diagnosis in combination with biological examinations or laboratory tests.
[0224] In one embodiment, the present invention proposes a method, specifically, the multi-objective clinical decision-making method is obtained by training a clinical auxiliary decision-making model, and the optimization method of the clinical auxiliary decision-making model is a multi-objective optimization method of neural network parameters based on an evolutionary algorithm, which simultaneously optimizes the performance and complexity of the neural network, that is, simultaneously optimizes the prediction accuracy and network complexity of the network, and the evaluation basis of the network complexity can be the number of parameters or the consumption of computing resources. When searching for the optimal network structure and parameter configuration, the evolutionary algorithm performs iterative updates of the population by simulating natural selection and genetic mechanisms. In addition, the present invention introduces a co-evolution mechanism to enhance the search ability and adaptability of the algorithm by evolving multiple populations at the same time. The multiple populations can be, one population is responsible for network structure optimization, and the other population is responsible for parameter optimization.
[0225] In addition, the neural network proposed in the present invention performs two training modes, namely, self-training and federated training, that is, each local client can not only independently optimize its neural network model, but also upload the optimized model parameters to the central server, thereby promoting the evolution and optimization of the global model. Among them, the model of the central server is a large model, and the model of each client node is a small model. The parameters of the large model are obtained by aggregating the parameters of multiple small models, and then have some capabilities of the small model, realizing the synergy and complementarity of the capabilities of the large and small models.
[0226] Figure 2 A schematic diagram of a multi-objective clinical decision-making system based on large and small model collaboration provided by an embodiment of the present invention specifically includes:
[0227] Acquisition unit: Acquisition of patient clinical data;
[0228] Decision making unit: inputs the clinical data into the clinical decision making model to obtain a decision result;
[0229] The clinical decision model is trained through federated learning, which includes a central server and K clients, K is a natural number greater than or equal to 1, and the K clients obtain K initial clinical decision models and parameters through local data training, and the parameters are uploaded to the central server for parameter aggregation, and then the aggregated parameters are transmitted down to update the parameters to obtain the clinical decision model; wherein the clinical decision model performs the co-evolution of network structure and network parameters based on an evolutionary algorithm, and the co-evolution obtains the optimized network structure and network parameters by calculating the individual fitness values and individual diversity in the network structure and parameters.
[0230] Figure 3 A schematic diagram of a multi-objective clinical decision-making device based on large and small model collaboration provided by an embodiment of the present invention specifically includes:
[0231] A memory and a processor; the memory is used to store program instructions; the processor is used to call program instructions, and when the program instructions are executed, any one of the above-mentioned multi-objective clinical decision-making methods based on large and small model collaboration is performed.
[0232] A computer-readable storage medium stores a computer program, which, when executed by a processor, is any one of the above-mentioned multi-objective clinical decision-making methods based on size model collaboration.
[0233] The verification results of this verification embodiment show that assigning inherent weights to indications can improve the performance of the method relative to the default setting. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or it may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units. A person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above-mentioned embodiments may be completed by instructing the relevant hardware through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
[0234] A person skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be implemented by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. The above-mentioned medium storage can be a read-only memory, a disk or an optical disk, etc.
[0235] The above is a detailed introduction to a computer device provided by the present invention. For a person skilled in the art, according to the concept of the embodiments of the present invention, there may be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A multi-objective clinical decision-making method based on large and small model collaboration, characterized in that: The method comprises: Obtain patient clinical data; Inputting the clinical data into a clinical decision model to obtain a decision result; The clinical decision model is trained by federated learning, which includes a central server and K clients, where K is a natural number greater than or equal to 1. The K clients obtain K initial clinical decision models and parameters through local data training, and the parameters are uploaded to the central server for parameter aggregation, and then the aggregated parameters are downloaded to update the parameters to obtain the clinical decision model; wherein the clinical decision model performs co-evolution of network structure and network parameters based on an evolutionary algorithm, and the co-evolution obtains an optimized network structure and network parameters by calculating the individual fitness values and individual diversity in the network structure and parameters; the calculation formula of the co-evolution is It is expressed as: in, A measure of the diversity of individuals within a population, is the performance evaluation function, To adjust the hyperparameters of the synergy, represents the individuals of the structured population, represents the individuals of the parameter population; The diversity metric It is expressed as: in, is the size of the population, is the number of parameters, and They are respectively and The individual parameters, is a measure of the correlation between neural network layers; The evolutionary algorithm optimizes the structure of the neural network, initializes the structure of the neural network to obtain a structural population, performs genetic operations on each individual in the structural population to obtain offspring individuals, calculates the fitness value of each offspring individual and selects the individual with the highest fitness value as the solution of the network structure; the genetic operation includes crossover and mutation, the crossover adopts a mixed crossover strategy, and the mutation operation includes adding layers, deleting layers or changing layers; Optimizing the parameters of the neural network, initializing the parameters of the network structure to obtain a parameter population, performing genetic operations on each individual in the parameter population to obtain updated offspring individuals, calculating the fitness values of the offspring individuals and taking the individual with the highest fitness value as the solution of the network parameters; The genetic operation includes crossover and mutation; the crossover is to obtain offspring parameters by arithmetic crossover or roulette crossover; the mutation is to adjust the distribution of offspring parameters by Gaussian mutation or roulette mutation; The method also includes archive update, determining whether to archive by calculating the angle between the parameters, and archiving the parameters when the angle is greater than a preset threshold, and uploading the archived parameters to the central server; the calculation formula of the angle is expressed as: in, Represents an individual and Angle, and .
2. The multi-objective clinical decision-making method based on large and small model collaboration according to claim 1, characterized in that: The hybrid crossover strategy includes single-point crossover and uniform crossover. The single-point crossover selects a random point to divide the network structure of two parent individuals into two parts and exchange them. The uniform crossover randomly selects a network layer to exchange between two parent individuals.
3. The multi-objective clinical decision-making method based on large and small model collaboration according to claim 1, characterized in that: The parameter population also includes parameters dynamically adjusted by adaptive coding, and the coding transformation function is expressed as , in, is the parent parameter in this iteration, It is a transcoding parameter that is dynamically adjusted based on network performance. is a preset frequency parameter, The parameters after adaptive re-encoding conversion.
4. The multi-objective clinical decision-making method based on large and small model collaboration according to claim 1, characterized in that: The co-evolution also includes evaluating the performance and complexity of the updated offspring individuals through a performance evaluation function, and calculating the fitness value of the updated offspring individuals based on the evaluation results. The performance evaluation function It is expressed as: in, and is a hyperparameter that balances the two objectives, is the loss function of the neural network model, Indicates the accuracy, Indicates complexity, represents the individuals of the structured population, Represents an individual of the parameter population.
5. The multi-objective clinical decision-making method based on large and small model collaboration according to claim 1, characterized in that: The method further includes parameter compression, firstly adaptively compressing the parameters of the clinical decision model to obtain compressed parameters, and then uploading the compressed parameters, wherein the compression process is: Step 1: Obtain parameters and perform standardization; Step 2: Divide the processed parameters into n parameter blocks, where n is a natural number greater than 1; Step 3: Encode the parameter block to obtain compression parameters.
6. A multi-objective clinical decision-making system based on large and small model collaboration, characterized in that: include: The system implements the multi-objective clinical decision-making method based on size model collaboration as described in any one of claims 1-5.
7. A multi-objective clinical decision-making device based on large and small model collaboration, characterized in that: include: Memory and processor; The memory is used to store program instructions; the processor is used to call program instructions, and when the program instructions are executed, the multi-objective clinical decision-making method based on size model collaboration described in any one of claims 1-5 is implemented.
8. A computer-readable storage medium storing a computer program, characterized in that: include: The computer program is executed by a processor according to any one of claims 1 to 5 as a multi-objective clinical decision-making method based on size model collaboration.
