Drug recommendation method, device, electronic device and storage medium

By performing random perturbation and K-anonymity processing on numerical and categorical data, combined with the gradient boosting decision tree algorithm for differential privacy protection, the privacy protection problem in the existing technology that cannot effectively handle different types of data is solved, and the accuracy of drug recommendation is improved. Robustness and privacy protection effect.

CN112652375BActive Publication Date: 2024-08-27SHENZHEN ZHENGXINKANG PHARMACEUTICAL TECHNOLOGY CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202110022884.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-08
Publication Date
2024-08-27
Estimated Expiration
2041-01-08

AI Technical Summary

Technical Problem

Existing technology cannot effectively handle different types of data for privacy protection, and the recommendation algorithm has low robustness and cannot effectively protect patient privacy without losing accuracy.

Method used

Random perturbation and K-anonymity technology are used to preprocess numerical and categorical data to generate a patient-drug matrix, and a gradient boosting decision tree algorithm with differential privacy protection is used to recommend drugs.

Benefits of technology

It achieves appropriate privacy protection for different types of data, improves the robustness of the recommendation algorithm, and ensures that patient privacy is effectively protected without losing too much accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112652375B
    Figure CN112652375B
Patent Text Reader

Abstract

The present invention provides a drug recommendation method, device, electronic device and storage medium. The method includes: obtaining relevant information of a target object; performing privacy protection preprocessing on the relevant information; generating drug recommendation information for the target object based on the relevant information that has been subjected to privacy protection preprocessing and a model based on a gradient boosting decision tree algorithm. The drug recommendation method of the present invention can effectively protect the privacy of patients while accurately and reliably recommending drugs to patients; can perform appropriate privacy protection processing on different types of data; the recommendation algorithm has strong robustness; and can more effectively protect the privacy of patients without losing too much accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of medical service recommendation, and in particular to a drug recommendation method, device, electronic device and storage medium. Background Art

[0002] In order to provide patients with accurate drug recommendations based on their conditions, medical recommendation systems need to collect patients' medical data, and the more detailed the information, the more accurate the recommendation effect. The privacy risks generated when the system collects and processes patient data are often underestimated or ignored, resulting in serious privacy leakage problems for patients. Therefore, it is important to take effective measures to protect the privacy of users in drug recommendations.

[0003] In order to protect privacy issues, privacy protection algorithms are increasingly attracting more and more attention, such as data anonymization technology (also known as de-identification), data scrambling, data encryption and access control. With the increase of big data, differential privacy has attracted widespread attention from scholars and has been applied to the field of medical recommendations.

[0004] Currently, many studies on privacy-sensitive recommendation algorithms use user rating matrices for recommendations. When privacy processing is performed on data before recommendation, only a single data type is processed. For example, random perturbation technology is used to process numerical user data, and then a user rating matrix is ​​created. For drug recommendations, both categorical and numerical data are included, which require classification processing, and categorical data cannot generate a user rating matrix.

[0005] In view of this, it is very necessary to choose different privacy protection technologies to process data separately, select a more robust recommendation algorithm, and consider the inference attacks on the recommendation system to protect the privacy of patients more effectively without losing too much accuracy. Summary of the invention

[0006] In response to the problems in the prior art, the embodiments of the present invention provide a drug recommendation method, device, electronic device and storage medium to solve the defects in the prior art that different types of data cannot be properly privacy protected, the recommendation algorithm has low robustness and poor accuracy, and cannot effectively protect the privacy of patients, so as to achieve the effect of accurately and reliably recommending drugs to patients while effectively protecting the privacy of patients.

[0007] Specifically, the embodiment of the present invention provides the following technical solutions:

[0008] In a first aspect, an embodiment of the present invention provides a drug recommendation method, comprising:

[0009] Get relevant information about the target object;

[0010] Performing privacy protection preprocessing on the relevant information;

[0011] Drug recommendation information for the target object is generated based on the relevant information that has been preprocessed for privacy protection and a model based on a gradient boosting decision tree algorithm.

[0012] Furthermore, the performing privacy protection preprocessing on the relevant information includes:

[0013] Determining a quasi-identifier attribute in the relevant information;

[0014] Adding random disturbance to the numerical quasi-identifier attribute in the relevant information;

[0015] K-anonymization processing is performed on the classification quasi-identifier attributes in the related information.

