Medical diagnosis methods and applications based on knowledge graph enhancement

By performing multi-modal fusion and cross-modal self-attention enhancement in a large language model enhanced by knowledge graphs, the problem of insufficient processing capabilities of existing models for complex medical data is solved, and more accurate and efficient medical diagnosis result generation is achieved. .

CN118507035BActive Publication Date: 2024-10-29PEKING UNIV +1

Patent Information

Application Number
CN202410949274.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-10-29
Estimated Expiration
2044-07-16

AI Technical Summary

Technical Problem

Existing knowledge graph-enhanced dialogue generation models rely on specific data sets and cannot fully capture the details and deep relationships in complex medical data, limiting the model's knowledge expression and utilization capabilities.

Method used

By inputting medical data into a large language model enhanced by a preset knowledge graph, multi-modal input processing layers are used for multi-modal fusion, and context-aware decoders are combined for cross-modal self-attention enhancement, and model weights are dynamically adjusted to adapt Medical task requirements integrate image and text features to generate medical diagnosis results.

Benefits of technology

It improves the model's ability to comprehensively extract knowledge graph information, effectively processes different modal information, identifies and strengthens the correlation between them, and improves the accuracy and efficiency of medical diagnosis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118507035B_ABST
    Figure CN118507035B_ABST
Patent Text Reader

Abstract

The present application discloses a medical diagnosis method and application based on knowledge graph enhancement, which relates to the technical field of natural language processing. The method comprises: inputting medical data into a large language model that has been pre-enhanced with a knowledge graph and pre-trained for processing, thereby improving the large model's ability to comprehensively extract information from the knowledge graph; performing multimodal fusion through a multimodal input processing layer, thereby being able to process information of different modalities and understand the interactive relationship between modalities; performing cross-modal self-attention enhancement on multimodal feature vectors through a context-aware decoder, thereby being able to more effectively integrate and process inputs of different modalities, identifying and strengthening the associations between them, thereby improving the overall information processing capability, and converting the enhanced multimodal features into specific medical diagnosis results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of natural language processing technology, and in particular to a medical diagnosis method and application based on knowledge graph enhancement. Background Art

[0002] The existing knowledge graph enhanced dialogue generation models mainly include the SURGE model, which connects the knowledge graph encoder and the large language model decoder through a specific graph neural network to achieve multimodal pre-training. The training process of SURGE includes two stages. The first stage is to perform feature alignment pre-training of the knowledge graph on datasets such as OpenDialKG, and only train the parameters of the graph neural network layer; the second stage is to fine-tune on the more complex KOMODIS instruction data, freeze the knowledge graph encoder, and focus on training the graph neural network layer and the large language model. Such a structure and training process enable the SURGE model to effectively utilize the information in the knowledge graph in dialogue generation and improve the relevance and accuracy of the answers.

[0003] However, although SURGE can utilize subgraphs in the knowledge graph to enhance dialogue generation, it has the limitation of relying on specific datasets. When faced with complex knowledge needs in the medical field, this single knowledge retrieval method may not be able to fully capture the details and deep relationships in the knowledge graph, limiting the model's knowledge expression and utilization capabilities. Summary of the invention

[0004] The main purpose of this application is to provide a medical diagnosis method and application based on knowledge graph enhancement, aiming to solve the technical problems of the existing knowledge graph enhanced dialogue generation model's limitation of relying on specific data sets and low accuracy and efficiency in processing complex medical data.

[0005] To achieve the above objectives, the present application proposes a medical diagnosis method based on knowledge graph enhancement, the method comprising:

[0006] Inputting the medical data into a large language model enhanced by a preset knowledge graph, wherein the large language model enhanced by the preset knowledge graph includes a multimodal input processing layer and a context-aware decoder;

[0007] Performing multimodal fusion on the medical data through the multimodal input processing layer to obtain a multimodal feature vector;

[0008] The multimodal feature vector is subjected to cross-modal self-attention enhancement by the context-aware decoder, and a medical diagnosis result is output.

[0009] In one embodiment, before the step of inputting the medical data into the large language model enhanced by the preset knowledge graph, the method further includes:

[0010] The information in the preset medical knowledge graph is integrated into the initial large language model through a graph neural network or a Transformer network to obtain a large language model enhanced by the preset knowledge graph.

