Medical text search method, device, computer equipment and storage medium

By using a two-way long short-term memory network and conditional random fields in the medical text search method for medical named entity recognition and matching score calculation, the problem of difficult medical text search is solved and efficient and accurate medical text search is achieved.

CN111581337BActive Publication Date: 2024-10-29PING AN TECH (SHENZHEN) CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202010195666.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-03-19
Publication Date
2024-10-29
Estimated Expiration
2040-03-19

AI Technical Summary

Technical Problem

The huge amount of medical texts makes it difficult to discover and obtain useful information in the massive literature, and it is difficult for existing technologies to provide efficient search tools.

Method used

This paper proposes a medical text search method that obtains and preprocesses medical text, uses a two-way long short-term memory network and conditional random fields to identify medical named entities, and performs expansion and matching score calculation according to the user's search request, returning the highest matching score. Candidate text.

Benefits of technology

It improves the accuracy of medical text search, can effectively search for matching information from a large number of medical texts, and improves user query efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111581337B_ABST
    Figure CN111581337B_ABST
Patent Text Reader

Abstract

The present invention provides a medical text search method and related equipment. The method obtains multiple medical texts; performs medical named entity recognition on each medical text in the multiple medical texts to obtain multiple medical named entities of each medical text; receives a search request from a requesting party; expands the text to be searched; performs medical named entity recognition on the expanded text to be searched; searches multiple medical texts for multiple candidate medical texts whose medical named entities match the expanded text to be searched, whose sources and types match the text to be searched, and whose publishing time is later than the limit time of the text to be searched; calculates the matching scores of multiple candidate medical texts according to the position serial numbers of the medical named entities of the multiple candidate medical texts and the multiple medical named entities of the expanded text to be searched; and returns a preset number of candidate medical texts with the highest matching scores to the requesting party. The present invention improves the accuracy of medical text search.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of entity recognition, and in particular to a medical text search method, device, computer equipment and computer storage medium. Background Art

[0002] The knowledge contained in medical texts is of great significance to biomedical medical practice, teaching and scientific research. However, the huge amount of medical texts makes it increasingly difficult for people to find and obtain these useful information in the massive literature collection. Therefore, accurate search tools for massive medical texts have become an urgent need for relevant personnel. Summary of the invention

[0003] In view of the above, it is necessary to propose a medical text search method, apparatus, computer device and computer storage medium, which can identify drugs in drug sentences to be identified.

[0004] A first aspect of the present application provides a medical text search method, the method comprising:

[0005] Obtain multiple medical texts, each of which includes the release time, source, type, title, abstract and text content, and each medical text has a corresponding link address;

[0006] Performing medical named entity recognition on the title, abstract, and text content of each of the multiple medical texts to obtain multiple medical named entities of each medical text, each medical named entity having a corresponding position serial number;

[0007] receiving a search request from a requesting party, the search request including a text to be searched, a time limit for the text to be searched, a type of the text to be searched, and a target source of the text to be searched;

[0008] Expanding the text to be searched to obtain an expanded text to be searched;

[0009] Performing medical named entity recognition on the expanded text to be searched to obtain multiple medical named entities of the expanded text to be searched;

[0010] Searching the multiple medical texts for multiple candidate medical texts whose medical named entities match the medical named entities of the expanded text to be searched, whose sources and types match the text to be searched, and whose publishing times are later than the time limit of the text to be searched;

[0011] Calculating matching scores of the plurality of candidate medical texts according to the position serial numbers of the medical named entities of the plurality of candidate medical texts and the plurality of medical named entities of the expanded text to be searched;

[0012] A preset number of candidate medical texts with the highest matching scores are returned to the requesting party.

[0013] In another possible implementation, performing medical named entity recognition on the title, abstract, and body content of each of the multiple medical texts includes:

[0014] The title, abstract, and body of each medical text are preprocessed by sentence segmentation, duplication removal, and error correction to obtain the preprocessed text content;

[0015] Convert each sentence in the preprocessed text content into a vector sequence;

[0016] Input the vector sequence corresponding to each sentence into the trained first bidirectional long short-term memory network to obtain the feature vector sequence of the sentence, and input the feature vector sequence of the sentence into the trained first conditional random field to obtain the label sequence of the sentence;

[0017] Medical named entities are identified according to the tag sequence of each sentence in the preprocessed text content.

[0018] In another possible implementation, before performing medical named entity recognition on the title, abstract, and body content of each of the multiple medical texts, the method further includes:

[0019] Obtaining a medical training sentence and a label vector sequence of the medical training sentence;

[0020] Converting the medical training sentences into vector sequences;

[0021] Inputting the vector sequence of the medical training sentences into the first bidirectional long short-term memory network to obtain a feature vector sequence of the medical training sentences, and inputting the feature vector sequence of the medical training sentences into the first conditional random field to obtain a label sequence of the medical training sentences;

[0022] The weights and bias values ​​of the hidden layers of the first bidirectional long short-term memory network and the first conditional random field are adjusted by the gradient descent method according to the label vector sequence and the mark sequence of the medical training sentence.

[0023] In another possible implementation, the expanding the text to be searched includes:

[0024] Performing word segmentation processing on the text to be searched to obtain multiple target words;

[0025] Determining a synonym set for each target word in the plurality of words;

[0026] In the text to be searched, each target word is replaced with a word in the synonym set of the target word, and the text to be searched after each replacement is determined as an expanded text to be searched.

[0027] In another possible implementation, determining a synonym set for each target word in the plurality of words includes:

[0028] Searching for synonyms of the target word from a preset synonym dictionary; and / or

[0029] Obtaining historical search information, and determining synonyms of the target term from medical texts marked in the historical search information; and / or

[0030] The target word is deleted from the text to be searched to obtain a matching template for the target word, the matching template is searched from the multiple medical texts, and the word corresponding to the target word in the sentence where the matching template is found is determined as a synonym of the target word, wherein the position of the target word in the matching template is consistent with the position of the word corresponding to the target word in the found matching template.