[0016] Furthermore, the model based on the gradient boosting decision tree algorithm includes a model based on the gradient boosting decision tree algorithm with a differential privacy protection function.

[0017] Furthermore, before adding random perturbations to the numerical quasi-identifier attributes in the relevant information and performing K-anonymity processing on the classified quasi-identifier attributes in the relevant information, performing privacy protection preprocessing on the relevant information further includes:

[0018] Generate a patient-drug matrix C based on the patient's demographic information, the patient's disease attributes, and the drug attributes used.

[0019]

[0020] Where n represents the number of attributes of the patient and m represents the number of patients.

[0021] Furthermore, the adding random disturbance to the numerical quasi-identifier attribute in the relevant information includes:

[0022] Determine the disturbance range [-γ,γ];

[0023] Add random numbers uniformly distributed in [-γ,γ] to the numerical quasi-identifier attributes in the matrix C.

[0024] Furthermore, the performing K-anonymity processing on the classified quasi-identifier attributes in the relevant information includes:

[0025] Step 1) Anonymize the quasi-identifier attributes of the relevant information using the KACA algorithm, and generate an initial equivalence class X = {x1, x2, x3, ..., x n}, where X is the set of equivalence classes, x1, x2, x3, …, x nis an equivalence class, and the values ​​of the quasi-identifiers of each tuple in each equivalence class are equal;

[0026] Step 2), select the equivalence class x whose number of tuples is less than K i , calculate the equivalence class x i and equivalence class set X except equivalence class x i The distance of the equivalence class outside is found by i The nearest equivalence class x j ;

[0027] If the equivalence class x i and x j The number of common tuples of is less than K, and the equivalence class x i and x j Merge into one class and delete the equivalence class x in the equivalence class set X j ,

[0028] If the equivalence class x i and x j The number of common tuples of is greater than or equal to K, in x j Select distance x i The nearest K-|x i | tuples form an equivalence class x j1 , the equivalence class x i and x j1 Merge into one class and delete the equivalence class x in the equivalence class set X j1 ;

[0029] Step 3), looping through step 2) for several times until there is no equivalence class with less than K tuples in the equivalence class set X, so that each tuple is consistent with the quasi-identifiers of at least K-1 records in the equivalence class;

[0030] Step 4), generalize each equivalence class in the equivalence class set X.

[0031] Furthermore, the method further comprises:

[0032] After anonymizing the classified quasi-identifier attributes in the matrix C, One-hot encoding is performed on the classified quasi-identifier attributes in the matrix C that satisfy k-anonymity to form a feature matrix E.

[0033] Furthermore, the method further comprises:

[0034] Training a model based on a gradient boosting decision tree algorithm with a differential privacy protection function, wherein the training of a model based on a gradient boosting decision tree algorithm with a differential privacy protection function comprises:

[0035] The feature matrix E is input into the model, wherein the quasi-identifier attribute and the patient's disease attribute are used as the features of the model, and the drug name is used as the prediction target of the model;

[0036] Use residual update iteration to strengthen the learner;

[0037] The obtained strong learner is differentially privately processed based on the Laplace mechanism.

[0038] Furthermore, the relevant information includes demographic information, treatment information and drug information, and the demographic information includes the age, gender, zip code and address of the target object.

[0039] Among them, the age, gender, and zip code of the target object are numerical quasi-identifier attributes, and the address of the target object is a categorical quasi-identifier attribute.

[0040] In a second aspect, the present invention provides a drug recommendation device, comprising:

[0041] An acquisition unit, used to acquire relevant information of a target object;

[0042] A privacy protection preprocessing unit, used for performing privacy protection preprocessing on the relevant information;

[0043] A drug recommendation unit is used to generate drug recommendation information for the target object based on the relevant information that has been preprocessed for privacy protection and a model based on a gradient boosting decision tree algorithm.

[0044] In a third aspect, the present invention provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the drug recommendation method described above when executing the program.

[0045] In a fourth aspect, the present invention provides a non-transitory computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the drug recommendation method described above.

[0046] The drug recommendation method, device, electronic device and storage medium provided by the present invention perform privacy protection preprocessing on the relevant information, and generate drug recommendation information for the target object based on the relevant information that has been subjected to privacy protection preprocessing and a model based on a gradient boosting decision tree algorithm. The drug recommendation method of the present invention can effectively protect the privacy of patients while accurately and reliably recommending drugs to patients; it can perform appropriate privacy protection processing on different types of data; the recommendation algorithm has strong robustness; and it can more effectively protect the privacy of patients without losing too much accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0048] Figure 1 A schematic diagram of a drug recommendation method provided by an embodiment of the present invention;

