Disease data mapping method, device, computer equipment and storage medium
By performing word segmentation and matching forest matching on disease data, combined with synonyms and mutually exclusive thesauruses, the problem of data islands caused by differences in medical terminology is solved, efficient and accurate mapping and interconnection of disease data are achieved, and medical big data analysis capabilities are improved. .
Patent Information
- Application Number
- CN201811051911.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-09-10
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2038-09-10
AI Technical Summary
Due to the non-standardization of medical terminology, the names of disease diagnoses vary greatly, forming data islands, making it impossible to carry out valuable medical big data analysis and research. Traditional manual mapping is inefficient and inaccurate.
By segmenting the disease data to be mapped, a matching forest is generated, and matching is performed based on the root node and sub-node in the matching tree, the matching path is determined to obtain standardized disease data, the matching tree is generated using preset types and co-occurring words, and synonyms are combined and mutually exclusive lexicon to improve matching accuracy.
It has significantly improved the efficiency and accuracy of disease data mapping, automated processing has reduced manual intervention, and improved the ability of data interconnection.
Smart Images

Figure CN109448860B
Abstract
Description
Technical Field
[0001] The present application relates to the field of disease data medical technology, and in particular to a disease data mapping method, apparatus, computer equipment and storage medium. Background Art
[0002] Due to doctors' habits or regional characteristics, medical terminology is not standardized, disease diagnosis names vary greatly, and massive medical data information cannot be interconnected, forming data islands, making it impossible to conduct valuable medical big data analysis and research. In order to solve this problem, it is necessary to map doctors' disease diagnosis data into standardized disease names.
[0003] In traditional technology, hospitals usually have dedicated people responsible for manually mapping these disease name data. This method is not only inefficient but also has low accuracy. Summary of the invention
[0004] Based on this, it is necessary to provide a disease data mapping method, device, computer equipment and storage medium that can improve the efficiency and accuracy of disease data mapping in response to the above technical problems.
[0005] A disease data mapping method, the method comprising:
[0006] Acquire disease data to be mapped, perform word segmentation on the disease data to be mapped, and obtain a word segmentation result;
[0007] Matching the words in the word segmentation result with the root node of each matching tree in the matching forest, and selecting the target root node as the current node according to the root node matching result;
[0008] When the current node has a corresponding next-level child node, matching the words in the word segmentation result with the next-level child node;
[0009] Selecting a target child node as the current node according to the child node matching result, and entering the step of matching the words in the word segmentation result with the next-level child node when the current node has a corresponding next-level child node;
[0010] When the current node does not have a corresponding next-level child node, a matching path where the current node is located is determined, and target disease data is acquired according to the matching path.
[0011] In one embodiment, before matching the words in the word segmentation result with the root node of each matching tree in the matching forest, the process includes:
[0012] Perform word segmentation on each disease data in the predetermined base table library, obtain a word set according to the word segmentation results corresponding to each disease data, and obtain the word type to which each word in the word set belongs;
[0013] Extracting a plurality of words of a first preset word type from the word set as root nodes of a matching tree respectively;
[0014] A plurality of matching trees are generated according to the root node to obtain a matching forest.
[0015] In one embodiment, generating multiple matching trees according to the root node to obtain a matching forest includes:
[0016] Extracting words of a second preset type from the word set to obtain a first subset;
[0017] Extract the co-occurring words corresponding to the root node from the first subset to obtain a current leaf node set corresponding to the matching tree;
[0018] Extracting words of a third preset type from the word set to obtain a second subset;
[0019] Extracting co-occurring words of the current leaf node set from the second subset to update the current leaf node set corresponding to the matching tree;
[0020] Extracting words of a fourth preset type from the word set to obtain a third subset;
[0021] The co-occurring words of the updated current leaf node set are extracted from the third subset, and the target leaf node set corresponding to the matching tree is obtained according to the co-occurring words of the updated current leaf node set to generate a matching tree.
[0022] In one embodiment, obtaining the target leaf node set corresponding to the matching tree according to the co-occurring words of the updated current leaf node set, after generating the matching tree, includes:
[0023] Determine the disease data corresponding to the matching path where each target leaf node on the matching tree is located, and establish a mapping relationship between the matching path and the corresponding disease data.
[0024] In one embodiment, extracting the co-occurring words corresponding to the root node from the first subset includes:
[0025] Obtaining the codes of all disease data corresponding to each of the root nodes, and obtaining a first code set corresponding to each of the root nodes;
[0026] Obtaining the codes of all disease data corresponding to each word in the first subset, and obtaining a second code set corresponding to each word in the first subset;
[0027] When the first encoding set corresponding to the root node and the second encoding set corresponding to the word have an intersection, the word is determined to be a co-occurring word corresponding to the root node.
[0028] In one embodiment, matching the words in the word segmentation result with the root node of each matching tree in the matching forest, and selecting the target root node as the current node according to the root node matching result, includes:
[0029] When the words in the word segmentation result do not match any of the root nodes, searching for synonyms corresponding to each of the root nodes from a pre-established synonym library;
[0030] The words in the word segmentation result are matched with the synonyms, and the target root node is selected as the current node according to the synonym matching result.
[0031] In one embodiment, matching the words in the word segmentation result with the root node of each matching tree in the matching forest, and selecting the target root node as the current node according to the root node matching result, includes:
[0032] When there are multiple successfully matched root nodes and the multiple successfully matched root nodes are mutually exclusive, the mutually exclusive weight corresponding to each root node is obtained from a pre-established mutually exclusive word library, and the root node with a larger weight is used as the target root node;
[0033] When there are multiple successfully matched root nodes and there is no mutually exclusive relationship between the multiple successfully matched root nodes, the multiple successfully matched root nodes are used as target root nodes.
[0034] A disease data mapping device, comprising:
[0035] A word segmentation result acquisition module is used to acquire disease data to be mapped, perform word segmentation on the disease data to be mapped, and obtain a word segmentation result;
[0036] A first matching module is used to match the words in the word segmentation result with the root node of each matching tree in the matching forest, and select a target root node as the current node according to the root node matching result;
[0037] A second matching module is used to match the words in the word segmentation result with the next-level child node when the current node has a corresponding next-level child node;
[0038] A current node acquisition module, used for selecting a target child node as the current node according to the child node matching result, and entering the step of matching the words in the word segmentation result with the next-level child node when the current node has a corresponding next-level child node;
[0039] The target disease data acquisition module is used to determine the matching path where the current node is located when there is no corresponding next-level child node of the current node, and acquire the target disease data according to the matching path.
[0040] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above-mentioned disease data mapping method when executing the computer program.
[0041] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the above-mentioned disease data mapping method.
[0042] The above-mentioned disease data mapping method, device, computer equipment and storage medium, after obtaining the disease data to be mapped, segment the disease data to be mapped to obtain the segmentation result, and then match the words in the segmentation result with the matching trees in the matching tree set, and finally determine the matching path, and then obtain the standard disease data corresponding to the matching path, and use the standard disease data as the target disease data corresponding to the disease data to be mapped. In this application, the server automatically matches the disease data to be mapped with the matching tree to obtain standardized target disease data. Compared with the manual mapping in traditional technology, the efficiency and accuracy are significantly improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 This is an application scenario diagram of a disease data mapping method in an embodiment;
[0044] Figure 2 is a flowchart of a disease data mapping method in one embodiment;
[0045] Figure 3 is a schematic diagram of a matching tree in one embodiment;
[0046] Figure 4 is a flowchart of a disease data mapping method in another embodiment;
[0047] Figure 5 is a structural block diagram of a disease data mapping device in one embodiment;
[0048] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0050] The disease data mapping method provided in this application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The server 104 obtains the disease data to be mapped from the terminal, performs word segmentation on the disease data, and obtains the word segmentation result; matches the words in the word segmentation result with the root node of each matching tree in the matching tree set, and selects the target root node as the current node according to the root node matching result; matches the words in the word segmentation result with the child node corresponding to the current node; selects the target child node as the current node according to the child node matching result, and enters the step of matching the words in the word segmentation result with the child node corresponding to the current node; when the current node does not have a corresponding child node, determines the matching path where the current node is located, and obtains the target disease data according to the matching path. Finally, the server 104 can return the target disease data to the terminal 102.
[0051] The terminal 102 may be, but is not limited to, various personal computers, laptop computers, smart phones, and tablet computers, and the server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.
[0052] In one embodiment, Figure 2 As shown, a disease data mapping method is provided, which is applied to Figure 1 The server in the example is used to illustrate the following steps:
[0053] Step S202, obtaining the disease data to be mapped, performing word segmentation on the disease data to be mapped, and obtaining a word segmentation result.
[0054] The disease data to be mapped refers to the disease name that needs to be mapped to the standard disease data in the predetermined base table library (such as ICD-10). The word segmentation result refers to the word sequence obtained by word segmentation. For example, the word segmentation result of "open cerebellar hemorrhage" may be "open / cerebellum / hemorrhage".
[0055] In one embodiment, the terminal sends a mapping request to the server, and carries the disease data to be mapped in the mapping request. After receiving the mapping request, the server parses the mapping request and obtains the disease data to be mapped. In another embodiment, the terminal uploads the disease data to be mapped to the server, and the server queries the disease data to be mapped from the database according to a preset period.
[0056] Furthermore, after the server obtains the disease data to be mapped, it segments the disease data to obtain a segmentation result.
[0057] Step S204, matching the words in the word segmentation result with the root node of each matching tree in the matching forest, and selecting the target root node as the current node according to the root node matching result.
[0058] Among them, the matching tree is generated according to the standard disease data in the predetermined base table library, and each node on the matching tree is composed of words obtained after the standard disease data is segmented. The matching tree is used to match the words in the segmentation results corresponding to the disease data to be mapped to determine the matching path corresponding to the disease data to be mapped. The root node matching result refers to the matching result obtained by matching the words in the segmentation results with the words corresponding to the root node, and the root node matching result includes successful matching with the root node and unsuccessful matching with the root node.
[0059] In one embodiment, matching the words in the word segmentation result with the root node of each matching tree in the matching tree set can be performed by comparing each word in the word segmentation result with the word corresponding to each root node respectively. When the two words are the same, the match is successful, otherwise, the match is unsuccessful.
[0060] In another embodiment, matching the words in the word segmentation result with the root node of each matching tree in the matching tree set can be performed by respectively calculating the matching degree of each word in the word segmentation result with the word corresponding to each root node. When the maximum matching degree is greater than a preset threshold, the word with the largest matching degree is the successfully matched word, otherwise, the match is unsuccessful.
[0061] Furthermore, when there is only one root node that is successfully matched, the root node is the target root node, and the target root node is used as the current node.
[0062] Step S206, determining whether the current node has a corresponding next-level child node.
[0063] Step S208: If it exists, match the words in the word segmentation result with the next level child node.
[0064] Specifically, the next level node refers to a node that has a parent-child relationship with the current node. In this embodiment, after the current node is acquired, the words in the word segmentation result are further matched with the next level child nodes corresponding to the current node.
[0065] In one embodiment, matching the words in the word segmentation result with the next level child node corresponding to the current node can be performed by comparing the words in the word segmentation result with the words corresponding to each child node respectively. When the two words are the same, the match is successful, otherwise, the match is unsuccessful.
[0066] In another embodiment, matching the words in the word segmentation result with the next-level child nodes corresponding to the current node can be performed by respectively calculating the matching degree between the words in the word segmentation result and the words corresponding to each child node. When the maximum matching degree is greater than a preset threshold, the word with the greatest matching degree is the successfully matched word, otherwise, the match is unsuccessful.
[0067] It can be understood that during matching, only the words in the word segmentation results that have not been matched can be matched with the next-level child nodes, thereby improving the matching efficiency.
[0068] Step S210: Select a target child node as the current node according to the child node matching result.
[0069] Specifically, the subnode matching result refers to the matching result obtained by matching the words in the word segmentation result with the next-level subnode corresponding to the current node. The subnode matching result includes successful matching with the subnode and unsuccessful matching with the subnode. When there is only one successfully matched subnode, the subnode is the target subnode, and the server uses the target subnode as the current node.
[0070] Further, the server repeats step S206.
[0071] Step S212: If it does not exist, determine the matching path where the current node is located, and obtain the target disease data according to the matching path.
[0072] Specifically, when the current node does not have a next-level child node, the current node is the last node of the matching tree. The matching path refers to the path composed of all nodes that match the words in the word segmentation results corresponding to the disease data to be mapped from the first successfully matched node (root node) to the last successfully matched node. In one embodiment, when the current node does not have a next-level child node, that is, the current node is a leaf node, a unique matching path can be determined based on the current node. Figure 3 As shown, if the root node that successfully matches a disease data is A, and the last current node (the last successfully matched node) is the leaf node H, then the matching path determined by H is ACFH.
[0073] In this embodiment, each matching path on the matching tree has a mapping relationship with a standard disease data in the base table library. When the matching path is determined, the corresponding standard disease data can be obtained according to the matching path. The standard disease data is the target disease data corresponding to the disease data to be mapped.
[0074] In the above-mentioned disease data mapping method, after obtaining the disease data to be mapped, the server performs word segmentation on the disease data to be mapped to obtain the word segmentation result, and then matches the words in the word segmentation result with the matching trees in the matching tree set, and finally determines the matching path, and then obtains the standard disease data corresponding to the matching path, and uses the standard disease data as the target disease data corresponding to the disease data to be mapped. In this application, the server automatically matches the disease data to be mapped with the matching tree to obtain standardized target disease data. Compared with the manual mapping in traditional technology, the efficiency and accuracy are significantly improved.
[0075] In one embodiment, before step S202 obtains the disease data to be mapped, it also includes: the step of generating a matching forest, which specifically includes: performing word segmentation on each disease data in a predetermined base table library, obtaining a word set according to the word segmentation result corresponding to each disease data, and obtaining the word type to which each word in the word set belongs; extracting multiple words of the first preset type from the word set as root nodes of the matching tree; generating multiple matching trees according to the root nodes to obtain a matching forest.
[0076] The base table library refers to a standard disease coding library, such as a local coding library, ICD-10, etc. In this embodiment, a base table library is predetermined, and the disease data in the disease library is used as the standard data to be mapped. Each disease data in the base table library is segmented, and the words obtained after segmenting all disease data form a word set. The word type to which each word belongs in the word set is obtained, and the word types include: disease, abnormal tissue, abnormal body, abnormal symptoms, anatomical site, disease type, disease nature, degree, and direction.
[0077] The first preset type is at least one of disease, abnormal tissue, abnormal organism, and abnormal symptom. Examples of words of the first preset type include bleeding, fracture, deformity, and wandering kidney.
[0078] In this embodiment, all words of a preset type in the word set are extracted, each word is used as a root node, and then a matching tree is established according to each root node to obtain a matching forest.
[0079] In one embodiment, Figure 4 As shown, multiple matching trees are generated according to the root node to obtain a matching forest, including:
[0080] Step S402: extracting words of a second preset type from the word set to obtain a first subset.
[0081] Specifically, the second preset type is one or more types of types corresponding to all words in the word set except the first preset type. In one embodiment, the second preset type is anatomical parts, and the words of the second preset type are, for example, cerebellum and ear.
[0082] Step S404: extract the co-occurring words corresponding to the root node from the first subset to obtain the current leaf node set corresponding to the matching tree.
[0083] Among them, co-occurring words refer to two words that appear together in the same disease data. For example, the three words corresponding to "open cerebellar hemorrhage" are co-occurring words. After the co-occurring words are extracted, the co-occurring words are used as the next-level child nodes of the corresponding root node. At this time, these child nodes are the current leaf nodes of the matching tree.
[0084] In one embodiment, co-occurring words corresponding to the root node are extracted from the first subset, including: obtaining the encoding of all disease data corresponding to each root node, and obtaining a first encoding set corresponding to each root node; obtaining the encoding of all disease data corresponding to each word in the first subset, and obtaining a second encoding set corresponding to each word in the first subset; when the first encoding set corresponding to the root node and the second encoding set corresponding to the word have an intersection, the word is determined to be a co-occurring word corresponding to the root node.
[0085] Step S406: extract words of the third preset type from the word set to obtain a second subset.
[0086] The third preset type is one or more types of the types corresponding to all words in the word set except the first preset type and the second preset type. In one embodiment, the second preset type is at least one of the disease type, disease nature, and degree, and the words of the third preset type are, for example, open, comminuted, acute, and chronic.
[0087] Step S408: extract the co-occurring words of the current leaf node set from the second subset to update the current leaf node set corresponding to the matching tree.
[0088] Specifically, for each current leaf node on the matching tree, determine whether there is a co-occurring word in the second subset. If so, use the co-occurring word as the next-level node of the leaf node. At this time, it is equivalent to the matching tree continuing to grow at the leaf node, and the co-occurring word of the leaf node serves as the new current leaf node.
[0089] It can be understood that for the current leaf node without co-occurring words, it is still used as the current leaf node.
[0090] Step S410: extract words of a fourth preset type from the word set to obtain a third subset.
[0091] The fourth preset type is one or more types of the types corresponding to all words in the word set except the first preset type, the second preset type, and the third preset type. In one embodiment, the fourth preset type is direction, and the words of the fourth preset type are such as: left side, right side.
[0092] Step S412, extract the co-occurring words of the updated current leaf node set from the third subset, obtain the target leaf node set corresponding to the matching tree according to the co-occurring words of the updated current leaf node set, and generate the matching tree. The target leaf node refers to the leaf node when the matching tree is finally generated.
[0093] For example, Figure 3 In the matching tree shown, when the matching tree grows to include nodes A, B, and C, B and C are leaf nodes; when the matching tree grows to include nodes A, B, C, D, and E, B, D, and E are leaf nodes; when the matching tree is finally generated, it includes nodes A, B, C, D, E, F, and G. At this time, the leaf nodes are B, D, F, and G. It can be seen that as the matching tree continues to grow, the set of leaf nodes also changes continuously.
[0094] In one embodiment, after the matching tree is generated, the method further includes: determining the disease data corresponding to the matching path where each target leaf node on the matching tree is located, and establishing a mapping relationship between the matching path and the corresponding disease data.
[0095] Specifically, the matching path where each target leaf node is located can uniquely determine a disease data, and the words corresponding to each node on the matching path can be matched with each disease data in the base table library. When the match is successful, that is, when a disease data completely contains the words corresponding to each node on the matching path, the disease data is the disease data corresponding to the matching path. For example, a disease path is: dislocation-hip-hemi-right side, and its corresponding disease data is: right hip subluxation.
[0096] Furthermore, a mapping relationship is established between the matching path and the corresponding disease data, and all the mapping relationships can be saved as a mapping table. When the matching path is determined, the corresponding disease data can be queried according to the mapping table.
[0097] In one embodiment, the words in the word segmentation result are matched with the root nodes of each matching tree in the matching forest, and the target root node is selected as the current node according to the root node matching result, including: when the words in the word segmentation result do not match any root node, searching for synonyms corresponding to each root node from a pre-established synonym library; matching the words in the word segmentation result with synonyms, and selecting the target root node as the current node according to the synonym matching result.
[0098] The synonym matching result refers to the matching result obtained by matching the words in the word segmentation result with the synonyms. In this embodiment, a synonym library is pre-established, and the synonym library includes the synonyms of the words corresponding to the base table library.
[0099] In the above embodiment, the matching tree can be further expanded through synonyms to improve the matching accuracy, thereby ultimately improving the accuracy of disease data mapping.
[0100] In one embodiment, the words in the word segmentation results are matched with the root nodes of each matching tree in the matching forest, and the target root node is selected as the current node according to the root node matching results, including: when there are multiple successfully matched root nodes and the multiple successfully matched root nodes are mutually exclusive, the mutually exclusive weight corresponding to each root node is obtained from a pre-established mutually exclusive vocabulary, and the root node with a larger weight is used as the target root node; when there are multiple successfully matched root nodes and the multiple successfully matched root nodes are not mutually exclusive, it is determined whether there is a preset connecting word in the word segmentation result, and if so, the multiple successfully matched root nodes are used as the target root nodes.
[0101] Specifically, when two words appear at the same time, and the semantics of one of the words can be ignored, the two words have a mutually exclusive relationship and are mutually exclusive words. For example, in soft tissue injury semi-fracture, injury and fracture are mutually exclusive words. A mutually exclusive dictionary can be established in advance, and mutually exclusive weights can be set for each pair of mutually exclusive words. The server can determine whether there are mutually exclusive words in multiple successfully matched root nodes by searching in the mutually exclusive dictionary. When there are mutually exclusive words, the mutual exclusive weight corresponding to each mutually exclusive word is obtained, and the root node corresponding to the word with a larger mutual exclusive weight is used as the target root node. For example, in soft tissue injury semi-fracture, if the mutual exclusive weight of the fracture is greater than the injury, the root node corresponding to the fracture is used as the target root node.
[0102] Furthermore, for some disease data, two diseases may be included, such as disease A accompanied by disease B, disease A causing disease B, etc. At this time, multiple successfully matched root nodes are used as target root nodes, and the matching path is determined according to each root node, and finally the target disease data corresponding to each target root node is obtained, and then each target disease data is combined to obtain the standard disease data corresponding to the disease data to be mapped. For example, the segmentation result of a disease data to be mapped is: A / B / C / D / E, where C corresponds to a successfully matched root node and E corresponds to a successfully matched root node. Then, the matching trees corresponding to A, B and C are continued to be matched to obtain the target disease data A1, and the matching trees corresponding to D and E are continued to be matched to obtain the target disease data A2, and the final mapping result is A1A2.
[0103] In the above embodiment, by determining mutually exclusive words, the matching efficiency can be improved, thereby ultimately improving the mapping efficiency of the disease data.
[0104] It should be understood that although Figure 2 and Figure 4 The steps in the process are shown in sequence as indicated by the arrows, but the steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of the steps, and the steps can be executed in other orders. Figure 2 and Figure 4 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0105] In one embodiment, Figure 5 As shown, a disease data mapping device 500 is provided, comprising: a word segmentation result acquisition module 502, a first matching module 504, a second matching module 506, a current node acquisition module 508 and a target disease data acquisition module 510, wherein:
[0106] The word segmentation result acquisition module 502 is used to acquire the disease data to be mapped, perform word segmentation on the disease data to be mapped, and obtain the word segmentation result;
[0107] A first matching module 504 is used to match the words in the word segmentation result with the root node of each matching tree in the matching forest, and select a target root node as the current node according to the root node matching result;
[0108] The second matching module 506 is used to match the words in the word segmentation result with the next-level child node when the current node has a corresponding next-level child node;
[0109] The current node acquisition module 508 is used to select the target child node as the current node according to the child node matching result, and enter the step of matching the words in the word segmentation result with the next-level child node when the current node has a corresponding next-level child node;
[0110] The target disease data acquisition module 510 is used to determine the matching path where the current node is located when there is no corresponding next-level child node of the current node, and acquire the target disease data according to the matching path.
[0111] In one embodiment, the above-mentioned device also includes: a matching forest generation module, which is used to segment each disease data in a predetermined base table library, obtain a word set according to the segmentation results corresponding to each disease data, and obtain the word type to which each word in the word set belongs; extract multiple words with a word type of the first preset type from the word set as root nodes of the matching tree; generate multiple matching trees based on the root nodes to obtain a matching forest.
[0112] In one embodiment, the matching forest generation module is also used to extract words whose word type is a second preset type from the word set to obtain a first subset; extract co-occurring words corresponding to the root node from the first subset to obtain a current leaf node set corresponding to the matching tree; extract words whose word type is a third preset type from the word set to obtain a second subset; extract co-occurring words of the current leaf node set from the second subset to update the current leaf node set corresponding to the matching tree; extract words whose word type is a fourth preset type from the word set to obtain a third subset; extract co-occurring words of the updated current leaf node set from the third subset, obtain the target leaf node set corresponding to the matching tree based on the co-occurring words of the updated current leaf node set, and generate a matching tree.
[0113] In one embodiment, the above-mentioned device also includes a mapping relationship establishment module, which is used to determine the disease data corresponding to the matching path where each target leaf node on the matching tree is located, and establish a mapping relationship between the matching path and its corresponding disease data.
[0114] In one embodiment, the matching forest generation module is also used to obtain the encoding of all disease data corresponding to each root node, and obtain a first encoding set corresponding to each root node; obtain the encoding of all disease data corresponding to each word in the first subset, and obtain a second encoding set corresponding to each word in the first subset; when the first encoding set corresponding to the root node and the second encoding set corresponding to the word have an intersection, the word is determined to be a co-occurring word corresponding to the root node.
[0115] In one embodiment, the first matching module 504 is used to search for synonyms corresponding to each root node from a pre-established synonym library when the words in the word segmentation result do not match any root node; match the words in the word segmentation result with the synonyms, and select the target root node as the current node according to the synonym matching result.
[0116] In one embodiment, the first matching module 504 is used to obtain the mutually exclusive weight corresponding to each root node from a pre-established mutually exclusive vocabulary when there are multiple successfully matched root nodes and the multiple successfully matched root nodes are mutually exclusive, and use the root node with a larger weight as the target root node; when there are multiple successfully matched root nodes and the multiple successfully matched root nodes are not mutually exclusive, use the multiple successfully matched root nodes as the target root nodes.
[0117] For the specific definition of the disease data mapping device, please refer to the definition of the disease data mapping method above, which will not be repeated here. Each module in the above-mentioned disease data mapping device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0118] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 6 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store various disease data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a disease data mapping method is implemented.
[0119] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0120] In one embodiment, a computer device is provided, including a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program: obtaining disease data to be mapped, segmenting the disease data to be mapped, and obtaining a segmentation result; matching the words in the segmentation result with the root node of each matching tree in the matching forest, and selecting a target root node as the current node according to the root node matching result; when the current node has a corresponding next-level child node, matching the words in the segmentation result with the next-level child node; selecting the target child node as the current node according to the child node matching result, and entering the step of matching the words in the segmentation result with the next-level child node when the current node has a corresponding next-level child node; when the current node does not have a corresponding next-level child node, determining the matching path where the current node is located, and obtaining the target disease data according to the matching path.
[0121] In one embodiment, before matching the words in the word segmentation results with the root nodes of each matching tree in the matching forest, the processor also implements the following steps when executing the computer program: segmenting each disease data in a predetermined base table library, obtaining a word set according to the word segmentation results corresponding to each disease data, and obtaining the word type to which each word in the word set belongs; extracting multiple words of the first preset type from the word set as the root nodes of the matching tree respectively; generating multiple matching trees according to the root nodes to obtain a matching forest.
[0122] In one embodiment, multiple matching trees are generated based on the root node to obtain a matching forest, including: extracting words of a second preset type from a word set to obtain a first subset; extracting co-occurring words corresponding to the root node from the first subset to obtain a current leaf node set corresponding to the matching tree; extracting words of a third preset type from the word set to obtain a second subset; extracting co-occurring words of the current leaf node set from the second subset to update the current leaf node set corresponding to the matching tree; extracting words of a fourth preset type from the word set to obtain a third subset; extracting co-occurring words of the updated current leaf node set from the third subset, obtaining a target leaf node set corresponding to the matching tree based on the co-occurring words of the updated current leaf node set, and generating a matching tree.
[0123] In one embodiment, a target leaf node set corresponding to a matching tree is obtained based on the co-occurring words of the updated current leaf node set. After the matching tree is generated, the processor also implements the following steps when executing the computer program: determining the disease data corresponding to the matching path where each target leaf node on the matching tree is located, and establishing a mapping relationship between the matching path and its corresponding disease data.
[0124] In one embodiment, co-occurring words corresponding to the root node are extracted from the first subset, including: obtaining the encoding of all disease data corresponding to each root node, and obtaining a first encoding set corresponding to each root node; obtaining the encoding of all disease data corresponding to each word in the first subset, and obtaining a second encoding set corresponding to each word in the first subset; when the first encoding set corresponding to the root node and the second encoding set corresponding to the word have an intersection, the word is determined to be a co-occurring word corresponding to the root node.
[0125] In one embodiment, the words in the word segmentation result are matched with the root nodes of each matching tree in the matching forest, and the target root node is selected as the current node according to the root node matching result, including: when the words in the word segmentation result do not match any root node, searching for synonyms corresponding to each root node from a pre-established synonym library; matching the words in the word segmentation result with synonyms, and selecting the target root node as the current node according to the synonym matching result.
[0126] In one embodiment, the words in the word segmentation results are matched with the root nodes of each matching tree in the matching forest, and the target root node is selected as the current node according to the root node matching results, including: when there are multiple successfully matched root nodes and the multiple successfully matched root nodes are mutually exclusive, the mutually exclusive weight corresponding to each root node is obtained from a pre-established mutually exclusive vocabulary, and the root node with a larger weight is used as the target root node; when there are multiple successfully matched root nodes and the multiple successfully matched root nodes are not mutually exclusive, the multiple successfully matched root nodes are used as the target root nodes.
[0127] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: obtaining disease data to be mapped, segmenting the disease data to be mapped, and obtaining a segmentation result; matching the words in the segmentation result with the root node of each matching tree in the matching forest, and selecting a target root node as the current node according to the root node matching result; when the current node has a corresponding next-level child node, matching the words in the segmentation result with the next-level child node; selecting a target child node as the current node according to the child node matching result, and entering the step of matching the words in the segmentation result with the next-level child node when the current node has a corresponding next-level child node; when the current node does not have a corresponding next-level child node, determining the matching path where the current node is located, and obtaining the target disease data according to the matching path.
[0128] In one embodiment, before matching the words in the word segmentation results with the root nodes of each matching tree in the matching forest, the computer program also implements the following steps when executed by the processor: segmenting each disease data in a predetermined base table library, obtaining a word set according to the word segmentation results corresponding to each disease data, and obtaining the word type to which each word in the word set belongs; extracting multiple words of the first preset type from the word set as the root nodes of the matching tree respectively; generating multiple matching trees according to the root nodes to obtain a matching forest.
[0129] In one embodiment, multiple matching trees are generated based on the root node to obtain a matching forest, including: extracting words of a second preset type from a word set to obtain a first subset; extracting co-occurring words corresponding to the root node from the first subset to obtain a current leaf node set corresponding to the matching tree; extracting words of a third preset type from the word set to obtain a second subset; extracting co-occurring words of the current leaf node set from the second subset to update the current leaf node set corresponding to the matching tree; extracting words of a fourth preset type from the word set to obtain a third subset; extracting co-occurring words of the updated current leaf node set from the third subset, obtaining a target leaf node set corresponding to the matching tree based on the co-occurring words of the updated current leaf node set, and generating a matching tree.
[0130] In one embodiment, a target leaf node set corresponding to a matching tree is obtained based on the co-occurring words of an updated current leaf node set. After the matching tree is generated, the computer program also implements the following steps when executed by a processor: determining the disease data corresponding to a matching path where each target leaf node on the matching tree is located, and establishing a mapping relationship between the matching path and its corresponding disease data.
[0131] In one embodiment, co-occurring words corresponding to the root node are extracted from the first subset, including: obtaining the encoding of all disease data corresponding to each root node, and obtaining a first encoding set corresponding to each root node; obtaining the encoding of all disease data corresponding to each word in the first subset, and obtaining a second encoding set corresponding to each word in the first subset; when the first encoding set corresponding to the root node and the second encoding set corresponding to the word have an intersection, the word is determined to be a co-occurring word corresponding to the root node.
[0132] In one embodiment, the words in the word segmentation result are matched with the root nodes of each matching tree in the matching forest, and the target root node is selected as the current node according to the root node matching result, including: when the words in the word segmentation result do not match any root node, searching for synonyms corresponding to each root node from a pre-established synonym library; matching the words in the word segmentation result with synonyms, and selecting the target root node as the current node according to the synonym matching result.
[0133] In one embodiment, the words in the word segmentation results are matched with the root nodes of each matching tree in the matching forest, and the target root node is selected as the current node according to the root node matching results, including: when there are multiple successfully matched root nodes and the multiple successfully matched root nodes are mutually exclusive, the mutually exclusive weight corresponding to each root node is obtained from a pre-established mutually exclusive vocabulary, and the root node with a larger weight is used as the target root node; when there are multiple successfully matched root nodes and the multiple successfully matched root nodes are not mutually exclusive, the multiple successfully matched root nodes are used as the target root nodes.
[0134] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0135] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0136] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A disease data mapping method, the method comprising: Acquire disease data to be mapped, perform word segmentation on the disease data to be mapped, and obtain a word segmentation result; The disease data to be mapped refers to the disease name that needs to be mapped to the standard disease data in the predetermined base table library; Matching the words in the word segmentation result with the root node of each matching tree in the matching forest, and selecting the target root node as the current node according to the root node matching result; When the current node has a corresponding next-level child node, matching the words in the word segmentation result with the next-level child node; Selecting a target child node as the current node according to the child node matching result, and entering the step of matching the words in the word segmentation result with the next-level child node when the current node has a corresponding next-level child node; When the current node does not have a corresponding next-level child node, determining a matching path where the current node is located, and acquiring target disease data according to the matching path; Before matching the words in the word segmentation results with the root nodes of each matching tree in the matching forest, the method includes: performing word segmentation on each disease data in a predetermined base table library, obtaining a word set according to the word segmentation results corresponding to each disease data, and obtaining the word type to which each word in the word set belongs; A plurality of words of a first preset word type are extracted from the word set as root nodes of matching trees respectively; and a plurality of matching trees are generated according to the root nodes to obtain a matching forest.
2. The method according to claim 1, characterized in that The step of generating a plurality of matching trees according to the root node to obtain a matching forest includes: Extracting words of a second preset type from the word set to obtain a first subset; Extract the co-occurring words corresponding to the root node from the first subset to obtain a current leaf node set corresponding to the matching tree; Extracting words of a third preset type from the word set to obtain a second subset; Extracting co-occurring words of the current leaf node set from the second subset to update the current leaf node set corresponding to the matching tree; Extracting words of a fourth preset type from the word set to obtain a third subset; The co-occurring words of the updated current leaf node set are extracted from the third subset, and the target leaf node set corresponding to the matching tree is obtained according to the co-occurring words of the updated current leaf node set to generate a matching tree.
3. The method according to claim 2, characterized in that The method of obtaining the target leaf node set corresponding to the matching tree according to the co-occurring words of the updated current leaf node set and generating the matching tree comprises: Determine the disease data corresponding to the matching path where each target leaf node on the matching tree is located, and establish a mapping relationship between the matching path and the corresponding disease data.
4. The method according to claim 2, characterized in that: The extracting the co-occurring words corresponding to the root node from the first subset includes: Obtaining the codes of all disease data corresponding to each of the root nodes, and obtaining a first code set corresponding to each of the root nodes; Obtaining the codes of all disease data corresponding to each word in the first subset, and obtaining a second code set corresponding to each word in the first subset; When the first encoding set corresponding to the root node and the second encoding set corresponding to the word have an intersection, the word is determined to be a co-occurring word corresponding to the root node.
5. The method according to any one of claims 1 to 4, characterized in that: Matching the words in the word segmentation result with the root node of each matching tree in the matching forest, and selecting the target root node as the current node according to the root node matching result, including: When the words in the word segmentation result do not match any of the root nodes, searching for synonyms corresponding to each of the root nodes from a pre-established synonym library; The words in the word segmentation result are matched with the synonyms, and the target root node is selected as the current node according to the synonym matching result.
6. The method according to any one of claims 1 to 4, characterized in that: Matching the words in the word segmentation result with the root node of each matching tree in the matching forest, and selecting the target root node as the current node according to the root node matching result, including: When there are multiple successfully matched root nodes and the multiple successfully matched root nodes are mutually exclusive, the mutually exclusive weight corresponding to each root node is obtained from a pre-established mutually exclusive word library, and the root node with a larger weight is used as the target root node; When there are multiple successfully matched root nodes and there is no mutually exclusive relationship between the multiple successfully matched root nodes, the multiple successfully matched root nodes are used as target root nodes.
7. A disease data mapping device, characterized in that: The device comprises: A word segmentation result acquisition module is used to acquire disease data to be mapped, perform word segmentation on the disease data to be mapped, and obtain word segmentation results; the disease data to be mapped refers to the disease name that needs to be mapped to the standard disease data in the predetermined base table library; A first matching module is used to match the words in the word segmentation result with the root node of each matching tree in the matching forest, and select a target root node as the current node according to the root node matching result; A second matching module is used to match the words in the word segmentation result with the next-level child node when the current node has a corresponding next-level child node; A current node acquisition module, used for selecting a target child node as the current node according to the child node matching result, and entering the step of matching the words in the word segmentation result with the next-level child node when the current node has a corresponding next-level child node; A target disease data acquisition module, used for determining a matching path where the current node is located when there is no corresponding next-level child node of the current node, and acquiring target disease data according to the matching path; The device also includes: a matching forest generation module, which is used to segment each disease data in a predetermined base table library, obtain a word set according to the segmentation results corresponding to each disease data, and obtain the word type to which each word in the word set belongs; extract multiple words with a first preset word type from the word set as root nodes of the matching tree; generate multiple matching trees according to the root nodes to obtain a matching forest.
8. The device according to claim 7, characterized in that The matching forest generation module is also used to: extract words whose word type is the second preset type from the word set to obtain a first subset; extract co-occurring words corresponding to the root node from the first subset to obtain a current leaf node set corresponding to the matching tree; extract words whose word type is the third preset type from the word set to obtain a second subset; extract co-occurring words of the current leaf node set from the second subset to update the current leaf node set corresponding to the matching tree; extract words whose word type is the fourth preset type from the word set to obtain a third subset; extract co-occurring words of the updated current leaf node set from the third subset, obtain the target leaf node set corresponding to the matching tree based on the co-occurring words of the updated current leaf node set, and generate a matching tree.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
