Drug prediction model training method, system and device, medium, product and equipment

By using local medical data on edge computing nodes to iteratively train the drug prediction model, and through the combination of cloud iterative training and the federated average algorithm, the problem of insufficient data sources for drug prediction methods in the existing technology is solved, and the prediction range and accuracy are improved. accuracy while protecting data privacy.

CN118824401APending Publication Date: 2024-10-22CHINA MOBILE M2M +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410635655.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

Existing drug prediction methods based on complex networks do not have comprehensive data sources during training, resulting in limited prediction range and low accuracy.

Method used

A drug prediction model training method is proposed, which uses local medical data on edge computing nodes to iteratively train a pre-built drug prediction model, and performs cloud iterative training by encrypting model parameter information, combined with the federated average algorithm for secure aggregation to ensure Data privacy is secure and data transfer volume is reduced.

Benefits of technology

It improves the prediction range and accuracy of the drug prediction model, protects the privacy and security of local medical data, and reduces the amount of data transmission between the cloud and edge computing nodes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118824401A_ABST
    Figure CN118824401A_ABST
Patent Text Reader

Abstract

The invention discloses a drug prediction model training method, system and device, a medium, a product and equipment, and the method comprises the steps: responding to a downloading request from an edge calculation node, and transmitting a pre-constructed first drug prediction model to the edge calculation node; receiving encrypted model parameter information, the encrypted model parameter information being obtained by performing encryption processing on model parameter information of a second drug prediction model by the edge computing node, and the second drug prediction model being obtained by training the first drug prediction model by the edge computing node by using local medical data; and performing iterative training on the first drug prediction model at least based on the encrypted model parameter information until an iteration stop condition is met to obtain a third drug prediction model, thereby enriching the data volume and data category of the medical data training sample, improving the prediction range and prediction accuracy of the model obtained by training, and improving the prediction accuracy of the drug prediction model. The privacy security of the local medical data is protected, and the data transmission amount between the cloud and the edge computing node is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and in particular to a drug prediction model training method, system, device, medium, product and equipment. Background Art

[0002] Existing computational drug prediction methods include complex network-based methods, which achieve drug prediction by training various drug-disease relationship networks. However, the data sources used in the training of existing complex network-based drug prediction methods are not comprehensive enough, resulting in a limited prediction range and low prediction accuracy. Summary of the invention

[0003] In order to solve the above technical problems, the embodiments of the present application propose a drug prediction model training method, system, device, medium, product and equipment, which can fully consider the actual distribution of medical data and use as much medical data as possible in the process of model training to improve the prediction range and prediction accuracy of the trained model, while protecting the privacy and security of local medical data and reducing the amount of data transmission between the cloud and edge computing nodes.

[0004] In order to achieve the above-mentioned purpose, the embodiment of the present application provides a drug prediction model training method, which is applied to the cloud, and the method includes:

[0005] In response to a download request from an edge computing node, sending a pre-built first drug prediction model to the edge computing node;

[0006] receiving encrypted model parameter information, wherein the encrypted model parameter information is obtained by the edge computing node encrypting model parameter information of a second drug prediction model, and the second drug prediction model is obtained by the edge computing node training the first drug prediction model using local medical data;

[0007] At least based on the encrypted model parameter information, the first drug prediction model is iteratively trained until an iteration stop condition is met to obtain a third drug prediction model.

[0008] Furthermore, the number of the edge computing nodes is multiple, and the method further includes:

[0009] Determine the weights corresponding to the plurality of edge computing nodes;

[0010] The iterative training of the first drug prediction model at least based on the encrypted model parameter information until an iteration stop condition is satisfied to obtain a third drug prediction model includes:

[0011] Based on the weights corresponding to the plurality of edge computing nodes, the encrypted model parameter information sent by the plurality of edge computing nodes is securely aggregated using a federated averaging algorithm to obtain a total model parameter;

[0012] The first drug prediction model is iteratively trained according to the total model parameters until an iteration stop condition is met, thereby obtaining a third drug prediction model.

[0013] Further, the determining of the weights corresponding to the plurality of edge computing nodes respectively includes:

[0014] Based on the authority index and / or activity level corresponding to each of the plurality of edge computing nodes, the weight corresponding to each of the plurality of edge computing nodes is determined.

[0015] Furthermore, the encryption process is performed using an additive homomorphic encryption algorithm.

[0016] Further, the iterative training of the first drug prediction model based at least on the encrypted model parameter information includes:

[0017] During each round of iteration, the first drug prediction model obtained after the previous round of iteration is sent to the edge computing node, so that the edge computing node decrypts the first drug prediction model obtained after the previous round of iteration, updates the second drug prediction model according to the decryption result, and generates new encrypted model parameter information based on the model parameter information of the updated second drug prediction model and sends it to the cloud, wherein the new encrypted model parameter information is used for this round of iterative training.

[0018] Furthermore, the method for constructing the pre-constructed first drug prediction model includes:

[0019] Preprocessing the acquired raw data set, wherein the raw data set includes drug-related data, disease-related data, and known drug-disease relationship data, and the preprocessing includes data cleaning, data conversion, and / or data merging;

[0020] Constructing drug-drug similarity networks;

[0021] Construct disease-disease similarity networks;

[0022] Constructing heterogeneous drug-disease networks;

[0023] constructing an initial drug prediction model based on the drug-drug similarity network, the disease-disease similarity network, and the drug-disease heterogeneous network;

[0024] Using the preprocessed original data set to train the initial drug prediction model to obtain a target drug prediction model;

[0025] The target drug prediction model is verified, and the verified target drug prediction model is used as the first drug prediction model.

[0026] Furthermore, the drug-drug similarity network is used to calculate the chemical structure similarity of drugs based on the same substructure sets and substructure unions between each pair of drug compound molecules;

[0027] The disease-disease similarity network is used to calculate the similarity of disease pair indexes based on the similarity between each disease index in different databases and the index weight corresponding to each database;

[0028] The drug-disease heterogeneous network is constructed based on a drug-disease association matrix defined by a sparse matrix.

[0029] Furthermore, the constructing of an initial drug prediction model based on the drug-drug similarity network, the disease-disease similarity network and the drug-disease heterogeneous network includes:

[0030] converting the drug-drug similarity network into a first matrix characterizing drug similarity;

[0031] converting the disease-disease similarity network into a second matrix representing disease similarities;

[0032] Based on the first matrix and the second matrix, the graph regularized non-negative matrix factorization (GRNMF) algorithm is used to decompose the drug-disease association matrix corresponding to the drug-disease heterogeneous network into a drug feature space matrix and a disease feature space matrix to construct an initial drug prediction model.

[0033] Furthermore, the optimization objective function of the GRNMF algorithm is determined based on the first term and the second term, wherein:

[0034] The first item is determined by the Frobenius norm of the Hadamard product between the weight matrix of the drug-disease association matrix and the first target matrix, and the first target matrix is ​​calculated by the drug-disease association matrix, the drug feature space matrix and the disease feature space matrix;