[0049] Figure 2 A schematic diagram of a differential privacy recommendation method based on a k-anonymity model and random perturbations provided by an embodiment of the present invention;

[0050] Figure 3 A schematic diagram of a method for training a GBDT model with differential privacy provided by an embodiment of the present invention;

[0051] Figure 4 A schematic diagram of the structure of a drug recommendation device provided by an embodiment of the present invention; and

[0052] Figure 5 A schematic diagram of the structure of an electronic device for drug recommendation provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0053] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0054] The privacy risks generated when the system collects and processes patient data are often underestimated or ignored, resulting in serious privacy leakage problems for patients. Therefore, it is important to take effective measures to protect the privacy of users in drug recommendations.

[0055] Currently, many studies on privacy-sensitive recommendation algorithms use user rating matrices for recommendations. When privacy processing is performed on data before recommendation, only a single data type is processed. For example, random perturbation technology is used to process numerical user data, and then a user rating matrix is ​​created. For drug recommendations, both categorical and numerical data are included, which require classification processing, and categorical data cannot generate a user rating matrix.

[0056] Therefore, the improved drug recommendation method will bring about the beneficial effects of no loss in the accuracy of the recommendation results, being more resistant to the inference attack of the recommendation system, more effectively protecting the privacy of patients, and having a strong algorithm robustness. To this end, the present invention provides a drug recommendation method, device, electronic device, and storage medium, and the contents provided by the present invention will be explained and illustrated in detail through specific embodiments below.

[0057] Figure 1 FIG. 2 shows a schematic diagram of a drug recommendation method. Figure 1 As shown, the drug recommendation method provided by the embodiment of the present invention includes the following steps:

[0058] Step 110: Obtain relevant information of the target object;

[0059] Step 120: performing privacy protection preprocessing on the relevant information;

[0060] Step 130: Generate drug recommendation information for the target object based on the relevant information that has been preprocessed for privacy protection and a model based on a gradient boosting decision tree algorithm.

[0061] In step 110, in one example, the target object is a patient. Preferably, the patient includes patients who have suffered from a certain disease, have been treated in major hospitals and clinics, and have left treatment information (electronic medical records) in the systems of major hospitals and clinics. Of course, the target object may also include people with no history of disease. The drug recommendation method of the present invention can directly recommend appropriate drugs to the corresponding target object based on the personal information of the target object, such as age, etc. At this time, the attributes of the patient, such as drugs and diseases, can be vacant or set to 0 or set to other appropriate values ​​or codes.

[0062] In one example, the relevant information includes demographic information, treatment information, and drug information, and the demographic information includes the target object's age, gender, zip code, and address, etc. The target object's age, gender, and zip code are numerical quasi-identifier attributes, and the target object's address is a categorical quasi-identifier attribute. Of course, the relevant information may also include other types of data in addition to age, gender, zip code, and address.

[0063] The drug recommendation method of the present invention performs different privacy processing methods on numerical quasi-identifier attributes and categorical quasi-identifier attributes, thereby achieving all-round protection of personal privacy.

[0064] In step 120, the relevant information is subjected to privacy protection preprocessing. Specifically, in one example, the privacy protection preprocessing includes adding random perturbations to numerical data in the relevant information and / or performing K-anonymity processing on categorized data in the relevant information.

[0065] For the numerical and categorical data in the relevant information, random perturbation technology and k-anonymity technology are used for privacy processing to prevent the system from obtaining the patient's real sensitive data. Random perturbation technology is simple to operate and efficient, suitable for processing numerical data. K-anonymity technology divides data according to equivalence classes and then generalizes the data, which is suitable for processing categorical data.

[0066] In step 130, drug recommendation information for the target object is generated based on the relevant information that has been preprocessed for privacy protection and a model based on a gradient boosting decision tree algorithm.

[0067] After the privacy of the patient's personal information has been processed by random perturbation technology and k-anonymity technology, it has a certain degree of anti-theft ability. Finally, in order to resist the reasoning attack of the recommendation system, the gradient boosting decision tree (GBDT) model that satisfies differential privacy is used to predict the drug list. Among them, the collaborative filtering algorithm based on the gradient boosting decision tree (GBDT) model can process both numerical and categorical data at the same time, thereby effectively protecting the privacy of patients.