[0031] In another possible implementation, performing medical named entity recognition on the expanded text to be searched includes:

[0032] Preprocessing the expanded text to be searched to obtain the preprocessed expanded text to be searched;

[0033] Convert each sentence in the preprocessed and expanded text to be searched into a vector sequence;

[0034] Input the vector sequence corresponding to each sentence into the trained second bidirectional long short-term memory network to obtain the feature vector sequence of the sentence, and input the feature vector sequence of the sentence into the trained second conditional random field to obtain the label sequence of the sentence;

[0035] Medical named entities are identified according to the tag sequence of each sentence in the preprocessed text content.

[0036] In another possible implementation, the calculating the matching scores of the multiple candidate medical texts according to the position serial numbers of the medical named entities of the multiple candidate medical texts and the multiple medical named entities of the expanded text to be searched includes:

[0037] For the i-th medical text among the multiple candidate medical texts, 1≤i≤n, n is the number of the multiple candidate medical texts, and the position weight W of the i-th medical text is determined according to the position sequence number of the medical named entity in the i-th medical text that is consistent with the multiple medical named entities in the expanded text to be searched.i :

[0038]

[0039] Among them, m i is the number of medical named entities in the i-th medical text that are consistent with the multiple medical named entities in the expanded text to be searched, O i,j Indicates the position number of the jth medical named entity in the i-th medical text, E i,1 represents the set of position numbers of the title of the i-th medical text, E i,2 represents the set of position numbers of the abstracts located in the i-th medical text, E i,3 represents the set of position numbers of the head and tail sentences in the main text of the i-th medical text, E i,4 A set of position numbers representing non-head and tail sentences in the main body of the i-th medical text, where d1, d2, d3 and d4 are preset values;

[0040] Calculate the length matching degree l of the i-th medical text according to the medical named entity of the i-th medical text and the medical named entity of the expanded text to be searched. i :

[0041]

[0042] Among them, C i represents the number of medical named entities in the i-th medical text that are consistent with the medical named entities in the expanded text to be searched, A i represents the number of medical named entities in the i-th medical text, and B represents the number of medical named entities in the expanded text to be searched;

[0043] Search the target text whose words are consistent with the words of the expanded text to be searched from the i-th medical text, and calculate the reverse order number G between the target text and the expanded text to be searched i , according to the reverse number G i Calculate the word order similarity s of the i-th medical text with the expanded text to be searched i :

[0044]

[0045] Wherein, F represents the number of words in the expanded text to be searched;

[0046] The matching score P of the ith medical text is calculated based on the position weight, length matching and word order similarity of the ith medical text. i :

[0047] P i=W i (w i,1 l i +w i,2 s i )

[0048] Among them, w i,1 and w i,2 The preset weights.

[0049] A second aspect of the present application provides a medical text search device, the device comprising:

[0050] The acquisition module is used to acquire multiple medical texts, each of which includes the release time, source, type, title, abstract and text content, and each medical text has a corresponding link address;

[0051] A first recognition module is used to perform medical named entity recognition on the title, abstract, and text content of each of the multiple medical texts to obtain multiple medical named entities of each medical text, each of which has a corresponding position serial number;

[0052] A receiving module, configured to receive a search request from a requesting party, wherein the search request includes a text to be searched, a time limit for the text to be searched, a type of the text to be searched, and a target source of the text to be searched;

[0053] An expansion module, used for expanding the text to be searched to obtain the expanded text to be searched;

[0054] A second recognition module is used to perform medical named entity recognition on the expanded text to be searched, to obtain multiple medical named entities of the expanded text to be searched;

[0055] A search module, configured to search the plurality of medical texts for a plurality of candidate medical texts whose medical named entities match the medical named entities of the expanded text to be searched, whose sources and types match the text to be searched, and whose publishing time is later than the limit time of the text to be searched;

[0056] A calculation module, used for calculating the matching scores of the plurality of candidate medical texts according to the position serial numbers of the medical named entities of the plurality of candidate medical texts and the plurality of medical named entities of the expanded text to be searched;

[0057] The return module is used to return a preset number of candidate medical texts with the highest matching scores to the requesting party.

[0058] In another possible implementation, performing medical named entity recognition on the title, abstract, and body content of each of the multiple medical texts includes:

[0059] The title, abstract, and body of each medical text are preprocessed by sentence segmentation, duplication removal, and error correction to obtain the preprocessed text content;

[0060] Convert each sentence in the preprocessed text content into a vector sequence;

[0061] Input the vector sequence corresponding to each sentence into the trained first bidirectional long short-term memory network to obtain the feature vector sequence of the sentence, and input the feature vector sequence of the sentence into the trained first conditional random field to obtain the label sequence of the sentence;

[0062] Medical named entities are identified according to the tag sequence of each sentence in the preprocessed text content.

[0063] In another possible implementation, the medical text search device also includes a training module, which is used to obtain medical training sentences and label vector sequences of the medical training sentences before performing medical named entity recognition on the title, abstract, and main content of each medical text in the multiple medical texts; convert the medical training sentences into vector sequences; input the vector sequence of the medical training sentences into the first bidirectional long short-term memory network to obtain a feature vector sequence of the medical training sentences, and input the feature vector sequence of the medical training sentences into the first conditional random field to obtain a label sequence of the medical training sentences; and adjust the weights and bias values ​​of the hidden layers of the first bidirectional long short-term memory network and the first conditional random field according to the label vector sequence and label sequence of the medical training sentences by gradient descent method.

[0064] In another possible implementation, the expanding the text to be searched includes:

[0065] Performing word segmentation processing on the text to be searched to obtain multiple target words;

[0066] Determining a synonym set for each target word in the plurality of words;

[0067] In the text to be searched, each target word is replaced with a word in the synonym set of the target word, and the text to be searched after each replacement is determined as an expanded text to be searched.

[0068] In another possible implementation, determining a synonym set for each target word in the plurality of words includes:

[0069] Searching for synonyms of the target word from a preset synonym dictionary; and / or

[0070] Obtaining historical search information, and determining synonyms of the target term from medical texts marked in the historical search information; and / or

[0071] The target word is deleted from the text to be searched to obtain a matching template for the target word, the matching template is searched from the multiple medical texts, and the word corresponding to the target word in the sentence where the matching template is found is determined as a synonym of the target word, wherein the position of the target word in the matching template is consistent with the position of the word corresponding to the target word in the found matching template.

[0072] In another possible implementation, performing medical named entity recognition on the expanded text to be searched includes:

[0073] Preprocessing the expanded text to be searched to obtain the preprocessed expanded text to be searched;

[0074] Convert each sentence in the preprocessed and expanded text to be searched into a vector sequence;

[0075] Input the vector sequence corresponding to each sentence into the trained second bidirectional long short-term memory network to obtain the feature vector sequence of the sentence, and input the feature vector sequence of the sentence into the trained second conditional random field to obtain the label sequence of the sentence;

[0076] Medical named entities are identified according to the tag sequence of each sentence in the preprocessed text content.

[0077] In another possible implementation, the calculating the matching scores of the multiple candidate medical texts according to the position serial numbers of the medical named entities of the multiple candidate medical texts and the multiple medical named entities of the expanded text to be searched includes:

[0078] For the i-th medical text among the multiple candidate medical texts, 1≤i≤n, n is the number of the multiple candidate medical texts, and the position weight W of the i-th medical text is determined according to the position sequence number of the medical named entity in the i-th medical text that is consistent with the multiple medical named entities in the expanded text to be searched. i :

[0079]

[0080] Among them, m i is the number of medical named entities in the i-th medical text that are consistent with the multiple medical named entities in the expanded text to be searched, O i,j Indicates the position number of the jth medical named entity in the i-th medical text, E i,1 represents the set of position numbers of the title of the i-th medical text, E i,2 represents the set of position numbers of the abstracts located in the i-th medical text, Ei,3 represents the set of position numbers of the head and tail sentences in the main text of the i-th medical text, E i,4 A set of position numbers representing non-head and tail sentences in the main body of the i-th medical text, where d1, d2, d3 and d4 are preset values;

[0081] Calculate the length matching degree l of the i-th medical text according to the medical named entity of the i-th medical text and the medical named entity of the expanded text to be searched. i :

[0082]

[0083] Among them, C i represents the number of medical named entities in the i-th medical text that are consistent with the medical named entities in the expanded text to be searched, A i represents the number of medical named entities in the i-th medical text, and B represents the number of medical named entities in the expanded text to be searched;

[0084] Search the target text whose words are consistent with the words of the expanded text to be searched from the i-th medical text, and calculate the reverse order number G between the target text and the expanded text to be searched i , according to the reverse number G i Calculate the word order similarity s of the i-th medical text with the expanded text to be searched i :

[0085]

[0086] Wherein, F represents the number of words in the expanded text to be searched;

[0087] The matching score P of the ith medical text is calculated based on the position weight, length matching and word order similarity of the ith medical text. i :

[0088] P i =W i (w i,1 l i +w i,2 s i )

[0089] Among them, w i,1 and w i,2 The preset weights.

[0090] A third aspect of the present application provides a computer device, the computer device comprising a processor, the processor being configured to implement the medical text search method when executing a computer program stored in a memory.

[0091] A fourth aspect of the present application provides a computer storage medium having a computer program stored thereon, wherein the computer program implements the medical text search method when executed by a processor.

[0092] The present invention realizes searching for matching medical texts from a medical text set according to user input, thereby improving the accuracy of medical text search. BRIEF DESCRIPTION OF THE DRAWINGS

[0093] Figure 1 It is a flow chart of the medical text search method provided by an embodiment of the present invention.

[0094] Figure 2 It is a structural diagram of a medical text search device provided in an embodiment of the present invention.

[0095] Figure 3 It is a schematic diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0096] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.

[0097] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. The embodiments described are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0098] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.

[0099] Preferably, the medical text search method of the present invention is applied in one or more computer devices. The computer device is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), digital signal processors (DSP), embedded devices, etc.

[0100] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.

[0101] Embodiment 1

[0102] Figure 1 The flowchart of the medical text search method provided in the first embodiment of the present invention is shown in FIG. The medical text search method is applied to a computer device and is used to search for matching medical texts from a medical text set according to user input.

[0103] like Figure 1 As shown, the medical text search method includes:

[0104] 101. Obtain multiple medical texts, each of which includes release time, source, type, title, abstract and text content, and each medical text has a corresponding link address.

[0105] In a specific embodiment, the medical text may be a web page, which may be directly searched and obtained from the network or captured from the network by a web crawler. Each web page may include the publishing time of the web page, the source of the web page, the type of content of the web page, the title, abstract and text content of the web page, etc.

[0106] Through web crawler technology, tens of billions of web page information on the Internet can be saved locally. Specifically, the crawler code program simulates the browser to send a medical text request to the network server, so that the medical text is read from the network stream and saved locally. In addition, based on the relevant information extraction rules, the required information is extracted from the crawled information. Preferably, the specified crawler program is deployed through the Docker container as a medium to crawl medical texts. The crawled websites include the specified public websites and the websites searched by the search engine.

[0107] The sources of the medical text may include the Chinese Medical Association, the Chinese Physician Association, the Chinese Anti-Cancer Association, etc. The types of the medical text may include guidelines, consensus, specifications, etc.

[0108] The link address corresponding to the medical text may indicate the storage path of the medical text; the medical text may be located and obtained through the link address corresponding to the medical text.

[0109] In another embodiment, the type of the medical text may also include department types such as internal medicine, surgery, and gynecology.

[0110] 102. Perform medical named entity recognition on the title, abstract, and text content of each of the multiple medical texts to obtain multiple medical named entities of each medical text, each of which has a corresponding position serial number.