[0035] The second item is calculated based on the first matrix, the second matrix, the drug feature space matrix, the disease feature space matrix and a preset regularization parameter.

[0036] Further, the verification of the target drug prediction model includes:

[0037] The target drug prediction model is verified according to a pre-acquired standard data set using a ten-fold cross validation method to obtain the model prediction accuracy;

[0038] When the prediction accuracy of the model is not lower than a preset accuracy threshold, it is determined that the target drug prediction model has passed the verification.

[0039] The present application also provides a drug prediction model training method, which is applied to an edge computing node, and the method includes:

[0040] Sending a download request to the cloud, wherein the download request is used to request the cloud to feedback a pre-built first drug prediction model;

[0041] receiving the first drug prediction model, and training the first drug prediction model using local medical data to obtain a second drug prediction model;

[0042] Send encrypted model parameter information obtained by encrypting the model parameter information of the second drug prediction model to the cloud, wherein the encrypted model parameter information is used to instruct the cloud to iteratively train the first drug prediction model at least based on the encrypted model parameter information until an iteration stop condition is met to obtain a third drug prediction model.

[0043] The present application also provides a drug prediction model training system, including cloud and edge computing nodes, wherein:

[0044] The cloud is configured to send a pre-built first drug prediction model to the edge computing node in response to a download request from the edge computing node;

[0045] The edge computing node is configured to train the first drug prediction model using local medical data to obtain a second drug prediction model, and encrypt model parameter information of the second drug prediction model to obtain encrypted model parameter information and send it to the cloud;

[0046] The cloud is also configured to receive the encrypted model parameter information, and iteratively train the first drug prediction model at least based on the encrypted model parameter information until an iteration stop condition is met to obtain a third drug prediction model.

[0047] The present application also provides a drug prediction model training device, which is applied to the cloud, and the device includes:

[0048] A first sending module, configured to send a pre-built first drug prediction model to the edge computing node in response to a download request from the edge computing node;

[0049] A first receiving module is used to receive encrypted model parameter information, wherein the encrypted model parameter information is obtained by the edge computing node encrypting model parameter information of a second drug prediction model, and the second drug prediction model is obtained by the edge computing node training the first drug prediction model using local medical data;

[0050] A training module is used to iteratively train the first drug prediction model based on at least the encrypted model parameter information until an iteration stop condition is met to obtain a third drug prediction model.

[0051] The present application also provides a drug prediction model training device, which is applied to an edge computing node, and the device includes:

[0052] A second sending module is used to send a download request to the cloud, wherein the download request is used to request the cloud to feedback a pre-built first drug prediction model;

[0053] A second receiving module is used to receive the first drug prediction model, and train the first drug prediction model using local medical data to obtain a second drug prediction model;

[0054] The third sending module is used to send the encrypted model parameter information obtained by encrypting the model parameter information of the second drug prediction model to the cloud, wherein the encrypted model parameter information is used to instruct the cloud to iteratively train the first drug prediction model at least based on the encrypted model parameter information until the iteration stop condition is met to obtain the third drug prediction model.

[0055] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of any of the above-mentioned drug prediction model training methods are implemented.

[0056] An embodiment of the present application also provides a computer program product, including computer instructions, which, when executed by a processor, implement the steps of any of the above-mentioned drug prediction model training methods.

[0057] An embodiment of the present application also provides a computer device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements the steps of any of the above-mentioned drug prediction model training methods when executing the computer program.

[0058] In summary, the embodiments of the present application have at least the following beneficial effects:

[0059] According to an embodiment of the present application, a pre-built first drug prediction model is sent to the edge computing node in response to a download request from the edge computing node; encrypted model parameter information is received, wherein the encrypted model parameter information is obtained by the edge computing node encrypting the model parameter information of the second drug prediction model, and the second drug prediction model is obtained by the edge computing node training the first drug prediction model using local medical data; at least based on the encrypted model parameter information, the first drug prediction model is iteratively trained until the iteration stop condition is met to obtain a third drug prediction model, thereby being able to consider the actual distribution of medical data to use the local medical data stored in the edge computing node to train the model, enrich the data volume and data category of the medical data training samples, so as to improve the prediction range and prediction accuracy of the trained model, and there is no need to upload the local medical data to the cloud for training the model, thereby protecting the privacy and security of the local medical data while reducing the amount of data transmission between the cloud and the edge computing node. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] Figure 1 It is a flowchart of the drug prediction model training method provided in the embodiment of the present application;

[0061] Figure 2 It is a schematic diagram of the communication connection between the edge computing node and the cloud provided in an embodiment of the present application;

[0062] Figure 3 is a schematic diagram of drug prediction model training provided in an embodiment of the present application;

[0063] Figure 4 It is a flowchart of the drug prediction model training method provided in the embodiment of the present application;

[0064] Figure 5 is a schematic diagram of a drug prediction model training system provided in an embodiment of the present application;

[0065] Figure 6 It is a structural schematic diagram of a drug prediction model training device provided in an embodiment of the present application;

[0066] Figure 7 It is a structural schematic diagram of a drug prediction model training device provided in an embodiment of the present application;

[0067] Figure 8 It is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0068] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0069] In the description of the present application, the terms "first", "second", "third", etc. are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, features defined as "first", "second", "third", etc. may explicitly or implicitly include one or more of the features. In the description of the present application, unless otherwise specified, the meaning of "multiple" is two or more. In the description of the present application, the term "including" and its variations are open inclusions, i.e., "including but not limited to". The term "based on" means "at least partially based on". The term "according to" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments".

[0070] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0071] In the description of this application, it should be noted that, unless otherwise defined, all technical and scientific terms used in this application have the same meaning as those commonly understood by those skilled in the art. The terms used in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood by specific circumstances.

[0072] See also Figure 1 , shows a schematic flow chart of a drug prediction model training method provided in an embodiment of the present application, the method is applied in the cloud, and includes steps S101-S103, which are as follows:

[0073] S101, in response to a download request from an edge computing node, sending a pre-built first drug prediction model to the edge computing node;

[0074] It should be noted that the first drug prediction model in this embodiment can be obtained by training an artificial intelligence model using sample data collected in the cloud (e.g., a public database, data uploaded to the cloud with the consent of the patient, etc.), wherein the artificial intelligence model can include a deep learning model, a neural network model, etc. It should be understood that the process of pre-constructing the first drug prediction model here can be regarded as pre-training / preliminary training of the model to obtain a model with preliminary drug prediction capabilities.

[0075] For example, the edge computing node can choose to keep the stored medical data confidential or public according to its actual needs, see Figure 2 , the edge computing node may include edge medical cloud nodes deployed in various trusted hospitals, designated medical data centers, large medical institutions or designated medical platforms. Here, since the medical data stored in the edge medical cloud nodes usually involves user privacy or private data assets, they are generally not open, and data security and confidentiality must be extremely high. At this time, the cloud may include a central medical cloud node, which can be understood as a server that communicates with various large medical institutions or designated medical platforms.