[0068] Figure 2 A schematic diagram of a differential privacy recommendation method based on a k-anonymity model and random perturbations provided by an embodiment of the present invention is shown.

[0069] like Figure 2 As shown, demographic data and treatment information can be obtained through the patient's electronic medical record. The patient's electronic medical record and drug data are used as input to the model, and the model generates a patient-drug matrix C. Random perturbations are added to the numerical data in the relevant information and / or the categorical data in the relevant information are K-anonymized. The categorical data in the feature matrix C that satisfies k-anonymity is one-hot encoded to finally form a feature matrix E. The GBDT model with differential privacy protection is trained, and the trained GBDT model with differential privacy protection is used to predict drugs to generate a drug recommendation list.

[0070] In the above embodiment, by combining privacy protection technology with the gradient boosting decision tree algorithm to predict drugs and generate a recommendation list, better drug recommendations are made to patients while protecting the privacy of patients.

[0071] Based on the above embodiment, in a drug recommendation method provided in another embodiment of the present invention, the privacy protection preprocessing of the relevant information includes:

[0072] Determining a quasi-identifier attribute in the relevant information;

[0073] Adding random disturbance to the numerical quasi-identifier attribute in the relevant information;

[0074] K-anonymization processing is performed on the classification quasi-identifier attributes in the related information.

[0075] Quasi-identifier (QI, which can identify a user record with a high probability in combination with certain external information): A single column cannot locate an individual, but multiple columns of information can be used to potentially identify a person. In one example, the system can potentially identify an individual through multiple columns of information, and the attribute that leaks the sensitive information of this individual is a quasi-identifier attribute, that is, the quasi-identifier attribute is an attribute that is easily attacked by the system to leak the sensitive information of the individual. In one example, there is a certain correlation between multiple quasi-identifier attributes. In one example, the quasi-identifier attributes are attributes such as the age, gender, zip code, and address of an individual.

[0076] K represents the number of quasi-identifiers, that is, the number of quasi-identifiers is at least K, which means that there must be a certain number (at least K) of records in the published data that are indistinguishable on the quasi-identifiers, so that attackers cannot identify the specific individual to whom the private information belongs, thereby protecting personal privacy. K-anonymity specifies the maximum information leakage risk that the user can bear through the parameter K. K-anonymization protects personal privacy to a certain extent, but at the same time it reduces the availability of data. Therefore, the research work on k-anonymization mainly focuses on improving the availability of data while protecting private information.

[0077] For numerical and categorical data, random perturbation technology and K-anonymity technology are used for privacy processing to prevent the system from obtaining the patient's real sensitive data. Random perturbation technology is simple to operate and efficient, suitable for processing numerical data. K-anonymity technology divides data according to equivalence classes and then generalizes the data, suitable for processing categorical data.

[0078] In the above embodiment, the effect of protecting the patient's privacy is improved by performing different processing on different data in the patient's information.

[0079] Based on the above embodiment, in a drug recommendation method provided in another embodiment of the present invention, the model based on the gradient boosting decision tree algorithm has a differential privacy protection function.

[0080] In the above embodiment, K-anonymity and random perturbation technology are combined with differential privacy technology, which effectively prevents the system from obtaining the patient's real data and solves the reasoning attack of the recommendation system.

[0081] Based on the above embodiment, in a drug recommendation method provided in another embodiment of the present invention, before adding random perturbations to the numerical quasi-identifier attributes in the relevant information and performing K-anonymity processing on the categorized data in the relevant information, performing privacy protection preprocessing on the relevant information further includes:

[0082] Generate a patient-drug matrix C based on the patient's demographic information, the patient's disease attributes, and the drug attributes used.

[0083]

[0084] Where n is the number of attributes of the patient and m is the number of patients. In one example, A 11 represents the age of the first patient, A 12 represents the gender of the first patient, A 13 represents the first patient's postal code, A 14 represents the address of the first patient, A 15 Represents the disease attribute of the first patient, A 16 Represents the drug attributes of the first patient.

[0085] Before generating the matrix C, the patient's demographic data, treatment information, and drug data are cleaned, empty data is removed, and the gender attribute is digitized (in one example, male is 0 and female is 1); the patient's demographic information (age, gender, zip code, address), and the patient's disease attributes and the attributes of the drugs used are retained.

