Text information processing method, device, electronic device and storage medium
By generating medical record export graphs, clustering and coding, combined with graph convolution and attention mechanisms, the problem of poor text information processing in the existing technology is solved, and the accuracy of disease diagnosis is significantly improved.
Patent Information
- Application Number
- CN202110736093.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-30
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-06-30
AI Technical Summary
Existing automatic disease diagnosis algorithms are not effective in processing text information, resulting in insufficient diagnostic accuracy. It is necessary to improve the text information processing effect to improve diagnosis efficiency.
By generating a medical record export graph, clustering disease nodes, dividing it into multiple medical record subgraphs, and encoding these subgraphs, entity features are used to generate disease diagnosis results, and graph convolution and attention mechanisms are combined to improve information encoding capabilities.
It effectively improves the text information processing effect, improves the accuracy of disease diagnosis prediction, enhances the structured coding ability of medical records, and ensures effective coding and information fusion of different sub-graph information.
Smart Images

Figure CN113590777B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of artificial intelligence technology, specifically the field of natural language processing, smart medical care, and knowledge graph technology, and in particular to a text information processing method, device, electronic device, and storage medium. Background Art
[0002] At present, automatic disease diagnosis algorithms have been widely used in clinical decision support systems. They mainly obtain diagnostic prediction results by processing and analyzing text information in electronic medical records, which are used to improve doctors' diagnostic efficiency and reduce the probability of misdiagnosis and missed diagnosis.
[0003] However, how to enhance the processing effect of text information and thus improve the accuracy of automatic disease diagnosis has become an urgent problem that the industry needs to solve. Summary of the invention
[0004] Provided are a text information processing method, device, electronic device and storage medium.
[0005] According to a first aspect, a text information processing method is provided, comprising: generating a corresponding medical record export graph based on the text information in the medical record to be processed; clustering the disease nodes in the medical record export graph, and dividing the medical record export graph into multiple medical record sub-graphs according to the clustering results; encoding the multiple medical record sub-graphs respectively, and generating a disease diagnosis result based on the entity features obtained by the encoding.
[0006] According to the second aspect, a text information processing device is provided, comprising: a first generating module, used to generate a corresponding medical record export graph according to the text information in the case to be processed; a clustering module, used to cluster the disease nodes in the medical record export graph, and divide the medical record export graph into multiple medical record sub-graphs according to the clustering results; a second generating module, used to encode the multiple medical record sub-graphs respectively, and generate a disease diagnosis result according to the entity features obtained by the encoding.
[0007] According to a third aspect, an electronic device is provided, comprising: 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 text information processing method described in the first aspect of the present disclosure.
[0008] According to a fourth aspect, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the text information processing method according to the first aspect of the present disclosure.
[0009] According to a fifth aspect, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the text information processing method according to the first aspect of the present disclosure.
[0010] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0012] Figure 1 is a flowchart of a text information processing method according to the first embodiment of the present disclosure;
[0013] Figure 2 is a flowchart of a text information processing method according to a second embodiment of the present disclosure;
[0014] Figure 3 is a flowchart of a text information processing method according to a third embodiment of the present disclosure;
[0015] Figure 4 is a flowchart of a text information processing method according to a fourth embodiment of the present disclosure;
[0016] Figure 5 is an overall schematic diagram of the text information processing method according to an embodiment of the present disclosure;
[0017] Figure 6 is a block diagram of a text information processing apparatus according to a first embodiment of the present disclosure;
[0018] Figure 7 is a block diagram of a text information processing device according to a second embodiment of the present disclosure;
[0019] Figure 8 It is a block diagram of an electronic device used to implement the text information processing method of the embodiment of the present disclosure. DETAILED DESCRIPTION
[0020] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0021] Artificial Intelligence (AI) is a technical science that studies and develops theories, methods, technologies and application systems for simulating, extending and expanding human intelligence. At present, AI technology has the advantages of high automation, high precision and low cost, and has been widely used.
[0022] Natural Language Processing (NLP) is an important direction in the fields of computer science and artificial intelligence. It mainly studies various theories and methods that can achieve effective communication between people and computers using natural language. Natural language processing is a science that integrates linguistics, computer science, and mathematics. Therefore, research in this field will involve natural language, that is, the language people use in daily life, so it is closely related to the study of linguistics, but there are important differences. Natural language processing is not a general study of natural language, but the development of computer systems that can effectively realize natural language communication, especially the software systems therein. Therefore, it is part of computer science.
[0023] Smart healthcare (WITMED) is a medical service model that integrates technologies such as the Internet of Things and cloud computing and is centered on patient data. Smart healthcare uses new sensors, the Internet of Things, communications and other technologies combined with modern medical concepts to build a regional medical information platform centered on electronic health records, integrate business processes between hospitals, optimize regional medical resources, and realize online appointments and two-way referrals across medical institutions, shorten the patient's medical process, reduce related procedures, and rationalize the allocation of medical resources, truly achieving patient-centered smart healthcare.
[0024] Knowledge Graph is a modern theory that combines the theories and methods of applied mathematics, graphics, information visualization technology, information science and other disciplines with metrological citation analysis, co-occurrence analysis and other methods, and uses visual graphs to vividly display the core structure, development history, frontier fields and overall knowledge architecture of disciplines to achieve the purpose of multidisciplinary integration. It describes knowledge resources and their carriers through visualization technology, and mines, analyzes, constructs, draws and displays knowledge and their mutual connections.
[0025] The text information processing method, device, electronic device and storage medium of the embodiments of the present disclosure are described below with reference to the accompanying drawings.
[0026] Figure 1 It is a flowchart of a text information processing method according to the first embodiment of the present disclosure.
[0027] like Figure 1 As shown, the text information processing method of the embodiment of the present disclosure may specifically include the following steps:
[0028] S101, generating a corresponding medical record export diagram according to the text information in the case to be processed.
[0029] Specifically, the execution subject of the text information processing method of the embodiment of the present disclosure may be the text information processing device provided by the embodiment of the present disclosure, and the text information processing device may be a hardware device with data information processing capabilities and / or the necessary software required to drive the hardware device to work. Optionally, the execution subject may include a workstation, a server, a computer, a user terminal and other devices. Among them, the user terminal includes but is not limited to a mobile phone, a computer, an intelligent voice interaction device, an intelligent home appliance, a vehicle-mounted terminal, etc.
[0030] In the disclosed embodiments, the text information in the medical records to be processed includes, but is not limited to, free text information and disease entity information contained in the free text information. For example, medical records usually contain information such as chief complaint, current medical history, auxiliary examinations, physical examinations, and past medical history, which are usually in the form of free text. Various types of entities, such as diseases and symptoms, can be extracted from the text information using named entity recognition tools.
[0031] According to the text information in the medical record to be processed, specifically the disease entity in the text information, a corresponding medical record export graph is generated. The medical record export graph includes disease entity nodes corresponding to all disease entities in the medical record and disease nodes corresponding to diseases that meet certain conditions, as well as causal relationship scores between these disease entities and diseases.
[0032] S102, clustering the disease nodes in the medical record export graph, and dividing the medical record export graph into multiple medical record sub-graphs according to the clustering result.
[0033] Specifically, a label propagation algorithm (LPA) can be used to cluster the disease nodes in the medical record export graph generated in step S101 to obtain a clustering result, and the medical record export graph is divided into multiple medical record subgraphs according to the clustering result, and each cluster in the clustering result corresponds to a medical record subgraph.
[0034] S103, encoding the multiple medical record subgraphs respectively, and generating disease diagnosis results according to the entity features obtained by encoding.
[0035] Specifically, graph convolution can be used to encode the multiple medical record subgraphs obtained in step S102 respectively, so that the information of different medical record subgraphs can be effectively encoded, thereby obtaining entity features, and generating disease diagnosis results based on the obtained entity features.
[0036] In summary, the text information processing method of the disclosed embodiment generates a corresponding medical record export graph according to the text information in the case to be processed, clusters the disease nodes in the medical record export graph, divides the medical record export graph into multiple medical record subgraphs according to the clustering results, encodes the multiple medical record subgraphs respectively, and generates a disease diagnosis result according to the entity features obtained by encoding. The disclosed embodiment divides the medical record export graph into multiple medical record subgraphs according to the clustering results of the disease nodes in the medical record export graph, encodes the multiple case subgraphs respectively to obtain entity features, and ensures that the information of different subgraphs can be effectively encoded, thereby effectively improving the medical record structured coding capability, enhancing the effect of text information processing, and improving the accuracy of disease diagnosis prediction.
[0037] Figure 2 It is a flowchart of a text information processing method according to the second embodiment of the present disclosure.
[0038] like Figure 2 As shown, in Figure 1 Based on the illustrated embodiment, the text information processing method of the embodiment of the present disclosure may specifically include the following steps:
[0039] The step S101 in the above embodiment may specifically include the following steps S201 - S204 .
[0040] S201, obtaining a pre-built medical knowledge graph, wherein the medical knowledge graph includes condition entity nodes, disease nodes, and causal relationship scores between condition entities and diseases.
[0041] Specifically, the medical knowledge graph is constructed based on the disease entities extracted from the medical records and is expressed in the form of a bipartite graph. The medical knowledge graph includes two types of nodes: disease entity nodes (with ) and disease nodes (denoted by The relationship between different types of nodes, i.e., the causal relationship between the condition entity and the disease, can be represented by a score The causality score It can be used to measure the probability of a disease causing a condition. In specific implementations, the medical knowledge graph can be pre-built based on the condition entities and corresponding diseases in historical medical records, and the medical knowledge graph can be expanded through different medical records, which is not limited in this disclosure.
[0042] S202, obtaining the disease entity in the text information.
[0043] Specifically, named entity recognition is performed on the text information to obtain the disease entity in the text information to avoid the interference of noise information in the text. All the disease entities obtained can be expressed as: The acquired medical condition entities may include but are not limited to symptoms, abnormal signs, examination results, test results, medical history, surgery, and medicines, etc. The medical condition entity in the medical record can basically describe the patient's medical condition during this visit.
[0044] S203, in the medical knowledge graph, the disease nodes and condition entity nodes whose causal relationship scores with the condition entities in the text information are greater than a preset score threshold are determined as nodes in the medical record export graph.
[0045] Specifically, all the disease entity nodes in the medical knowledge graph obtained in step S201 and the disease nodes that meet the following conditions: the disease nodes whose causal relationship scores with any disease entity obtained in step S202 are greater than the preset score threshold are determined as nodes in the medical record export graph to be constructed, that is, the following are obtained:
[0046]
[0047] Here, m represents a preset score threshold, and the specific value can be set as needed, which is not limited in this disclosure.
[0048] S204, generating a medical record export graph according to the nodes in the medical record export graph.
[0049] Specifically, all the condition entity nodes and disease nodes in the medical record export graph determined in step S203 are Generate a medical record export graph, which can be expressed as:
[0050] S205, clustering the disease nodes in the medical record export graph, and dividing the medical record export graph into a plurality of medical record sub-graphs according to the clustering result.
[0051] S206, encoding the multiple medical record subgraphs respectively, and generating disease diagnosis results according to the entity features obtained by encoding.
[0052] Specifically, steps S205-S206 in this embodiment are the same as steps S102-S103 in the above embodiment, and are not described again here.
[0053] Further, in Figure 2 On the basis of the illustrated embodiment, the text information processing method of the embodiment of the present disclosure may further include: generating corresponding free text features according to the text information.
[0054] Specifically, the text information in the medical record can be expressed as In the form of, x represents a character (token) after word segmentation, and after vector (Embedding) representation, the vector corresponding to each character is obtained X = {x1,…x i, …}. The feature extraction of the vector can be performed by discarding the activation function Dropout, convolutional neural network Conv and maximum pooling MaxPooling, and then the free text feature h corresponding to the text information can be obtained through the fully connected layers (FC) seq , the calculation process is as follows:
[0055] h init =MaxPool(Conv(Dropout(X)))
[0056] h seq =σ(W (0) h init +b (0) )
[0057] Correspondingly, in step S206, "generating a disease diagnosis result according to the entity features obtained by encoding" may specifically include: generating a disease diagnosis result according to the free text features and the entity features. The calculation process is as follows:
[0058]
[0059] Among them, h entity Represents entity features, h demo represents the patient's age, gender and other basic personal information, and P represents the calculated probability of suffering from various types of diseases, that is, the disease diagnosis result.
[0060] Further, such as Figure 3 As shown, in Figure 2 Based on the illustrated embodiment, the above step S206 of "encoding multiple medical record subgraphs respectively and generating disease diagnosis results according to the entity features obtained by encoding" may specifically include the following steps:
[0061] S301, performing graph convolution coding on the medical record subgraph to obtain a subgraph code.
[0062] Specifically, multiple medical record subgraphs are respectively subjected to graph convolution coding to obtain multiple subgraph codes
[0063] S302, calculating the intra-sub-graph attention score corresponding to the medical record sub-graph according to the sub-graph encoding.
[0064] Specifically, since different medical record subgraphs have different importance to disease diagnosis, there are also differences in importance between different nodes within the same medical record subgraph. Therefore, by introducing the attention mechanism, we can strengthen the proportion of important subgraphs and important nodes in the final medical record expression, so that we can quickly and efficiently find the key information in the medical records when diagnosing the disease.
[0065] According to the sub-image encoding obtained in step S301 Use the h mentioned above init Calculate the attention score α in the subgraph corresponding to the medical record subgraph k , the calculation process is as follows:
[0066]
[0067] S303, generating a sub-graph representation result corresponding to the medical record sub-graph according to the attention score in the sub-graph.
[0068] Specifically, according to the attention score α in the subgraph k Perform weighted generation of the subgraph corresponding to the medical record subgraph to represent the result c k , the calculation process is as follows:
[0069]
[0070] S304, calculating the attention scores between sub-graphs according to the multiple sub-graph representation results corresponding to the multiple medical record sub-graphs.
[0071] Specifically, through steps S302-S303, the subgraph representation results corresponding to all medical record subgraphs are generated, that is, {c1,…,c K}. The results are represented by multiple subgraphs corresponding to multiple medical record subgraphs, using h init Calculate the attention score β between sub-graphs k , the calculation process is as follows:
[0072]
[0073] S305, generating entity features according to the multiple sub-graph representation results and the attention scores between the sub-graphs, and generating disease diagnosis results according to the entity features.
[0074] Specifically, the result {c1,…,c K} and the corresponding sub-graph attention score β k Generate entity feature h entity , the calculation process is as follows:
[0075]
[0076] Further, such as Figure 4 As shown, in Figure 3 Based on the embodiment shown, the above step S301 of “performing graph convolution coding on the medical record subgraph to obtain a subgraph code” may specifically include the following steps:
[0077] S401, obtaining vector representations of nodes in the medical record subgraph, as well as the corresponding identity matrix, adjacency matrix and degree matrix.
[0078] Specifically, obtain the medical record subgraph G according to the medical record subgraph K The vector representation of the nodes in V k , and the corresponding identity matrix I k , adjacency matrix A k Sum degree matrix D k .
[0079] S402, generating a subgraph code according to the vector representation, the identity matrix, the adjacency matrix and the degree matrix of the nodes in the medical record subgraph.
[0080] Specifically, according to the vector representation V of the node in the medical record subgraph obtained in step S401 k 、Unit matrix I k , adjacency matrix A k Sum degree matrix D k , generate subgraph encoding The calculation process is as follows:
[0081]
[0082] In summary, the text information processing method of the disclosed embodiment generates a corresponding medical record export graph according to the text information in the medical record to be processed, clusters the disease nodes in the medical record export graph, divides the medical record export graph into multiple medical record subgraphs according to the clustering results, encodes the multiple medical record subgraphs respectively, and generates disease diagnosis results according to the entity features obtained by encoding. The disclosed embodiment divides the medical record export graph into multiple medical record subgraphs according to the clustering results of the disease nodes in the medical record export graph, encodes the multiple case subgraphs respectively to obtain entity features, and ensures that the information of different subgraphs can be effectively encoded, thereby effectively improving the structured encoding ability of medical records, and at the same time utilizes the attention mechanism within the subgraph and the attention mechanism between subgraphs to fuse the entity information to obtain entity features, thereby improving the structured representation ability of medical records, enhancing the effect of text information processing, combining free text features and entity features for disease diagnosis, and improving the precision and recall rate of disease diagnosis prediction.
[0083] To clearly illustrate the text information processing method of the present disclosure embodiment, the following is combined with Figure 5 Describe in detail.
[0084] Figure 5 FIG. 1 is an overall schematic diagram of the text information processing method of the embodiment of the present disclosure. Figure 5 As shown, text information processing of electronic medical records to generate disease diagnosis results through diagnosis deduction mainly includes three parts: free text feature processing, entity feature extraction and diagnosis deduction.
[0085] The free text feature processing is mainly done by: dividing the text information in the medical record into words and mapping them into corresponding vectors to represent word embeddings, extracting the features of the vectors by discarding the activation function Dropout, convolutional neural network Conv and maximum pooling Max Pooling to obtain the initial features, and then passing through the fully connected layer FC to obtain the free text features h corresponding to the text information. seq .
[0086] The entity feature processing part mainly includes: obtaining text information according to the medical record, generating a medical record export graph according to the disease entity obtained from the text information and the disease nodes that meet the conditions determined from the medical knowledge graph, clustering the disease nodes in the medical record export graph, dividing the medical record export graph into multiple medical record subgraphs according to the clustering results, obtaining the adjacency matrix, unit matrix and degree matrix of the subgraph according to the medical record subgraph, and thereby obtaining the vector representation of the medical record subgraph node, and obtaining the subgraph encoding after graph convolution and activation function, and performing intra-subgraph attention calculation based on the subgraph encoding combined with the initial features of the free text feature processing stage to obtain the intra-subgraph attention score, and generating the corresponding subgraph representation result based on the intra-subgraph attention score, performing inter-subgraph attention calculation based on multiple subgraph representation results and the initial features of the free text processing stage to obtain the inter-subgraph attention score, and generating entity features based on the multiple subgraph representation results and the inter-subgraph attention score.
[0087] In the diagnosis derivation part, the free text features, entity features and the patient's personal information are input into the Dropout activation function and the fully connected layer FC to calculate the probability of illness, thereby obtaining the disease diagnosis result.
[0088] Figure 6 is a block diagram of a text information processing apparatus according to a first embodiment of the present disclosure.
[0089] like Figure 6 As shown, the text information processing device 600 of the embodiment of the present disclosure includes: a first generating module 601 , a clustering module 602 and a second generating module 603 .
[0090] The first generating module 601 is used to generate a corresponding medical record export diagram according to the text information in the medical record to be processed.
[0091] The clustering module 602 is used to cluster the disease nodes in the medical record export graph, and divide the medical record export graph into multiple medical record sub-graphs according to the clustering results.
[0092] The second generating module 603 is used to encode the multiple medical record subgraphs respectively, and generate disease diagnosis results according to the entity features obtained by encoding.
[0093] It should be noted that the above explanation of the text information processing method embodiment is also applicable to the text information processing device of the embodiment of the present disclosure, and the specific process will not be repeated here.
[0094] In summary, the text information processing device of the disclosed embodiment generates a corresponding medical record export graph according to the text information in the medical record to be processed, clusters the disease nodes in the medical record export graph, divides the medical record export graph into multiple medical record subgraphs according to the clustering results, encodes the multiple medical record subgraphs respectively, and generates a disease diagnosis result according to the entity features obtained by encoding. The disclosed embodiment divides the medical record export graph into multiple medical record subgraphs according to the clustering results of the disease nodes in the medical record export graph, encodes the multiple medical record subgraphs respectively to obtain entity features, and ensures that the information of different subgraphs can be effectively encoded, thereby effectively improving the structured coding capability of medical records, enhancing the effect of text information processing, and improving the accuracy of disease diagnosis prediction.
[0095] Figure 7 is a block diagram of a text information processing apparatus according to a second embodiment of the present disclosure.
[0096] like Figure 7 As shown, the text information processing device 700 of the embodiment of the present disclosure includes: a first generating module 701 , a clustering module 702 and a second generating module 703 .
[0097] Among them, the first generation module 701 has the same structure and function as the first generation module 601 in the previous embodiment, the clustering module 702 has the same structure and function as the clustering module 602 in the previous embodiment, and the second generation module 703 has the same structure and function as the second generation module 603 in the previous embodiment.
[0098] Furthermore, the text information processing device 700 of the embodiment of the present disclosure also includes: a third generation module, which is used to generate corresponding free text features based on text information; wherein the second generation module 703 may specifically include a first generation unit, which is used to generate disease diagnosis results based on free text features and entity features.
[0099] Furthermore, the first generation module 701 may specifically include: a first acquisition unit 7011, used to acquire a pre-constructed medical knowledge graph, the medical knowledge graph including condition entity nodes, disease nodes, and causal relationship scores between condition entities and diseases; a second acquisition unit 7012, used to acquire condition entities in text information; a determination unit 7013, used to determine disease nodes and condition entity nodes in the medical knowledge graph whose causal relationship scores with condition entities in text information are greater than a preset score threshold as nodes in a medical record export graph; and a second generation unit 7014, used to generate a medical record export graph based on the nodes in the medical record export graph.
[0100] Furthermore, the first generating module 701 may also include: a construction unit, used to construct a medical knowledge graph according to the medical condition entities and corresponding diseases in the historical medical records.
[0101] Furthermore, the clustering module 702 may specifically include: a clustering unit, which is used to cluster the disease nodes in the medical record export graph using a label propagation algorithm.
[0102] Furthermore, the second generation module 703 may specifically include: an encoding unit, used to perform graph convolution encoding on the medical record subgraph to obtain a subgraph code; a first calculation unit, used to calculate the intra-subgraph attention score corresponding to the medical record subgraph based on the subgraph code; a third generation unit, used to generate a subgraph representation result corresponding to the medical record subgraph based on the intra-subgraph attention score; a second calculation unit, used to calculate the inter-subgraph attention score based on multiple subgraph representation results corresponding to multiple medical record subgraphs; and a fourth generation unit, used to generate entity features based on the multiple subgraph representation results and the inter-subgraph attention scores, and generate a disease diagnosis result based on the entity features.
[0103] Furthermore, the encoding unit may specifically include: an acquisition subunit, used to obtain the vector representation of the nodes in the medical record subgraph, and the corresponding unit matrix, adjacency matrix and degree matrix; a generation subunit, used to generate the subgraph encoding according to the vector representation, unit matrix, adjacency matrix and degree matrix of the nodes in the medical record subgraph.
[0104] In summary, the text information processing device of the disclosed embodiment generates a corresponding medical record export graph according to the text information in the medical record to be processed, clusters the disease nodes in the medical record export graph, divides the medical record export graph into multiple medical record subgraphs according to the clustering results, encodes the multiple medical record subgraphs respectively, and generates a disease diagnosis result according to the entity features obtained by encoding. The disclosed embodiment divides the medical record export graph into multiple medical record subgraphs according to the clustering results of the disease nodes in the medical record export graph, encodes the multiple medical record subgraphs respectively to obtain entity features, and ensures that the information of different subgraphs can be effectively encoded, thereby effectively improving the structured encoding ability of medical records, and at the same time utilizes the attention mechanism within the subgraph and the attention mechanism between subgraphs to fuse the entity information to obtain entity features, thereby improving the structured representation ability of medical records, enhancing the effect of text information processing, combining free text features and entity features to diagnose diseases, and improving the precision and recall rate of disease diagnosis prediction.
[0105] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0106] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0107] Figure 8 A schematic block diagram of an example electronic device 800 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0108] like Figure 8 As shown, the electronic device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0109] Multiple components in the electronic device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 809, such as various types of displays, speakers, etc.; a storage unit 808, such as a disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the electronic device 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0110] The computing unit 801 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The computing unit 801 performs the various methods and processes described above, such as Figures 1 to 5The text information processing method shown. For example, in some embodiments, the text information processing method can be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 800 via the ROM 802 and / or the communication unit 809. When the computer program is loaded into the RAM 803 and executed by the computing unit 801, one or more steps of the method for generating the reminder audio described above can be performed. Alternatively, in other embodiments, the computing unit 801 can be configured to execute the text information processing method in any other appropriate manner (for example, by means of firmware).
[0111] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0112] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0113] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0114] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0115] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), the Internet, and a blockchain network.
[0116] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.
[0117] According to an embodiment of the present disclosure, the present disclosure further provides a computer program product, including a computer program, wherein the computer program implements the text information processing method shown in the above embodiment of the present disclosure when executed by a processor.
[0118] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0119] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A text information processing method, comprising: Generate a corresponding medical record export graph according to the text information in the medical record to be processed, wherein the medical record export graph includes disease entity nodes corresponding to all disease entities in the medical record, disease nodes corresponding to the disease, and causal relationship scores between the disease entity and the disease; Clustering the disease nodes in the medical record derived graph, and dividing the medical record derived graph into a plurality of medical record subgraphs according to the clustering result; The plurality of medical record subgraphs are respectively encoded, and a disease diagnosis result is generated according to the entity features obtained by encoding, including: Performing graph convolution coding on the medical record subgraph to obtain a subgraph code; Calculating the intra-sub-graph attention score corresponding to the medical record sub-graph according to the sub-graph code; Generating a subgraph representation result corresponding to the medical record subgraph according to the attention score in the subgraph; Calculating the inter-subgraph attention scores according to the plurality of subgraph representation results corresponding to the plurality of medical record subgraphs; and The entity feature is generated according to the multiple sub-graph representation results and the attention scores between the sub-graphs, and the probability of suffering from the disease is generated according to the entity feature.
2. The text information processing method according to claim 1, further comprising: The text information is divided into characters and represented by vectors to obtain a vector corresponding to each character, and features are extracted from the vectors to obtain free text features corresponding to the text information; The step of generating a disease diagnosis result based on the entity features obtained by coding includes: The probability of suffering from the disease is generated according to the free text features and the entity features.
3. The text information processing method according to claim 1, wherein: The step of generating a corresponding medical record export graph according to the text information in the medical record to be processed includes: Obtaining a pre-built medical knowledge graph, wherein the medical knowledge graph includes condition entity nodes, disease nodes, and causal relationship scores between condition entities and diseases; Obtaining a disease entity in the text information; Determine the disease nodes and the condition entity nodes in the medical knowledge graph whose causal relationship scores with the condition entities in the text information are greater than a preset score threshold as nodes in the medical record derivation graph; and The medical record export graph is generated according to the nodes in the medical record export graph.
4. The text information processing method according to claim 3, further comprising: The medical knowledge graph is constructed based on the medical condition entities and corresponding diseases in the historical medical records.
5. The text information processing method according to claim 1, wherein: The clustering of the disease nodes in the medical record export graph includes: A label propagation algorithm is used to cluster the disease nodes in the medical record export graph.
6. The text information processing method according to claim 1, wherein: The step of performing graph convolution coding on the medical record subgraph to obtain a subgraph code includes: Obtaining vector representations of nodes in the medical record subgraph, as well as corresponding identity matrices, adjacency matrices, and degree matrices; The subgraph code is generated according to the vector representation of the nodes in the medical record subgraph, the identity matrix, the adjacency matrix and the degree matrix.
7. A text information processing device, comprising: A first generating module is used to generate a corresponding medical record export graph according to the text information in the medical record to be processed, wherein the medical record export graph includes disease entity nodes corresponding to all disease entities in the medical record, disease nodes corresponding to the disease, and causal relationship scores between the disease entity and the disease; A clustering module, used for clustering the disease nodes in the medical record export graph, and dividing the medical record export graph into a plurality of medical record subgraphs according to the clustering result; A second generating module is used to encode the plurality of medical record subgraphs respectively, and generate a disease diagnosis result according to the entity features obtained by encoding; The second generation module comprises: An encoding unit, used for performing graph convolution encoding on the medical record subgraph to obtain a subgraph code; A first calculation unit, configured to calculate an intra-sub-graph attention score corresponding to the medical record sub-graph according to the sub-graph code; A third generating unit, configured to generate a sub-graph representation result corresponding to the medical record sub-graph according to the attention score in the sub-graph; A second calculation unit is used to calculate the attention scores between sub-graphs according to the multiple sub-graph representation results corresponding to the multiple medical record sub-graphs; and The fourth generating unit is used to generate the entity feature according to the multiple sub-graph representation results and the attention scores between the sub-graphs, and generate the probability of suffering from the disease according to the entity feature.
8. The text information processing device according to claim 7, further comprising: A third generation module is used to divide the text information into characters and obtain a vector corresponding to each character after vector representation, and perform feature extraction on the vector to obtain a free text feature corresponding to the text information; Wherein, the second generation module includes: The first generating unit is used to generate the probability of suffering from the disease according to the free text feature and the entity feature.
9. The text information processing device according to claim 7, wherein: The first generation module comprises: A first acquisition unit is used to acquire a pre-constructed medical knowledge graph, wherein the medical knowledge graph includes condition entity nodes, disease nodes, and causal relationship scores between condition entities and diseases; A second acquisition unit, used to acquire the disease entity in the text information; a determination unit, configured to determine, in the medical knowledge graph, disease nodes and the condition entity nodes whose causal relationship scores with the condition entities in the text information are greater than a preset score threshold, as nodes in the medical record derivation graph; and The second generating unit is used to generate the medical record derivation graph according to the nodes in the medical record derivation graph.
10. The text information processing device according to claim 9, further comprising: A construction unit is used to construct the medical knowledge graph according to the medical condition entities and corresponding diseases in the historical medical records.
11. The text information processing device according to claim 7, wherein: The clustering module comprises: A clustering unit is used to cluster the disease nodes in the medical record export graph using a label propagation algorithm.
12. The text information processing device according to claim 7, wherein: The encoding unit comprises: An acquisition subunit, used to acquire vector representations of nodes in the medical record subgraph, as well as corresponding identity matrices, adjacency matrices, and degree matrices; A generating subunit is used to generate the subgraph code according to the vector representation of the nodes in the medical record subgraph, the identity matrix, the adjacency matrix and the degree matrix.
13. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.
14. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-6.
15. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 6.