[0111] In a specific embodiment, performing medical named entity recognition on the title, abstract, and body content of each of the multiple medical texts includes:

[0112] (1) The title, abstract, and main text of each medical text are preprocessed by sentence segmentation, duplication removal, and error correction to obtain the preprocessed text content.

[0113] The title, abstract, and main text of each medical text can be preprocessed by sentence segmentation, deduplication, and error correction.

[0114] (2) Convert each sentence in the preprocessed text content into a vector sequence.

[0115] Each sentence can be segmented into words or characters. Multiple words in each sentence are converted into word vectors through a trained word embedding model; or multiple characters in each sentence are converted into word vectors through a trained word embedding model. The word vectors of each sentence are combined in word order to obtain the vector sequence of the sentence, or the word vectors of each sentence are combined in character order to obtain the vector sequence of the sentence.

[0116] (3) Input the vector sequence corresponding to each sentence into the trained first bidirectional long short-term memory network to obtain the feature vector sequence of the sentence, and input the feature vector sequence of the sentence into the trained first conditional random field to obtain the label sequence of the sentence.

[0117] The first bidirectional long short-term memory network can extract the semantic information of the sentence and the context information of each word (or character) in the sentence, and pass the extracted information to the first conditional random field in the form of a feature vector sequence, and classify each word (or character) in the sentence through the conditional random field to obtain a label sequence of the sentence.

[0118] (4) Identify medical named entities based on the tag sequence of each sentence in the preprocessed text content.

[0119] Medical named entities can include diseases, symptoms, and drugs, etc.

[0120] For example, a sentence in a medical text is "Diabetes is one of the main chronic diseases that endangers human physical and mental health" and the tag sequence is "B-1I-1E-1O OOOOOOOOOOOOOOOOOOO", then the medical named entity of this sentence is the disease "diabetes". Among them, "B-1" represents the beginning word of the disease (1 represents the disease, 2 represents the symptoms, and 3 represents the medicine), "I-1" represents the middle word of the disease, "E-1" represents the last word of the disease, and "O" represents other words (words that are not named entities).

[0121] In another embodiment, before performing medical named entity recognition on the title, abstract, and body content of each of the plurality of medical texts, the method further includes:

[0122] Obtaining a medical training sentence and a label vector sequence of the medical training sentence;

[0123] Converting the medical training sentences into vector sequences;

[0124] Inputting the vector sequence of the medical training sentences into the first bidirectional long short-term memory network to obtain a feature vector sequence of the medical training sentences, and inputting the feature vector sequence of the medical training sentences into the first conditional random field to obtain a label sequence of the medical training sentences;

[0125] According to the label vector sequence and the tag sequence of the medical training sentence, the weights and bias values ​​of the hidden layers of the first bidirectional long short-term memory network and the first conditional random field are adjusted by the gradient descent method;

[0126] The above steps are executed in a loop to obtain the trained first bidirectional long short-term memory network and the trained first conditional random field.

[0127] 103 , receiving a search request from a requesting party, wherein the search request includes text to be searched, a time limit for the text to be searched, a type of the text to be searched, and a target source of the text to be searched.

[0128] In a specific embodiment, the text to be searched can be filtered by the time limit of the text to be searched, the type of the text to be searched, and the target source of the text to be searched. For example, the text to be searched is "diabetes treatment", the time limit of the text to be searched is "2019", the type of the text to be searched is "guidelines", and the target source of the text to be searched is "Chinese Medical Association".

[0129] 104 , expanding the text to be searched to obtain an expanded text to be searched.

[0130] In a specific embodiment, the expanding the text to be searched includes:

[0131] Performing word segmentation processing on the text to be searched to obtain multiple target words;

[0132] Determining a synonym set for each target word in the plurality of words;

[0133] In the text to be searched, each target word is replaced with a word in the synonym set of the target word, and the text to be searched after each replacement is determined as an expanded text to be searched.

[0134] In another embodiment, determining a synonym set for each target word in the plurality of words comprises:

[0135] Searching for synonyms of the target word from a preset synonym dictionary; and / or

[0136] Obtaining historical search information, and determining synonyms of the target term from medical texts marked in the historical search information; and / or

[0137] The target word is deleted from the text to be searched to obtain a matching template for the target word, the matching template is searched from the multiple medical texts, and the word corresponding to the target word in the sentence where the matching template is found is determined as a synonym of the target word, wherein the position of the target word in the matching template is consistent with the position of the word corresponding to the target word in the found matching template.

[0138] 105 , performing medical named entity recognition on the expanded text to be searched to obtain a plurality of medical named entities of the expanded text to be searched.

[0139] In a specific embodiment, performing medical named entity recognition on the expanded text to be searched includes:

[0140] Preprocessing the expanded text to be searched to obtain the preprocessed expanded text to be searched;

[0141] Convert each sentence in the preprocessed and expanded text to be searched into a vector sequence;

[0142] Input the vector sequence corresponding to each sentence into the trained second bidirectional long short-term memory network to obtain the feature vector sequence of the sentence, and input the feature vector sequence of the sentence into the trained second conditional random field to obtain the label sequence of the sentence;

[0143] Medical named entities are identified according to the tag sequence of each sentence in the preprocessed text content.

[0144] 106 , searching the multiple medical texts for multiple candidate medical texts whose medical named entities match the medical named entities of the expanded text to be searched, whose sources and types match the text to be searched, and whose publishing times are later than the time limit of the text to be searched.

[0145] For example, you can search the multiple medical texts for multiple candidate medical texts whose medical named entities match the medical named entities of the expanded text to be searched (such as diabetes, hyperglycemia, etc.), whose sources (such as the Chinese Medical Association) and types (such as guidelines) match the text to be searched, and whose publication time is later than the limit time of the text to be searched (such as 2019).

[0146] 107 , calculating matching scores of the multiple candidate medical texts according to the position serial numbers of the medical named entities of the multiple candidate medical texts and the multiple medical named entities of the expanded text to be searched.