[0086] In the above embodiment, by statistically analyzing the patient data, a patient-drug matrix C is formed, which provides a data basis for the subsequent addition of random perturbations and K-anonymity processing.

[0087] Based on the above embodiment, in a drug recommendation method provided in another embodiment of the present invention, adding random disturbance to the numerical quasi-identifier attribute in the relevant information includes:

[0088] Determine the disturbance range [-γ,γ], where the value of γ is 1;

[0089] Add random numbers uniformly distributed in [-γ,γ] to the numerical quasi-identifier attributes in the matrix C.

[0090] The size of the disturbance range [-γ,γ] can be determined according to the actual situation, and the number of random numbers to be added can also be adjusted and changed. Of course, in an example, numerical values ​​can also be added to the numerical data in the matrix C according to a predetermined rule, as long as the numerical data in the matrix C is disrupted.

[0091] In the above embodiment, the privacy of the patient is protected by adding random disturbance to the numerical data.

[0092] Based on the above embodiment, in a drug recommendation method provided in another embodiment of the present invention, the performing K-anonymity processing on the classification quasi-identifier attribute in the relevant information includes:

[0093] Step 1) Anonymize the quasi-identifier attributes of the relevant information using the KACA algorithm, and generate an initial equivalence class X = {x1, x2, x3, ..., x n}, where X is the set of equivalence classes, x1, x2, x3, …, x n is an equivalence class, and the values ​​of the quasi-identifiers of each tuple in each equivalence class are equal;

[0094] Step 2), when there is an equivalence class with less than K tuples in the equivalence class set X, select the equivalence class x with less than K tuples i , calculate the equivalence class x i and equivalence class set X except equivalence class x i The distance of the equivalence class outside is found by i The nearest equivalence class x j ;

[0095] If the equivalence class x i and x j The number of common tuples of is less than K, and the equivalence class x i and x j Merge into one class and delete the equivalence class x in the equivalence class set X j , that is, X = Xx j

[0096] If the equivalence class x i and x j The number of common tuples of is greater than or equal to K, in x j Select distance x i The nearest K-|x i | tuples form an equivalence class x j1 , the equivalence class x i and x j1 Merge into one class and delete the equivalence class x in the equivalence class set X j1 , that is, x i =x i ∪x j1 , X=Xx j1

[0097] Step 3), loop through step 2) several times until there is no equivalence class with less than K tuples in the equivalence class set X, so that each tuple is consistent with the quasi-identifiers of at least K-1 records in the equivalence class; until all equivalence classes in X satisfy K anonymity protection or no new equivalence class can be constructed, insert the remaining records into the equivalence class closest to it.

[0098] Step 4), generalize each equivalence class in the equivalence class set X and output an anonymous table T'.

[0099] Specifically, in another example, randomly select an equivalence class T of size s, where s is greater than 1 and less than K, and calculate the distance Dist(t1, t2) between T and other equivalence classes. The distance between equivalence classes is represented by the distance between tuples, and the distance between two tuples is the distance between the two tuples and the generalization set closest to them:

[0100] Dist(t1,t2)=Distortion(t1,t 12 )+Distortion(t2,t 12 )

[0101]