[0076] For example, see Figure 2 The communication connection between the edge computing node and the cloud can be constructed through the 5G-MEC (5G Mobile Edge Computing) architecture, so that the edge computing node and the cloud can communicate based on the 5G mobile cellular network (but it should be understood that communication can also be carried out through other wired or wireless networks), thereby making use of the excellent characteristics of low latency, large bandwidth, and high speed of the 5G network to reduce transmission latency and improve the operating efficiency of this embodiment.

[0077] Exemplarily, the pre-built first drug prediction model can be built on other terminals, and then packaged and uploaded to the cloud via Docker (application container engine). Here, when the edge computing node needs to download the first drug prediction model, the cloud can implement functions based on Kubernetes (K8s for short) to send the first drug prediction model to the edge computing node.

[0078] S102, receiving encrypted model parameter information, wherein the encrypted model parameter information is obtained by the edge computing node encrypting model parameter information of a second drug prediction model, and the second drug prediction model is obtained by the edge computing node training the first drug prediction model using local medical data;

[0079] It should be noted that the local medical data in this embodiment refers to medical data collected and stored in advance by the edge computing node. For example, when the edge computing node is an edge medical cloud node deployed in various trusted hospitals, designated medical data centers, large medical institutions or designated medical platforms, the local medical data can be the relevant medical records data of patients who go to various trusted hospitals, designated medical data centers, large medical institutions or designated medical platforms for medical treatment / medicine purchases. The medical records data are stored and used with the patient's consent.

[0080] The encryption process may be implemented using a general encryption algorithm.

[0081] S103, iteratively training the first drug prediction model at least based on the encrypted model parameter information until an iteration stop condition is met, to obtain a third drug prediction model.

[0082] Specifically, in this embodiment, the encrypted model parameter information can be used as a training set, and the first drug prediction model can be iteratively trained using the training set. The specific method of the iterative training can be determined according to the structure of the first drug prediction model. For example, if the structure of the first drug prediction model is a deep learning model, the method of training a deep learning model can be used to perform the iterative training. Exemplarily, the structure of the first drug prediction model can also be a BP neural network, etc.

[0083] Exemplarily, the iteration stopping condition may include: the number of iterations reaches a preset iteration number threshold, and / or the model converges.

[0084] In an optional implementation, the number of the edge computing nodes is multiple, and the method further includes:

[0085] Determine the weights corresponding to the plurality of edge computing nodes;

[0086] Exemplarily, the weights corresponding to each of the plurality of edge computing nodes may be pre-configured by a user in the cloud, and are used to characterize the importance of each edge computing node and the local medical data stored therein.

[0087] The iterative training of the first drug prediction model at least based on the encrypted model parameter information until an iteration stop condition is satisfied to obtain a third drug prediction model includes:

[0088] Based on the weights corresponding to the plurality of edge computing nodes, the encrypted model parameter information sent by the plurality of edge computing nodes is securely aggregated using a federated averaging algorithm (FedAvg algorithm) to obtain a total model parameter;

[0089] The first drug prediction model is iteratively trained according to the total model parameters until an iteration stop condition is met, thereby obtaining a third drug prediction model.

[0090] It can be understood that this embodiment introduces the weight of each edge computing node when using the federated averaging algorithm to securely aggregate the encrypted model parameter information, so that each encrypted model parameter information also has a corresponding weight, thereby obtaining the final total model parameters that take into account the importance of local medical data stored in different edge computing nodes, so that the model trained using the final total model parameters is more accurate.

[0091] In addition, see Figure 3 ,When this embodiment further adopts the 5G-MEC architecture to build the communication connection between the cloud and the edge computing nodes, the performance bottleneck problem commonly ,occurring in federated learning due to limited network resources can be solved.

[0092] In an optional implementation, determining the weights corresponding to each of the plurality of edge computing nodes includes:

[0093] Based on the authority index and / or activity level corresponding to each of the plurality of edge computing nodes, the weight corresponding to each of the plurality of edge computing nodes is determined.

[0094] It should be noted that in this embodiment, the authority index is used to characterize the authority of the local medical data stored in the corresponding edge computing node, and the activity is used to characterize the number of model parameter updates through the corresponding edge computing node and / or the frequency of data interaction with other edge computing nodes. Therefore, in this embodiment, a weight that is more in line with the actual situation of each edge computing node can be determined, so that different edge computing nodes can affect the total model parameters obtained by aggregation according to their actual situation.

[0095] In an optional implementation, the encryption process is performed using an additive homomorphic encryption algorithm.

[0096] Specifically, this embodiment illustrates an exemplary implementation of the additive homomorphic encryption algorithm through the following process:

[0097] 1) Key generation:

[0098] First, randomly select two prime numbers a and b, satisfying gcd(ab,(a-1)(b-1))=1 and the lengths of a and b must be the same. The values ​​of α and β are calculated by α=ab,β=lcm(a-1,b-1), where lcm means the least common multiple of (a-1) and (b-1). Then define the function The public key can be represented by (α, α+1) and the private key can be represented by (β, θ).

[0099] 2) Encryption process:

[0100] The input plain text information m is a hyperparameter in the drug prediction model of this embodiment and needs to satisfy 0≤m≤α. Then randomly select And gcd(γ,α)=1, the encrypted ciphertext c information is calculated by the following formula:

[0101] c=(α+1) m γ α modα 2

[0102] Then, we can expand the binomial theorem to obtain:

[0103]

[0104] Furthermore, in order to speed up the calculation process, this embodiment simplifies the modular exponential operation into one modular multiplication operation, as shown in the following formula:

[0105] (α+1) m =mα+1modα 2

[0106] 3) Decryption process:

[0107] For the ciphertext information c, it must satisfy The plaintext information m can be decrypted by the following formula:

[0108] m=F(c β modα 2 )·θmodα

[0109] The above is one implementation method of the additive homomorphic encryption algorithm given in this embodiment, but it should be understood that other general implementation methods of the additive homomorphic encryption algorithm can also be adopted, which is not strictly limited here.

[0110] In an optional implementation, the iterative training of the first drug prediction model based at least on the encrypted model parameter information includes:

[0111] During each round of iteration, the first drug prediction model obtained after the previous round of iteration is sent to the edge computing node, so that the edge computing node decrypts the first drug prediction model obtained after the previous round of iteration, updates the second drug prediction model according to the decryption result, and generates new encrypted model parameter information based on the model parameter information of the updated second drug prediction model and sends it to the cloud, wherein the new encrypted model parameter information is used for this round of iterative training.

[0112] It can be understood that the first drug prediction model obtained after the completion of the previous round of iteration in this embodiment refers to the first drug prediction model trained by the iterative training that has been completed in the previous round before the completion of this round of iterative training. It is not difficult to understand that in the first round of iterative training, the first drug prediction model obtained after the completion of the previous round of iteration refers to the first drug prediction model most recently received from the corresponding edge computing node.