[0147] In a specific embodiment, the calculating the matching scores of the multiple candidate medical texts according to the position serial numbers of the medical named entities of the multiple candidate medical texts and the multiple medical named entities of the expanded text to be searched includes:

[0148] For the i-th medical text among the multiple candidate medical texts, 1≤i≤n, n is the number of the multiple candidate medical texts, and the position weight W of the i-th medical text is determined according to the position sequence number of the medical named entity in the i-th medical text that is consistent with the multiple medical named entities in the expanded text to be searched. i :

[0149]

[0150] Among them, m i is the number of medical named entities in the i-th medical text that are consistent with the multiple medical named entities in the expanded text to be searched, O i,j Indicates the position number of the jth medical named entity in the i-th medical text, E i,1 represents the set of position numbers of the title of the i-th medical text, E i,2 represents the set of position numbers of the abstracts located in the i-th medical text, E i,3 represents the set of position numbers of the head and tail sentences in the main text of the i-th medical text, E i,4 A set of position numbers representing non-head and tail sentences in the main body of the i-th medical text, where d1, d2, d3 and d4 are preset values;

[0151] Calculate the length matching degree l of the i-th medical text according to the medical named entity of the i-th medical text and the medical named entity of the expanded text to be searched. i:

[0152]

[0153] Among them, C i represents the number of medical named entities in the i-th medical text that are consistent with the medical named entities in the expanded text to be searched, A i represents the number of medical named entities in the i-th medical text, and B represents the number of medical named entities in the expanded text to be searched;

[0154] Search the target text whose words are consistent with the words of the expanded text to be searched from the i-th medical text, and calculate the reverse order number G between the target text and the expanded text to be searched i , according to the reverse number G i Calculate the word order similarity s of the i-th medical text with the expanded text to be searched i :

[0155]

[0156] Wherein, F represents the number of words in the expanded text to be searched;

[0157] The matching score P of the ith medical text is calculated based on the position weight, length matching and word order similarity of the ith medical text. i :

[0158] P i =W i (w i,1 l i +w i,2 s i )

[0159] Among them, w i,1 and w i,2 The preset weights.

[0160] Specifically, d1>d2>d3>d4, d1, d2, d3, d4 can be 4, 3, 2, 1 respectively; w i,1 、w i,2 The values ​​can be 0.5 and 0.5 respectively.

[0161] 108. Return a preset number of candidate medical texts with the highest matching scores to the requesting party.

[0162] In a specific embodiment, summaries of a preset number of candidate medical texts with the highest matching scores and corresponding link addresses may be returned to the requesting party.

[0163] For example, the summaries of the five candidate medical texts with the highest matching scores and the corresponding link addresses may be returned to the requesting party, so that the requesting party can obtain more detailed information with a higher matching degree by clicking the link address.

[0164] The medical text search method of the first embodiment searches for matching medical texts from a medical text set according to user input, thereby improving the accuracy of medical text search.

[0165] Embodiment 2

[0166] Figure 2 2 is a structural diagram of a medical text search device provided in Embodiment 2 of the present invention. The medical text search device 20 is applied to a computer device. The medical text search device 20 is used to search for matching medical texts from a medical text set according to user input.

[0167] like Figure 2 As shown, the medical text search device 20 may include an acquisition module 201 , a first recognition module 202 , a receiving module 203 , an expansion module 204 , a second recognition module 205 , a search module 206 , a calculation module 207 , and a return module 208 .

[0168] The acquisition module 201 is used to acquire multiple medical texts, each of which includes the release time, source, type, title, abstract and text content, and each medical text has a corresponding link address.

[0169] In a specific embodiment, the medical text may be a web page, which may be directly searched and obtained from the network or captured from the network by a web crawler. Each web page may include the publishing time of the web page, the source of the web page, the type of content of the web page, the title, abstract and text content of the web page, etc.

[0170] Through web crawler technology, tens of billions of web page information on the Internet can be saved locally. Specifically, the crawler code program simulates the browser to send a medical text request to the network server, so that the medical text is read from the network stream and saved locally. In addition, based on the relevant information extraction rules, the required information is extracted from the crawled information. Preferably, the specified crawler program is deployed through the Docker container as a medium to crawl medical texts. The crawled websites include the specified public websites and the websites searched by the search engine.

[0171] The sources of the medical text may include the Chinese Medical Association, the Chinese Physician Association, the Chinese Anti-Cancer Association, etc. The types of the medical text may include guidelines, consensus, specifications, etc.

[0172] The link address corresponding to the medical text may indicate the storage path of the medical text; the medical text may be located and obtained through the link address corresponding to the medical text.

[0173] In another embodiment, the type of the medical text may also include department types such as internal medicine, surgery, and gynecology.

[0174] The first recognition module 202 is used to perform medical named entity recognition on the title, abstract, and text content of each medical text in the multiple medical texts to obtain multiple medical named entities for each medical text, each medical named entity having a corresponding position serial number.

[0175] In a specific embodiment, performing medical named entity recognition on the title, abstract, and body content of each of the multiple medical texts includes:

[0176] (1) The title, abstract, and main text of each medical text are preprocessed by sentence segmentation, duplication removal, and error correction to obtain the preprocessed text content.

[0177] The title, abstract, and main text of each medical text can be preprocessed by sentence segmentation, deduplication, and error correction.

[0178] (2) Convert each sentence in the preprocessed text content into a vector sequence.

[0179] Each sentence can be segmented into words or characters. Multiple words in each sentence are converted into word vectors through a trained word embedding model; or multiple characters in each sentence are converted into word vectors through a trained word embedding model. The word vectors of each sentence are combined in word order to obtain the vector sequence of the sentence, or the word vectors of each sentence are combined in character order to obtain the vector sequence of the sentence.

[0180] (3) Input the vector sequence corresponding to each sentence into the trained first bidirectional long short-term memory network to obtain the feature vector sequence of the sentence, and input the feature vector sequence of the sentence into the trained first conditional random field to obtain the label sequence of the sentence.