[0011] In one embodiment, after the step of integrating the information in the preset medical knowledge graph into the initial large language model through a graph neural network or a Transformer network to obtain a large language model enhanced by the preset knowledge graph, the step further includes:

[0012] The weight adjustment amount is determined according to the preset medical task requirements through low-rank adaptive LoRA technology;

[0013] The large language model enhanced by the preset knowledge graph is dynamically adjusted according to the weight adjustment amount.

[0014] In one embodiment, the step of performing multimodal fusion on the medical data through the multimodal input processing layer to obtain a multimodal feature vector includes:

[0015] The image features and context information in the medical data are extracted through the multimodal input processing layer, and the image features and the context information are multimodally fused to obtain a multimodal feature vector.

[0016] In one embodiment, the step of extracting image features and context information in the medical data through the multimodal input processing layer, and performing multimodal fusion on the image features and the context information to obtain a multimodal feature vector includes:

[0017] Extracting features of the medical images in the medical data through the convolutional neural network in the multimodal input processing layer to obtain image features;

[0018] Capturing contextual information of the text in the medical data through a self-attention mechanism, wherein the contextual information includes text semantics and structural information;

[0019] The image features and the context information are multimodally fused through a multi-head attention mechanism to obtain a multimodal feature vector.

[0020] In one embodiment, the step of performing cross-modal self-attention enhancement on the multimodal feature vector by the context-aware decoder and outputting a medical diagnosis result comprises:

[0021] The multimodal feature vector is converted by the context-aware decoder according to the conversion functions of query, key and value respectively to obtain a query conversion value, a key conversion value and a value conversion value;

[0022] Performing cross-modal self-attention enhancement on the query conversion value, the key conversion value, and the value conversion value through a cross-modal self-attention layer to obtain enhanced multimodal features;

[0023] A medical diagnosis result is generated based on the enhanced multimodal features through the output layer of the context-aware decoder.

[0024] In addition, to achieve the above objectives, the present application also proposes a medical diagnosis application based on knowledge graph enhancement, and the medical diagnosis application based on knowledge graph enhancement includes:

[0025] A data input module, used to input medical data into a large language model enhanced by a preset knowledge graph, wherein the large language model enhanced by the preset knowledge graph includes a multimodal input processing layer and a context-aware decoder;

[0026] A multimodal fusion module, used for performing multimodal fusion on the medical data through the multimodal input processing layer to obtain a multimodal feature vector;

[0027] A self-attention enhancement module is used to perform cross-modal self-attention enhancement on the multimodal feature vector through the context-aware decoder and output a medical diagnosis result.

[0028] In addition, to achieve the above-mentioned objectives, the present application also proposes a medical diagnostic device based on knowledge graph enhancement, the device comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being configured to implement the steps of the medical diagnostic method based on knowledge graph enhancement as described above.

[0029] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the medical diagnosis method based on knowledge graph enhancement as described above are implemented.

[0030] In addition, to achieve the above-mentioned objectives, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the steps of the medical diagnosis method based on knowledge graph enhancement as described above.

[0031] The present application provides a medical diagnosis method based on knowledge graph enhancement, which improves the comprehensive extraction capability of the large model for information in the knowledge graph by inputting medical data into a large language model that has been pre-enhanced with a knowledge graph and pre-trained for processing; performs multimodal fusion through a multimodal input processing layer, thereby being able to process information of different modalities and understand the interactive relationship between modalities; performs cross-modal self-attention enhancement on multimodal feature vectors through a context-aware decoder, thereby being able to more effectively integrate and process inputs of different modalities, identify and strengthen the associations between them, thereby improving the overall information processing capability, and converting the enhanced multimodal features into specific medical diagnosis results. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0033] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0034] Figure 1 A flowchart diagram of the first embodiment of the medical diagnosis method based on knowledge graph enhancement provided in this application;

[0035] Figure 2 A flowchart diagram of the second embodiment of the medical diagnosis method based on knowledge graph enhancement provided in this application;

[0036] Figure 3 A flowchart diagram of the third embodiment of the medical diagnosis method based on knowledge graph enhancement provided in this application;

[0037] Figure 4 This is the overall architecture diagram of the medical diagnosis method based on knowledge graph enhancement in this application;