[0102] Among them, Distortion(D, D') represents the degree of deformation of data D generalized to D', D' is the generalization table of D, t i is the i-th tuple in D, t i ′ is t i The generalized tuple of i ′ belongs to D'. The value of Distortion is the weighted hierarchical distance WHD (Weighted hierarchical distance) between each tuple and its final generalization table, and then the sum is accumulated:

[0103]

[0104] Where WHD(p,q) represents the p Generalize to X q (p>q), let h be the highest level of generalization of the quasi-identifier attribute S of the classification, X h is the generalization domain, w j,j-1 For X j With X j-1 The generalization weight between (2≤j≤h), Here β is simply taken as 1.

[0105] Find the equivalence class T1 with the smallest Dist value from T, and merge and generalize T and T1. Merge T and T1 into one class, and generalize T and T1.

[0106] Repeat the above merging and generalization steps until there is no equivalence class with less than K tuples in the equivalence class set X, so that each tuple is consistent with the quasi-identifiers of at least K-1 records in the equivalence class, and all equivalence classes in the equivalence class set X satisfy K anonymity.

[0107] Returns the anonymized matrix C.

[0108] The basic idea of ​​the KACA algorithm is: first, classify the original data set according to the similarity of the quasi-identifiers, group the tuples with the same quasi-identifier into a class, and obtain several initial equivalence classes; then arbitrarily select an equivalence class with less than k tuples, find the equivalence class closest to this equivalence class, merge them, and repeat this operation until it is impossible to merge new equivalence classes. The final equivalence class contains tuples in the range of [k, 2k-1]; finally, generalize the tuples of the same equivalence class to the same value on the quasi-identifier to generate an anonymous table. This algorithm can make the anonymous data in the same equivalence class as similar as possible on the quasi-identifier, while the data between different equivalence classes have large differences to ensure the availability of data.

[0109] In the above embodiment, the KACA algorithm is used to divide the equivalence classes. The KACA algorithm is a typical local recoding algorithm that combines clustering ideas to divide equivalence classes. The equivalence classes divided by this algorithm have high data availability and low information loss. Therefore, the KACA method can be used to generate equivalence classes to improve data accuracy. Through the K-anonymity mechanism, each record in the table is consistent with the quasi-identifier of at least K-1 records in the table, and the attacker cannot know whether a person is in the public data. Given a person, the attacker cannot confirm whether he has a certain sensitive attribute. The attacker cannot confirm which person a certain piece of data corresponds to, thereby protecting the privacy of the patient.

[0110] Based on the above embodiment, in a drug recommendation method provided in another embodiment of the present invention, after the classification quasi-identifier attributes in the matrix C are anonymized, the classification quasi-identifier attributes in the matrix C that satisfy K anonymity are One-hot encoded to form a feature matrix E.

[0111] In the above embodiment, the categorized data in the feature matrix C that satisfies k anonymity is one-hot encoded to form a feature matrix E. The one hot encoder performs a "binarization" operation on the category, and then uses it as a feature for model training, which facilitates the training of the model and provides a sample (data) basis for subsequent model training.

[0112] Based on the above embodiment, in a drug recommendation method provided in another embodiment of the present invention, the method further includes:

[0113] Training a model based on a gradient boosting decision tree algorithm with a differential privacy protection function, wherein the training of a model based on a gradient boosting decision tree algorithm with a differential privacy protection function comprises:

[0114] The feature matrix E is input into the model, wherein the quasi-identifier attribute and the patient's disease attribute are used as the features of the model, and the drug name is used as the prediction target of the model;

[0115] Use residual update iteration to strengthen the learner;

[0116] The obtained strong learner is differentially privately processed based on the Laplace mechanism.

[0117] Figure 3 A schematic diagram of a method for training a GBDT model with differential privacy provided by an embodiment is shown.

[0118] like Figure 3 As shown, the encoded feature matrix E is brought into the model, the parameters are initialized, and the learner is initialized. The residual update iteration is used to obtain the strong learner, where each iteration satisfies differential privacy, generates the final strong learner, and the model training is completed.

[0119] Specifically, in one example, training a model based on a gradient boosting decision tree algorithm with differential privacy protection function includes the following steps:

[0120] Step 1: Set the feature matrix E into a training set and a test set in a ratio of 7:3, input the training set into the model, and use the test set to test the prediction accuracy of the trained model.

[0121] Step 2: Initialize parameters. Set the number of iterations to T, which will generate T GBDT classification trees, with a tree depth of d, a learning rate of r, a privacy budget of ε, and a privacy budget of ε / T for each iteration.

[0122]

[0123] Where N is the number of samples, f0(x) is the initial weak learner;

[0124] Step 3: Use the residual to update the iteration to find the strong learner, and satisfy differential privacy. Each iteration satisfies differential privacy. im Using the negative gradient we get:

[0125]

[0126] Where m = 1, 2...T is the number of iterations, and the residual obtained from the iteration is used as the training data for the next learner, and the learner is updated to f m (x):

[0127]

[0128] Among them, J is the number of leaf nodes.

[0129] Perform differential privacy processing on the obtained learner. Specifically, use the Laplace mechanism to achieve:

[0130]

[0131] in is the Laplace noise, Δf is the sensitivity, and the privacy budget is ε:

[0132]

[0133]

[0134] Where Δf represents the global sensitivity, i.e., the Manhattan distance between f(D1) and f(D2), |D1ΔD2| represents the number of symmetric differences, and |D1ΔD2|=1 means that D1 and D2 are adjacent datasets. P(x) has an expected value of 0 and a variance of 2b 2 The probability density function of the Laplace distribution.

[0135] Step 4: Form the final strong learner. The results of T trees are linearly added to obtain the final strong learner f(x):

[0136]

[0137] In the above embodiment, Laplace noise is added to the learner through the Laplace mechanism, so that the learner has the function of differential privacy protection.

[0138] Based on the above embodiment, in a drug recommendation method provided in another embodiment of the present invention, the relevant information includes demographic information, treatment information and drug information, and the demographic information includes the age, gender, zip code and address of the target object.

[0139] Among them, the age, gender, and zip code of the target object are numerical quasi-identifier attributes, and the address of the target object is a categorical quasi-identifier attribute.

[0140] In the above embodiment, a mapping of the input and output of the model is established through demographic information, treatment information, and drug information, quasi-identifier attributes and patient disease attributes are used as features of the model, and drug names are used as prediction targets of the model, so that the model can accurately make drug recommendations.

[0141] In summary, the present invention lists the quasi-identifier attributes of patients that need to be processed for privacy based on the patient's demographic data, disease data, and drug data, including numerical data (age, gender, zip code) and categorical data (address). For numerical data, the technology of adding random perturbations is used for processing, and for categorical data, the k-anonymity technology is used for privacy processing. The demographic data and disease data of the patient after privacy processing are used as the features of the training samples, and the drug name is used as the training target of the sample. They are brought into the model of the GBDT algorithm that satisfies differential privacy for training, and finally a drug recommendation list is obtained through prediction, so as to better recommend drugs to patients while protecting the privacy of patients.

[0142] The drug recommendation method, device, electronic device and storage medium provided by the present invention perform privacy protection preprocessing on the relevant information, and generate drug recommendation information for the target object based on the relevant information that has been subjected to privacy protection preprocessing and a model based on a gradient boosting decision tree algorithm. The drug recommendation method of the present invention can effectively protect the privacy of patients while accurately and reliably recommending drugs to patients; it can perform appropriate privacy protection processing on different types of data; the recommendation algorithm has strong robustness; and it can more effectively protect the privacy of patients without losing too much accuracy.

[0143] The discharge chamber model identification device provided by the present invention is described below. The discharge chamber model identification device described below and the drug recommendation method described above can be referenced to each other.

[0144] Figure 4 An example of a physical structure diagram of a drug recommendation device is shown below. Figure 4 As shown, the device may include:

[0145] An acquisition unit 410 is used to acquire relevant information of a target object;

[0146] A privacy protection preprocessing unit 420, configured to perform privacy protection preprocessing on the relevant information;

[0147] The drug recommendation unit 430 is used to generate drug recommendation information for the target object based on the relevant information that has been preprocessed for privacy protection and a model based on a gradient boosting decision tree algorithm.

[0148] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530 and a communication bus 550, wherein the processor 510, the communication interface 520 and the memory 530 communicate with each other through the communication bus 550. The processor 510 may call the logic instructions in the memory 530 to execute the drug recommendation method, which includes:

[0149] Get relevant information about the target object;

[0150] Performing privacy protection preprocessing on the relevant information;

[0151] Drug recommendation information for the target object is generated based on the relevant information that has been preprocessed for privacy protection and a model based on a gradient boosting decision tree algorithm.

[0152] It can be understood that the detailed functions and extended functions that can be executed by the computer program can refer to the description of the above embodiments.

[0153] Based on the same inventive concept, another embodiment of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, all the steps of the above-mentioned drug recommendation method are implemented.

[0154] It can be understood that the detailed functions and extended functions that can be executed by the computer program can refer to the description of the above embodiments.

[0155] Based on the same inventive concept, another embodiment of the present invention provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, all the steps of the above-mentioned drug recommendation method are implemented.

[0156] It can be understood that the detailed functions and extended functions that can be executed by the computer program can refer to the description of the above embodiments.

[0157] In addition, the logic instructions in the above-mentioned memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0158] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the embodiments of the present invention. Those of ordinary skill in the art may understand and implement them without creative effort.