[0113] It should be noted that the decryption result in this embodiment can be a decryption algorithm that matches the additive homomorphic encryption algorithm, for example, it can be implemented by the decryption process in the embodiment of the additive homomorphic encryption algorithm given above.

[0114] In an optional embodiment, the method for constructing the pre-constructed first drug prediction model includes:

[0115] Preprocessing the acquired raw data set, wherein the raw data set includes drug-related data, disease-related data, and known drug-disease relationship data, and the preprocessing includes data cleaning, data conversion, and / or data merging;

[0116] It should be noted that, in this embodiment, drug-related data may include: drug ID code, drug molecule name, drug-drug similarity matrix (used to indicate the similarity between two drugs); disease-related data may include: disease type name, disease ID code, disease-disease similarity matrix (used to indicate the similarity between two diseases); known drug-disease relationship pair data can be used to indicate the relationship between drugs and diseases to form drug-disease relationship pairs.

[0117] Among them, drug-related data can be derived from the official DrugBank public drug database.

[0118] Disease-related data can be derived from major official disease databases, such as the Online Mendelian Inheritance in Man (OMIM) database, the Disease Ontology (DO) database, and the U.S. National Library of Medicine (NLM).

[0119] Data on known drug-disease relationships can be derived from the Comparative Toxicogenomics Database (CTD) and data provided by major authoritative medical institutions.

[0120] It is understandable that data cleaning can eliminate duplicate and invalid data between different data. And because different databases will name the data ID code themselves, the data ID codes of different databases are not the same and cannot be directly combined and used. Therefore, it is necessary to unify the data ID encoding through data conversion.

[0121] Constructing drug-drug similarity networks;

[0122] Exemplarily, the drug-drug similarity network can be configured to measure the similarity between different drugs. In one embodiment, the drug-drug similarity network can be constructed in the form of a drug similarity matrix, which can be a matrix used to calculate the chemical structure similarity and / or chemical component similarity of compounds between different drugs.

[0123] Construct disease-disease similarity networks;

[0124] Exemplarily, the disease-disease similarity network can be configured to measure the similarity between different diseases. In one embodiment, the disease-disease similarity network can be constructed in the form of a disease similarity matrix, which can be a matrix used to calculate the similarity of disease semantic-related information between different diseases.

[0125] Constructing heterogeneous drug-disease networks;

[0126] Exemplarily, the drug-disease heterogeneous network can be configured to measure the similarity between each drug and each disease. In one embodiment, the drug-disease heterogeneous network can be constructed by means of a drug-disease similarity matrix, which can be constructed based on known drug-disease relationship data.

[0127] constructing an initial drug prediction model based on the drug-drug similarity network, the disease-disease similarity network, and the drug-disease heterogeneous network;

[0128] Using the preprocessed original data set to train the initial drug prediction model to obtain a target drug prediction model;

[0129] The target drug prediction model is verified, and the verified target drug prediction model is used as the first drug prediction model.

[0130] It should be noted that in this embodiment, a preset test set can be used to verify the target drug prediction model, the test set is input into the target drug prediction model for prediction, and the accuracy of the prediction result is calculated to determine whether the target drug prediction model has passed the verification.

[0131] In an optional embodiment, the drug-drug similarity network is used to calculate the chemical structure similarity of the drug based on the same substructure set and substructure union between each drug compound molecule;

[0132] Specifically, the drug-drug similarity network in this embodiment can be configured to calculate the chemical structure similarity by the following formula: drug (d1,d2):

[0133]

[0134] Among them, d1 and d2 represent two drugs respectively, |d1∩d2| represents the same substructure set between the two drug compound molecules d1 and d2 (that is, the substructure shared by the two), and |d1∪d2| represents the substructure union between the two drug compound molecules d1 and d2 (that is, the union of the substructures of the two).

[0135] The disease-disease similarity network is used to calculate the similarity of disease pair indexes based on the similarity between each disease index in different databases and the index weight corresponding to each database;

[0136] Specifically, the disease-disease similarity network in this embodiment can be configured to calculate the disease pair index similarity by the following formula: disease (d1,d2):

[0137]

[0138] Among them, w i is the index weight corresponding to the i-th database, It represents the similarity between two diseases d1 and d2 in the i-th database, and n is the number of databases.

[0139] The drug-disease heterogeneous network is constructed based on a drug-disease association matrix defined by a sparse matrix.

[0140] Specifically, the sparse matrix in this embodiment can be represented as X with a dimension of n1×m1. (1) , where n1 represents the number of drugs, m1 represents the number of diseases, and X (1) The value of is used to indicate whether there is an interaction between drug i and disease j. For example, X (1) (i,j)=1 means there is an interaction relationship, X (1) (i, j) = 0 means that there is no interaction relationship.

[0141] In an optional embodiment, the constructing of an initial drug prediction model based on the drug-drug similarity network, the disease-disease similarity network and the drug-disease heterogeneous network includes:

[0142] converting the drug-drug similarity network into a first matrix characterizing drug similarity;

[0143] converting the disease-disease similarity network into a second matrix representing disease similarities;

[0144] Based on the first matrix and the second matrix, the graph regularized non-negative matrix factorization (GRNMF) algorithm is used to decompose the drug-disease association matrix corresponding to the drug-disease heterogeneous network into a drug feature space matrix and a disease feature space matrix to construct an initial drug prediction model.

[0145] In an optional implementation, the optimization objective function of the GRNMF algorithm is determined based on the first term and the second term, wherein:

[0146] The first item is determined by the Frobenius norm of the Hadamard product between the weight matrix of the drug-disease association matrix and the first target matrix, and the first target matrix is ​​calculated by the drug-disease association matrix, the drug feature space matrix and the disease feature space matrix;

[0147] Specifically, the first item in this embodiment can be defined by the following formula:

[0148]

[0149] where ⊙ represents the Hadamard product, ‖·|| F represents the Frobenius norm, Represents the drug-disease association matrix X (1) The weight matrix, U (1) represents the drug feature space matrix, V (1) Represents the disease feature space matrix.

[0150] The second item is calculated based on the first matrix, the second matrix, the drug feature space matrix, the disease feature space matrix and a preset regularization parameter.

[0151] Specifically, the second item in this embodiment can be defined by the following formula:

[0152]

[0153] Among them, α is the regularization parameter, Tr(·) is the tracking operator, and U (1)represents the drug feature space matrix, V (1) represents the disease feature space matrix, The first matrix The diagonal matrix of The second matrix The diagonal matrix of

[0154] Therefore, the optimization objective function of the GRNMF algorithm can be expressed as:

[0155]

[0156] In this embodiment, when X (1) (i,j) is observed, then W (1) (i,j)=1, otherwise W (1) (i,j)=w∈[0,1), which is used to assign smaller weights to unobserved samples. For the second item, the trajectory optimization algorithm can be used to make the internal network smoother. (1) and V (1) Non-negative constraints can make the results more interpretable. Regularization parameter α can prevent overfitting of the model and improve the generalization ability of the model.