[0038] Figure 5 This is a schematic diagram of the module structure of a medical diagnosis application based on knowledge graph enhancement according to an embodiment of the present application;

[0039] Figure 6 This is a schematic diagram of the device structure of the hardware operating environment involved in the medical diagnosis method based on knowledge graph enhancement in the embodiment of the present application.

[0040] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0041] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0042] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0043] The main solution of the embodiment of the present application is: inputting medical data into a large language model enhanced by a preset knowledge graph, wherein the large language model enhanced by the preset knowledge graph includes a multimodal input processing layer and a context-aware decoder; performing multimodal fusion on the medical data through the multimodal input processing layer to obtain a multimodal feature vector; performing cross-modal self-attention enhancement on the multimodal feature vector through the context-aware decoder, and outputting a medical diagnosis result.

[0044] Although SURGE in the existing technology can use subgraphs in the knowledge graph to enhance dialogue generation, it has the limitation of relying on specific data sets. When faced with complex knowledge needs in the medical field, this single knowledge retrieval method may not be able to fully capture the details and deep relationships in the knowledge graph, limiting the model's knowledge expression and utilization capabilities.

[0045] The present application provides a solution, which inputs medical data into a large language model that has been pre-enhanced with a knowledge graph and pre-trained for processing, thereby improving the large model's ability to comprehensively extract information from the knowledge graph; performs multimodal fusion through a multimodal input processing layer, thereby being able to process information of different modalities and understand the interactive relationship between modalities; and performs cross-modal self-attention enhancement on multimodal feature vectors through a context-aware decoder, thereby being able to more effectively integrate and process inputs of different modalities, identify and strengthen the associations between them, thereby improving the overall information processing capability, and converting the enhanced multimodal features into specific medical diagnosis results.

[0046] It should be noted that the execution subject of the method of this embodiment can be a computing service device with medical diagnosis, network communication and program running functions based on knowledge graph enhancement, such as a tablet computer, a personal computer, a mobile phone, etc.; it can also be the above-mentioned medical diagnosis device based on knowledge graph enhancement with the same or similar functions. This embodiment and the following embodiments will be described by taking the medical diagnosis device based on knowledge graph enhancement as an example.

[0047] Based on this, the present application embodiment provides a medical diagnosis method based on knowledge graph enhancement, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the medical diagnosis method based on knowledge graph enhancement in this application.

[0048] In this embodiment, the medical diagnosis method based on knowledge graph enhancement includes steps S10 to S30:

[0049] Step S10, inputting the medical data into a large language model enhanced by a preset knowledge graph, wherein the large language model enhanced by the preset knowledge graph includes a multimodal input processing layer and a context-aware decoder.

[0050] It is understandable that the present invention proposes an innovative architecture, and the innovative knowledge graph-enhanced large language model includes a multimodal input processing layer and a context-aware decoder to improve the performance of the model in complex medical application scenarios. This architecture integrates advanced deep learning-driven text analysis, combined with deep integration of knowledge graphs and adaptive feature adjustment, significantly improving the model's capture of key medical knowledge and its application efficiency in multimodal medical data.

[0051] Step S20, performing multimodal fusion on the medical data through the multimodal input processing layer to obtain a multimodal feature vector.

[0052] It should be understood that the multimodal input processing layer can be used to perform feature extraction and text processing on medical data to obtain multimodal information, and then perform multimodal fusion to obtain a multimodal feature vector.

[0053] Step S30, performing cross-modal self-attention enhancement on the multimodal feature vector through the context-aware decoder, and outputting a medical diagnosis result.

[0054] It can be understood that in order to more effectively integrate and process inputs of different modalities, the cross-modal self-attention mechanism of the context-aware decoder can identify and strengthen the association between images and texts, and then perform cross-modal self-attention enhancement on the multimodal feature vector and output the medical diagnosis results.

[0055] In a feasible implementation, step S30 may include steps S301 to S303:

[0056] Step S301 : The multimodal feature vector is converted by the context-aware decoder according to conversion functions of query, key and value respectively to obtain a query conversion value, a key conversion value and a value conversion value.

[0057] Step S302: performing cross-modal self-attention enhancement on the query conversion value, the key conversion value, and the value conversion value through a cross-modal self-attention layer to obtain enhanced multimodal features.

