Multi-center medical data processing method, system, device, and medium based on knowledge-guided domain adaptation
Through the domain adaptive method based on knowledge guidance, we construct a medical knowledge graph and perform negative sampling and adversarial learning, which solves the problem of reduced accuracy caused by differences in facilities and features in multi-center medical data collaborative processing, and achieves cross-domain invariant features. Extraction improves the accuracy and consistency of data processing.
Patent Information
- Application Number
- CN202411053078.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-08-02
AI Technical Summary
Existing multi-center medical data collaborative processing methods ignore the differences in medical facilities and patient characteristics between different medical institutions, resulting in reduced accuracy of medical data processing and difficulty in capturing the relationship between data changes in different scenarios.
A domain adaptive method based on knowledge guidance is used to construct a medical knowledge graph. Through negative sampling and adversarial learning strategies, cross-domain invariant features are extracted to solve feature matching and alignment between patient data from different medical centers.
It improves the accuracy of medical data processing, can effectively capture changes in patient characteristics in different scenarios, and improves the accuracy and consistency of multi-center medical data processing.
Smart Images

Figure CN118571502B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of medical health information technology, and in particular relates to a multi-center medical data processing method, system, device, and medium based on knowledge-guided domain adaptation. Background Art
[0002] Large-scale medical data analysis provides important support for research on disease etiology, personalized medicine, and the efficiency and safety evaluation of medical management. There is growing evidence that wider data sharing will ensure reproducibility, as well as larger and more powerful statistical analyses.
[0003] In order to break through the information barriers between medical institutions and connect "information islands", a multi-center collaborative medical data processing model came into being. Multi-center collaborative medical data mining aims to deeply explore the huge value contained in multi-center medical data through collaborative cooperation between different medical institutions, thereby improving the quality of medical services.
[0004] However, the current multi-center medical data collaborative processing methods have the following problems:
[0005] (1) Due to the differences in medical facilities between different medical institutions, there are some differences in the patient characteristics they collect. The current multi-center medical data collaborative processing methods often ignore these feature differences, which will lead to the local medical characteristics unique to a certain medical institution not being effectively used, thereby reducing the accuracy of medical data processing.
[0006] (2) Patients’ characteristics vary in different scenarios. For example, in the case of acute renal failure, a common clinical disease, contrast agents rarely cause any adverse effects on the kidneys. However, for patients in intensive care units, the situation is much worse. The use of contrast agents will put an additional burden on the kidneys and may lead to acute renal failure. It is difficult for multi-center medical data collaborative processing methods to capture the changing relationship between medical data and results collected in different scenarios, thereby reducing the accuracy of medical data processing. Summary of the invention
[0007] In view of the deficiencies in the prior art, the present invention proposes a multi-center medical data processing method, system, device and medium based on knowledge-guided domain adaptation.
[0008] In a first aspect, an embodiment of the present invention provides a multi-center medical data processing method based on knowledge-guided domain adaptation, which is applied to a server, and the method includes:
[0009] Construct a first medical knowledge graph based on general medical concepts and the relationships between general medical concepts; add local medical concepts in the private domain of each medical center and the relationships between them and general medical concepts into the first medical knowledge graph to obtain a second medical knowledge graph;
[0010] According to the second medical knowledge graph, negative sampling is performed on local medical concepts in the private domains of different medical centers to obtain a number of negative sampling triplets whose head entities and tail entities are both local medical concepts in the private domains of different medical centers; the distance function of each negative sampling triple is calculated, and when the distance function is less than the distance threshold, the negative sampling triple is added to the medical knowledge graph to complete the third medical knowledge graph;
[0011] Encode the source center patient data and the target center patient data to obtain source center patient data features and target center patient data features; construct a source center patient subgraph based on the source center patient data according to the third medical knowledge graph, and construct a target center patient subgraph based on the target center patient data according to the third medical knowledge graph; extract and encode the source center patient subgraph and the target center patient subgraph to obtain source center patient knowledge features and target center patient knowledge features; set a loss function, wherein the loss function includes a loss set according to a downstream medical task; based on the loss function, distinguish the source center patient data features, the source center patient knowledge features, the target center patient data features, and the target center patient knowledge features through an adversarial learning strategy, thereby learning the cross-domain invariant features between patients in each medical center.
[0012] In a second aspect, an embodiment of the present invention provides a multi-center medical data processing system based on knowledge-guided domain adaptation, the system comprising:
[0013] A medical knowledge graph construction module is used to construct a first medical knowledge graph based on general medical concepts and the relationship between general medical concepts; local medical concepts in the private domain of each medical center and the relationship between them and general medical concepts are added to the first medical knowledge graph to obtain a second medical knowledge graph;
[0014] The medical knowledge graph completion module is used to perform negative sampling on local medical concepts in the private domains of different medical centers according to the second medical knowledge graph, and obtain a number of negative sampling triplets whose head entities and tail entities are both local medical concepts in the private domains of different medical centers; calculate the distance function of each negative sampling triplet, and when the distance function is less than the distance threshold, add the negative sampling triplet to the medical knowledge graph to complete the third medical knowledge graph;
[0015] A medical data modeling module is used to encode the source center patient data and the target center patient data to obtain the source center patient data features and the target center patient data features; construct a source center patient subgraph based on the source center patient data according to the third medical knowledge graph, and construct a target center patient subgraph based on the target center patient data according to the third medical knowledge graph; extract and encode the source center patient subgraph and the target center patient subgraph to obtain the source center patient knowledge features and the target center patient knowledge features; set a loss function, wherein the loss function includes the loss set according to the downstream medical task; based on the loss function, distinguish the source center patient data features, the source center patient knowledge features, the target center patient data features, and the target center patient knowledge features through an adversarial learning strategy, thereby learning the cross-domain invariant features between patients in each medical center.
[0016] In a third aspect, an embodiment of the present invention provides an electronic device, comprising a memory and a processor, wherein the memory is coupled to the processor; wherein the memory is used to store program data, and the processor is used to execute the program data to implement the above-mentioned multi-center medical data processing method based on knowledge-guided domain adaptation.
[0017] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-mentioned multi-center medical data processing method based on knowledge-guided domain adaptation.
[0018] In the fifth aspect, an embodiment of the present invention provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the above-mentioned multi-center medical data processing method based on knowledge-guided domain adaptation.
[0019] Compared with the prior art, the present invention has the following beneficial effects:
[0020] Aiming at the problem that the feature distribution of medical data collected by different medical centers is different, the present invention proposes a multi-center medical data processing method based on knowledge-guided domain adaptation, and uses knowledge graphs to extract the representation of multi-center patient data. At the same time, the patient data features and knowledge features are compared and matched, and inter-domain adversarial learning is performed on the patient data of different centers to further extract the cross-domain invariant representation of the patient data. Using knowledge graphs to extract invariant features can solve the problem of changes in patient features in different scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0022] Figure 1 A schematic diagram of a flow chart of a multi-center medical data processing method based on knowledge-guided domain adaptation provided by an embodiment of the present invention;
[0023] Figure 2 A schematic diagram of learning cross-domain invariant features between patients in each medical center provided by an embodiment of the present invention;
[0024] Figure 3 A schematic diagram of obtaining source center patient data features, source center patient knowledge features, target center patient data features, and target center patient knowledge features provided by an embodiment of the present invention;
[0025] Figure 4 A schematic diagram of obtaining source center potential knowledge features and target center potential knowledge features provided by an embodiment of the present invention;
[0026] Figure 5 A schematic diagram of intra-domain feature alignment provided by an embodiment of the present invention;
[0027] Figure 6 A schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0028] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0029] It should be noted that, in the absence of conflict, the features in the following embodiments and implementations may be combined with each other.
[0030] like Figure 1 As shown, an embodiment of the present invention provides a multi-center medical data processing method based on knowledge-guided domain adaptation, and the method specifically includes the following steps:
[0031] Step S1, constructing a first medical knowledge graph based on general medical concepts and the relationship between general medical concepts; adding the local medical concepts obtained in the private domain of each medical center and the relationship between them and the general medical concepts into the first medical knowledge graph to obtain a second medical knowledge graph.
[0032] Specifically, the step S1 includes the following sub-steps:
[0033] Step S101, construct a first medical knowledge graph using the common medical concepts and the relationships between common medical concepts in the commonly used knowledge sources in the medical field such as the International Classification of Diseases 10th Edition (ICD10), Clinical Classification Software (CCS), and Human Phenotype Ontology (HPO). The common medical concepts are medical field-specific terms and objects such as diagnosis, examination, symptoms, and drugs, which constitute a node set in the first medical knowledge graph; the relationships between common medical concepts constitute an edge set in the first medical knowledge graph.
[0034] In step S102, the server receives the local medical concepts in the private domain of each medical center and the relationship between them and the general medical concepts; the local medical concepts in the private domain of each medical center and the relationship between them and the general medical concepts are added to the first medical knowledge graph, and the domain information of the first medical knowledge graph is enhanced to obtain the second medical knowledge graph.
[0035] It should be noted that each medical institution has its own specialty departments, diagnosis and treatment plans, and disease management models. Therefore, in the daily data management process, in addition to using general medical concepts in the medical field, the unique local medical concepts used within the medical center and their relationship with general medical concepts will be defined according to the needs of the medical center itself. This example merges the local medical concepts in the private domains of different medical centers into the same medical knowledge graph, and uses the domain information implicit in the custom concepts of each medical center to enrich the information of the medical knowledge graph, that is, the general medical concepts used by the medical center, local medical concepts, and the relationship between medical concepts are used to form the knowledge graph of the private domain of the medical center.
[0036] Step S2, negatively sample the local medical concepts in the private domains of different medical centers according to the second medical knowledge graph, and obtain several negative sampling triplets whose head entities and tail entities are local medical concepts in the private domains of different medical centers; calculate the distance function of each negative sampling triple, and when the distance function is less than the distance threshold, add the negative sampling triple to the medical knowledge graph to complete the third medical knowledge graph.
[0037] Specifically, the step S2 includes the following sub-steps:
[0038] Step S201, construct a knowledge graph embedding model; in this example, the knowledge graph embedding model is constructed based on the translated model; the hyperparameters of the knowledge graph embedding model include learning rate, edge loss hyperparameter, and distance function. The knowledge graph embedding model takes the initial embedding representation of medical concepts, the initial embedding representation of relationships, and the topological structure of the second medical knowledge graph as input, and takes the updated embedding representation of medical concepts and the embedding representation of relationships as output.
[0039] Furthermore, in this example, the translation-based model adopts the TransE model; the translation-based model regards each relationship in the knowledge graph as a translation transformation from a subject vector to an object vector, and maps the entities and relationship types in the knowledge graph to a low-dimensional space by minimizing the error of the translation transformation.
[0040] Among them, each medical concept embedding representation and relationship embedding representation is a 128-dimensional vector.
[0041] Step S202: train the knowledge graph embedding model, back-propagate to update the medical concept embedding representation and the relationship embedding representation, and iterate the training until the medical concept embedding representation and the relationship embedding representation converge.
[0042] A triple in the second medical knowledge graph consists of a head entity, a tail entity, and a relationship, where the head entity and the tail entity are medical concepts. The set of triples in the second medical knowledge graph is denoted as , one of the triples is denoted as , Represents the head entity, Represents the tail entity, Representation relationship.
[0043] Negative sampling is performed on the triples, that is, the head entity or the tail entity in the triples is randomly replaced. The set of negatively sampled triples is recorded as , where the negative sampling triplet is recorded as , The head entity representing the negative sampling triplet, represents the tail entity of the negative sampling triplet, Representation relationship.
[0044] The expression of the loss function of the knowledge graph embedding model in each round of training is as follows:
[0045] L = ∑ (h,l,t)∈S ∑ (h',l,t')∈S' [γ+d h+l,t -d( h ' +l,t')] +
[0046] in, is a marginal loss hyperparameter with a value greater than 0; [x] + represents a positive function, when hour, [x] + =x ,when hour, [x] + = 0 ; is the distance function, and the L1 or L2 norm can be used.
[0047] Step S203, based on the current medical concept embedding representation and relationship embedding representation, negative sampling is performed on the local medical concepts in the private domains of different medical centers to obtain several negative sampling triplets whose head entities and tail entities are both local medical concepts in the private domains of different medical centers; the distance function of each negative sampling triple is calculated, and when the distance function is less than the distance threshold, the negative sampling triple is added to the medical knowledge graph for updating.
[0048] Furthermore, in this example, the process of setting the distance threshold includes: based on the current medical concept embedding representation and relationship embedding representation, calculating the distance of all triples in the current medical knowledge graph, sorting them by size, and taking the quartile value as the distance threshold.
[0049] Furthermore, negative sampling is performed on local medical concepts in the private domains of different medical centers based on the current medical knowledge graph to obtain several negative sampling triplets whose head entities and tail entities are both local medical concepts in the private domains of different medical centers; the distance function of each negative sampling triple is calculated, and when the distance function is less than the distance threshold, the negative sampling triple is added to the medical knowledge graph for updating.
[0050] Step S204, input the updated medical knowledge graph into the knowledge graph embedding model, repeat steps S202-S203 until the structure of the medical knowledge graph does not change, and obtain the completed third medical knowledge graph.
[0051] It should be noted that this example finds the potential relationship between local medical concepts in the private domains of different medical centers based on the current embedded representation of medical concepts, and completes the medical knowledge graph.
[0052] Step S3, encode the source center patient data and the target center patient data to obtain source center patient data features and target center patient data features; construct a source center patient subgraph based on the source center patient data according to the third medical knowledge graph, and construct a target center patient subgraph based on the target center patient data according to the third medical knowledge graph; extract and encode features of the source center patient subgraph and the target center patient subgraph to obtain source center patient knowledge features and target center patient knowledge features; set a loss function, wherein the loss function includes a loss set according to a downstream medical task; based on the loss function, distinguish between source center patient data features, source center patient knowledge features, target center patient data features, and target center patient knowledge features through an adversarial learning strategy, thereby learning cross-domain invariant features between patients in each medical center.
[0053] Specifically, Figure 2 and Figure 3 As shown, step S3 specifically includes the following sub-steps:
[0054] Step S301, encoding the patient data of the source center to obtain the potential data features of the source center, and encoding the patient data of the target center to obtain the potential data features of the target center.
[0055] Further, obtain patient data from the source center , patient data from the target center ; Construct the first data feature encoder , the second data feature encoder ; The source center S uses the first data feature encoder Patient data from the source center Encode to obtain the potential data characteristics of the source center , the target center T uses the second data feature encoder Patient data from target centers Encode to obtain the target center potential data features .
[0056] Furthermore, the first data feature encoder and the second data feature encoder are composed of a Layer fully connected network, The value size and number of nodes per layer are determined according to the number of features in the patient's actual data. In this example, is 3, the number of nodes in each layer is 256, 128, and 64 respectively, the activation function is ReLU, and the SGD function is used as the optimizer.
[0057] Furthermore, the data feature encoder of each medical center is private and the parameters are not shared among them.
[0058] Step S302: construct a source center patient subgraph based on the patient data of the source center according to the third medical knowledge graph, and construct a target center patient subgraph based on the patient data of the target center according to the third medical knowledge graph; perform feature extraction and encoding on the source center patient subgraph and the target center patient subgraph to obtain the source center potential knowledge features and the target center potential knowledge features.
[0059] Specifically, to construct the source center patient subgraph For example, the real medical concepts corresponding to the patient data of the source center are obtained; the real medical concepts are several medical concepts existing in a patient's medical treatment data. These real medical concepts can be general medical concepts or local medical concepts in the private domain of the medical center, and they all exist in the completed third medical knowledge graph.
[0060] For each real medical concept, use the breadth-first algorithm to find the real medical concept closest to it on the third medical knowledge graph, and record the shortest path between the two real medical concepts on the third medical knowledge graph. If there are several real medical concepts with the same and shortest distance to a real medical concept, then all these shortest paths are recorded. By combining all the shortest paths together, we can get the source center patient subgraph corresponding to this visit. The source center patient subgraph contains all the real medical concepts that appeared in this visit, as well as other medical concepts on the shortest path connecting these real medical concepts.
[0061] Similarly, based on the patient data of the target center, the target center patient subgraph is constructed according to the third medical knowledge graph .
[0062] Furthermore, if Figure 4 As shown in Figure 2, a graph convolutional neural network (GCN) is used to map the source center patient subgraph. , target center patient subgraph Perform feature extraction to obtain the knowledge feature representation of patients in the source center , target-centric patient knowledge feature representation .
[0063] In this example, GCN consists of convolutional layers, The value is determined by the number of patient knowledge features. In this example, Take 2. Batch normalization layers are applied between convolutional layers, and average pooling layers are applied after the last convolutional layer.
[0064] Furthermore, the fully connected network is used to represent the knowledge characteristics of patients in the source center. Encode to obtain the potential knowledge characteristics of the source center ; Using a fully connected network to represent the knowledge characteristics of the target center patient Encode to obtain the potential knowledge characteristics of the target center .
[0065] Among them, the fully connected network is a Layers of fully connected neural network, The value size and number of nodes per layer are determined according to the dimension of patient knowledge feature representation. Take 3, the number of nodes in the 3 layers are 128, 128, and 64 respectively, the last layer is the output layer, the activation function is ReLU, and the SGD function is used as the optimizer.
[0066] Step S303: Potential data features of the source center , target center potential data characteristics The data characteristics of the patients in the source center are obtained through processing by the attention network and the feedforward network. , Target center patient data characteristics ; Potential knowledge characteristics of source centers , target-centric latent knowledge characteristics The knowledge characteristics of the source center patients are obtained through processing by the attention network and the feedforward network. , Target Center Patient Knowledge Characteristics .
[0067] Step S304, setting a loss function, wherein the loss function includes a loss set according to a downstream medical task; based on the loss function, an adversarial learning strategy is used to distinguish the source center patient data characteristics, the source center patient knowledge characteristics, the target center patient data characteristics, and the target center patient knowledge characteristics, thereby learning the clinical invariant characteristics between patients in each medical center.
[0068] The loss function is defined as follows:
[0069]
[0070] In the formula, is the loss set according to the downstream medical task, is the intra-domain feature alignment loss, is the loss of inter-domain adversarial learning, Reconstruct loss for knowledge features.
[0071] Furthermore, if Figure 5 As shown, based on the intra-domain feature alignment loss, the source center patient data features , Target center patient data characteristics , Knowledge characteristics of patients in the source center , Target Center Patient Knowledge Characteristics Perform intra-domain feature alignment, and the expression of intra-domain feature alignment loss is as follows:
[0072]
[0073]
[0074]
[0075]
[0076] In the formula, represents the intra-domain feature alignment loss, represents the data knowledge matching loss, represents the data-knowledge contrastive learning loss, N represents the number of patients, i represents the i-th patient, and j represents the j-th patient. represents the patient knowledge characteristics corresponding to a certain center, Represents the patient data characteristics corresponding to a certain center.
[0077] It should be noted that the feature alignment loss includes data knowledge matching loss and data knowledge contrast learning loss; the data knowledge matching loss is used to determine whether the data features and knowledge features come from the same patient, and the data knowledge contrast learning loss makes the data features and knowledge features of the same patient more similar, and makes the data features and knowledge features of different patients less similar.
[0078] Furthermore, the decoder is introduced , using the introduced decoder Patient knowledge characteristics corresponding to a certain center Reconstruct the potential knowledge features of the patients corresponding to the center based on the knowledge feature reconstruction loss , the expression of knowledge feature reconstruction loss is as follows:
[0079]
[0080] In the formula, E(.) represents the mathematical expectation, represents the mean square error.
[0081] In this example, the decoder is a Layer fully connected network, Take 2, the number of nodes in each layer is 128, 128 respectively, the activation function is ReLU, and the SGD function is used as the optimizer.
[0082] Furthermore, an inter-domain adversarial learning layer is constructed, and the inter-domain adversarial loss is used to train the inter-domain adversarial learning layer to distinguish the feature representation of patients in the source center and the feature representation of patients in the target center, thereby capturing the clinical invariant features between patients in multiple medical centers; the expression of the inter-domain adversarial loss is as follows:
[0083]
[0084] In the formula, is the patient characteristics of the source center, is the target centric patient feature representation, D(.) represents the inter-domain adversarial learning layer, and E(.) represents the mathematical expectation.
[0085] Among them, the patient characteristics of the source center are represented by V S =[ V S p , V S k ] The source center patient data features after alignment of intra-domain features , Source center patient knowledge features after intra-domain feature alignment The target center patient characteristics are expressed as V T =[ V T p , V T k ] Patient data characteristics from the target center , Target Center Patient Knowledge Characteristics Splicing obtained;
[0086] In this example, the inter-domain adversarial learning layer is a Layer fully connected network, The value size and number of nodes per layer are determined according to the patient data characteristics and knowledge feature dimensions. In this example, The value is 4, the number of nodes in each layer is 128, 64, 4, and 1 respectively. The activation function of the first three layers is ReLU, the last layer is the output layer, the activation function is Softmax, and the entire network uses the SGD function as the optimizer.
[0087] Furthermore, downstream medical tasks include but are not limited to medical data prediction tasks, medical data classification tasks, medical data regression tasks, etc.
[0088] For example, when the downstream medical task is a medical data prediction task for predicting the risk of acute renal failure, the corresponding loss can be set as:
[0089]
[0090] In the formula, N represents the number of patients, represents the predicted probability of the downstream medical task execution model, is the actual label of patient i. When patient i develops acute renal failure, , when patient i does not have acute renal failure, .
[0091] Step S4, the method further includes:
[0092] After adversarial learning is completed, the downstream medical task execution model is trained;
[0093] The downstream medical task execution model is sent to the corresponding medical center to execute the downstream medical tasks.
[0094] In summary, the knowledge graph, as an abstraction of the real world, describes the relationship between entities in reality, and this relationship will not change due to changes in scenarios. In view of the problem that there are differences in the distribution of medical data features collected by different medical centers, the present invention proposes a multi-center medical data processing method based on knowledge-guided domain adaptation, and uses knowledge graphs to extract representations of multi-center patient data. At the same time, patient data features and knowledge features are compared and matched, and inter-domain adversarial learning is performed on patient data from different centers to further extract cross-domain invariant representations of patient data. Using knowledge graphs to extract invariant features can solve the problem of changes in patient features in different scenarios. At the same time, a downstream medical task execution model is constructed for downstream medical tasks.
[0095] The embodiment of the present invention further provides a multi-center medical data processing system based on knowledge-guided domain adaptation, the system comprising:
[0096] A medical knowledge graph construction module is used to construct a first medical knowledge graph based on general medical concepts and the relationship between general medical concepts; local medical concepts in the private domain of each medical center and the relationship between them and general medical concepts are added to the first medical knowledge graph to obtain a second medical knowledge graph;
[0097] The medical knowledge graph completion module is used to perform negative sampling on local medical concepts in the private domains of different medical centers according to the second medical knowledge graph, and obtain a number of negative sampling triplets whose head entities and tail entities are both local medical concepts in the private domains of different medical centers; calculate the distance function of each negative sampling triplet, and when the distance function is less than the distance threshold, add the negative sampling triplet to the medical knowledge graph to complete the third medical knowledge graph;
[0098] A medical data modeling module is used to encode the source center patient data and the target center patient data to obtain the source center patient data features and the target center patient data features; construct a source center patient subgraph based on the source center patient data according to the third medical knowledge graph, and construct a target center patient subgraph based on the target center patient data according to the third medical knowledge graph; extract and encode the source center patient subgraph and the target center patient subgraph to obtain the source center patient knowledge features and the target center patient knowledge features; set a loss function, wherein the loss function includes the loss set according to the downstream medical task; based on the loss function, distinguish the source center patient data features, the source center patient knowledge features, the target center patient data features, and the target center patient knowledge features through an adversarial learning strategy, thereby learning the clinical invariant features between patients in each medical center.
[0099] Regarding the system in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0100] For the system embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The system embodiment described above is only schematic, 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 present application. A person of ordinary skill in the art can understand and implement it without creative work.
[0101] Accordingly, the present application also provides an electronic device, comprising: one or more processors; a memory for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the multi-center medical data processing method based on knowledge-guided domain adaptation as described above. Figure 6 As shown, a hardware structure diagram of any device with data processing capability for the multi-center medical data processing method based on knowledge-guided domain adaptation provided by an embodiment of the present invention is shown, except Figure 6 In addition to the processor, memory and network interface shown, any device with data processing capability in which the apparatus in the embodiment is located may also include other hardware, generally based on the actual functions of the device with data processing capability, which will not be described in detail.
[0102] Accordingly, the present application also provides a computer-readable storage medium on which computer instructions are stored, and when the instructions are executed by the processor, the multi-center medical data processing method based on knowledge-guided domain adaptation as described above is implemented. The computer-readable storage medium can be an internal storage unit of any device with data processing capabilities described in any of the foregoing embodiments, such as a hard disk or memory. The computer-readable storage medium can also be an external storage device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), an SD card, a flash card (Flash Card), etc. equipped on the device. Furthermore, the computer-readable storage medium can also include both an internal storage unit and an external storage device of any device with data processing capabilities. The computer-readable storage medium is used to store the computer program and other programs and data required by any device with data processing capabilities, and can also be used to temporarily store data that has been output or is to be output.
[0103] The above embodiments are only used to illustrate the design ideas and features of the present invention, and their purpose is to enable those skilled in the art to understand the content of the present invention and implement it accordingly. The protection scope of the present invention is not limited to the above embodiments. Therefore, any equivalent changes or modifications made based on the principles and design ideas disclosed by the present invention are within the protection scope of the present invention.
Claims
1. A multi-center medical data processing method based on knowledge-guided domain adaptation, characterized in that: Applied to a server, the method comprises: Construct a first medical knowledge graph based on general medical concepts and the relationships between general medical concepts; add local medical concepts in the private domain of each medical center and the relationships between them and general medical concepts into the first medical knowledge graph to obtain a second medical knowledge graph; According to the second medical knowledge graph, negative sampling is performed on local medical concepts in the private domains of different medical centers to obtain a number of negative sampling triplets whose head entities and tail entities are both local medical concepts in the private domains of different medical centers; the distance function of each negative sampling triple is calculated, and when the distance function is less than the distance threshold, the negative sampling triple is added to the medical knowledge graph to complete the third medical knowledge graph; including: Build and train a knowledge graph embedding model; Based on the current medical concept embedding representation and relation embedding representation, negative sampling is performed on the local medical concepts in the private domains of different medical centers to obtain several negative sampling triplets whose head entities and tail entities are both local medical concepts in the private domains of different medical centers; the distance function of each negative sampling triple is calculated, and when the distance function is less than the distance threshold, the negative sampling triple is added to the medical knowledge graph for updating; Input the updated medical knowledge graph into the knowledge graph embedding model, repeatedly train the knowledge graph embedding model and negative sampling until the structure of the medical knowledge graph does not change, and obtain a completed third medical knowledge graph; Encode the source center patient data and the target center patient data to obtain source center patient data features and target center patient data features; construct a source center patient subgraph based on the source center patient data according to the third medical knowledge graph, and construct a target center patient subgraph based on the target center patient data according to the third medical knowledge graph; extract and encode the source center patient subgraph and the target center patient subgraph to obtain source center patient knowledge features and target center patient knowledge features; set a loss function, wherein the loss function includes a loss set according to a downstream medical task; based on the loss function, distinguish the source center patient data features, the source center patient knowledge features, the target center patient data features, and the target center patient knowledge features through an adversarial learning strategy, thereby learning the cross-domain invariant features between patients in each medical center.
2. The multi-center medical data processing method based on knowledge-guided domain adaptation according to claim 1 is characterized in that: The process of training a knowledge graph embedding model includes: The expression of the loss function of the knowledge graph embedding model in each round of training is as follows: Where γ is the edge loss hyperparameter; [x] + represents a positive function; d(x, y) is a distance function; S represents the set of triples in the second medical knowledge graph, h represents the head entity in the triple, t represents the tail entity in the triple, and l represents the relationship; S′ represents the set of negative sampling triples, h′ represents the head entity of the negative sampling triple, and t′ represents the tail entity of the negative sampling triple.
3. The multi-center medical data processing method based on knowledge-guided domain adaptation according to claim 1, characterized in that: The process of obtaining the source center patient data characteristics, the source center patient knowledge characteristics, the target center patient data characteristics, and the target center patient knowledge characteristics includes: Encode the source center patient data to obtain the source center potential data features, and encode the target center patient data to obtain the target center potential data features; Based on the patient data of the source center, a patient subgraph of the source center is constructed according to the third medical knowledge graph, and based on the patient data of the target center, a patient subgraph of the target center is constructed according to the third medical knowledge graph; feature extraction and encoding are performed on the patient subgraph of the source center and the patient subgraph of the target center to obtain the potential knowledge features of the source center and the potential knowledge features of the target center; The source center latent data features and the target center latent data features are processed by the attention network and the feedforward network to obtain the source center patient data features and the target center patient data features; the source center latent knowledge features and the target center latent knowledge features are processed by the attention network and the feedforward network to obtain the source center patient knowledge features and the target center patient knowledge features.
4. A multi-center medical data processing method based on knowledge-guided domain adaptation according to claim 1 or 3, characterized in that: The process of setting the loss function includes: The loss function includes a first loss, a second loss, a third loss, and a fourth loss; Wherein, the first loss is a loss set according to a downstream medical task; The second loss is used to determine whether the data features and the knowledge features are from the same patient, and at the same time, to make the data features and the knowledge features of the same patient more similar, and the data features and the knowledge features of different patients less similar; The third loss is an inter-domain adversarial loss set based on a source-centered patient feature representation and a target-centered patient feature representation; the source-centered patient feature representation is obtained by concatenating source-centered patient data features and source-centered patient knowledge features, and the target-centered patient feature representation is obtained by concatenating target-centered patient data features and target-centered patient knowledge features; The fourth loss is a reconstruction loss set based on the patient knowledge features corresponding to each center and the patient potential knowledge features corresponding to each center.
5. The multi-center medical data processing method based on knowledge-guided domain adaptation according to claim 1, characterized in that: The method further comprises: After adversarial learning is completed, the downstream medical task execution model is obtained; The downstream medical task execution model is sent to the corresponding medical center to execute the downstream medical tasks.
6. A multi-center medical data processing system based on knowledge-guided domain adaptation, characterized in that: The system comprises: A medical knowledge graph construction module is used to construct a first medical knowledge graph based on general medical concepts and the relationship between general medical concepts; local medical concepts in the private domain of each medical center and the relationship between them and general medical concepts are added to the first medical knowledge graph to obtain a second medical knowledge graph; The medical knowledge graph completion module is used to perform negative sampling on local medical concepts in the private domains of different medical centers according to the second medical knowledge graph, and obtain a number of negative sampling triplets whose head entities and tail entities are local medical concepts in the private domains of different medical centers; calculate the distance function of each negative sampling triplet, and when the distance function is less than the distance threshold, add the negative sampling triplet to the medical knowledge graph to complete the third medical knowledge graph; including: Build and train a knowledge graph embedding model; Based on the current medical concept embedding representation and relation embedding representation, negative sampling is performed on the local medical concepts in the private domains of different medical centers to obtain several negative sampling triplets whose head entities and tail entities are both local medical concepts in the private domains of different medical centers; the distance function of each negative sampling triple is calculated, and when the distance function is less than the distance threshold, the negative sampling triple is added to the medical knowledge graph for updating; Input the updated medical knowledge graph into the knowledge graph embedding model, repeatedly train the knowledge graph embedding model and negative sampling until the structure of the medical knowledge graph does not change, and obtain a completed third medical knowledge graph; A medical data modeling module is used to encode the source center patient data and the target center patient data to obtain the source center patient data features and the target center patient data features; construct a source center patient subgraph based on the source center patient data according to the third medical knowledge graph, and construct a target center patient subgraph based on the target center patient data according to the third medical knowledge graph; extract and encode the source center patient subgraph and the target center patient subgraph to obtain the source center patient knowledge features and the target center patient knowledge features; set a loss function, wherein the loss function includes the loss set according to the downstream medical task; based on the loss function, distinguish the source center patient data features, the source center patient knowledge features, the target center patient data features, and the target center patient knowledge features through an adversarial learning strategy, thereby learning the clinical invariant features between patients in each medical center.
7. An electronic device comprising a memory and a processor, characterized in that: The memory is coupled to the processor; wherein the memory is used to store program data, and the processor is used to execute the program data to implement the multi-center medical data processing method based on knowledge-guided domain adaptation as described in any one of claims 1-5 above.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the multi-center medical data processing method based on knowledge-guided domain adaptation as described in any one of claims 1 to 5 is implemented.
9. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the multi-center medical data processing method based on knowledge-guided domain adaptation described in any one of claims 1-5 is implemented.
Citation Information
Patent Citations
Medical knowledge graph construction method and device, storage medium and electronic device
CN110609910A
Medical knowledge graph fusion method and device based on multiple data sources
CN110866124A
Cited By
Multimodal knowledge graph construction method and system for colorectal cancer reasoning
CN123050596A