[0157] In an optional embodiment, the verifying the target drug prediction model includes:

[0158] The target drug prediction model is verified according to a pre-acquired standard data set using a ten-fold cross validation method to obtain the model prediction accuracy;

[0159] When the prediction accuracy of the model is not lower than a preset accuracy threshold, it is determined that the target drug prediction model has passed the verification.

[0160] Specifically, the ten-fold cross validation method in this embodiment can be expressed by the following formula:

[0161]

[0162] Among them, D means that the sample data is divided into 10 mutually exclusive subsets, D i is the i-th test set, D -i represents the sample data outside the i-th test set (i.e., training set), D i,J represents the jth data in the i-th test set, the function M(·) represents the specific prediction model, and L(·) represents the loss function.

[0163] Exemplarily, the standard data set may include a PREDICT data set.

[0164] See also Figure 4 , shows a schematic flow chart of a drug prediction model training method provided in an embodiment of the present application, the method is applied to an edge computing node, and the method includes steps S401-S403, which are as follows:

[0165] S401, sending a download request to the cloud, wherein the download request is used to request the cloud to feedback a pre-built first drug prediction model;

[0166] S402 receives the first drug prediction model, and trains the first drug prediction model using local medical data to obtain a second drug prediction model;

[0167] S403, sending the encrypted model parameter information obtained by encrypting the model parameter information of the second drug prediction model to the cloud, wherein the encrypted model parameter information is used to instruct the cloud to iteratively train the first drug prediction model at least based on the encrypted model parameter information until an iteration stop condition is met to obtain a third drug prediction model.

[0168] In an optional implementation, the number of the edge computing nodes is multiple, and the encryption model parameter information is further used to instruct the cloud to: determine the weights corresponding to the multiple edge computing nodes respectively;

[0169] The iterative training of the first drug prediction model at least based on the encrypted model parameter information until an iteration stop condition is satisfied to obtain a third drug prediction model includes:

[0170] Based on the weights corresponding to the plurality of edge computing nodes, the encrypted model parameter information sent by the plurality of edge computing nodes is securely aggregated using a federated averaging algorithm to obtain a total model parameter;

[0171] The first drug prediction model is iteratively trained according to the total model parameters until an iteration stop condition is met, thereby obtaining a third drug prediction model.

[0172] In an optional implementation, determining the weights corresponding to each of the plurality of edge computing nodes includes:

[0173] Based on the authority index and / or activity level corresponding to each of the plurality of edge computing nodes, the weight corresponding to each of the plurality of edge computing nodes is determined.

[0174] In an optional implementation, the encryption process is performed using an additive homomorphic encryption algorithm.

[0175] In an optional implementation, the iterative training of the first drug prediction model based at least on the encrypted model parameter information includes:

[0176] During each round of iteration, the first drug prediction model obtained after the previous round of iteration is sent to the edge computing node, so that the edge computing node decrypts the first drug prediction model obtained after the previous round of iteration, updates the second drug prediction model according to the decryption result, and generates new encrypted model parameter information based on the model parameter information of the updated second drug prediction model and sends it to the cloud, wherein the new encrypted model parameter information is used for this round of iterative training.

[0177] In an optional embodiment, the method for constructing the pre-constructed first drug prediction model includes:

[0178] Preprocessing the acquired raw data set, wherein the raw data set includes drug-related data, disease-related data, and known drug-disease relationship data, and the preprocessing includes data cleaning, data conversion, and / or data merging;

[0179] Constructing drug-drug similarity networks;

[0180] Construct disease-disease similarity networks;

[0181] Constructing heterogeneous drug-disease networks;

[0182] constructing an initial drug prediction model based on the drug-drug similarity network, the disease-disease similarity network, and the drug-disease heterogeneous network;

[0183] Using the preprocessed original data set to train the initial drug prediction model to obtain a target drug prediction model;

[0184] The target drug prediction model is verified, and the verified target drug prediction model is used as the first drug prediction model.

[0185] In an optional embodiment, the drug-drug similarity network is used to calculate the chemical structure similarity of the drug based on the same substructure set and substructure union between each drug compound molecule;

[0186] The disease-disease similarity network is used to calculate the similarity of disease pair indexes based on the similarity between each disease index in different databases and the index weight corresponding to each database;

[0187] The drug-disease heterogeneous network is constructed based on a drug-disease association matrix defined by a sparse matrix.

[0188] In an optional embodiment, the constructing of an initial drug prediction model based on the drug-drug similarity network, the disease-disease similarity network and the drug-disease heterogeneous network includes:

[0189] converting the drug-drug similarity network into a first matrix characterizing drug similarity;

[0190] converting the disease-disease similarity network into a second matrix representing disease similarities;

[0191] Based on the first matrix and the second matrix, the graph regularized non-negative matrix factorization (GRNMF) algorithm is used to decompose the drug-disease association matrix corresponding to the drug-disease heterogeneous network into a drug feature space matrix and a disease feature space matrix to construct an initial drug prediction model.

[0192] In an optional implementation, the optimization objective function of the GRNMF algorithm is determined based on the first term and the second term, wherein:

[0193] The first item is determined by the Frobenius norm of the Hadamard product between the weight matrix of the drug-disease association matrix and the first target matrix, and the first target matrix is ​​calculated by the drug-disease association matrix, the drug feature space matrix and the disease feature space matrix;

[0194] The second item is calculated based on the first matrix, the second matrix, the drug feature space matrix, the disease feature space matrix and a preset regularization parameter.

[0195] In an optional embodiment, the verifying the target drug prediction model includes:

[0196] The target drug prediction model is verified according to a pre-acquired standard data set using a ten-fold cross validation method to obtain the model prediction accuracy;

[0197] When the prediction accuracy of the model is not lower than a preset accuracy threshold, it is determined that the target drug prediction model has passed the verification.

[0198] See also Figure 5 , shows a schematic diagram of the structure of a drug prediction model training system provided in an embodiment of the present application, the drug prediction model training system includes a cloud 501 and an edge computing node 502, wherein:

[0199] The cloud 501 is configured to send a pre-built first drug prediction model to the edge computing node 502 in response to a download request from the edge computing node 502;

[0200] The edge computing node 502 is configured to train the first drug prediction model using local medical data to obtain a second drug prediction model, and encrypt the model parameter information of the second drug prediction model to obtain the encrypted model parameter information and send it to the cloud 501;

[0201] The cloud 501 is further configured to receive the encrypted model parameter information, and iteratively train the first drug prediction model at least based on the encrypted model parameter information until an iteration stop condition is met to obtain a third drug prediction model.

[0202] Accordingly, the cloud 501 in the embodiment of the present application can implement any of the above-mentioned drug prediction model training methods applied to the cloud, and the edge computing node 502 can implement any of the above-mentioned drug prediction model training methods applied to the edge computing node, which will not be repeated here.