[0058] It should be noted that the context-aware decoder can include two modules: a cross-modal attention mechanism module and an enhanced generation strategy module. In order to more effectively integrate and process inputs of different modalities, this module designs a new attention mechanism called the cross-modal self-attention mechanism. This mechanism allows the model to identify and strengthen the association between images and text when processing them. is the multimodal feature obtained from the data fusion module, and the output of the cross-modal self-attention layer It can be calculated by the following formula:

[0059]

[0060] in , and They are the conversion functions of query, key and value, which adjust the attention weights by learning the dynamic relationship between different modalities. This mechanism enables the model to not only pay attention to the internal features of each modality, but also understand the complementary information between modalities, thereby improving the overall information processing capabilities.

[0061] Step S303: Generate a medical diagnosis result according to the enhanced multimodal features through the output layer of the context-aware decoder.

[0062] It is worth noting that at the output layer of the decoder, according to the processed multimodal features , the model can generate specific medical diagnosis results, treatment recommendations or other medical-related outputs. The generation process can be expressed as:

[0063]

[0064] in, The function uses a context-aware decoder structure to convert the enhanced multimodal features into specific text output.

[0065] In this implementation, cross-modal self-attention enhancement is performed by combining query, key, and value conversion functions with a cross-modal self-attention layer. These functions adjust the attention weights by learning the dynamic relationship between different modalities. This mechanism enables the model to not only notice the features within each modality, but also understand the complementary information between modalities, thereby improving the overall information processing capability.

[0066] This embodiment provides a medical diagnosis method based on knowledge graph enhancement, which improves the comprehensive extraction capability of the large model for information in the knowledge graph by inputting medical data into a large language model that has been pre-enhanced with a knowledge graph and pre-trained for processing; multimodal fusion is performed through a multimodal input processing layer, so that information of different modalities can be processed and the interactive relationship between modalities can be understood; cross-modal self-attention enhancement is performed on multimodal feature vectors through a context-aware decoder, so that inputs of different modalities can be more effectively integrated and processed, and the associations between them can be identified and strengthened, thereby improving the overall information processing capability and converting the enhanced multimodal features into specific medical diagnosis results.

[0067] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can refer to the above introduction, and will not be repeated later. Figure 2 Before step S10, the medical diagnosis method based on knowledge graph enhancement further includes step S01:

[0068] Step S01: Integrate the information in the preset medical knowledge graph into the initial large language model through a graph neural network or a Transformer network to obtain a large language model enhanced by the preset knowledge graph.

[0069] It is worth noting that relevant information (such as symptoms, treatment plans, etc.) in the medical knowledge graph can be integrated into the initial large language model using a graph neural network (GNN) or a Transformer network. In this way, the model can enhance its semantic understanding of medical text. Specifically, the entities and relationships in the knowledge graph are encoded into vector form, and the information is further extracted and synthesized through the graph neural network. Given a knowledge graph and related entity sets , GNN outputs enhanced entity features :

[0070]

[0071] in Represents from the knowledge graph Extract and pass entity set Enhanced features. These features will then be combined with other parts of the initial large language model (such as text features) to provide deeper medical knowledge understanding and application.

[0072] In a feasible implementation manner, after step S01, steps S02-03 may also be included:

[0073] Step S02, determining the weight adjustment amount according to the preset medical task requirements through low-rank adaptive LoRA technology.

[0074] Step S03: dynamically adjust the large language model enhanced by the preset knowledge graph according to the weight adjustment amount.

[0075] It should be noted that the low-rank adaptive LoRA technology can be used to dynamically adjust the weights of the large language model according to the specific medical task requirements. This adjustment helps the model better adapt to complex medical scenarios and specific task requirements. By fine-tuning the model parameters, the model output can be adjusted more precisely, thereby improving the accuracy and relevance of the prediction. is the original model weight, is the weight update calculated by LoRA, the updated weight It can be expressed as:

[0076]

[0077] in It is the weight adjustment calculated by LoRA technology according to the task requirements, which allows the model to quickly adapt to new tasks without losing existing knowledge. This adaptive adjustment enables the model to provide more targeted solutions to new and specific medical problems while maintaining its original performance.

[0078] In this embodiment, according to the specific medical task requirements, the low-rank adaptive LoRA technology is used to dynamically adjust the weights of the large language model, thereby helping the model to better adapt to complex medical scenarios and specific task requirements.

