Method, device, electronic device and medium for matching drug information and disease information
The vectors of drug and disease information are extracted through the pre-trained vector generation model, which solves the problems of low efficiency and high cost of matching drug information and disease information in the existing technology, and realizes automatic and efficient matching of drug and disease information.
Patent Information
- Application Number
- CN202010884321.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-28
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-08-28
AI Technical Summary
The existing technology is difficult to effectively match drug information and disease information, especially new disease terms and synonyms that are beyond the scope of drug instructions, and relies on manual maintenance of matching rules, which is inefficient and costly.
Use a pre-trained vector generation model to extract vectors of drug information and disease information, determine the matching relationship between drugs and diseases through vector similarity measurement, generate matching results, use historical data to optimize the model, and reduce manual maintenance costs.
It improves the generalization ability and efficiency of matching drug information and disease information, reduces manual maintenance costs, and realizes automated matching of drug and disease information.
Smart Images

Figure CN112309565B
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to methods, devices, electronic devices, and media for matching drug information and disease information. Background Art
[0002] With the development of Internet technology, the application of artificial intelligence technology in the field of smart medical care is becoming more and more extensive. In response to the massive amount of drug information and disease information, the existing technology is usually based on manually maintained matching rules or the description of indications in the drug instructions to match the disease information to be matched.
[0003] However, with the development of medical technology, relying solely on the above methods cannot solve problems such as determining drug-disease matching relationships that are beyond the scope of the instructions but are still reasonable, new disease terms that are not covered in the drug instructions, and disease synonyms. In addition, relying on manual maintenance of matching rules requires a lot of manpower and is inefficient. Summary of the invention
[0004] Embodiments of the present disclosure provide methods, devices, electronic devices, and media for matching drug information and disease information.
[0005] In a first aspect, an embodiment of the present disclosure provides a method for matching drug information and disease information, the method comprising: obtaining drug information to be matched and corresponding disease information to be matched; using a pre-trained vector generation model to extract drug vectors to be matched and disease vectors to be matched corresponding to the drug information to be matched and the disease information to be matched, respectively, wherein the vector generation model is trained based on training samples, and the training samples include a sequence consisting of drug information and disease information associated with the drug information; determining a similarity measure between the drug vector to be matched and the disease vector to be matched; and generating a matching result indicating whether the drug information to be matched and the disease information to be matched match according to the similarity measure.
[0006] In a second aspect, an embodiment of the present disclosure provides a device for matching drug information and disease information, the device comprising: an acquisition unit, configured to acquire drug information to be matched and corresponding disease information to be matched; an extraction unit, configured to extract drug vectors to be matched and disease vectors to be matched corresponding to the drug information to be matched and the disease information to be matched, respectively, using a pre-trained vector generation model, wherein the vector generation model is trained based on training samples, and the training samples include a sequence consisting of drug information and disease information associated with the drug information; a determination unit, configured to determine a similarity measure between the drug vector to be matched and the disease vector to be matched; and a first generation unit, configured to generate a matching result indicating whether the drug information to be matched and the disease information to be matched match according to the similarity measure.
[0007] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising: one or more processors; a storage device on which one or more programs are stored; when the one or more programs are executed by one or more processors, the one or more processors implement the method described in any implementation manner in the first aspect.
[0008] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the method described in any implementation manner in the first aspect.
[0009] The method, device, electronic device and medium for matching drug information and disease information provided by the embodiments of the present disclosure extract the drug vectors and disease vectors to be matched corresponding to the drug information to be matched and the disease information to be matched respectively through a pre-trained vector generation model, and determine whether the drug information to be matched and the corresponding disease information to be matched match through the similarity measurement between the vectors. Since the vector generation model is obtained through sequence training consisting of drug information and disease information associated with the drug information, it is possible to learn the matching relationship between drug information and disease information. It is achieved to match drug information and disease information using historical data rather than mechanically copying the drug instructions, thereby improving the generalization ability of the matching method. In addition, by continuously optimizing the vector generation model through learning from historical data, the manual maintenance cost is also reduced, and the matching efficiency of drug information and disease information is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Other features, objects and advantages of the present disclosure will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0011] Figure 1 is an exemplary system architecture diagram in which an embodiment of the present disclosure may be applied;
[0012] Figure 2 is a flow chart of an embodiment of a method for matching drug information and disease information according to the present disclosure;
[0013] Figure 3 is a schematic diagram of an application scenario of a method for matching drug information and disease information according to an embodiment of the present disclosure;
[0014] Figure 4 is a flow chart of another embodiment of a method for matching drug information and disease information according to the present disclosure;
[0015] Figure 5 is a structural schematic diagram of an embodiment of a device for matching drug information and disease information according to the present disclosure;
[0016] Figure 6 It is a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present disclosure. DETAILED DESCRIPTION
[0017] The present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.
[0018] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0019] Figure 1 An exemplary architecture 100 to which the method for matching drug information and condition information or the apparatus for matching drug information and condition information of the present disclosure can be applied is shown.
[0020] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0021] The terminal devices 101, 102, 103 interact with the server 105 via the network 104 to receive or send messages, etc. Various communication client applications may be installed on the terminal devices 101, 102, 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, database applications, prescription review applications, etc.
[0022] Terminal devices 101, 102, 103 can be hardware or software. When terminal devices 101, 102, 103 are hardware, they can be various electronic devices with display screens and supporting human-computer interaction, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, etc. When terminal devices 101, 102, 103 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, software or software modules used to provide distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.
[0023] The server 105 may be a server that provides various services, such as a background server that provides support for prescription review applications on the terminal devices 101, 102, and 103. The background server may analyze and process the received drug information to be matched and the corresponding symptom information to be matched, and generate a matching result indicating whether the drug information to be matched and the symptom information to be matched match, and may also feed back the generated matching result to the terminal device.
[0024] It should be noted that the server can be hardware or software. When the server is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the server is software, it can be implemented as multiple software or software modules (for example, software or software modules used to provide distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.
[0025] It should be noted that the method for matching drug information and symptom information provided in the embodiment of the present disclosure is generally executed by the server 105, and accordingly, the device for matching drug information and symptom information is generally set in the server 105. Optionally, under the condition of satisfying computing power, the method for matching drug information and symptom information provided in the embodiment of the present application can also be executed by the terminal devices 101, 102, 103, and accordingly, the device for matching drug information and symptom information can also be set in the terminal devices 101, 102, 103.
[0026] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0027] Continue to refer Figure 2 , shows a process 200 of an embodiment of a method for matching drug information and disease information according to the present disclosure. The method for matching drug information and disease information comprises the following steps:
[0028] Step 201, obtaining information on drugs to be matched and corresponding information on symptoms to be matched.
[0029] In this embodiment, the execution subject of the method for matching drug information and disease information (such as Figure 1 The server 105 shown in the figure can obtain the drug information to be matched and the corresponding disease information to be matched through a wired connection or a wireless connection. As an example, the execution subject can obtain the drug information to be matched and the corresponding disease information to be matched from a local or communication connected electronic device (such as a database server or Figure 1The terminal devices 101, 102, and 103 shown in the figure obtain the above-mentioned drug information to be matched and the corresponding disease information to be matched. Among them, the above-mentioned drug information to be matched may include various information for identifying the drug. It may include but is not limited to at least one of the following: the name of the drug, the abbreviation of the drug, and the drug identification code (such as the national drug code). The above-mentioned disease information to be matched may include various information for identifying the disease. It may include but is not limited to at least one of the following: the name of the disease, the abbreviation of the disease, the common name of the disease, and the code of the disease.
[0030] Step 202 : using a pre-trained vector generation model, extracting a drug vector to be matched and a disease vector to be matched corresponding to the drug information to be matched and the disease information to be matched, respectively.
[0031] In this embodiment, the execution subject may use a pre-trained vector generation model to extract the drug vectors to be matched and the disease vectors to be matched corresponding to the drug information to be matched and the disease information to be matched obtained in step 201. Specifically, the execution subject may input the drug information to be matched and the disease information to be matched obtained in step 201 into the pre-trained vector generation model to obtain the drug vectors to be matched and the disease vectors to be matched corresponding to the input drug information to be matched and the disease information to be matched. The vector generation model may be obtained by training based on training samples. The training samples may include a sequence consisting of drug information and disease information associated with the drug information. The association may include the existence of a treatment relationship, may include simultaneous appearances in historical prescriptions, and may include a relationship generated according to preset rules. As an example, the training samples may include "disease 1, drug x, drug y, disease 3", "drug m, disease 8, drug y, disease 4, disease 2".
[0032] In this embodiment, the execution subject of the method for training the above-mentioned vector generation model can first obtain an initial vector generation model. Among them, the above-mentioned initial vector generation model can include various deep neural networks (DNN) for vector generation. Then, the above-mentioned execution subject can obtain the training samples as described above. Afterwards, the above-mentioned execution subject can use machine learning to adjust the network parameters of the above-mentioned initial vector generation model using the above-mentioned training samples, and end the training when the training end conditions are met, so as to determine the model obtained after the parameter adjustment as the above-mentioned vector generation model. As an example, the above-mentioned initial vector generation model can be a word2vec model. Thus, the above-mentioned execution subject can use the above-mentioned training samples to train the above-mentioned vector generation model in a CBOW (Continuous Bag-of-Words Model) or Skip-gram (Continuous Skip-gram Model) manner.
[0033] In some optional implementations of this embodiment, the sequence consisting of the drug information and the disease information associated with the drug information is obtained by the following steps:
[0034] The first step is to obtain the preset drug-symptom graph structure.
[0035] In these implementations, the execution subject of the method for obtaining the above sequence can obtain the above preset drug-symptom graph structure from a local or communication-connected electronic device through a wired or wireless connection. The above drug-symptom graph structure may include drug information nodes, symptom information nodes, and edges representing the degree of association between nodes. The above degree of association can be used to indicate the association between the connected node entities.
[0036] Optionally, the degree of association between the above nodes may include at least one of the following: a similarity measure between drug classification codes corresponding to drug information nodes, a similarity measure between disease classification codes corresponding to disease information nodes, and a matching relationship between the disease indicated by the disease information node and the indication of the drug indicated by the drug information node. Among them, the above drug classification code may include but is not limited to at least one of the following: Anatomical Classification (AC) of the International Association for Medical Statistics, chemical drug (raw materials, preparations) classification and code (YY0252-97). The above disease classification code may include but is not limited to at least one of the following: TCM disease code, GB / T14396-2016 disease classification and code, TCM disease code. The above similarity measure may generally be compatible with the above classification code. The above drug classification code and disease classification code may also include vectors obtained by various word vector generation models. As an example, the above similarity measure may include edit distance, cosine similarity, cosine distance, etc. Optionally, the above similarity measure may be a normalized value, such as a value between 0 and 1.
[0037] Based on the above optional implementation method, the above execution entity can determine the degree of association between nodes according to the similarity measurement and the matching relationship, so that the above drug-symptom graph structure can represent richer association information.
[0038] Optionally, the above-mentioned drug classification code may include an ATC (Anatomical Therapeutic Chemical) code.
[0039] Optionally, the above-mentioned disease classification code may include an ICD code, wherein the above-mentioned ICD code may include but is not limited to at least one of the following: an ICD-10 disease code, an ICD-11 disease code.
[0040] Optionally, the matching relationship between the symptom indicated by the symptom information node and the indication of the drug indicated by the drug information node is obtained by the following steps:
[0041] S1. Obtain historical prescription information.
[0042] In these implementations, the execution subject may obtain the historical prescription information from a local or communication-connected electronic device (e.g., a database server) by wired or wireless connection. The historical prescription information may include historical drug information and at least one historical disease information. The number of the historical drug information and the historical disease information is not specifically limited. As an example, the historical prescription information may be, for example, "cold, cough, drug A, drug B, drug C".
[0043] S2. Obtain the disease classification code corresponding to at least one indication recorded in the drug instructions corresponding to the historical drug information.
[0044] In these implementations, the execution subject may obtain the disease classification code corresponding to at least one indication recorded in the drug instructions corresponding to the historical drug information obtained in step S1 in various ways. Specifically, the execution subject determines at least one indication recorded in the drug instructions corresponding to the historical drug information according to the correspondence table between the preset drug information and the indications recorded in the drug instructions. Afterwards, the execution subject may obtain the disease classification code corresponding to the at least one indication according to the disease classification coding rules. As an example, the indications recorded in the drug instructions of the above-mentioned drug A may be, for example, fever, headache, fatigue, and upper respiratory tract infection. The disease classification codes corresponding to the above indications may be, for example, "B99.X02", "G43.001", "R53.X02", "J06.903" (ICD-10 disease codes).
[0045] S3. Obtain the disease classification code corresponding to at least one historical disease information included in the historical prescription information.
[0046] In these implementations, the execution subject may obtain the disease classification code corresponding to at least one historical disease information included in the historical trigger information obtained in step S1 in various ways. The disease classification code is usually consistent with the coding rule of the disease classification code corresponding to the indication. As an example, the disease classification code corresponding to the cold and cough may be, for example, "J00.X03", "R05.X01" (ICD-10 disease code).
[0047] S4. According to the longest prefix matching rule, historical symptom information matching the symptom classification code corresponding to at least one indication is selected from the symptom classification codes corresponding to at least one acquired historical symptom information as target information.
[0048] In these implementations, the execution subject may select, according to the longest prefix matching rule, historical disease information that matches the disease classification code corresponding to at least one indication from the disease classification code corresponding to at least one historical disease information obtained in step S3 as target information. As an example, the execution subject may determine that the number of prefix matches between "R05.X01" and "R53.X02" is 1, and the number of prefix matches between "J00.X03" and "J06.903" is 2. Thus, the execution subject may select "cold" as target information.
[0049] Optionally, if the longest prefix matching number is 0, the execution entity may determine that there is no matching relationship between the historical drug information and the at least one historical disease information.
[0050] S5. Determine the relationship between the target information and the historical drug information as a matching relationship between the symptom indicated by the symptom information node and the indication of the drug indicated by the drug information node.
[0051] In these implementations, the execution subject may determine the relationship between the target information determined in step S4 and the historical drug information as a matching relationship between the symptom indicated by the symptom information node and the indication of the drug indicated by the drug information node. As an example, the execution subject may determine that the symptom information node representing a cold and the drug information node representing drug A have the matching relationship.
[0052] Based on the above optional implementation method, the above execution entity can extract the matching relationship between historical drug information and historical disease information from historical prescriptions, so as to determine whether there is a matching relationship between the diseases indicated by a large number of disease information nodes and the indications of the drugs indicated by the drug information nodes through a large number of historical prescriptions, thereby providing a data basis for the generation of a drug-symptom map.
[0053] In the second step, according to the degree of association indicated by the edges in the drug-symptom graph structure, a graph search algorithm is used to generate at least one path corresponding to the drug-symptom graph structure.
[0054] In these implementations, according to the degree of association indicated by the edges in the drug-symptom graph structure, the execution subject generates at least one path corresponding to the drug-symptom graph structure using various graph search algorithms. The graph search algorithm may include, for example, depth first search (DFS), breadth first search (BFS), etc. Optionally, the path may also be a subset of the path obtained by the traversal algorithm.
[0055] Optionally, according to the degree of association indicated by the edges in the drug-symptom graph structure, the execution subject may also generate at least one path corresponding to the drug-symptom graph structure by using a graph search algorithm through the following steps:
[0056] S1. Obtain a preset sequence length.
[0057] In these implementations, the execution subject may obtain a preset sequence length from a local or communication-connected electronic device. The preset sequence length may be a value preset by a technician, such as 5. Optionally, the number of paths generated may also be preset, such as 100.
[0058] S2. Generate at least one path corresponding to the drug-symptom graph structure using a random walk algorithm.
[0059] In these implementations, the above-mentioned execution entity can use a random walk algorithm to generate at least one path corresponding to the drug disease graph structure. Among them, the number of nodes included in the path in the above-mentioned at least one path is consistent with the above-mentioned preset sequence length. As an example, the above-mentioned execution entity can first randomly select a node in the above-mentioned drug disease graph structure, and use the degree of association indicated by the edge in the above-mentioned drug disease graph structure as a weight to select the next node, and so on, to obtain a path corresponding to the drug disease graph structure. Repeating the above steps can generate multiple paths corresponding to the drug disease graph structure.
[0060] The third step is to generate a sequence consisting of the drug information indicated by the drug information nodes included in the drug-symptom graph structure and the symptom information indicated by the symptom information nodes associated with the drug information nodes based on the at least one generated path.
[0061] In these implementations, based on the at least one generated path, the execution subject may generate a sequence consisting of the drug information indicated by the drug information node included in the drug-symptom graph structure and the symptom information indicated by the symptom information node associated with the drug information node. The number of nodes included in the sequence is usually consistent with the preset sequence length obtained in step S1.
[0062] It should be noted that the execution entity of the method for obtaining the above sequence, the execution entity of the method for matching drug information and disease information, and the execution entity for training the above vector generation model may be the same or different, and are not limited here.
[0063] Step 203: determine the similarity measure between the to-be-matched drug vector and the to-be-matched disease vector.
[0064] In this embodiment, the execution subject may determine the similarity measure between the drug vector to be matched and the disease vector to be matched extracted in step 202 in various ways. The similarity measure may include but is not limited to at least one of the following: cosine similarity and cosine distance.
[0065] Step 204: Generate a matching result indicating whether the to-be-matched drug information and the to-be-matched disease information match based on the similarity measurement.
[0066] In this embodiment, according to the similarity metric determined in step 203, the execution subject may generate a matching result indicating whether the drug information to be matched and the symptom information to be matched match in various ways. As an example, in response to determining that the similarity indicated by the similarity metric is greater than a preset threshold, a matching result indicating that the drug information to be matched and the symptom information to be matched match is generated. As another example, in response to determining that the similarity indicated by the similarity metric is not greater than a preset threshold, a matching result indicating that the drug information to be matched and the symptom information to be matched do not match is generated.
[0067] Continue to see Figure 3 , Figure 3 FIG. 1 is a schematic diagram of an application scenario of a method for matching drug information and disease information according to an embodiment of the present disclosure. Figure 3 In the application scenario, user 301 uses terminal 302 to send "XX medicine" and "abdominal pain" 304 to the backend server 303 as the drug information to be matched and the disease information to be matched. After the backend server 303 obtains the above-mentioned "XX medicine" and "abdominal pain" 304, it uses the pre-trained vector generation model to extract the drug vector and the disease vector 305 as the drug vector to be matched and the disease vector to be matched corresponding to the drug information to be matched and the disease information to be matched, respectively. Next, the backend server 303 can determine the similarity between the generated drug vector and the disease vector 305 as a similarity metric, for example, 0.83 (such as Figure 3 306). Afterwards, the backend server 303 may generate a matching result 307 indicating that the drug information and the symptom information match according to the similarity being greater than a preset threshold (e.g., 0.75). Optionally, the backend server 303 may also send the matching result 307 to the terminal device 302 so that the user 301 may be informed of the matching result.
[0068] At present, one of the existing technologies is usually to match the description of indications in the instructions of the drug based on manually maintained matching rules or the instructions of the drug with the information of the symptoms to be matched. The matching accuracy is often not high due to the complexity of matching rule maintenance and the difficulty of timely updating. The method provided by the above-mentioned embodiment of the present disclosure extracts the drug vector to be matched and the disease vector to be matched corresponding to the drug information to be matched and the disease information to be matched respectively through a pre-trained vector generation model, and determines whether the drug information to be matched and the corresponding disease information to be matched match through the similarity measurement between the vectors. It realizes the matching of drug information and disease information by using historical data instead of mechanically copying the drug instructions, thereby improving the generalization ability of the matching method. In addition, by continuously optimizing the vector generation model through learning from historical data, the manual maintenance cost is also reduced, and the matching efficiency of drug information and disease information is improved.
[0069] Further references Figure 4 , which shows a process 400 of another embodiment of a method for matching drug information and disease information. The process 400 of the method for matching drug information and disease information includes the following steps:
[0070] Step 401, obtaining prescription information to be reviewed.
[0071] In this embodiment, the execution subject (eg Figure 1 The server 105 shown in the figure can obtain the prescription information to be reviewed through a wired connection or a wireless connection. The above prescription information may include drug information to be matched and symptom information to be matched. As an example, the above execution subject may obtain the above prescription information to be reviewed from a local or communication-connected electronic device (such as a terminal device used by a physician). The above prescription information to be reviewed may include at least one drug information to be matched and at least one symptom information to be matched.
[0072] Step 402 : using a pre-trained vector generation model, extracting a drug vector to be matched and a disease vector to be matched corresponding to the drug information to be matched and the disease information to be matched, respectively.
[0073] Step 403: determine the similarity measure between the to-be-matched drug vector and the to-be-matched disease vector.
[0074] Step 404: Generate a matching result indicating whether the to-be-matched drug information and the to-be-matched disease information match based on the similarity measurement.
[0075] The above steps 402, 403 and 404 are respectively consistent with steps 202, 203 and 204 and their optional implementations in the aforementioned embodiment. The above descriptions of steps 202, 203, 204 and their optional implementations are also applicable to steps 402, 403 and 404, and will not be repeated here.
[0076] In some optional implementations of this embodiment, the above execution subject may continue to perform the following steps:
[0077] In the first step, for each piece of drug information to be matched included in the prescription information to be reviewed, a matching result is generated between the drug information to be matched and each piece of disease information to be matched included in the prescription information to be reviewed.
[0078] In these implementations, for each piece of drug information to be matched included in the prescription information to be reviewed, the above-mentioned execution entity can repeatedly execute the above-mentioned method for matching drug information and disease information, thereby generating a matching result between each piece of drug information to be matched and each piece of disease information to be matched included in the prescription information to be reviewed.
[0079] Optionally, the execution subject may also select only the similarity metric representing the maximum similarity for each drug information to be matched and compare it with a preset threshold. If it is greater than the preset threshold, the execution subject may generate a matching result representing that the drug information to be matched matches the symptom information to be matched corresponding to the selected similarity metric. If it is not greater than the preset threshold, the execution subject may generate a matching result representing that the drug information to be matched does not match the symptom information to be matched corresponding to the selected similarity metric.
[0080] The second step is to generate information indicating whether the prescription review has passed based on the generated matching results.
[0081] In these implementations, based on the generated matching results, the above-mentioned execution entity may generate information representing whether the prescription review has been passed in various ways. As an example, the above-mentioned execution entity may determine the number of matching results representing the matching of the drug information to be matched with the disease information to be matched corresponding to the selected similarity metric. Then, the above-mentioned execution entity may determine the ratio between the above-mentioned number and the total number of matching results generated. Thereafter, in response to determining that the above-mentioned ratio is greater than a preset ratio threshold, the above-mentioned execution entity may generate information representing that the prescription review has been passed. In response to determining that the above-mentioned ratio is not greater than the preset ratio threshold, the above-mentioned execution entity may generate information representing that the prescription review has not been passed.
[0082] Based on the above optional implementation method, the above execution entity can determine whether the prescription review is passed according to the match between the drug information and the disease information, thereby reducing the manpower cost of prescription review and improving the review efficiency.
[0083] Optionally, based on the generated matching results, the execution entity may also generate information indicating whether the prescription information to be reviewed has been reviewed through the following steps:
[0084] S1. For each piece of drug information to be matched included in the prescription information to be reviewed, in response to determining that there is a matching result indicating a match in the matching results between the drug information to be matched and each piece of disease information to be matched included in the prescription information to be reviewed, generate indication information representing that a therapeutic relationship exists between the drug information to be matched and the disease information to be matched corresponding to the matching result indicating a match.
[0085] In these implementations, for each piece of drug information to be matched included in the prescription information to be reviewed, the execution subject may first obtain the matching results corresponding to each piece of drug information to be matched included in the prescription information to be reviewed from the first step. Then, in response to determining that there is a matching result indicating a match among the matching results between the drug information to be matched and each piece of symptom information to be matched included in the prescription information to be reviewed, the execution subject may generate indication information indicating that there is a therapeutic relationship between the drug information to be matched and the symptom information to be matched corresponding to the matching result indicating a match.
[0086] S2. In response to determining that the number of drug information to be matched included in the prescription information to be reviewed is not greater than the number of the generated indication information, generate information indicating that the prescription information to be reviewed has been reviewed.
[0087] In these implementations, in response to determining that the number of drug information to be matched included in the prescription information to be reviewed is not greater than the number of indication information generated in the above step S2, the above execution entity may generate information indicating that the prescription information to be reviewed has been reviewed.
[0088] Based on the above optional implementation method, it can be ensured as much as possible that there is a therapeutic relationship between the drug indicated by the drug information in the prescription information to be reviewed and the disease indicated by the disease information, thereby improving the accuracy of prescription review.
[0089] from Figure 4 As can be seen, the process 400 of the method for matching drug information and symptom information in this embodiment embodies the steps of obtaining prescription information to be reviewed including drug information to be matched and symptom information to be matched. Therefore, the solution described in this embodiment can automatically review whether the drug in the prescription matches the symptom, thereby improving the efficiency of prescription review.
[0090] Further references Figure 5 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a device for matching drug information and disease information. Figure 2 or Figure 4 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0091] like Figure 5As shown, the apparatus 500 for matching drug information and symptom information provided in this embodiment includes an acquisition unit 501, an extraction unit 502, a determination unit 503 and a first generation unit 504. The acquisition unit 501 is configured to acquire drug information to be matched and corresponding symptom information to be matched; the extraction unit 502 is configured to extract drug vectors to be matched and symptom vectors to be matched corresponding to the drug information to be matched and the symptom information to be matched respectively using a pre-trained vector generation model, wherein the vector generation model is trained based on training samples, and the training samples include a sequence consisting of drug information and symptom information associated with the drug information; the determination unit is configured to determine a similarity measure between the drug vector to be matched and the symptom vector to be matched; and the first generation unit is configured to generate a matching result indicating whether the drug information to be matched and the symptom information to be matched match according to the similarity measure.
[0092] In the device 500 for matching drug information and disease information, the specific processing of the acquisition unit 501, the extraction unit 502, the determination unit 503 and the first generation unit 504 and the technical effects thereof can be referred to in detail. Figure 2 The relevant descriptions of step 201, step 202, step 203 and step 204 in the corresponding embodiment are not repeated here.
[0093] In some optional implementations of the present embodiment, the extraction unit 502 may include an acquisition subunit (not shown in the figure), a first generation subunit (not shown in the figure), and a second generation subunit (not shown in the figure). Among them, the acquisition subunit may be configured to acquire a preset drug-symptom graph structure. Among them, the drug-symptom graph structure may include drug information nodes, symptom information nodes, and edges that characterize the degree of association between the nodes. The first generation subunit may be configured to generate at least one path corresponding to the drug-symptom graph structure using a graph search algorithm according to the degree of association indicated by the edges in the drug-symptom graph structure. The second generation subunit may be configured to generate a sequence consisting of drug information indicated by the drug information nodes included in the drug-symptom graph structure and symptom information indicated by the symptom information nodes associated with the drug information nodes according to the at least one path generated.
[0094] In some optional implementations of this embodiment, the degree of association between the above-mentioned nodes may include at least one of the following: a similarity measure between the drug classification codes corresponding to the drug information nodes, a similarity measure between the symptom classification codes corresponding to the symptom information nodes, and a matching relationship between the symptoms indicated by the symptom information nodes and the indications of the drugs indicated by the drug information nodes.
[0095] In some optional implementations of this embodiment, the above-mentioned drug classification code may include an ATC code.
[0096] In some optional implementations of this embodiment, the above-mentioned disease classification code may include an ICD code.
[0097] In some optional implementations of this embodiment, the acquisition subunit may include: a first acquisition module (not shown in the figure), a second acquisition module (not shown in the figure), a third acquisition module (not shown in the figure), a selection module (not shown in the figure), and a determination module (not shown in the figure). The first acquisition module may be configured to acquire historical prescription information. The historical prescription information may include historical drug information and at least one historical disease information. The second acquisition module may be configured to acquire the disease classification code corresponding to at least one indication recorded in the drug instructions corresponding to the historical drug information. The second acquisition module may be configured to acquire the disease classification code corresponding to at least one historical disease information included in the historical prescription information. The selection module may be configured to select the historical disease information that matches the disease classification code corresponding to at least one indication from the disease classification code corresponding to the acquired at least one historical disease information as the target information according to the longest prefix matching rule. The determination module may be configured to determine the relationship between the target information and the historical drug information as the matching relationship between the disease indicated by the disease information node and the indication of the drug indicated by the drug information node.
[0098] In some optional implementations of this embodiment, the first generating subunit may include: a fourth acquisition module (not shown in the figure), and a generation module (not shown in the figure). The fourth acquisition module may be configured to obtain a preset sequence length. The generation module may be configured to generate at least one path corresponding to the drug-symptom graph structure using a random walk algorithm. The number of nodes included in the path in the at least one path may be consistent with the preset sequence length.
[0099] In some optional implementations of this embodiment, the acquisition unit 501 may be further configured to: acquire prescription information to be reviewed, wherein the prescription information may include drug information to be matched and disease information to be matched.
[0100] In some optional implementations of this embodiment, the device 500 for matching drug information and symptom information may further include: a second generation unit (not shown in the figure) and a third generation unit (not shown in the figure). The second generation unit may be configured to generate a matching result between each drug information to be matched included in the prescription information to be reviewed and each symptom information to be matched included in the prescription information to be reviewed. The third generation unit may be configured to generate information indicating whether the prescription information to be reviewed has been reviewed and approved based on the generated matching result.
[0101] In some optional implementations of the present embodiment, the third generation unit may include: a third generation subunit (not shown in the figure) and a fourth generation subunit (not shown in the figure). The third generation subunit may be configured to generate, for each drug information to be matched included in the prescription information to be reviewed, indication information representing that a therapeutic relationship exists between the drug information to be matched and the disease information to be matched corresponding to the matching result indicating a match, in response to determining that the number of drug information to be matched included in the prescription information to be reviewed is not greater than the number of indication information generated, information representing that the prescription information to be reviewed has been reviewed.
[0102] In the device provided by the above-mentioned embodiment of the present disclosure, the extraction unit 502 uses the pre-trained vector generation model to extract the drug vector to be matched and the disease vector to be matched corresponding to the drug information to be matched and the disease information to be matched respectively obtained by the acquisition unit 501, and generates a matching result representing whether the drug information to be matched and the corresponding disease information to be matched match according to the similarity measure between the vectors determined by the determination unit 503 through the generation unit 504. Since the vector generation model is obtained by training a sequence consisting of drug information and disease information associated with the drug information, it is possible to learn the matching relationship between drug information and disease information. Thus, it is possible to match drug information and disease information using historical data rather than mechanically copying the drug instructions, thereby improving the generalization ability of the matching method. In addition, by continuously optimizing the vector generation model through learning historical data, the manual maintenance cost is also reduced, and the matching efficiency of drug information and disease information is improved.
[0103] Reference below Figure 6 , which shows an electronic device (eg, Figure 1The terminal device in the embodiment of the present disclosure may include but is not limited to a mobile terminal such as a mobile phone, a notebook computer, etc. and a fixed terminal such as a digital TV, a desktop computer, etc. Figure 6 The server shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0104] like Figure 6 As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0105] Typically, the following devices may be connected to the I / O interface 605: input devices 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 608 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 6 Each block shown in the figure may represent one device, or may represent multiple devices as required.
[0106] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0107] It should be noted that the computer-readable medium described in the embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), 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 above. In the embodiments of the present disclosure, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device. In the embodiments of the present disclosure, the computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0108] The computer-readable medium may be included in the electronic device; or it may exist independently without being installed in the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains the drug information to be matched and the corresponding symptom information to be matched; uses a pre-trained vector generation model to extract the drug vector to be matched and the symptom vector to be matched corresponding to the drug information to be matched and the symptom information to be matched, respectively, wherein the vector generation model is trained based on training samples, and the training samples include a sequence consisting of drug information and symptom information associated with the drug information; determines the similarity measure between the drug vector to be matched and the symptom vector to be matched; and generates a matching result indicating whether the drug information to be matched and the symptom information to be matched match according to the similarity measure.
[0109] Computer program code for performing the operations of embodiments of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on a user's computer, partially on a user's computer, as a separate software package, partially on a user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0110] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0111] The units involved in the embodiments described in the present disclosure may be implemented by software or by hardware. The described units may also be provided in a processor, for example, may be described as: a processor comprising an acquisition unit, an extraction unit, a determination unit, and a first generation unit. The names of these units do not, in certain cases, constitute limitations on the units themselves, for example, the acquisition unit may also be described as a "unit for acquiring drug information to be matched and corresponding symptom information to be matched".
[0112] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) to form a technical solution.
Claims
1. A method for matching drug information and disease information, include: Acquire drug information to be matched and corresponding symptom information to be matched, wherein the drug information to be matched is used to identify the drug, and the symptom information to be matched is used to identify the symptom; A pre-trained vector generation model is used to extract the drug vector to be matched and the disease vector to be matched corresponding to the drug information to be matched and the disease information to be matched, respectively, wherein the vector generation model is trained based on training samples, and the training samples include a sequence consisting of drug information and disease information associated with the drug information, and the association includes at least one of the following: the existence of a therapeutic relationship, the co-occurrence in historical prescriptions, and the relationship generated according to a preset rule; Determining a similarity measure between the to-be-matched drug vector and the to-be-matched disease vector; generating a matching result indicating whether the to-be-matched drug information and the to-be-matched disease information match according to the similarity measurement; Among them, the sequence consisting of drug information and disease information associated with the drug information is obtained by the following steps: obtaining a preset drug-symptom graph structure, wherein the drug-symptom graph structure includes drug information nodes, disease information nodes and edges representing the degree of association between nodes; generating at least one path corresponding to the drug-symptom graph structure using a graph search algorithm according to the degree of association indicated by the edges in the drug-symptom graph structure; and generating a sequence consisting of drug information indicated by the drug information nodes included in the drug-symptom graph structure and disease information indicated by the disease information nodes associated with the drug information nodes according to the generated at least one path.
2. The method according to claim 1, in, The degree of association between the nodes includes at least one of the following: a similarity measure between drug classification codes corresponding to drug information nodes, a similarity measure between symptom classification codes corresponding to symptom information nodes, and a matching relationship between the symptom indicated by the symptom information node and the indication of the drug indicated by the drug information node.
3. The method according to claim 2, in, The drug classification code includes the ATC code.
4. The method according to claim 2, in, The disease classification code includes the ICD code.
5. The method according to claim 2, in, The matching relationship between the symptom indicated by the symptom information node and the indication of the drug indicated by the drug information node is obtained by the following steps: Acquiring historical prescription information, wherein the historical prescription information includes historical drug information and at least one historical disease information; Obtaining the disease classification code corresponding to at least one indication recorded in the drug instructions corresponding to the historical drug information; Obtaining a disease classification code corresponding to at least one piece of historical disease information included in the historical prescription information; According to the longest prefix matching rule, selecting, from the acquired at least one historical symptom information's corresponding symptom classification code, the historical symptom information that matches the symptom classification code corresponding to the at least one indication as the target information; The relationship between the target information and the historical drug information is determined as a matching relationship between the disease indicated by the disease information node and the indication of the drug indicated by the drug information node.
6. The method according to claim 1, in, The step of generating at least one path corresponding to the drug-symptom graph structure by using a graph search algorithm according to the association degree indicated by the edge in the drug-symptom graph structure comprises: Get the preset sequence length; At least one path corresponding to the drug-symptom graph structure is generated using a random walk algorithm, wherein the number of nodes included in the at least one path is consistent with the preset sequence length.
7. The method according to any one of claims 1 to 6, in, The obtaining of the to-be-matched drug information and the corresponding to-be-matched disease information includes: Obtain prescription information to be reviewed, wherein the prescription information includes drug information to be matched and disease information to be matched.
8. The method according to claim 7, in, The method further comprises: For each piece of drug information to be matched included in the prescription information to be reviewed, generating a matching result between the drug information to be matched and each piece of disease information to be matched included in the prescription information to be reviewed; Based on the generated matching results, information is generated indicating whether the prescription information to be reviewed has been reviewed.
9. The method according to claim 8, in, The information indicating whether the prescription information to be reviewed has been reviewed and approved is generated according to the generated matching result, including: For each piece of drug information to be matched included in the prescription information to be reviewed, in response to determining that there is a matching result indicating a match in the matching results between the drug information to be matched and each piece of disease information to be matched included in the prescription information to be reviewed, generating indication information indicating that there is a therapeutic relationship between the drug information to be matched and the disease information to be matched corresponding to the matching result indicating a match; In response to determining that the number of drug information to be matched included in the prescription information to be reviewed is not greater than the number of the generated indication information, information indicating that the prescription information to be reviewed has been reviewed and approved is generated.
10. A device for matching drug information and disease information, include: an acquisition unit, configured to acquire drug information to be matched and corresponding disease information to be matched, wherein the drug information to be matched is used to identify the drug, and the disease information to be matched is used to identify the disease; an extraction unit, configured to extract the to-be-matched drug vector and the to-be-matched disease vector corresponding to the to-be-matched drug information and the to-be-matched disease information, respectively, using a pre-trained vector generation model, wherein the vector generation model is trained based on training samples, the training samples include a sequence consisting of drug information and disease information associated with the drug information, and the association includes at least one of the following: a therapeutic relationship, co-occurrence in historical prescriptions, and a relationship generated according to a preset rule; a determination unit configured to determine a similarity measure between the to-be-matched drug vector and the to-be-matched disease vector; A first generating unit is configured to generate a matching result indicating whether the to-be-matched drug information and the to-be-matched disease information match according to the similarity measurement; Among them, the sequence consisting of drug information and disease information associated with the drug information is obtained by the following steps: obtaining a preset drug-symptom graph structure, wherein the drug-symptom graph structure includes drug information nodes, disease information nodes and edges representing the degree of association between nodes; generating at least one path corresponding to the drug-symptom graph structure using a graph search algorithm according to the degree of association indicated by the edges in the drug-symptom graph structure; and generating a sequence consisting of drug information indicated by the drug information nodes included in the drug-symptom graph structure and disease information indicated by the disease information nodes associated with the drug information nodes according to the generated at least one path.
11. An electronic device, include: one or more processors; a storage device having one or more programs stored thereon; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 9.
12. A computer readable medium having a computer program stored thereon, in, When the program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