[0203] Accordingly, an embodiment of the present application also provides a drug prediction model training device, which can implement all processes of the drug prediction model training method applied to the cloud provided in the above embodiment.

[0204] See also Figure 6 , showing a schematic diagram of the structure of a drug prediction model training device provided in an embodiment of the present application, the device is applied in the cloud, and the device includes:

[0205] A first sending module 601 is used to send a pre-built first drug prediction model to the edge computing node in response to a download request from the edge computing node;

[0206] A first receiving module 602 is used to receive encrypted model parameter information, wherein the encrypted model parameter information is obtained by the edge computing node encrypting model parameter information of a second drug prediction model, and the second drug prediction model is obtained by the edge computing node training the first drug prediction model using local medical data;

[0207] The training module 603 is used to iteratively train the first drug prediction model based on at least the encrypted model parameter information until an iteration stop condition is met to obtain a third drug prediction model.

[0208] In an optional implementation, the number of the edge computing nodes is multiple, and the training module 603 is further used to:

[0209] Determine the weights corresponding to the plurality of edge computing nodes;

[0210] The iterative training of the first drug prediction model at least based on the encrypted model parameter information until an iteration stop condition is satisfied to obtain a third drug prediction model includes:

[0211] Based on the weights corresponding to the plurality of edge computing nodes, the encrypted model parameter information sent by the plurality of edge computing nodes is securely aggregated using a federated averaging algorithm to obtain a total model parameter;

[0212] The first drug prediction model is iteratively trained according to the total model parameters until an iteration stop condition is met, thereby obtaining a third drug prediction model.

[0213] In an optional implementation, determining the weights corresponding to each of the plurality of edge computing nodes includes:

[0214] Based on the authority index and / or activity level corresponding to each of the plurality of edge computing nodes, the weight corresponding to each of the plurality of edge computing nodes is determined.

[0215] In an optional implementation, the encryption process is performed using an additive homomorphic encryption algorithm.

[0216] In an optional implementation, the iterative training of the first drug prediction model based at least on the encrypted model parameter information includes:

[0217] During each round of iteration, the first drug prediction model obtained after the previous round of iteration is sent to the edge computing node, so that the edge computing node decrypts the first drug prediction model obtained after the previous round of iteration, updates the second drug prediction model according to the decryption result, and generates new encrypted model parameter information based on the model parameter information of the updated second drug prediction model and sends it to the cloud, wherein the new encrypted model parameter information is used for this round of iterative training.

[0218] In an optional embodiment, the method for constructing the pre-constructed first drug prediction model includes:

[0219] Preprocessing the acquired raw data set, wherein the raw data set includes drug-related data, disease-related data, and known drug-disease relationship data, and the preprocessing includes data cleaning, data conversion, and / or data merging;

[0220] Constructing drug-drug similarity networks;

[0221] Construct disease-disease similarity networks;

[0222] Constructing heterogeneous drug-disease networks;

[0223] constructing an initial drug prediction model based on the drug-drug similarity network, the disease-disease similarity network, and the drug-disease heterogeneous network;

[0224] Using the preprocessed original data set to train the initial drug prediction model to obtain a target drug prediction model;

[0225] The target drug prediction model is verified, and the verified target drug prediction model is used as the first drug prediction model.

[0226] In an optional embodiment, the drug-drug similarity network is used to calculate the chemical structure similarity of the drug based on the same substructure set and substructure union between each drug compound molecule;

[0227] The disease-disease similarity network is used to calculate the similarity of disease pair indexes based on the similarity between each disease index in different databases and the index weight corresponding to each database;

[0228] The drug-disease heterogeneous network is constructed based on a drug-disease association matrix defined by a sparse matrix.

[0229] In an optional embodiment, the constructing of an initial drug prediction model based on the drug-drug similarity network, the disease-disease similarity network and the drug-disease heterogeneous network includes:

[0230] converting the drug-drug similarity network into a first matrix characterizing drug similarity;

[0231] converting the disease-disease similarity network into a second matrix representing disease similarities;

[0232] Based on the first matrix and the second matrix, the graph regularized non-negative matrix factorization (GRNMF) algorithm is used to decompose the drug-disease association matrix corresponding to the drug-disease heterogeneous network into a drug feature space matrix and a disease feature space matrix to construct an initial drug prediction model.

[0233] In an optional implementation, the optimization objective function of the GRNMF algorithm is determined based on the first term and the second term, wherein:

[0234] The first item is determined by the Frobenius norm of the Hadamard product between the weight matrix of the drug-disease association matrix and the first target matrix, and the first target matrix is ​​calculated by the drug-disease association matrix, the drug feature space matrix and the disease feature space matrix;

[0235] The second item is calculated based on the first matrix, the second matrix, the drug feature space matrix, the disease feature space matrix and a preset regularization parameter.

[0236] In an optional embodiment, the verifying the target drug prediction model includes:

[0237] The target drug prediction model is verified according to a pre-acquired standard data set using a ten-fold cross validation method to obtain the model prediction accuracy;

[0238] When the prediction accuracy of the model is not lower than a preset accuracy threshold, it is determined that the target drug prediction model has passed the verification.

[0239] Accordingly, an embodiment of the present application also provides a drug prediction model training device, which can implement all processes of the drug prediction model training method applied to edge computing nodes provided in the above embodiments.

[0240] See also Figure 7 , shows a schematic diagram of the structure of a drug prediction model training device provided in an embodiment of the present application, the device is applied to an edge computing node, and the device includes:

[0241] A second sending module 701 is used to send a download request to the cloud, wherein the download request is used to request the cloud to feedback a pre-built first drug prediction model;

[0242] A second receiving module 702 is used to receive the first drug prediction model, and train the first drug prediction model using local medical data to obtain a second drug prediction model;

[0243] The third sending module 703 is used to send the encrypted model parameter information obtained by encrypting the model parameter information of the second drug prediction model to the cloud, wherein the encrypted model parameter information is used to instruct the cloud to iteratively train the first drug prediction model at least based on the encrypted model parameter information until the iteration stop condition is met to obtain the third drug prediction model.

[0244] In an optional implementation, the number of the edge computing nodes is multiple, and the encryption model parameter information is further used to instruct the cloud to: determine the weights corresponding to the multiple edge computing nodes respectively;

[0245] The iterative training of the first drug prediction model at least based on the encrypted model parameter information until an iteration stop condition is satisfied to obtain a third drug prediction model includes:

[0246] Based on the weights corresponding to the plurality of edge computing nodes, the encrypted model parameter information sent by the plurality of edge computing nodes is securely aggregated using a federated averaging algorithm to obtain a total model parameter;

[0247] The first drug prediction model is iteratively trained according to the total model parameters until an iteration stop condition is met, thereby obtaining a third drug prediction model.

[0248] In an optional implementation, determining the weights corresponding to each of the plurality of edge computing nodes includes:

[0249] Based on the authority index and / or activity level corresponding to each of the plurality of edge computing nodes, the weight corresponding to each of the plurality of edge computing nodes is determined.

[0250] In an optional implementation, the encryption process is performed using an additive homomorphic encryption algorithm.

[0251] In an optional implementation, the iterative training of the first drug prediction model based at least on the encrypted model parameter information includes:

[0252] During each round of iteration, the first drug prediction model obtained after the previous round of iteration is sent to the edge computing node, so that the edge computing node decrypts the first drug prediction model obtained after the previous round of iteration, updates the second drug prediction model according to the decryption result, and generates new encrypted model parameter information based on the model parameter information of the updated second drug prediction model and sends it to the cloud, wherein the new encrypted model parameter information is used for this round of iterative training.

[0253] In an optional embodiment, the method for constructing the pre-constructed first drug prediction model includes:

[0254] Preprocessing the acquired raw data set, wherein the raw data set includes drug-related data, disease-related data, and known drug-disease relationship data, and the preprocessing includes data cleaning, data conversion, and / or data merging;

[0255] Constructing drug-drug similarity networks;

[0256] Construct disease-disease similarity networks;

[0257] Constructing heterogeneous drug-disease networks;

[0258] constructing an initial drug prediction model based on the drug-drug similarity network, the disease-disease similarity network, and the drug-disease heterogeneous network;

[0259] Using the preprocessed original data set to train the initial drug prediction model to obtain a target drug prediction model;

[0260] The target drug prediction model is verified, and the verified target drug prediction model is used as the first drug prediction model.

[0261] In an optional embodiment, the drug-drug similarity network is used to calculate the chemical structure similarity of the drug based on the same substructure set and substructure union between each drug compound molecule;

[0262] The disease-disease similarity network is used to calculate the similarity of disease pair indexes based on the similarity between each disease index in different databases and the index weight corresponding to each database;

[0263] The drug-disease heterogeneous network is constructed based on a drug-disease association matrix defined by a sparse matrix.

[0264] In an optional embodiment, the constructing of an initial drug prediction model based on the drug-drug similarity network, the disease-disease similarity network and the drug-disease heterogeneous network includes:

[0265] converting the drug-drug similarity network into a first matrix characterizing drug similarity;

[0266] converting the disease-disease similarity network into a second matrix representing disease similarities;

[0267] Based on the first matrix and the second matrix, the graph regularized non-negative matrix factorization (GRNMF) algorithm is used to decompose the drug-disease association matrix corresponding to the drug-disease heterogeneous network into a drug feature space matrix and a disease feature space matrix to construct an initial drug prediction model.

[0268] In an optional implementation, the optimization objective function of the GRNMF algorithm is determined based on the first term and the second term, wherein:

[0269] The first item is determined by the Frobenius norm of the Hadamard product between the weight matrix of the drug-disease association matrix and the first target matrix, and the first target matrix is ​​calculated by the drug-disease association matrix, the drug feature space matrix and the disease feature space matrix;

[0270] The second item is calculated based on the first matrix, the second matrix, the drug feature space matrix, the disease feature space matrix and a preset regularization parameter.

[0271] In an optional embodiment, the verifying the target drug prediction model includes:

[0272] The target drug prediction model is verified according to a pre-acquired standard data set using a ten-fold cross validation method to obtain the model prediction accuracy;

[0273] When the prediction accuracy of the model is not lower than a preset accuracy threshold, it is determined that the target drug prediction model has passed the verification.

[0274] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of any of the above-mentioned drug prediction model training methods are implemented.

[0275] An embodiment of the present application also provides a computer program product, including computer instructions, which, when executed by a processor, implement the steps of any of the above-mentioned drug prediction model training methods.

[0276] An embodiment of the present application also provides a computer device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements the steps of any of the above-mentioned drug prediction model training methods when executing the computer program.

[0277] See also Figure 8 The computer device of this embodiment includes: a processor 801, a memory 802, and a computer program stored in the memory 802 and executable on the processor 801, such as a drug prediction model training program. When the processor 801 executes the computer program, the steps in each of the above drug prediction model training method embodiments are implemented.

[0278] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory 802 and executed by the processor 801 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program in the computer device.

[0279] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may include, but not limited to, a processor 801 and a memory 802. Those skilled in the art may understand that the schematic diagram is only an example of a computer device and does not constitute a limitation on the computer device. The computer device may include more or fewer components than shown in the figure, or may combine certain components, or different components. For example, the computer device may also include input and output devices, network access devices, buses, etc.

[0280] The processor 801 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor 801 may also be any conventional processor, etc. The processor 801 is the control center of the computer device, and uses various interfaces and lines to connect various parts of the entire computer device.

[0281] The memory 802 can be used to store the computer program and / or module, and the processor 801 implements various functions of the computer device by running or executing the computer program and / or module stored in the memory 802, and calling the data stored in the memory 802. The memory 802 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 802 can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0282] Wherein, if the module / unit integrated in the computer device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor 801. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc.

[0283] In summary, the embodiments of the present application have at least the following beneficial effects:

[0284] According to an embodiment of the present application, a pre-built first drug prediction model is sent to the edge computing node in response to a download request from the edge computing node; encrypted model parameter information is received, wherein the encrypted model parameter information is obtained by the edge computing node encrypting the model parameter information of the second drug prediction model, and the second drug prediction model is obtained by the edge computing node training the first drug prediction model using local medical data; at least based on the encrypted model parameter information, the first drug prediction model is iteratively trained until the iteration stop condition is met to obtain a third drug prediction model, thereby being able to consider the actual distribution of medical data to use the local medical data stored in the edge computing node to train the model, enrich the data volume and data category of the medical data training samples, so as to improve the prediction range and prediction accuracy of the trained model, and there is no need to upload the local medical data to the cloud for training the model, thereby protecting the privacy and security of the local medical data while reducing the amount of data transmission between the cloud and the edge computing node.

[0285] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by means of software plus the necessary hardware platform, and of course, it can also be implemented entirely by hardware. Based on such an understanding, all or part of the contribution of the technical solution of the present application to the background technology can be embodied in the form of a software product, and the computer software product can be stored in a storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application or some parts of the embodiments.

[0286] The above is a preferred embodiment of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications are also considered to be within the scope of protection of the present application.

Claims

1. A drug prediction model training method, It is characterized in that Applied to the cloud, the method includes: In response to a download request from an edge computing node, sending a pre-built first drug prediction model to the edge computing node; receiving encrypted model parameter information, wherein the encrypted model parameter information is obtained by the edge computing node encrypting model parameter information of a second drug prediction model, and the second drug prediction model is obtained by the edge computing node training the first drug prediction model using local medical data; At least based on the encrypted model parameter information, the first drug prediction model is iteratively trained until an iteration stop condition is met to obtain a third drug prediction model.