[0079] In this embodiment, by using graph neural networks to integrate relevant information (such as symptoms, treatment plans, etc.) in the knowledge graph into the large language model, the model can enhance its semantic understanding of medical texts. Then, according to the specific medical task requirements, the low-rank adaptive LoRA technology is used to dynamically adjust the weight of the large language model, which can help the model better adapt to complex medical scenarios and specific task requirements.

[0080] Based on the first embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to the above description, and will not be described in detail later. Figure 3 , step S20, the medical diagnosis method based on knowledge graph enhancement also includes step S21:

[0081] Step S21: extracting image features and context information in the medical data through the multimodal input processing layer, and performing multimodal fusion on the image features and the context information to obtain a multimodal feature vector.

[0082] It is understandable that the multimodal input processing layer may include an image processing module, a text processing module and a data fusion module. The image features in the medical data are extracted by the image processing module, the context information in the medical data is extracted by the text processing module, and the data fusion module performs multimodal fusion on the image features and the context information to obtain a multimodal feature vector.

[0083] In a feasible implementation manner, step S21 may further include steps S211 to S213:

[0084] Step S211, extracting features of the medical images in the medical data through the convolutional neural network in the multimodal input processing layer to obtain image features.

[0085] It can be understood that the image processing module uses convolutional neural networks (CNNs) to extract features from the input medical images. Through the multi-layer CNN architecture ResNet, these networks can effectively capture local and global features in medical images, which is crucial for medical image analysis. Given an input image ,in Represents the index of the image. CNN outputs the final feature map through multiple convolutional layers and pooling layers. :

[0086]

[0087] in Indicates that from the image The high-level features extracted from the dataset are used for subsequent data fusion and analysis.

[0088] Step S212, capturing contextual information of the text in the medical data through a self-attention mechanism, wherein the contextual information includes text semantics and structural information.

[0089] It should be understood that the text processing module uses pre-trained large language models (LLMs) to process text data in medical literature, clinical reports, or patient medical records. These models understand the complex medical context and terminology in the text through self-attention mechanisms. Given a text input , the model outputs text features :

[0090]

[0091] in Represents the text embedding after being processed by the language model, capturing the semantic and structural information of the text and providing rich context for subsequent modal fusion.

[0092] Step S213, performing multimodal fusion on the image features and the context information through a multi-head attention mechanism to obtain a multimodal feature vector.

[0093] It is understandable that the data fusion module combines image features and text features , using specific fusion strategies such as multi-head attention mechanism to integrate information from different modalities. The fusion network generates a unified feature representation :

[0094]

[0095] The function uses the attention mechanism to process information of different modalities and understand the interactive relationship between modalities.

[0096] In this embodiment, feature extraction of the input medical image through a convolutional neural network can effectively capture the local and global features in the medical image, which is crucial for medical image analysis. Then, the self-attention mechanism is used to understand the complex medical context and terminology in the text, providing rich context for subsequent modal fusion. Finally, a specific fusion strategy such as a multi-head attention mechanism is used to integrate information from different modalities and understand the interactive relationship between modalities.

[0097] In this embodiment, image features and context information in medical data are extracted through a multimodal input processing layer, and then the image features and context information are multimodally fused, so that information of different modalities can be processed and the interactive relationship between modalities can be understood.

[0098] For example, in order to help understand the implementation process of the medical diagnosis method based on knowledge graph enhancement obtained by combining this embodiment with the above-mentioned embodiment 1, please refer to Figure 4 , Figure 4 This is the overall architecture diagram of the medical diagnosis method based on knowledge graph enhancement in this application, specifically:

[0099] The present invention proposes an innovative architecture, including a multimodal input processing layer, a feature enhancement module, and a context-aware decoder, to improve the performance of the model in complex medical application scenarios. The present invention proposes an improved knowledge graph integration method. First, by introducing a more advanced graph neural network architecture and an optimized knowledge extraction algorithm, this method not only improves the comprehensive extraction capability of information in the knowledge graph, but also ensures that the model can obtain the most relevant information in the context of complex medical conversations. In addition, the present invention also designs a new model architecture to improve adaptability on different data sets and reduce dependence on specific data sets, thereby making the model more flexible and versatile. Finally, through algorithm optimization and hardware acceleration technology, the present invention greatly improves computing efficiency and reduces costs, making the model more suitable for deployment in actual medical scenarios. These improvements effectively solve the key problems faced by the SURGE model in medical applications and improve its practical application value.