[0159] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a computer-readable 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 security defense method described in each embodiment or some parts of the embodiment.

[0160] In addition, in the present invention, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0161] In addition, in the present invention, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0162] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A drug recommendation method, characterized in that: include: Get relevant information about the target object; Performing privacy protection preprocessing on the relevant information; Generate drug recommendation information for the target object based on the relevant information that has been preprocessed for privacy protection and a model based on a gradient boosting decision tree algorithm, wherein: The privacy protection preprocessing of the relevant information includes: determining the quasi-identifier attributes in the relevant information; adding random disturbances to the numerical quasi-identifier attributes in the relevant information; performing K-anonymity processing on the classified quasi-identifier attributes in the relevant information, The model based on the gradient boosting decision tree algorithm includes a model based on the gradient boosting decision tree algorithm with a differential privacy protection function; The model based on the gradient boosting decision tree algorithm includes a model based on the gradient boosting decision tree algorithm with a differential privacy protection function; Before adding random perturbations to the numerical quasi-identifier attributes in the relevant information and performing K-anonymity processing on the categorical quasi-identifier attributes in the relevant information, the privacy protection preprocessing of the relevant information further includes: generating a patient-drug matrix C based on the patient's demographic information, the patient's disease attributes, and the attributes of the drugs used, Where n represents the number of attributes of the patient, m represents the number of patients, and A represents one of the patient's demographic information, the patient's disease attribute, and the drug attribute used; The adding random disturbance to the numerical quasi-identifier attribute in the related information includes: determining a disturbance range [-γ, γ]; adding random numbers uniformly distributed in [-γ, γ] to the numerical quasi-identifier attribute in the matrix C, wherein the value of γ is 1; The K-anonymization processing of the classified quasi-identifier attributes in the related information includes: step 1), using the KACA algorithm to perform anonymization processing on the classified quasi-identifier attributes in the related information, and generating an initial equivalence class X={x1, x2, x3, ..., x n }, where X is the set of equivalence classes, x1, x2, x3, …, x n is an equivalence class, and the values ​​of the quasi-identifiers of each tuple in each equivalence class are equal; Step 2), select an equivalence class x with a number of tuples less than K i , calculate the equivalence class x i and equivalence class set X except equivalence class x i The distance of the equivalence class outside is found by i The nearest equivalence class x j ; If the equivalence class x i and x j The number of common tuples of is less than K, and the equivalence class x i and x j Merge into one class and delete the equivalence class x in the equivalence class set X j , if the equivalence class x i and x j The number of common tuples of is greater than or equal to K, in x j Select distance x i The nearest K-|x i | tuples form an equivalence class x j1 , the equivalence class x i and x j1 Merge into one class and delete the equivalence class x in the equivalence class set X j1 ; Step 3), looping through the above step 2) for several times until there is no equivalence class with less than K tuples in the equivalence class set X, so that each tuple is consistent with the quasi-identifier of at least K-1 records in the equivalence class; Step 4), generalizing each equivalence class in the equivalence class set X, wherein the relevant information includes demographic information, treatment information, and drug information, wherein the demographic information includes the age, gender, zip code, and address of the target object, wherein the age, gender, and zip code of the target object are numerical quasi-identifier attributes, and the address of the target object is a classified quasi-identifier attribute.