[0181] The first bidirectional long short-term memory network can extract the semantic information of the sentence and the context information of each word (or character) in the sentence, and pass the extracted information to the first conditional random field in the form of a feature vector sequence, and classify each word (or character) in the sentence through the conditional random field to obtain a label sequence of the sentence.

[0182] (4) Identify medical named entities based on the tag sequence of each sentence in the preprocessed text content.

[0183] Medical named entities can include diseases, symptoms, and drugs, etc.

[0184] For example, a sentence in a medical text is "Diabetes is one of the main chronic diseases that endangers human physical and mental health" and the tag sequence is "B-1 I-1 E-1 OOOOOOOOOOOOOOOOOO", then the medical named entity of this sentence is the disease "diabetes". Among them, "B-1" represents the beginning word of the disease (1 represents the disease, 2 represents the symptoms, and 3 represents the medicine), "I-1" represents the middle word of the disease, "E-1" represents the last word of the disease, and "O" represents other words (words that are not named entities).

[0185] In another embodiment, before performing medical named entity recognition on the title, abstract, and body content of each of the plurality of medical texts, the method further includes:

[0186] Obtaining a medical training sentence and a label vector sequence of the medical training sentence;

[0187] Converting the medical training sentences into vector sequences;

[0188] Inputting the vector sequence of the medical training sentences into the first bidirectional long short-term memory network to obtain a feature vector sequence of the medical training sentences, and inputting the feature vector sequence of the medical training sentences into the first conditional random field to obtain a label sequence of the medical training sentences;

[0189] According to the label vector sequence and the tag sequence of the medical training sentence, the weights and bias values ​​of the hidden layers of the first bidirectional long short-term memory network and the first conditional random field are adjusted by the gradient descent method;

[0190] The above steps are executed in a loop to obtain the trained first bidirectional long short-term memory network and the trained first conditional random field.

[0191] The receiving module 203 is used to receive a search request from a requesting party, wherein the search request includes a text to be searched, a time limit for the text to be searched, a type of the text to be searched, and a target source of the text to be searched.

[0192] In a specific embodiment, the text to be searched can be filtered by the time limit of the text to be searched, the type of the text to be searched, and the target source of the text to be searched. For example, the text to be searched is "diabetes treatment", the time limit of the text to be searched is "2019", the type of the text to be searched is "guidelines", and the target source of the text to be searched is "Chinese Medical Association".

[0193] The expansion module 204 is used to expand the text to be searched to obtain the expanded text to be searched.

[0194] In a specific embodiment, the expanding the text to be searched includes:

[0195] Performing word segmentation processing on the text to be searched to obtain multiple target words;

[0196] Determining a synonym set for each target word in the plurality of words;

[0197] In the text to be searched, each target word is replaced with a word in the synonym set of the target word, and the text to be searched after each replacement is determined as an expanded text to be searched.

[0198] In another embodiment, determining a synonym set for each target word in the plurality of words comprises:

[0199] Searching for synonyms of the target word from a preset synonym dictionary; and / or

[0200] Obtaining historical search information, and determining synonyms of the target term from medical texts marked in the historical search information; and / or

[0201] The target word is deleted from the text to be searched to obtain a matching template for the target word, the matching template is searched from the multiple medical texts, and the word corresponding to the target word in the sentence where the matching template is found is determined as a synonym of the target word, wherein the position of the target word in the matching template is consistent with the position of the word corresponding to the target word in the found matching template.

[0202] The second recognition module 205 is used to perform medical named entity recognition on the expanded text to be searched, and obtain multiple medical named entities of the expanded text to be searched.

[0203] In a specific embodiment, performing medical named entity recognition on the expanded text to be searched includes:

[0204] Preprocessing the expanded text to be searched to obtain the preprocessed expanded text to be searched;

[0205] Convert each sentence in the preprocessed and expanded text to be searched into a vector sequence;

[0206] Input the vector sequence corresponding to each sentence into the trained second bidirectional long short-term memory network to obtain the feature vector sequence of the sentence, and input the feature vector sequence of the sentence into the trained second conditional random field to obtain the label sequence of the sentence;

[0207] Medical named entities are identified according to the tag sequence of each sentence in the preprocessed text content.

[0208] The search module 206 is used to search among the multiple medical texts for multiple candidate medical texts whose medical named entities match the medical named entities of the expanded text to be searched, whose sources and types match the text to be searched, and whose publishing time is later than the limit time of the text to be searched.

[0209] For example, you can search the multiple medical texts for multiple candidate medical texts whose medical named entities match the medical named entities of the expanded text to be searched (such as diabetes, hyperglycemia, etc.), whose sources (such as the Chinese Medical Association) and types (such as guidelines) match the text to be searched, and whose publication time is later than the limit time of the text to be searched (such as 2019).

[0210] The calculation module 207 is used to calculate the matching scores of the multiple candidate medical texts according to the position serial numbers of the medical named entities of the multiple candidate medical texts and the multiple medical named entities of the expanded text to be searched.

[0211] In a specific embodiment, the calculating the matching scores of the multiple candidate medical texts according to the position serial numbers of the medical named entities of the multiple candidate medical texts and the multiple medical named entities of the expanded text to be searched includes:

[0212] For the i-th medical text among the multiple candidate medical texts, 1≤i≤n, n is the number of the multiple candidate medical texts, and the position weight W of the i-th medical text is determined according to the position sequence number of the medical named entity in the i-th medical text that is consistent with the multiple medical named entities in the expanded text to be searched. i :

[0213]

[0214] Among them, m i is the number of medical named entities in the i-th medical text that are consistent with the multiple medical named entities in the expanded text to be searched, O i,j Indicates the position number of the jth medical named entity in the i-th medical text, E i,1 represents the set of position numbers of the title of the i-th medical text, E i,2 represents the set of position numbers of the abstracts located in the i-th medical text, E i,3 represents the set of position numbers of the head and tail sentences in the main text of the i-th medical text, E i,4 A set of position numbers representing non-head and tail sentences in the main body of the i-th medical text, where d1, d2, d3 and d4 are preset values;