[0100] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the medical diagnosis method based on knowledge graph enhancement of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0101] This application also provides a medical diagnosis application based on knowledge graph enhancement, please refer to Figure 5 , the medical diagnosis application based on knowledge graph enhancement includes:

[0102] A data input module 10, for inputting medical data into a large language model enhanced by a preset knowledge graph, wherein the large language model enhanced by the preset knowledge graph includes a multimodal input processing layer and a context-aware decoder;

[0103] A multimodal fusion module 20, configured to perform multimodal fusion on the medical data through the multimodal input processing layer to obtain a multimodal feature vector;

[0104] The self-attention enhancement module 30 is used to perform cross-modal self-attention enhancement on the multimodal feature vector through the context-aware decoder and output a medical diagnosis result.

[0105] The medical diagnosis application based on knowledge graph enhancement provided by this application adopts the medical diagnosis method based on knowledge graph enhancement in the above embodiment to solve the technical problem. Compared with the prior art, the beneficial effects of the medical diagnosis application based on knowledge graph enhancement provided by this application are the same as the beneficial effects of the medical diagnosis method based on knowledge graph enhancement provided by the above embodiment, and the other technical features of the medical diagnosis application based on knowledge graph enhancement are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0106] The present application provides a medical diagnostic device based on knowledge graph enhancement, and the medical diagnostic device based on knowledge graph enhancement includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the medical diagnostic method based on knowledge graph enhancement in the above-mentioned embodiment one.

[0107] Reference below Figure 6 , which shows a schematic diagram of the structure of a medical diagnostic device based on knowledge graph enhancement suitable for implementing the embodiment of the present application. The medical diagnostic device based on knowledge graph enhancement in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The medical diagnostic device based on knowledge graph enhancement shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0108] like Figure 6As shown, the medical diagnostic device based on knowledge graph enhancement may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM: Read Only Memory) 1002 or the program loaded from the storage device 1003 to the random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the medical diagnostic device based on knowledge graph enhancement are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. The input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 can allow the medical diagnostic device enhanced based on the knowledge graph to communicate wirelessly or wired with other devices to exchange data. Although the figure shows a medical diagnostic device enhanced based on the knowledge graph with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have alternatively.

[0109] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0110] The medical diagnostic device based on knowledge graph enhancement provided by the present application adopts the medical diagnostic method based on knowledge graph enhancement in the above-mentioned embodiment, which can solve the technical problems of medical diagnosis based on knowledge graph enhancement. Compared with the prior art, the beneficial effects of the medical diagnostic device based on knowledge graph enhancement provided by the present application are the same as the beneficial effects of the medical diagnostic method based on knowledge graph enhancement provided by the above-mentioned embodiment, and the other technical features of the medical diagnostic device based on knowledge graph enhancement are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0111] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0112] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0113] The present application provides a computer-readable storage medium having computer-readable program instructions (i.e., computer programs) stored thereon, and the computer-readable program instructions are used to execute the medical diagnosis method based on knowledge graph enhancement in the above-mentioned embodiment.

[0114] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.

[0115] The readable storage medium provided in this application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned medical diagnosis method based on knowledge graph enhancement, and can solve technical problems. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the medical diagnosis method based on knowledge graph enhancement provided in the above-mentioned embodiment, and will not be repeated here.

[0116] The present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the medical diagnosis method based on knowledge graph enhancement as described above.

[0117] The computer program product provided in this application can solve the technical problem. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as the beneficial effects of the medical diagnosis method based on knowledge graph enhancement provided in the above embodiment, which will not be repeated here.