2. The drug prediction model training method according to claim 1, It is characterized in that The number of the edge computing nodes is multiple, and the method further includes: Determine the weights corresponding to the plurality of edge computing nodes; The iterative training of the first drug prediction model at least based on the encrypted model parameter information until an iteration stop condition is satisfied to obtain a third drug prediction model includes: Based on the weights corresponding to the plurality of edge computing nodes, the encrypted model parameter information sent by the plurality of edge computing nodes is securely aggregated using a federated averaging algorithm to obtain a total model parameter; The first drug prediction model is iteratively trained according to the total model parameters until an iteration stop condition is met, thereby obtaining a third drug prediction model.

3. The drug prediction model training method according to claim 2, It is characterized in that The determining of the weights corresponding to the plurality of edge computing nodes respectively includes: Based on the authority index and / or activity level corresponding to each of the plurality of edge computing nodes, the weight corresponding to each of the plurality of edge computing nodes is determined.

4. The drug prediction model training method according to claim 1, It is characterized in that The encryption process is performed using an additive homomorphic encryption algorithm.

5. The drug prediction model training method according to claim 1, It is characterized in that The iterative training of the first drug prediction model based at least on the encrypted model parameter information includes: During each round of iteration, the first drug prediction model obtained after the previous round of iteration is sent to the edge computing node, so that the edge computing node decrypts the first drug prediction model obtained after the previous round of iteration, updates the second drug prediction model according to the decryption result, and generates new encrypted model parameter information based on the model parameter information of the updated second drug prediction model and sends it to the cloud, wherein the new encrypted model parameter information is used for this round of iterative training.

6. The drug prediction model training method according to any one of claims 1 to 5, It is characterized in that The method for constructing the pre-constructed first drug prediction model comprises: Preprocessing the acquired raw data set, wherein the raw data set includes drug-related data, disease-related data, and known drug-disease relationship data, and the preprocessing includes data cleaning, data conversion, and / or data merging; Constructing drug-drug similarity networks; Construct disease-disease similarity networks; Constructing heterogeneous drug-disease networks; constructing an initial drug prediction model based on the drug-drug similarity network, the disease-disease similarity network, and the drug-disease heterogeneous network; Using the preprocessed original data set to train the initial drug prediction model to obtain a target drug prediction model; The target drug prediction model is verified, and the verified target drug prediction model is used as the first drug prediction model.

7. The drug prediction model training method according to claim 6, It is characterized in that The drug-drug similarity network is used to calculate the chemical structure similarity of drugs based on the same substructure sets and substructure unions between each pair of drug compound molecules; The disease-disease similarity network is used to calculate the similarity of disease pair indexes based on the similarity between each disease index in different databases and the index weight corresponding to each database; The drug-disease heterogeneous network is constructed based on a drug-disease association matrix defined by a sparse matrix.

8. The drug prediction model training method according to claim 6, It is characterized in that The constructing of an initial drug prediction model based on the drug-drug similarity network, the disease-disease similarity network and the drug-disease heterogeneous network includes: converting the drug-drug similarity network into a first matrix characterizing drug similarity; converting the disease-disease similarity network into a second matrix representing disease similarities; Based on the first matrix and the second matrix, the graph regularized non-negative matrix factorization (GRNMF) algorithm is used to decompose the drug-disease association matrix corresponding to the drug-disease heterogeneous network into a drug feature space matrix and a disease feature space matrix to construct an initial drug prediction model.

9. The drug prediction model training method according to claim 8, It is characterized in that The optimization objective function of the GRNMF algorithm is determined based on the first term and the second term, where: The first item is determined by the Frobenius norm of the Hadamard product between the weight matrix of the drug-disease association matrix and the first target matrix, and the first target matrix is ​​calculated by the drug-disease association matrix, the drug feature space matrix and the disease feature space matrix; The second item is calculated based on the first matrix, the second matrix, the drug feature space matrix, the disease feature space matrix and a preset regularization parameter.

10. The drug prediction model training method according to claim 6, It is characterized in that The verifying the target drug prediction model comprises: The target drug prediction model is verified according to a pre-acquired standard data set using a ten-fold cross validation method to obtain the model prediction accuracy; When the prediction accuracy of the model is not lower than a preset accuracy threshold, it is determined that the target drug prediction model has passed the verification.

11. A drug prediction model training method, It is characterized in that Applied to an edge computing node, the method comprises: Sending a download request to the cloud, wherein the download request is used to request the cloud to feedback a pre-built first drug prediction model; receiving the first drug prediction model, and training the first drug prediction model using local medical data to obtain a second drug prediction model; Send the encrypted model parameter information obtained by encrypting the model parameter information of the second drug prediction model to the cloud, wherein the encrypted model parameter information is used to instruct the cloud to iteratively train the first drug prediction model at least based on the encrypted model parameter information until an iteration stop condition is met to obtain a third drug prediction model.

12. A drug prediction model training system, It is characterized in that Including cloud and edge computing nodes, among which, The cloud is configured to send a pre-built first drug prediction model to the edge computing node in response to a download request from the edge computing node; The edge computing node is configured to train the first drug prediction model using local medical data to obtain a second drug prediction model, and encrypt model parameter information of the second drug prediction model to obtain encrypted model parameter information and send it to the cloud; The cloud is also configured to receive the encrypted model parameter information, and iteratively train the first drug prediction model at least based on the encrypted model parameter information until an iteration stop condition is met to obtain a third drug prediction model.

13. A drug prediction model training device, It is characterized in that Applied to the cloud, the device comprises: A first sending module, configured to send a pre-built first drug prediction model to the edge computing node in response to a download request from the edge computing node; A first receiving module is used to receive encrypted model parameter information, wherein the encrypted model parameter information is obtained by the edge computing node encrypting model parameter information of a second drug prediction model, and the second drug prediction model is obtained by the edge computing node training the first drug prediction model using local medical data; A training module is used to iteratively train the first drug prediction model based on at least the encrypted model parameter information until an iteration stop condition is met to obtain a third drug prediction model.

14. A drug prediction model training device, It is characterized in that Applied to an edge computing node, the device comprises: A second sending module is used to send a download request to the cloud, wherein the download request is used to request the cloud to feedback a pre-built first drug prediction model; A second receiving module is used to receive the first drug prediction model, and train the first drug prediction model using local medical data to obtain a second drug prediction model; The third sending module is used to send the encrypted model parameter information obtained by encrypting the model parameter information of the second drug prediction model to the cloud, wherein the encrypted model parameter information is used to instruct the cloud to iteratively train the first drug prediction model at least based on the encrypted model parameter information until the iteration stop condition is met to obtain the third drug prediction model.

15. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the drug prediction model training method according to any one of claims 1 to 11 is implemented.

16. A computer program product comprising computer instructions, It is characterized in that When the computer instructions are executed by a processor, the drug prediction model training method according to any one of claims 1 to 11 is implemented.

17. A computer device, It is characterized in that The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements the drug prediction model training method according to any one of claims 1 to 11 when executing the computer program.

Citation Information

Cited By

  • Model source closing method and device, electronic equipment, storage medium and product

    CN119830312A