[0215] Calculate the length matching degree l of the i-th medical text according to the medical named entity of the i-th medical text and the medical named entity of the expanded text to be searched. i :

[0216]

[0217] Among them, C i represents the number of medical named entities in the i-th medical text that are consistent with the medical named entities in the expanded text to be searched, A i represents the number of medical named entities in the i-th medical text, and B represents the number of medical named entities in the expanded text to be searched;

[0218] Search the target text whose words are consistent with the words of the expanded text to be searched from the i-th medical text, and calculate the reverse order number G between the target text and the expanded text to be searched i , according to the reverse number G i Calculate the word order similarity s of the i-th medical text with the expanded text to be searched i :

[0219]

[0220] Wherein, F represents the number of words in the expanded text to be searched;

[0221] The matching score P of the ith medical text is calculated based on the position weight, length matching and word order similarity of the ith medical text. i :

[0222] P i =W i (w i,1 l i +w i,2 s i )

[0223] Among them, w i,1 and w i,2 The preset weights.

[0224] Specifically, d1>d2>d3>d4, d1, d2, d3, d4 can be 4, 3, 2, 1 respectively; w i,1 、w i,2 The values ​​can be 0.5 and 0.5 respectively.

[0225] The return module 208 is used to return a preset number of candidate medical texts with the highest matching scores to the requesting party.

[0226] In a specific embodiment, summaries of a preset number of candidate medical texts with the highest matching scores and corresponding link addresses may be returned to the requesting party.

[0227] For example, the summaries of the five candidate medical texts with the highest matching scores and the corresponding link addresses may be returned to the requesting party, so that the requesting party can obtain more detailed information with a higher matching degree by clicking the link address.

[0228] Embodiment 2 searches for matching medical texts from a medical text set according to user input, thereby improving the accuracy of medical text search.

[0229] Embodiment 3

[0230] This embodiment provides a computer storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned medical text search method embodiment are implemented, such as Figure 1 Steps 101-108 are shown.

[0231] Alternatively, when the computer program is executed by a processor, the functions of each module in the above-mentioned device embodiment are realized, for example Figure 2 Modules 201-208 in.

[0232] Embodiment 4

[0233] Figure 3 Schematic diagram of a computer device provided in Embodiment 3 of the present invention. The computer device 30 includes a memory 301, a processor 302, and a computer program 303 stored in the memory 301 and executable on the processor 302, such as a medical text search program. When the processor 302 executes the computer program 303, the steps in the above-mentioned medical text search method embodiment are implemented, such as Figure 1 101-108 shown.

[0234] Alternatively, when the computer program is executed by a processor, the functions of each module in the above-mentioned device embodiment are realized, for example Figure 2 Modules 201-208 in.

[0235] Exemplarily, the computer program 303 may be divided into one or more modules, which are stored in the memory 301 and executed by the processor 302 to complete the method. The one or more modules may be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program 303 in the computer device 30. For example, the computer program 303 may be divided into Figure 2The acquisition module 201, the first identification module 202, the receiving module 203, the expansion module 204, the second identification module 205, the search module 206, the calculation module 207, and the return module 208 in the embodiment, the specific functions of each module refer to the second embodiment.

[0236] Those skilled in the art will understand that the Figure 3 It is only an example of the computer device 30 and does not constitute a limitation of the computer device 30. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the computer device 30 may also include input and output devices, network access devices, buses, etc.

[0237] The processor 302 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor 302 may also be any conventional processor, etc. The processor 302 is the control center of the computer device 30, and uses various interfaces and lines to connect various parts of the entire computer device 30.

[0238] The memory 301 can be used to store the computer program 303. The processor 302 implements various functions of the computer device 30 by running or executing the computer program or module stored in the memory 301 and calling the data stored in the memory 301. The memory 301 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the computer device 30, etc. In addition, the memory 301 can include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices.

[0239] If the module integrated in the computer device 30 is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the process in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer storage medium, and the computer program can implement the steps of the above-mentioned method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer readable medium may include: any entity or device that can carry the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory).

[0240] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.

[0241] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0242] In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0243] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the method described in each embodiment of the present invention.

[0244] It is obvious to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential features of the present invention. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present invention is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any accompanying figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is obvious that the word "comprising" does not exclude other modules or steps, and the singular does not exclude the plural. Multiple modules or devices stated in the system claim can also be implemented by one module or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.

[0245] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.

Claims