[0118] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A medical diagnosis method based on knowledge graph enhancement, characterized in that: The method includes: Inputting the medical data into a large language model enhanced by a preset knowledge graph, wherein the large language model enhanced by the preset knowledge graph includes a multimodal input processing layer and a context-aware decoder; Performing multimodal fusion on the medical data through the multimodal input processing layer to obtain a multimodal feature vector; Performing cross-modal self-attention enhancement on the multimodal feature vector through the context-aware decoder and outputting a medical diagnosis result; The step of performing multimodal fusion on the medical data through the multimodal input processing layer to obtain a multimodal feature vector comprises: Extracting features of the medical images in the medical data through the convolutional neural network in the multimodal input processing layer to obtain image features; Capturing contextual information of the text in the medical data through a self-attention mechanism, wherein the contextual information includes text semantics and structural information; The image features and the context information are multimodally fused through a multi-head attention mechanism to obtain a multimodal feature vector; The step of performing cross-modal self-attention enhancement on the multimodal feature vector by the context-aware decoder and outputting a medical diagnosis result comprises: The multimodal feature vector is converted by the context-aware decoder according to the conversion functions of query, key and value respectively to obtain a query conversion value, a key conversion value and a value conversion value; Performing cross-modal self-attention enhancement on the query conversion value, the key conversion value, and the value conversion value through a cross-modal self-attention layer to obtain enhanced multimodal features; A medical diagnosis result is generated based on the enhanced multimodal features through the output layer of the context-aware decoder.

2. The method according to claim 1, characterized in that Before the step of inputting the medical data into the large language model enhanced by the preset knowledge graph, the method further includes: The information in the preset medical knowledge graph is integrated into the initial large language model through a graph neural network or a Transformer network to obtain a large language model enhanced by the preset knowledge graph.

3. The method according to claim 2, characterized in that After the step of integrating the information in the preset medical knowledge graph into the initial large language model through the graph neural network or the Transformer network to obtain the large language model enhanced by the preset knowledge graph, the method further includes: The weight adjustment amount is determined according to the preset medical task requirements through low-rank adaptive LoRA technology; The large language model enhanced by the preset knowledge graph is dynamically adjusted according to the weight adjustment amount.

4. A medical diagnosis application based on knowledge graph enhancement, characterized in that: The medical diagnosis application based on knowledge graph enhancement includes: A data input module, used to input medical data into a large language model enhanced by a preset knowledge graph, wherein the large language model enhanced by the preset knowledge graph includes a multimodal input processing layer and a context-aware decoder; A multimodal fusion module, used for performing multimodal fusion on the medical data through the multimodal input processing layer to obtain a multimodal feature vector; A self-attention enhancement module, configured to perform cross-modal self-attention enhancement on the multimodal feature vector through the context-aware decoder and output a medical diagnosis result; The multimodal fusion module is further used to extract features of the medical images in the medical data through the convolutional neural network in the multimodal input processing layer to obtain image features; capture context information of the text in the medical data through a self-attention mechanism, wherein the context information includes text semantics and structural information; and perform multimodal fusion of the image features and the context information through a multi-head attention mechanism to obtain a multimodal feature vector; The self-attention enhancement module is also used to transform the multimodal feature vector according to the query, key and value conversion functions respectively through the context-aware decoder to obtain a query conversion value, a key conversion value and a value conversion value; perform cross-modal self-attention enhancement on the query conversion value, the key conversion value and the value conversion value through a cross-modal self-attention layer to obtain enhanced multimodal features; and generate a medical diagnosis result based on the enhanced multimodal features through the output layer of the context-aware decoder.

5. A medical diagnostic device based on knowledge graph enhancement, characterized in that: The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the medical diagnosis method based on knowledge graph enhancement as described in any one of claims 1 to 3.

6. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the medical diagnosis method based on knowledge graph enhancement as described in any one of claims 1 to 3 are implemented.

7. A computer program product, characterized in that The computer program product comprises a computer program, which, when executed by a processor, implements the steps of the medical diagnosis method based on knowledge graph enhancement as described in any one of claims 1 to 3.

Citation Information

Patent Citations

  • Visual question and answer oriented method of context awareness based on multi-modal interaction

    CN114970517A

  • Knowledge graph-based method for enhancing dual-carbon domain service of large language model

    CN117370580A

  • Micro-expression recognition method based on multi-modal fusion

    CN117935339A

  • Construction method, device and equipment of large language model and computer readable medium

    CN118194923A

  • Systems and methods for incorporating multimodal data to improve attention mechanisms

    WO2021052875A1

Cited By

  • Medical semantic completion system based on large language model and medical semantic completion method thereof

    TWI923492B