2. The drug recommendation method according to claim 1, characterized in that: The method further comprises: After anonymizing the classified quasi-identifier attributes in the matrix C, One-hot encoding is performed on the classified quasi-identifier attributes in the matrix C that satisfy k-anonymity to form a feature matrix E.

3. The drug recommendation method according to claim 2, characterized in that: The method further comprises: Training a model based on a gradient boosting decision tree algorithm with a differential privacy protection function, wherein the training of a model based on a gradient boosting decision tree algorithm with a differential privacy protection function comprises: The feature matrix E is input into the model, wherein the quasi-identifier attribute and the patient's disease attribute are used as the features of the model, and the drug name is used as the prediction target of the model; Use residual update iteration to strengthen the learner; The obtained strong learner is differentially privately processed based on the Laplace mechanism.

4. A drug recommendation device for implementing the method as claimed in claim 1, characterized in that: include: An acquisition unit, used to acquire relevant information of a target object; A privacy protection preprocessing unit, used for performing privacy protection preprocessing on the relevant information; A drug recommendation unit is used to generate drug recommendation information for the target object based on the relevant information that has been preprocessed for privacy protection and a model based on a gradient boosting decision tree algorithm.

5. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the drug recommendation method according to any one of claims 1 to 3 are implemented.

6. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the drug recommendation method as described in any one of claims 1 to 3 are implemented.

Citation Information

Patent Citations

  • Distributed differential privacy recommendation method based on position service

    CN110825955A

  • Drug recommendation method and device, electronic equipment and storage medium

    CN111753543A

  • Information recommendation method and system based on block chain and localized differential privacy protection

    CN111931233A

  • KR20190124195A