1. A medical text search method, It is characterized in that The method comprises: Obtain multiple medical texts, each of which includes the release time, source, type, title, abstract and text content, and each medical text has a corresponding link address; Performing medical named entity recognition on the title, abstract, and text content of each of the multiple medical texts to obtain multiple medical named entities of each medical text, each medical named entity having a corresponding position serial number; receiving a search request from a requesting party, the search request including a text to be searched, a time limit for the text to be searched, a type of the text to be searched, and a target source of the text to be searched; Expanding the text to be searched to obtain the expanded text to be searched includes: Performing word segmentation processing on the text to be searched to obtain multiple target words; Determining a synonym set for each target word among the multiple target words, including: querying the synonyms of the target word from a preset synonym dictionary; and / or obtaining historical search information, determining the synonyms of the target word from the medical text marked in the historical search information; and / or deleting the target word from the text to be searched, obtaining a matching template for the target word, searching the matching template from the multiple medical texts, and determining the word corresponding to the target word in the sentence where the matching template is found as the synonym of the target word, wherein the position of the target word in the matching template is consistent with the position of the word corresponding to the target word in the found matching template; In the text to be searched, each target word is replaced with a word in the synonym set of the target word, and the text to be searched after each replacement is determined as an expanded text to be searched; medical named entity recognition is performed on the expanded text to be searched to obtain multiple medical named entities of the expanded text to be searched; Searching the multiple medical texts for multiple candidate medical texts whose medical named entities match the medical named entities of the expanded text to be searched, whose sources and types match the text to be searched, and whose publishing times are later than the time limit of the text to be searched; Calculating the matching scores of the plurality of candidate medical texts according to the position serial numbers of the medical named entities of the plurality of candidate medical texts and the plurality of medical named entities of the expanded text to be searched includes: For the i-th medical text among the multiple candidate medical texts, 1≤i≤n, n is the number of the multiple candidate medical texts, and the position weight W of the i-th medical text is determined according to the position sequence number of the medical named entity in the i-th medical text that is consistent with the multiple medical named entities in the expanded text to be searched. i : Among them, m i is the number of medical named entities in the i-th medical text that are consistent with the multiple medical named entities in the expanded text to be searched, O i,j Indicates the position number of the jth medical named entity in the i-th medical text, E i,1 represents the set of position numbers of the title of the i-th medical text, E i,2 represents the set of position numbers of the abstracts located in the i-th medical text, E i,3 represents the set of position numbers of the head and tail sentences in the main text of the i-th medical text, E i,4 represents the set of position numbers of non-head and tail sentences in the main text of the i-th medical text, d 1 ,d 2 ,d 3 and d 4 is the default value; Calculate the length matching degree l of the i-th medical text according to the medical named entity of the i-th medical text and the medical named entity of the expanded text to be searched. i : Among them, C i represents the number of medical named entities in the i-th medical text that are consistent with the medical named entities in the expanded text to be searched, A i represents the number of medical named entities in the i-th medical text, and B represents the number of medical named entities in the expanded text to be searched; Search the target text whose words are consistent with the words of the expanded text to be searched from the i-th medical text, and calculate the reverse order number G between the target text and the expanded text to be searched i , according to the reverse number G i Calculate the word order similarity s of the i-th medical text with the expanded text to be searched i : Wherein, F represents the number of words in the expanded text to be searched; The matching score P of the ith medical text is calculated based on the position weight, length matching and word order similarity of the ith medical text. i : Pi=W i (w i,1 l i +w i,2 s i ) Among them, w i,1 and w i,2 is the preset weight; A preset number of candidate medical texts with the highest matching scores are returned to the requesting party.

2. The method according to claim 1, It is characterized in that The performing medical named entity recognition on the title, abstract, and text content of each of the multiple medical texts includes: The title, abstract, and body of each medical text are preprocessed by sentence segmentation, duplication removal, and error correction to obtain the preprocessed text content; Convert each sentence in the preprocessed text content into a vector sequence; Input the vector sequence corresponding to each sentence into the trained first bidirectional long short-term memory network to obtain the feature vector sequence of the sentence, and input the feature vector sequence of the sentence into the trained first conditional random field to obtain the label sequence of the sentence; Medical named entities are identified according to the tag sequence of each sentence in the preprocessed text content.

3. The method according to claim 2, It is characterized in that Before performing medical named entity recognition on the title, abstract, and text content of each of the multiple medical texts, the method further includes: Obtaining a medical training sentence and a label vector sequence of the medical training sentence; Converting the medical training sentences into vector sequences; Inputting the vector sequence of the medical training sentences into the first bidirectional long short-term memory network to obtain a feature vector sequence of the medical training sentences, and inputting the feature vector sequence of the medical training sentences into the first conditional random field to obtain a label sequence of the medical training sentences; The weights and bias values ​​of the hidden layers of the first bidirectional long short-term memory network and the first conditional random field are adjusted by the gradient descent method according to the label vector sequence and the mark sequence of the medical training sentence.

4. The method according to claim 1, It is characterized in that The performing medical named entity recognition on the expanded text to be searched comprises: Preprocessing the expanded text to be searched to obtain the preprocessed expanded text to be searched; Convert each sentence in the preprocessed and expanded text to be searched into a vector sequence; Input the vector sequence corresponding to each sentence into the trained second bidirectional long short-term memory network to obtain the feature vector sequence of the sentence, and input the feature vector sequence of the sentence into the trained second conditional random field to obtain the label sequence of the sentence; Medical named entities are identified according to the tag sequence of each sentence in the preprocessed text content.

5. A medical text search device for implementing the medical text search method according to claim 1, It is characterized in that The device comprises: The acquisition module is used to acquire multiple medical texts, each of which includes the release time, source, type, title, abstract and text content, and each medical text has a corresponding link address; A first recognition module is used to perform medical named entity recognition on the title, abstract, and text content of each of the multiple medical texts to obtain multiple medical named entities of each medical text, each of which has a corresponding position serial number; A receiving module, configured to receive a search request from a requesting party, wherein the search request includes a text to be searched, a time limit for the text to be searched, a type of the text to be searched, and a target source of the text to be searched; An expansion module, used for expanding the text to be searched to obtain the expanded text to be searched; A second recognition module is used to perform medical named entity recognition on the expanded text to be searched, to obtain multiple medical named entities of the expanded text to be searched; A search module, configured to search the plurality of medical texts for a plurality of candidate medical texts whose medical named entities match the medical named entities of the expanded text to be searched, whose sources and types match the text to be searched, and whose publishing time is later than the limit time of the text to be searched; A calculation module, used for calculating the matching scores of the plurality of candidate medical texts according to the position serial numbers of the medical named entities of the plurality of candidate medical texts and the plurality of medical named entities of the expanded text to be searched; The return module is used to return a preset number of candidate medical texts with the highest matching scores to the requesting party.

6. A computer device, It is characterized in that The computer device comprises a processor, and the processor is used to execute a computer program stored in a memory to implement the medical text search method according to any one of claims 1 to 4.

7. A computer storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the medical text search method according to any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • A concept connection method for medical diagnosis texts

    CN106407387A

  • Search engine based named entity linking method

    CN108415902A

  • Search method and apparatus, and electronic device

    CN108664515A

  • Search method, device, computer device and storage medium

    CN109215796A

  • An ES-based electronic medical record retrieval method

    CN109299239A