SYSTEM AND METHOD FOR MATCHING MEDICAL CONCEPTS IN RADIOLOGY REPORTS - Patent application
The method and system enhance the identification of medical concepts in radiology reports by creating queries, evaluating word presence and proximity, and applying scoring, reducing false positives and negatives, thus improving accuracy and speed in processing medical reports.
Patent Information
- Application Number
- JP2021529772
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2018-11-26
- Filing Date
- 2019-11-22
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2039-11-22
Smart Images

Figure 0007550756000007 
Figure 0007550756000006 
Figure 0007550756000003
Abstract
Description
[Technical field]
[0001] Related Applications This application claims the benefit of U.S. Provisional Application No. 62 / 771,308, entitled “SYSTEM AND METHOD FOR MATCHING MEDICAL CONCEPTS IN RADIOLOGICAL REPORTS,” filed provisionally on November 26, 2018, in the name of Or Almer, and is incorporated herein in its entirety.
[0002] The present disclosure relates generally to the field of natural language processing, and in particular to identifying which medical concepts from a predefined set of medical concepts are found in a medical report. More specifically, but not exclusively, the present disclosure relates to a method for doing this with radiology reports. [Background technology]
[0003] Many search algorithms exist for automatically determining whether a given concept is found in a given input text. For example, the concept is a search term, i.e., a string of words entered into a search engine, and the input text is a text found in one of many web pages searched by the search engine. In some search algorithms, the search term does not need to be found in the input text in exactly the same form for the search algorithm to return good results; some words of the search term may not be present in the input text, or the words of the search term may be found in the input text in a different order and / or with other words between them. In this case, the search algorithm calculates a score for the search term and the input text that indicates the degree of matching, and the search engine, upon finishing the search of the web page being searched, provides a list of web pages that found good results for the search term, ranked in order of score.
[0004] For example, ElasticSearch:<https: / / www(dot)elastic(dot)co / products / ElasticSearch> a commercially available search engine as described in<https: / / www(dot)elastic(dot)co / guide / en / elasticsearch / guide / current / index(dot)html> A user guide is available at. ElasticSearch analyzes text fields, such as a document's title field, using various types of queries to calculate a document's relevance score to the search terms. In a "matching" query, a text field is considered a match to the search terms if more than a minimum number or percentage of words in the search terms are found in the text field; the more words in the search terms are found in the text field, the higher the "matching" relevance score. ElasticSearch's "matching" query is an example of a "bag of words" method, in which the order of words in the input text field is not important.
[0005] In ElasticSearch "matching phrase" queries, a text field is considered to match the search term if all the words of the search term are found in the text field and the relative positions of the words in the search term are not too far from the relative positions of the same words in the text field. The distance between the words means how many times the words in the search term must be repositioned by changing the position of the words by one in either direction to make them have the same positions as they have in the text field. For example, if the search term consists of two words and these two words are found in the text field adjacent to each other but in the opposite order, the number of repositions is 2. This is because each of the two words must undergo one reposition. If the two words are found in the text field in the same order as they are in the search term but with n other words between them, the number of repositions required is n. For a text field to be considered to match the search term, the number of repositions required must be less than or equal to a maximum number (a parameter called "slop"). A "matching phrase" query has a higher relevance score if fewer position changes are required. The "matching" relevance score and the "matching phrase" relevance score are added together to get the overall relevance score of the text field with the search term.
[0006] It is known that search algorithms replace words within text fields and / or search terms with their stems. For example, ElasticSearch has an English stemmer feature that does this for English text.
[0007] Savova et al., "Mayo clinical Text Analysis and Knowledge Extraction System (cTAKES): architecture, component evaluation and applications," J. Am. Med. Inform. Assoc. 2010:17:507-513 (doi:10.1136 / jamia.2009.001560), describes the cTAKES system for extracting information from electronic medical record clinical free text and provides a history of other systems with this purpose.
[0008] <https: / / browser(dot)ihtsdotools(dot)org> The SNOMED CT Medical Dictionary at has a structured list of many medical concepts, including body parts, diseases, and symptoms that can be used to diagnose diseases. Each concept is defined by a string consisting of one or more words. In some cases, multiple concepts may refer to the same thing, in which case preferred and alternative terms are given. Concepts may have parents that refer to more general concepts, and children that refer to more specific concepts. For example, lung is the parent of lung part, which is the parent of lobe of lung. Disease concepts have a finding site relationship with body part concepts, for example, lung cancer has a finding site relationship with lung. Summary of the Invention
[0009] One aspect of some embodiments of the present invention relates to a method for determining which of a set of medical concepts are relevant to input text from a medical report, where a concept is considered a possible match with the input text if a sufficiently large number of pairs of words within the concept are both found sufficiently close to each other in the input text.
[0010] According to one aspect of the present disclosure, a method is provided for automatically determining which concepts of a set of medical concepts are relevant to an input text by executing instructions on a computer. The method includes: a) for each concept having two or more words, creating a set of one or more queries, where each query is a string of two words that are substrings of the words in the concept, in the same order as the words in the concept; b) for each concept in the selected subset of concepts having two or more words, determining for each query whether the input text contains all the words of the query, and if so, calculating a subscore indicating the degree of matching between the query and the input text; c) for each concept in the selected subset for which more than a minimum number of queries have all of their words in the input text sufficiently close to each other according to the criterion, calculating a score indicative of the degree of matching between the concept and the input text depending on the subscores of the queries for the concept; d) applying one or more rules to determine which of the concepts in the selected subset, for which scores have been calculated, are relevant to the input text and which are not, at least some of the rules being dependent on the scores of the concepts.
[0011] Optionally, the method also includes calculating a matching score for each concept in the selected subset having two or more words, where more than a minimum number of words are in the input text and more than a minimum number of queries have all of those words in the input text sufficiently close to each other according to a criterion, the matching score indicating the degree of matching between the concept and the input text according to a bag-of-words method, and the step of calculating a score for each concept includes calculating a score depending on the matching score of the concept as well as depending on a sub-score of the query of the concept.
[0012] Optionally, calculating a score for each concept comprises calculating a weighted sum of the matching score and a sub-score of the query.
[0013] Optionally, the minimum number of words is 2 for a concept with 2 words, 2 or 3 for a concept with 3 words, 2, 3 or 4 for a concept with 4 words, 3 or 4 for a concept with 5 words, and 3, 4 or 5 for a concept with 6 words.
[0014] Optionally, the method also includes the step of assigning a score to a concept having only one word when the single word is found in the input text, and the rule depending on the concept's score is applied both to concepts having only one word and to concepts having two or more words.
[0015] Optionally, when two concepts for which scores are calculated have a sufficiently large overlap in their words, the one or more rules provide that the concept with the lower score is not relevant to the input text, and that a concept is relevant to the input text if it has a calculated score higher than the score calculated for any other concept with a sufficiently large overlap in its words.
[0016] Optionally, the first minimum number is between 35% and 65% of the number of queries made for the concept.
[0017] Optionally, calculating the score comprises calculating a weighted sum of the sub-scores of the queries, giving lower weight to queries having words that are further away from the concept.
[0018] Optionally, the selected subset of concepts excludes at least those concepts for which one or more words defined as essential words of that concept are not found in the input text.
[0019] Optionally, words within a concept that are the rarest of all words in the set of concepts are defined as essential words.
[0020] Optionally, any singular word within a concept that is a disease name is defined as an essential word.
[0021] Optionally, the selected subset of concepts includes at least body part words and words describing the location or orientation of the body part, and excludes concepts in which the words describing the location or orientation of the body part are more than one word away from the body part words in the input text.
[0022] Optionally, the criterion for words in the query to be sufficiently close to each other in the input text specifies a maximum distance between the words, the maximum distance being smaller for words that are not in the same order in the input text as they are in the query, and larger for words that are farther apart in the concept than for words that are closer to each other in the concept.
[0023] Optionally, the maximum distance for words that are adjacent in concept and in the same order in the query and input text is 10-25.
[0024] Optionally, the method also includes the steps of preparing a set of concepts and pre-processing the input text; a) providing an initial set of concepts from a database of medical concepts; b) expanding the letter-number designation of vertebrae to include the words "vertebra" and "spine" and modifying the initial set of concepts by replacing the letters of the letter-number designation with the body region it represents, i.e., cervical, thoracic, or lumbar; c) preprocessing the input text by expanding the letter-number designation of vertebrae to include the words "vertebra" and "spine" and replacing the letters of the letter-number designation with the body region it represents, i.e., cervical, thoracic, or lumbar.
[0025] According to another aspect of the present disclosure, a computer storage product is provided having at least one computer storage medium having instructions stored thereon for causing one or more computers to perform an exemplary method of the present invention.
[0026] According to another aspect of the present disclosure, a computer storage medium having stored thereon instructions for causing a computer to perform an exemplary method of the present invention is provided.
[0027] According to another aspect of the present disclosure, there is provided a computer product embodied in a computer readable medium for performing the steps of the exemplary method of the present invention.
[0028] According to another aspect of the present disclosure, a system is provided for automatically identifying which concepts of a set of medical concepts are found in a medical report. The system includes: a) a first database providing access to one or more medical reports; b) a splitter module having access to a first database for splitting the medical report into input text; c) a second database providing access to a set of medical concepts; and d) a processor module having access to the input texts and to a second database, said processor module comprising: 1) for each concept having two or more words, create a set of one or more queries, each of which is a string of two words that are substrings of the words in the concept, in the same order as the words in the concept; 2) for each concept in the selected subset of concepts having two or more words, for each query, determining whether the input text contains all of the words of the query, and if so, calculating a subscore indicating the degree of matching between the query and the input text; 3) for each concept in the selected subset for which more than a minimum number of queries have all of their words in the input text sufficiently close to each other according to the criterion, calculating a score indicative of the degree of matching between the concept and the input text depending on the subscore of the queries for the concept; 4) a processor module that applies one or more rules, at least some of which are dependent on the scores of the concepts, to determine which of the concepts in the selected subset whose scores have been calculated are relevant to the input text and which are not; e) an output module that outputs the concepts determined to be relevant to the input text of the medical report.
[0029] According to another aspect of the present disclosure, there is provided a method for automatically determining which concepts of a set of medical concepts are relevant to an input text by executing instructions on a computer, the method comprising: a) for each concept in the set, applying one or more criteria to determine whether the concept is a possible match for the input text, the criteria not requiring, for at least some of the concepts, that all of the words of the concept be found in the input text, but requiring that one or more words defined as essential words of the concept be found in the input text; b) applying one or more rules to determine which of the concepts that are possible matches to the input text are relevant to the input text and which are not.
[0030] Optionally, the method also includes calculating, for each concept that is a possible match with the input text, a score indicative of the degree of matching between the concept and the input text, and at least some of the one or more rules depend on the score of the concept and the scores of any other concepts that are possible matches with the input text.
[0031] Optionally, the words of the least common concept among all concepts in the set are defined to be essential words for that concept.
[0032] Optionally, words of a concept that are one-word terms of a disease are defined to be essential words of that concept.
[0033] Optionally, for a concept that includes a body part word and a word describing the location or orientation of the body part, both words are defined to be essential words of the concept, and the criterion further requires that the words are adjacent to each other in the input text.
[0034] According to another aspect of the present disclosure, there is provided a method for automatically determining which concepts of a set of medical concepts are relevant to an input text by executing instructions on a computer, the method comprising: a) for each concept in the set, applying criteria to determine whether the concept is a possible match for the input text; b) for each concept that is a possible match with the input text, computing a score indicative of the degree of match between the concept and the input text; c) determining that when two concepts for which scores are calculated have a sufficiently large overlap on their words, the concept with the lower score is not relevant to the input text, and that a concept is relevant to the input text if it has a calculated score higher than the score calculated for any other concept with a sufficiently large overlap on its words.
[0035] Optionally, for at least some of the concepts in the set, calculating a score includes calculating a matching score, calculating a matching phrase score, and combining the matching score and the matching phrase score to obtain a score, where the matching score depends on the number of words in the concept that are found in the input text but are not in the order of the words in the input text, and the matching phrase score depends on the number of words in the concept that are found in the input text and are in the order of the words in the input text.
[0036] According to another aspect of the present disclosure, a system is provided for automatically identifying which concepts of a set of medical concepts are found in a medical report. The system includes: a) a first database providing access to one or more medical reports; b) a splitter module having access to a first database for splitting the medical report into input text; c) a second database providing access to a set of medical concepts; and d) a processor module having access to the input texts and to a second database, said processor module comprising: 1) for each concept in the set, applying one or more criteria to determine whether the concept is a possible match for the input text; 2) applying one or more rules to determine which of the concepts that are possible matches with the input text are relevant to the input text and which are not; a processor module, the criteria not requiring that for at least some of the concepts, all of the words of the concept be found in the input text, but requiring that one or more words defined to be essential words of the concept be found in the input text; e) an output module that outputs the concepts determined to be relevant to the input text of the medical report.
[0037] According to another aspect of the present disclosure, a system is provided for automatically identifying which concepts of a set of medical concepts are found in a medical report. The system includes: a) a first database providing access to one or more medical reports; b) a splitter module having access to a first database for splitting the medical report into input text; c) a second database providing access to a set of medical concepts; and d) a processor module having access to the input texts and to a second database, said processor module comprising: 1) for each concept in the set, applying criteria to determine whether the concept is a possible match for the input text; 2) for each concept that is a possible match with the input text, computing a score indicating the degree of match between the concept and the input text; 3) a processor module that determines that when two concepts whose scores have been calculated have a sufficiently large overlap in their words, a concept having a lower score is not relevant to the input text, and that a concept is relevant to the input text if it has a calculated score that is higher than the score calculated for any other concept that has a sufficiently large overlap in its words; e) an output module that outputs the concepts determined to be relevant to the input text of the medical report.
[0038] Unless otherwise defined, all technical and / or scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which the invention pertains. Although methods and materials similar or equivalent to those described herein can be used in the practice or testing of embodiments of the invention, exemplary methods and / or materials are described below. In case of conflict, the patent specification, including definitions, will control. Furthermore, the materials, methods, and examples are illustrative only and are not intended to be necessarily limiting.
[0039] Implementation of the method and / or system of the present invention may involve performing or completing selected tasks manually, automatically, or a combination thereof. Further, depending on the actual instrumentation and equipment of the method and / or system embodiments of the present invention, some selected tasks may be implemented by hardware, software, or firmware, or a combination thereof using an operating system.
[0040] For example, hardware for performing selected tasks according to embodiments of the invention may be implemented as a chip or circuit. As software, selected tasks according to embodiments of the invention may be implemented as a number of software instructions executed by a computer using any suitable operating system. In an exemplary embodiment of the invention, one or more tasks according to exemplary embodiments of the methods and / or systems described herein are performed by a data processor, such as a computing platform for executing a number of instructions. Optionally, the data processor includes volatile memory for storing instructions and / or data, and / or non-volatile storage, such as a magnetic hard disk and / or removable media, for storing instructions and / or data. Optionally, a network connection is provided as well. A display and user input devices, such as a keyboard and / or mouse, are also optionally provided. [Brief description of the drawings]
[0041] The above and other objects, features, and advantages of the present invention will become apparent from the following more particular description of the embodiments of the invention, as illustrated in the accompanying drawings, in which elements are not necessarily to scale relative to one another. With particular reference now to the drawings in detail, it is emphasized that the details shown are by way of example and for purposes of illustrative discussion of the embodiments of the present invention. In this regard, the description with reference to the drawings will make apparent to one skilled in the art how the embodiments of the present invention may be practiced.
[0042] [Figure 1A]FIG. 1A illustrates a block diagram of a system for identifying medical concepts in a medical report, according to an exemplary embodiment of the present invention. [Figure 1B] FIG. 1B illustrates a high-level flow chart of a method used by a processor module of the system of FIG. 1A, in accordance with an exemplary embodiment of the present invention. [Diagram 2] FIG. 2 shows a more detailed flow chart of a method used by the processor module of the system of FIG. 1A, in accordance with an exemplary embodiment of the invention. [Diagram 3] FIG. 3 illustrates a high-level flow chart of a method used by a processor module of the system of FIG. 1A in accordance with different exemplary embodiments of the present invention. [Figure 4] FIG. 4 depicts a high-level flow chart of a method used by a processor module of the system of FIG. 1A in accordance with different exemplary embodiments of the present invention. [Diagram 5] FIG. 5 illustrates a high-level flow chart of a method used by a processor module of the system of FIG. 1A in accordance with different exemplary embodiments of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0043] Following is a detailed description of the preferred embodiment, with reference to the drawings in which like reference numerals identify like elements of structure in each of the several views.
[0044] The present disclosure relates generally to the field of natural language processing, and in particular to identifying which medical concepts from a predefined set of medical concepts are found in a medical report. More specifically, but not exclusively, the present disclosure relates to a method for doing this with radiology reports.
[0045] The systems (including computer systems for processing medical reports) and / or methods (e.g., code instructions executed by one or more processors) described herein address the technical problem of automatically identifying medical concepts mentioned in medical reports about patients with fewer missed concepts and fewer false positives than prior art methods of automatically identifying medical concepts in medical reports. The systems and methods solve this problem by one or more of the following: 1) not requiring all words of a concept to be present in the input text in order for the concept to be considered a possible match, even when performing a "matching phrase" test where word order is important; 2) requiring certain required words in a concept to be present in the input text in order for the concept to be considered a possible match, even if all words may not be present; and 3) calculating a score for each concept that is a possible match for the input text, and eliminating a concept as a possible match if there is another concept that significantly overlaps with the concept and has a higher score.
[0046] The systems (including computer systems for processing medical reports) and / or methods (e.g., code instructions executed by one or more processors) described herein improve upon underlying technological processes within the technical field of natural language processing. The systems and / or methods described herein improve upon the process of identifying medical concepts within medical reports by one or more of: 1) not requiring all words of a concept to be present in the input text for the concept to be considered a possible match; 2) requiring the presence of certain essential words; and 3) calculating a score for each possible match and eliminating possible matches when they significantly overlap with higher scoring possible concepts.
[0047] The systems (including computer systems for processing medical reports) and / or methods (e.g., code instructions executed by one or more processors) described herein improve the performance of a computing unit executing the code instructions to identify medical concepts in a medical report. The improved performance increases the number of medical concepts that are actually present in each sentence of the medical report that are successfully identified, while decreasing the number of false positives, i.e., medical concepts that are incorrectly identified as being found in a sentence of the medical report. The improved performance is achieved at least in part by not requiring all words of a concept to be present in the input text (which increases the number of concepts that are successfully found), by requiring certain essential words of a concept to be present (which reduces false positives due to incorrect guessing of missing words), and by finding a score for each possible concept and filtering out possible concepts that significantly overlap with other higher scoring possible concepts (which reduces false positives due to identifying a broader concept when only a narrower concept is present).
[0048] The systems (including computer systems for processing medical reports) and / or methods (e.g., code instructions executed by one or more processors) described herein are associated with physical real-life components because they process medical reports stored on data storage media and because medical reports are written by physicians to describe medical examinations performed on real patients using medical diagnostic equipment, e.g., medical imaging equipment such as CT scanning devices and MRI devices. The systems and methods improve patient care by enabling medical information to be extracted from medical reports much faster than if medical concepts had to be manually identified by a human reader from the medical reports and more accurately than prior art computer systems that automatically identify medical concepts in medical reports.
[0049] The systems (including computer systems for processing medical reports) and / or methods (e.g., code instructions executed by one or more processors) described herein provide unique and noteworthy advanced techniques for identifying medical concepts within medical reports.
[0050] Thus, the systems and / or methods described herein are inseparably linked to computer technology and physical hardware to overcome real technical problems that arise in natural language processing of medical reports.
[0051] Before describing at least one embodiment of the invention in detail, it is to be understood that the invention is not necessarily limited in its application to the details of construction and the arrangement of components and / or methods set forth in the following description and / or illustrated in the drawings and / or examples. The invention is capable of other embodiments or of being practiced or carried out in various ways.
[0052] The present invention may be a system, a method, and / or a computer program product. The computer program product may include a computer readable storage medium having computer readable program instructions for causing a processor to perform aspects of the present invention.
[0053] A computer readable storage medium may be a tangible device capable of holding and storing instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing.
[0054] A non-exhaustive list of more specific examples of computer-readable storage media includes portable computer diskettes, hard disks, random access memories (RAMs), read-only memories (ROMs), erasable programmable read-only memories (EPROMs or flash memories), static random access memories (SRAMs), portable compact disk read-only memories (CD-ROMs), digital versatile disks (DVDs), memory sticks, floppy disks, and any suitable combinations of the foregoing. As used herein, computer-readable storage media should not be construed as being themselves transitory signals, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., light pulses passing through a fiber optic cable), or electrical signals transmitted through a wire.
[0055] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to a corresponding computing / processing device or to an external computer or storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network may include copper transmission cables, optical transmission fiber, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the corresponding computing / processing device.
[0056] Computer readable program instructions for carrying out the operations of the present invention may be either assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk®, C++, and conventional procedural programming languages, such as the “C” programming language or similar programming languages.
[0057] The computer readable program instructions may execute entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer, partially on a remote computer, or entirely on a remote computer or server. In the latter scenario, 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). In some embodiments, electronic circuitry, including, for example, programmable logic circuits, field programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), may execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry to perform aspects of the present invention.
[0058] Aspects of the present invention are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer readable program instructions.
[0059] These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to generate a machine such that the instructions, executed by the processor of the computer or other programmable data processing apparatus, create means for implementing the functions / acts specified in one or more blocks of the flowcharts and / or block diagrams. These computer readable program instructions may be stored on a computer readable storage medium that can direct a computer, programmable data processing apparatus, and / or other device to function in a particular manner, such that a computer readable storage medium having instructions stored thereon includes an article of manufacture including instructions that implement aspects of the functions / acts specified in one or more blocks of the flowcharts and / or block diagrams.
[0060] The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause the computer, other programmable apparatus, or other device to perform a series of operational steps to generate a computer-implemented process, such that the instructions executing on the computer, other programmable apparatus, or other device perform the functions / operations specified in one or more blocks of the flowcharts and / or block diagrams.
[0061] The flowcharts and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowcharts or block diagrams may represent a module, segment, or portion of instructions that includes one or more executable instructions for implementing the specified logical function(s).
[0062] In some alternative implementations, the functions shown in the blocks may occur out of the order shown in the figures. For example, two blocks shown in succession may in fact be executed substantially simultaneously, or the blocks may sometimes be executed in the reverse order, depending on the functionality involved. It should also be noted that each block of the block diagrams and / or flowchart illustrations, and combinations of blocks in the block diagrams and / or flowchart illustrations, may be implemented by a special-purpose hardware-based system that performs the specified functions or operations or executes a combination of special-purpose hardware and computer instructions.
[0063] Some embodiments of the present disclosure aim to use a computer system that performs natural language processing to automatically identify medical concepts mentioned in reports written by doctors after examining patients, selected from a comprehensive database of medical concepts. In some embodiments, the computer has better performance than computers using existing methods for the above purpose, both in identifying a higher percentage of concepts mentioned in the report and in incorrectly identifying many medical concepts that are not in the report. Improving performance by both of these measures simultaneously is difficult, since doctors often omit words for concepts that they think another doctor reading the report would understand to be implied. Finding these concepts requires guessing the omitted words, but guessing the words may also result in incorrectly identifying more concepts that are not actually in the report. A useful measure of success in achieving these goals is the parameter F1, which is the harmonic mean of the percentage of identified concepts present and the percentage of identified concepts that are actually present.
[0064] Another objective of some embodiments of the present disclosure is to achieve the above performance improvements, e.g., as measured by F1, while processing medical reports quickly enough so that the method can serve as the first stage of a larger natural language processing system for radiology reports. For example, in some embodiments, a computer can process at least 100 reports per second using a 3.40 GHz Intel® Core™ i7-6700 CPU with 4 cores and 8 logical processors.
[0065] It is another object of some embodiments of the present disclosure to achieve the above performance improvements without the algorithm having a deep AI-like understanding of each concept, which would make the development of the algorithm very labor-intensive.
[0066] These objectives are given only as illustrative examples, and such objectives may be exemplary of one or more embodiments of the invention. Other desirable objectives and advantages inherently achieved by the invention may occur or become apparent to those skilled in the art. The invention is defined by the appended claims.
[0067] Useful features of computer systems One aspect of some embodiments of the present invention relates to a computer system that automatically determines which of a set of medical concepts are found in a medical report, e.g., a radiology report, by executing instructions on the computer using one or more of three features that the inventors have found to be often effective in reducing false positives and not missing too many concepts that actually exist. These features can be described in terms of two approaches to the problem of automatically identifying concepts in a report using a computer. The bag-of-words method, as exemplified by ElasticSearch's Matching Test, considers a concept to match an input text if all or almost all of the words of the concept are found in the input text (e.g., a sentence in a medical report) without regard to word order. This method is fairly efficient at finding concepts that exist, but tends to produce many false positives, i.e., find concepts that do not actually exist. Another method, used by the cTAKES algorithm and exemplified by ElasticSearch's Matching Phrase Test, considers a concept to match an input text if all of the words of the concept are found in the input text in the same order or nearly the same order as they are in the concept. This method tends to be somewhat better than the bag-of-words method at eliminating false positives, but somewhat worse at finding concepts that are present. The inventors have found that in some embodiments of the invention, a method that uses any one or two of the following features, or better all three of the following features, can give better results both in eliminating false positives and finding concepts that are actually present: 1) Not requiring all words to be present, even in matching phrase tests where word order is important, which allows additional concepts to be found when the physician who wrote the report omitted words from a concept that he or she thought would be obvious to a human reader of the report. 2) Requiring the presence of certain essential words in either the matching or matching phrase tests, even if not all words may be present, thus reducing the number of false positives that arise from guessing important words that would not typically be omitted by the physician writing the report. 3) Calculate a score from the matching test or the matching phrase test, or better, from a combination of both tests, and use the score to eliminate concepts with lower scores when there is another concept that significantly overlaps with the concept and has a higher score. This reduces false positives by eliminating related broader concepts when only the narrow concept is present, and by eliminating concepts with missing words when there are similar concepts with no missing words or few missing words.
[0068] The inventors have found that in some cases, algorithms that include all three of these features produce fewer false positives and find a greater percentage of concepts that actually exist than either the matching test or the matching phrase test alone.
[0069] The first feature of not requiring all words of a concept to be present in the matching phrase test is optionally implemented as follows: Each concept is a string of words. For each concept consisting of two or more words, one or more queries are generated. Each query optionally consists of a two-word substring of the concept's words, optionally in the same order as in the concept. The query does not have to be an exact substring of the concept's words, but for two-word concepts, the query may be identical to the concept. A concept is optionally considered to be a possible match with the input text if at least a minimum number of queries have both their words in the input text and are sufficiently close to each other. Optionally, the minimum number depends on the total number of queries for that concept. For example, the minimum number is a percentage of the total number of queries, e.g., 35%, 40%, 45%, 50%, 55%, 60%, or 65% of the queries. Optionally, there are also other criteria that must be met in order for a concept to be considered a possible match with the input text, e.g., requiring that required words be present. When a concept is considered to be a possible match with the input text, a query subscore is found for each query. The query subscore is higher if the two words of the query are found closer to each other in the input text and if the two words are in the same order in the input text as they are in the concept. An overall matching phrase score (e.g., a weighted average of the query subscores) is found for the concept based on the query subscores, and a concept is not considered to be related to the input text if it overlaps sufficiently with another concept that has a high score. Optionally, the weighted average gives a lower weight to queries whose two words are far apart in the concept.
[0070] The second feature, requiring that certain required words be present in the input text, is optionally implemented as follows: Optionally, among all concept words in the set of concepts, the least common in-concept word is the required word that must be found in the input text. Optionally, any singular word that is a disease name is a required word that must be found in the input text. Optionally, any word that refers to the orientation or location of a body part must be adjacent in the input text to the word for the body part it refers to in order for the concept to be considered a possible match with the input text.
[0071] Optionally, in addition to finding which concepts are possible matches with the input text by looking at which queries are found in the input text and what their query subscores are, concepts are also tested to see if they are possible matches with the input text according to a bag-of-words method called matching test. In the matching test, a concept is considered a possible match if a sufficient number of words in the concept are found in the input text, where the minimum number of words may depend on the number of words in the concept. If a concept is considered a possible match with the input text according to this criterion, a matching score for the concept is found, optionally regardless of the word order in the input text, and optionally depending only on the number of words of the concept present in the input text.
[0072] Optionally, the matching score is combined with the matching phrase score described above, for example, a weighted sum of the matching score and the matching phrase score is found to find a total score for the concept. This total score is used to determine which of two concepts to keep when they have sufficient overlap. Optionally, a concept is considered to be a possible match with the input text only if it is considered a possible match according to both the criteria that enough queries match the input text (the "matching phrase test") and that enough words of the concept are present in the input text (the "matching test"). Requiring a concept to pass both the matching test and the matching phrase test increases the likelihood that the concept is relevant to the input text even if some words of the concept are not found in the input text. Alternatively, only the matching test may be performed, only the matching phrase test may be performed, or both tests may be performed, but the concept only needs to pass one test to be considered a possible match with the input text.
[0073] Optionally, the matching test is also applied to one-word concepts. The matching phrase test is not applied to it, and no matching phrase score is calculated, because there are no two-word queries for one-word concepts. A one-word concept passes the matching test if that one word is found in the input text, and optionally its matching score and its total score are always the same. Optionally, for a one-word concept, the matching phrase score is zero. Optionally, the score of the one-word concept is compared to other multi-word concepts that overlap with the one-word concept, for example other concepts that also have that word and pass the matching test and the matching phrase test. Optionally, in this case, the score of the multi-word concept is always higher, and the one-word concept is removed from consideration.
[0074] Optionally, the set of concepts is preprocessed by stemming words, i.e., replacing words by their stems. Optionally, in preprocessing, stop words are removed from the concepts. Optionally, in cases where several medical terms have the same meaning, words in the concepts are replaced with preferred synonyms. For example, adjectives such as "hepatic" are replaced with the corresponding noun, in this case "liver". Optionally, acronyms in the concepts are expanded. Optionally, vertebrae referred to by letter-number designation are appended with the words "vertebra" and "spine", and the letter is replaced with either "cervical", "thoracic", or "lumbar", depending on the region of the spine it refers to. Additionally or alternatively, any or all of the preprocessing procedures described herein for concepts are applied to the input text.
[0075] It should be noted that the methods described and claimed herein are not directed to abstract ideas, but rather to methods of improving computer technology for natural language processing, and the claims are not intended to preempt all ways of identifying medical concepts in medical reports, but are limited to specific ways of achieving that result. For example, at least some of the claims may be limited to a way in which two-word queries are created from the concepts, and a matching phrase test is performed for each concept by looking at the number of two-word queries that are a match with the input text. At least some of the claims may be limited to a way in which certain required words of a concept must be present in the input text in order for the concept to be considered a possible match for the input text. These elements of the method are believed to be novel and inventive over the prior art, and are particularly suited to using computer technology to identify medical concepts found in medical reports, and are very different from the methods humans use for that purpose using the natural language processing capabilities of the human brain.
[0076] System Description Referring now to the drawings, FIG. 1A shows a block diagram 100 of a system for implementing a method according to an exemplary embodiment of the present invention. Each block in the diagram 100 represents a software module stored in a computer programmed to implement the module, or a server that stores or provides access to data, for example in digital form. A report database 102 stores or provides access to medical reports that the system processes. A splitter module 104 splits each report into multiple input texts 106. Each input text is processed separately to find the concepts it contains. Typically, each sentence of a report is a separate input text. Optionally, long sentences, especially compound sentences, are split into two or more input texts, for example by a parser that tries to determine the boundaries of each component of the compound sentence using grammar rules. In tests performed by the inventors, long sentences are split by a splitter provided by Python's Natural Language Tool Kit, but any other sentence splitter known in the art may be used. Optionally, sentences are split at single commas, e.g., commas with no other commas within 15 characters of them, but not at commas with another comma within 15 characters of them, because these commas are more likely to be part of lists, such as in "lung, liver, or throat cancer", which bridges a single concept.
[0077] The concept database 108 comprises a list of medical concepts, for example medical concepts listed in the SNOMED database, or a selection of concepts listed in the SNOMED database. Optionally, the concept database 108 does not include all concepts listed in SNOMED or a similar database, but is limited to concepts describing disorders and morphological abnormalities, and is limited to concepts not longer than a maximum number of words. For example, the inventors generally used a database of concepts limited to concepts having six words or less after preprocessing, because the method tends to be less successful for concepts having more words, and such concepts are less frequently found in medical reports. In the present implementation of the concept database, only concepts describing disorders and morphological abnormalities are included. There are a total of 107,453 concepts, including 4,606 one-word concepts, 24,399 two-word concepts, 25,838 three-word concepts, 22,815 four-word concepts, 18,329 five-word concepts, and 11,466 six-word concepts after preprocessing.
[0078] A processor module 110 has access to both the input texts 106 and the medical concept list 108, and uses an algorithm to identify medical concepts found in each input text, as described in FIG. 2. Typically, this process generates some errors. The result of this process, i.e., the list of medical concepts found in each input text, is optionally sent to an output module 112, which outputs the list of medical concepts in a user-readable format. Optionally, the output module does not list the medical concepts found in each input text individually in the output, but only lists the medical concepts found in the set of input texts together, e.g., in the entire medical report.
[0079] Methodology Overview The functionality of the processor module 110 of Figure 1 is explained in more detail by the flowchart 200 of Figure 2. A flowchart 200 showing at a high level the various parts of the algorithm is outlined in the flowchart 114 of Figure 1B.
[0080] At 116 in FIG. 1B, preprocessing of concepts and input text is performed. Preprocessing of concepts need only be performed once before processing many input texts, and is optionally performed again only if the set of concepts has changed. Preprocessing of input text is optionally performed for each new input text being processed, but may also be performed for a set of input texts, e.g., for all input texts of a medical report, before processing any of them. Preprocessing of both concepts and input text includes, e.g., stemming, removing stop words, expanding acronyms, and replacing words with synonyms. Preprocessing of concepts may also include, e.g., generating queries for concepts that are composed of two or more words, finding essential words for each concept, and excluding certain concepts, e.g., concepts that have more than a maximum number of words.
[0081] At 118, the initial input text is considered.
[0082] At 120, a loop over the concepts is performed on the input text being considered. Loop 120, and each of the other loops shown in FIG. 1B, may be performed in serial or parallel, or using a combination of serial and parallel processing. In the detailed flow chart shown in FIG. 2, these loops are all shown as being processed serially. Loop 120 includes, for each concept, 1) checking the input text for essential words at 122, 2) performing a matching test at 124 to find a matching score, and 3) performing a matching phrase test at 126 to find a matching phrase score. These three tests may be performed in serial or parallel, and if performed in serial, may be performed in any order. In the detailed flow chart shown in FIG. 2, these tests are shown as being performed in serial, first checking for essential words, then the matching test, then the matching phrase test. Doing the tests in this order has the potential advantage that the essential words check is generally faster than the matching tests (which are generally faster than the matching phrase tests), and if a concept does not pass one of the fast tests, the slow tests can be skipped, saving computer time. Doing the matching phrase tests and finding the matching phrase score involves looping over the query for the concept (128). At the end of the loop 120, a total score for the concept is found at 130, e.g., by combining the matching score and the matching phrase score. Optionally, to be considered a possible match for the input text, a concept must pass all three tests: the essential words check at 122, the matching test at 124, and the matching phrase test at 126. The tests may be done in any order or in parallel, but if the tests are done serially, if a concept does not pass one of the tests, the loop optionally ends for that concept and proceeds to consider the next concept.In the detailed flow chart shown in Figure 2, the essential words check is shown as occurring first, followed by the matching tests, and the matching phrases test is shown as occurring last. A record is kept of which concepts pass all the tests and therefore have possible matches for the input text, as well as the total score for each concept that is a possible match.
[0083] After loop 120 has found all concepts that are possible matches for the input text, post-processing occurs at 132. Post-processing includes looping over 134 the potentially matched concepts, where a potentially matched concept is removed from consideration if, for example, it has significant overlap with another potentially matched concept that has a higher score because more of the words of that potentially matched concept are found in the input text and / or the word order in the input text is closer to the word order in the other concept.
[0084] After post-processing 132 is completed for all potentially matching concepts, the remaining matching concepts that have not been excluded are output at 136. These are the concepts that the algorithm has identified as found in the input texts. Optionally, rather than listing the concepts identified in each input text individually, a list of all concepts identified in some input text, e.g., in all input texts in a report, is provided as output after those input texts have been processed.
[0085] At 138, if unprocessed input text remains, the next input text is considered.
[0086] Preprocessing of input text and concepts At 202, the input text is preprocessed. The preprocessing optionally includes one or more of the following: 1) Removing stop words, including articles, conjunctions, prepositions, and / or other common words that are unlikely to provide information about whether a given concept can be found in the input text. 2) Removing ambiguous words with more than one meaning that may cause errors. For example, the word "exposure" sometimes refers to a medical concept, a patient being exposed to the cold, but the word is also used in almost all radiology reports to refer to an exposure parameter of an image. We found that removing it improved the F1 score of the algorithm. Another example of an ambiguous word that is not removed in this implementation of the algorithm but sometimes causes errors is "sinus," which can refer to both a body part and a disease. 3) Replacing words with their stems. This is called "stemming." 4) The replacement of all words within a group of words having equivalent meanings by a single preferred form. For example, an adjective like "hepatic" is replaced by the corresponding noun "liver." 5) Expanding acronyms into the words they represent. The software optionally includes a list of acronyms used in medical reports and their expanded forms. Such a list can be created, for example, manually. From time to time, the list of acronyms is optionally modified, for example, by adding new acronyms that have started to appear in medical reports, or by deleting acronyms that have proven ambiguous and / or are no longer in common use. 6) In the letter-number designation of the vertebrae, add the words "vertebra" and "spine," and substitute the letter C with "cervical," the letter T with "thoracic," and the letter L with "lumbar."
[0087] At 204, the concepts are optionally preprocessed using the same procedure as described for the input text. Optionally, after preprocessing, concepts with more than a maximum number of words are removed from the list of concepts. In the present implementation of the algorithm, concepts with more than six words are excluded. Alternatively, concepts with more than five words, more than seven words, or more than eight words are excluded. Tests performed by the inventors have shown that the more words a concept has, the more difficult it is to determine whether it is present in the input text, and furthermore, concepts with a very large number of words are likely to be narrow in scope and occur infrequently, so in practice it is less important to consider them. At 206, queries are generated for each concept. Optionally, each query consists of pairs of words in the (preprocessed) concept in the same order as the words in the concept, and a query is generated for each such pair of words. The "Percolator" feature of ElasticSearch provides a convenient way to generate queries. It should be understood that the word order in the query is important not because the words in the input text are required to be in the same order, but because concepts with out-of-order words in the input text will generally score lower than those where the words in the input text are in the same order as in the concept. Optionally, queries with more than two words are also generated, for example queries with up to three words. However, the inventors have found that there is little to be gained by using queries that are composed of more than two words.
[0088] At 208, each concept is examined to find the essential words it contains. A concept's essential words are words that must appear in the input text for the concept to be considered a match for the input text. Essential words optionally include any of the following: 1) The word among all words in a concept that is the least common among all concepts in a set of concepts. 2) Any one word about the disease. 3) Any word indicating body orientation or side that describes a body part, for example the word "left" in the concept "left lung." For a concept to be considered a match with the input text, the orientation word must be found in the input text within one word of the body part it describes.
[0089] In addition, other essential words are optionally specified manually for some concepts, for example if they are found to be useful.
[0090] It should be understood that steps 204, 206, and 208 may be performed once before processing any medical report, and they become part of the version of the algorithm being used. They do not need to be performed again for each new report being processed. When a new version of the algorithm is developed, there may be some changes to the list of concepts, for example if there is a different choice for words to be removed from the concepts, or if an expanded database is used to create the list of concepts, in which case steps 204, 206, and 208 may be redone again, at least for the new or changed concepts.
[0091] Looping over input text and looping over concepts At 210, the initial input text is examined. At 212, the initial concept is examined to determine if it is a match for the input text. At 214, it is determined if the essential words of the concept are in the input text and, in the case of any essential terms, such as directional words describing a body part, if they are in the required position.
[0092] If all required words are present, then at 216 it is determined whether the matching test has been passed. The matching test requires that a certain minimum number of all words in the concept be present in the input text, but because the matching test is a "bag-of-words" test, their order does not matter. It should be understood that both the number of words present in the input text and the total number of words in the concept optionally refer to after the concept and the input text have been preprocessed, e.g., where stop words are removed and stemmed. The inventors have found best results when the minimum number of words in a concept that must be present in the input text to pass the matching test is greater than 2 / 3 of all words in the concept, but less than or equal to 3 / 4 of all words in the concept. However, reasonably good results have been obtained by setting the minimum to any value greater than 1 / 2 and less than or equal to 5 / 6 of all words in the concept. For example, for a two-word concept, optionally both words must be in the input text. For a three-word concept, optionally two words must be in the input text, or alternatively all three words must be. For a 4-word concept, the minimum number of words that must be in the input text is optionally 2, 3, or 4. For a 5-word concept, the minimum number of words is optionally 3 or 4. For a 6-word concept, the minimum number of words is optionally 3, 4, or 5. Optionally, the minimum number of words is 50%, 60%, 70%, or 80% of the total number of words in the concept.
[0093] If the concept passes the matching test, a matching score is found and recorded at 218. The matching score depends on the number of words in the concept that are in the input text. In general, the more words in the concept that are in the input text, the more likely the concept is in the input text, even if the proportion of the concept's words in the input text is not large. Optionally, the matching score depends only on the number of words of the concept that are in the input text, regardless of the number of words in the concept. Alternatively, the total number of words in the concept is also taken into account when calculating the matching score. In an exemplary implementation of the method, the matching score is the square root of the number of words of the concept that are in the input text.
[0094] Looping over queries for matching phrase tests At 220, the first query for a concept is considered at the beginning of a loop that examines all queries for that concept to determine if it passes the matching phrase test and to calculate a matching phrase score. It should be understood that for one-word concepts, there are no queries, since each query contains two words from the concept, and therefore the matching phrase test cannot be performed and the matching phrase score cannot be calculated. In this case, although not explicitly shown in flowchart 200, control passes to 238 where the next concept is tried.
[0095] At 222, it is determined whether the query under consideration is in the input text, i.e., whether both words of the query are in the input text, not necessarily in the same order as they are in the query (i.e., in the same order as in the concept). If a query with more than two words is used, it is determined whether all words of the query are in the input text. However, if the positions of these words in the input text are too different from their positions in the query, the query is considered not to be in the input text.
[0096] How different the positions of words are is optionally defined by the number of one-step changes in position required to match the positions of words in the query with the positions of words in the input text. For example, if there are two words in the query and the two words in the input text are adjacent to each other in the same order as they are in the query, then the difference in positions, s, is zero. If the two words are adjacent to each other in the input text but in the reverse order of the words in the query, then s=2. This is because each word in the query needs to move one position to be in the same position as it is in the input text. If the words in the input text are in the same order as the words in the query but with n other words between them, then s=n. And if the words in the input text are in the reverse order and with n other words between them, then s=n+2.
[0097] The parameter that specifies the maximum s allowed for a query to be considered in the input text is called "slop". The slop value optionally depends on how far apart the query words are in the concept, the further apart the query words are in the concept, the higher the slop value. For example, if d is the distance in the concept between two words in the query, and d=0 for words that are adjacent in the concept, then "slop" is optionally equal to d+constant, e.g., d+15. The inventors have found that the algorithm performs best when "slop" is about d+10 to d+25. In practice, most sentences in medical reports are less than 15 words, and for these input texts, the position difference s, if it is defined as d+15, never exceeds "slop", and all queries are counted as being in the input text if the query words are in the input text. However, within medical reports there are some unusually long sentences that often contain several concepts, and by using a "slop" value between d+10 and d+25, we can prevent the algorithm from taking one word from one concept and one word from another concept and inappropriately matching them to a single query. It is for these relatively few unusually long sentences that the performance of the algorithm depends on the chosen value of "slop".
[0098] At 224, if the query is in the input text, a query subscore is calculated and recorded. The query subscore is optionally based on how different the positions of the words of the query in the input text are from their positions in the query, the more different the word positions are, the lower the query subscore. Optionally, the position difference s is defined as above. For example, the query subscore is proportional to 1 / (s+1), where s is defined as above. For example, the query subscore is √2 / (s+1).
[0099] At 226, it is noted whether the query is in the input text. At 228, it is determined whether there are more queries for the concept. If there are more queries, then at 230, the next query is examined and control passes again to 222. If there are no more queries remaining for the concept, control passes to 232 where it is determined whether the concept passes the matching phrase test. A concept passes the matching phrase test if at least a minimum number of queries within the concept are in the input text. For example, at least a minimum percentage of queries for the concept are in the input text. For example, at least 35%, at least 40%, at least 45%, at least 50%, at least 55%, at least 60%, or at least 65% of the concept are in the input text.
[0100] Matching Phrase Score If the concept passes the matching phrase test, a matching phrase score is calculated for the concept at 234. Optionally, the matching phrase score is the weighted sum of all query subscores for the concept's queries in the input text divided by the number N of queries for the concept. Optionally, lower weights are used for queries whose words are further apart in the concept. For example, if a query consists of the i-th word and the j-th word in a concept, the weight used for that query is 1.2-0.15(ij). Alternatively, the constant 1.2 in this formula is replaced by another constant, for example between 0.9 and 1.5, and / or the constant 0.15 is replaced by another constant between 0.10 and 0.20. Note that if a concept is included in the set of concepts only if it has 6 or fewer words, ij is always between 1 and 5, and the weight 1.2-0.15(ij) is in the range of 0.45 to 1.05. Optionally, the weight formula is chosen such that, given the maximum number of words in a concept, the weights are never negative.
[0101] Concept Total Score If the concept passes the matching phrase test, then at 236 the concept is recorded as a possible match for the input text and a total score for the concept is found and recorded. The total score for the concept depends on both the matching score and the matching phrase score. For example, the total score is a weighted sum of the matching score and the matching phrase score. For example, the matching score is given a weight of 1.5 times the weight of the matching phrase score, the matching score is defined as the square root of the number of words in the concept found in the input text, and the matching phrase score is defined as:
number
[0102] Once a concept has been marked as a possible match for the input text and its total score has been recorded, control proceeds to 238 where it is determined whether any more concepts remain to be considered for the input text. If all essential words of the concept are not found in the required positions in the input text at 214, if the concept does not pass the matching test at 216, or if the concept does not pass the matching phrase test at 232, then the concept is not marked as a possible match for the input text and control proceeds directly to 238.
[0103] 1 word concept If a concept has only one word, it has no queries associated with it, because each query has two words from the concept. In this case, it is not possible to do the matching phrase test or calculate the matching phrase score as described above. Optionally, in this case, the concept is considered to be a match as long as it passes the matching test. This means that one word of the concept is in the input text. Optionally, for one-word concepts, the total score depends only on the matching score, which is always the same for one-word concepts, if the matching score depends only on the number of words of the concept found in the input text. If the matching score is defined as the square root of the number of words of the concept found in the input text, the matching score is always 1 for one-word concepts. If the score is defined as the weighted sum of the matching score and the matching phrase score, with the weight of the matching score being 1.5, and if the same definition is used for one-word concepts, with the matching score set to zero, then for one-word concepts, the total score will always be 1.5 if the concept is a match for that input text. The inventors have found that in some cases treating one-word concepts in this way results in better performance of the algorithm, finding more actually existing concepts and reducing false positives. Alternatively, a different low value, e.g. 1 or 2, an intermediate value, or a value less than 1 or more than 2, is used for the total score of all one-word concepts where a single word is found in the input text.
[0104] If it is determined at 238 that there are more concepts to consider in the set of concepts, then the next concept is considered at 240 and control passes again to 214. If no concepts remain to be considered, then it is determined at 242 whether more than one potential matching concept has been recorded for the input text. If there is more than one potential matching concept, then at 244 the potential matching concepts are sorted by score.
[0105] Post-processing of potential matching concepts At 246, the second highest scoring potential matching concept is considered. At 248, the score of the concept being considered is compared to the scores of each of the concepts with higher scores. When this is done first with the second highest scoring concept, there is only one higher scoring concept to which it must be compared. If the concept being considered has significant overlap with the concept with the higher score, then the concept being considered is removed from the list of potential matching concepts for this input text. Optionally, "significant overlap" is defined as any of these three conditions being true: 1) All words in the concept being considered are found in a higher scoring concept. 2) All words in the higher scoring concept are in the concept being considered. 3) The number of words that are in one of the two concepts but not in the other is sufficiently small compared to the number of words in the concept under consideration, e.g., the number of words that are in one concept but not in the other divided by 1.7 is less than the largest integer that is less than or equal to 0.5 times the number of words in the concept under consideration.
[0106] The inventors have found that this definition of "significant overlap" gives good performance of the algorithm. Alternatively, a different definition is used. For example, instead of 1.7 and / or 0.5, different constants are used. For example, instead of 1.7, a constant between 1.3 and 2.1 is used, and instead of 0.5, a constant between 0.35 and 0.65 is used.
[0107] At 250 it is determined whether there are any more potentially matching concepts to examine. If so, then at 252 the next highest scoring concept is considered and control returns to 248. If there are no more potentially matching concepts to consider, then the results of the algorithm, i.e. the remaining matching concepts for this input text, are listed in the output at 254. These remaining matching concepts are the concepts that the algorithm found to be present in the input text.
[0108] Optionally, the set of concepts includes several groups of two or more concepts that are considered to have the same meaning, with one of the concepts in each group designated as a more preferred form and the other concept in each group designated as a less preferred form. These concepts are treated as separate concepts throughout the algorithm's process until a concept in the input text is identified. Then, when the identified concept is listed in the output, the less preferred form is replaced with the corresponding more preferred form.
[0109] End of loop over input text At 256 it is determined whether there is more input text to process. If so, the next input text is examined at 258 and control returns to 212 to look for concepts present in the next input text. If there is no more input text to process, the algorithm ends at 260.
[0110] Use of only some features As discussed above, the inventors have discovered three features that improve results over the prior art, allowing a computer system to find more existing concepts, produce fewer false positives, or both, as compared to the prior art. These features are: 1) Matching phrase tests, where word order is important, do not require that all words of a concept be present in the input text; 2) Requiring that certain essential words of a concept be present in the input text; and 3) calculate a score for each possible matching concept and, if two possible matching concepts have significant overlap, eliminate the concept with the lower score. The inventors have found that best results are obtained when all three of these features are used, although it is also possible to use only one or two of these features. Figures 3, 4, and 5 show flowcharts similar to Figure 1B for the cases where only the first feature is used, only the second feature is used, and only the third feature is used, respectively. In all three cases, the flowcharts begin with pre-processing 116, obtaining the first input text 118, and performing loop-over of concepts 120, as described above for Figure 1B. Then, in all three cases, the flowcharts end with outputting the results for that input text 136 and then examining the next input text 138, as described above for Figure 1B. The flowcharts differ in what is included in the loop-over of concepts and whether they include post-processing or not.
[0111] In FIG. 3, a flow chart 300 shows a method for identifying medical concepts in a medical report. Here, in each input text, the matching phrase test does not require all words of the concept to be in the input text for the concept to be considered as a possible match with the input text. The loop over concept 120 shows only the matching phrase test 128, but optionally a matching test is also performed and, optionally, required words are checked. The flow chart 300 does not show the score calculation and does not show post-processing. The matching phrase test optionally includes loop over queries, each of which consists of a pair of words from the concept, and does not require all queries to be in the input text. For example, with matching phrases, a certain number of queries, for example 50% of the queries, may be in the input text for the concept to pass the matching phrase test. Alternatively, the matching phrase test does not include loop over queries but requires that a certain number of words of the concept, for example less than 100% of the words, are in the input text to pass the matching phrase test. Using this feature alone, a computer system can find many more concepts that are present in the input text than in the prior art, where all words within a concept must be present in the input text to pass the matching phrase test.
[0112] In FIG. 4, a flow chart 400 shows a method for identifying medical concepts in a medical report, where for each concept, certain essential words must be in the input text for the concept to be considered as a possible match with the input text, even if not all words in the concept need to be in the input text. The loop over 120 concepts includes a check 122 that essential words are present. The loop 120 also includes a test 402, e.g. a matching test and / or a matching phrase test, that does not necessarily require all words of the concept to be present in the input text to pass the test, but requires a certain number of words of the concept to be present to pass the test. In the flow chart 400, as in the flow chart 300, the calculation of the score is not shown, and no post-processing steps are shown.
[0113] In FIG. 5, a flow chart 500 illustrates a method for identifying medical concepts in a medical report, where each potential matching concept is given a score indicating how well it matches the input text, and where there are high scoring concepts that have significant overlap with low scoring concepts, the low scoring concepts are removed from the potential matches. Looping over concepts 120 illustrates both matching tests 124 and matching phrase tests 126, and a score is calculated for each test if a concept passes the test and is found to be a potential matching concept. The matching phrase test includes looping over the query 128. At 130, the matching score and the matching phrase score are combined to obtain a total score, for example, by taking a weighted sum of the matching score and the matching phrase score. Alternatively, in looping over concepts, only matching tests or only matching phrase tests are performed, and the score is only the matching score or only the matching phrase score. Post-processing is performed at 132 by looping over the potential matching concepts 134. For each potential matching concept, it is removed from the potential matching list if there is a higher scoring potential matching concept that significantly overlaps with it. This post-processing prevents broader concepts from being identified in the input text when only narrower concepts are found. For example, in an input text that only refers to the left lung, the concept "left lung" is identified, but the broader concept "lung" is not identified.
[0114] The computer program product may include one or more storage media, e.g., a magnetic storage medium such as a magnetic disk (such as a floppy disk) or magnetic tape, an optical storage medium such as an optical disk, optical tape, or a machine-readable bar code, a solid-state electronic storage device such as a random access memory (RAM) or a read-only memory (ROM), or any other physical device or medium used to store a computer program having instructions for controlling one or more computers to perform the methods according to the invention.
[0115] As used herein, the term "about" refers to ±10%.
[0116] The terms "comprise," "include," "have," and their conjugates mean "including, but not limited to."
[0117] The term "consisting of" means "including and limited to."
[0118] The term "consisting essentially of" means that a composition, method, or structure may include additional ingredients, steps, and / or parts, but only if the additional ingredients, steps, and / or parts do not materially alter the basic and novel characteristics of the claimed composition, method, or structure.
[0119] As used herein, the singular forms include plural references unless the context clearly dictates otherwise. For example, the term "a compound" or "at least one compound" can include a plurality of compounds, including mixtures thereof.
[0120] Throughout this application, various embodiments of the invention may be presented in a range format. It should be understood that the description in range format is merely for convenience and brevity and should not be construed as an inflexible limitation on the scope of the invention. Thus, the description of a range should be considered to have specifically disclosed all possible subranges as well as individual numerical values within that range. For example, the description of a range such as 1-6 should be considered to have specifically disclosed subranges such as 1-3, 1-4, 1-5, 2-4, 2-6, 3-6, etc., as well as individual numbers within that range, e.g., 1, 2, 3, 4, 5, and 6. This applies regardless of the breadth of the range.
[0121] Whenever a numerical range is given herein, it is meant to include any recited numbers (fractional or integer) within the given range. The phrases "range between" a first recited number and a second recited number and "ranging from" a first recited number to a second recited number are used interchangeably herein and are meant to include the first and second recited numbers and all fractional and integer numbers therebetween.
[0122] It should be understood that certain features of the invention that are, for clarity, described in the context of separate embodiments, may also be provided in combination in a single embodiment. Conversely, for brevity, various features of the invention that are described in the context of a single embodiment may also be provided separately, in any suitable subcombination, or as appropriate with any other described embodiment of the invention. Certain features described in the context of various embodiments should not be considered essential features of those embodiments, unless the embodiments are inoperable without those elements.
[0123] Various embodiments and aspects of the present invention as delineated hereinabove and in the claims section below find experimental support in the following examples.
[0124] Working Example Reference is now made to the following examples, which together with the above descriptions illustrate some embodiments of the invention in a non-limiting fashion.
[0125] To test the algorithm and compare its performance with prior art algorithms for finding concepts in medical reports, test data was prepared from 107 radiology reports. Each sentence in each report was manually examined to determine which concepts were in a set of concepts taken from the SNOMED CT medical dictionary, limited to concepts of six words or less (after preprocessing as described above to remove stop words), and limited to concepts describing disorders and medical abnormalities. In this way, it was determined which concepts were actually found in each sentence. A total of 860 concepts were found in the sentences of the 107 reports.
[0126] An algorithm was used to identify which concepts in the set occurred in each sentence of the report. The total number of true concepts identified (true positives), the total number of identified concepts that were not actually found in the sentence (false positives), the total number of concepts that were actually present in each sentence that the algorithm could not identify (false negatives), and the total number of concepts that were not actually present in each sentence and that the algorithm correctly identified (true negatives) were counted. Two quantities were then calculated: Precision is the ratio of true positives to total positives. This is the fraction of all concepts identified by the algorithm that were actually present. Recall is the ratio of true positives to true positives + false negatives. This is the fraction of all concepts identified by the algorithm that were actually present. The quantity F1 is the harmonic mean of precision and recall and may be defined as 2 / (1 / precision + 1 / recall).
[0127] The same test was also performed with five other methods, some of which are known in the prior art. In all these tests, lower scoring concepts were eliminated in favor of higher scoring concepts in cases of significant overlap, and the same set of concepts was used (SNOMED concepts of 6 words or less after preprocessing). 1) Matching test and matching score only (bag-of-words model), requiring at least 75% of the words in a concept to be present in the input text. 2) An algorithm similar to the cTAKES algorithm that uses matching phrases with zero "slop" and requires that all words within a concept be present in the same order as in the concept and with no other words in between. 3) Matching phrases with some "slop", which requires that all words in a concept are present, not necessarily in order, but does not count a concept as a match if the words in the concept are too far apart or too out of order in the input text. The value of "slop" was between 10 and 15, and the results did not depend too much on the exact value of slop within that range. 4) A hybrid algorithm that includes both a matching score and a matching phrase score (with some "slop"), where the matching phrase test requires that all words within a concept are present in the input text. 5) A hybrid algorithm that includes both a matching score and a matching phrase score, where the matching phrase score and matching phrase test are based on the set of all two-word queries within a concept, rather than requiring a match with all words within the concept, but does not use required words.
[0128] The test results are shown in Table 1. Using a 3.40 GHz Intel® Core™ i7-6700 CPU with 4 cores and 8 logical processors, and using the full algorithm, the computer system was able to process over 100 radiology reports per second. [Table 1]
[0129] For example, some of the prior art methods that use only "matching" have fairly good precision (rejecting concepts that do not exist) but not very good recall (finding all of the concepts that do exist). Other prior art methods, such as cTAKES, which uses "matching phrases" but not "matching", have fairly good recall but not very good precision. Allowing some "slop" in the "matching phrase" allows the algorithm to find nearly as many concepts that do exist as using only "matching", while being much better at rejecting concepts that do not exist. Using a hybrid algorithm that combines both the matching score and the matching phrase score, and also using a two-word query for the matching phrase score and test, does not require all words in the concept to be present, further improving recall, while using a hybrid algorithm with zero slop in the matching phrase test, requires all words in the concept to be present in the same order, further improving precision. The full algorithm, using matching phrase scores and queries for the test, and using required words, has the highest precision and the highest recall, both close to 89%. The fact that precision and recall are nearly the same for the full algorithm reflects the fact that when the algorithm misses a concept that is present, it almost always finds another concept that is not actually present, and vice versa.
[0130] Note that for this test data using the full algorithm, about 27% of the errors (false positives and false negatives) were due to the algorithm finding concepts closely related to concepts found manually, but either concept was acceptable and the concepts found by the algorithm could not reasonably be considered errors at all. A classic example of this is finding "fracture of radius and / or ulna" instead of finding the two concepts "fracture of radius" and "fracture of ulna". If these errors were not counted as errors, the F1 would be even higher, about 92%.
[0131] While small improvements in performance may still be achieved through tweaking of the algorithm, the inventors believe that it may not be possible to substantially improve the performance of the algorithm without utilizing a deep AI-like understanding of each concept.
[0132] Although the present invention has been described in detail and with particular reference to suitable or presently preferred embodiments, it will be understood that variations and modifications can be effected within the spirit and scope of the invention. The presently disclosed embodiments are therefore considered in all respects to be illustrative and not restrictive. The scope of the invention is indicated by the appended claims, and all changes that come within the meaning and range of equivalents thereof are intended to be embraced therein.
[0133] While the invention has been described in conjunction with specific embodiments thereof, it is evident that many alternatives, modifications, and variations will be apparent to those skilled in the art. Accordingly, the present invention is intended to embrace all such alternatives, modifications and variations that fall within the spirit and broad scope of the appended claims.
[0134] All publications, patents, and patent applications mentioned in this specification are incorporated herein by reference in their entirety as if each individual publication, patent, or patent application was specifically and individually indicated to be incorporated herein by reference. In addition, citation or identification of any reference in this application should not be construed as an admission that such reference is available as prior art to the present invention. To the extent section headings are used, they should not be construed as necessarily limiting. Additionally, any priority documents of this application are incorporated herein by reference in their entirety.
Claims
1. 1. A method for automatically determining which concepts of a set of medical concepts are relevant to an input text by executing instructions on a computer, the method comprising: a) for each concept having two or more words, creating a set of one or more queries, each query being a string of two words that are substrings of the words in the concept, in the same order as the words in the concept; b) for each concept in the selected subset of concepts having two or more words, determining for each query whether the input text contains all the words of the query, and if so, calculating a subscore indicative of the degree of matching between the query and the input text; c) for each concept in the selected subset for which more than a minimum number of the queries have all of their words in the input text sufficiently close to each other according to a criterion, calculating a score indicative of the degree of matching between the concept and the input text in dependence on the subscores of the queries for the concept; d) applying one or more rules to determine which of the concepts in the selected subset for which scores have been calculated are relevant to the input text and which are not, at least some of the rules being dependent on the scores of the concepts; A method comprising:
2. 2. The method of claim 1, further comprising: for each concept in the selected subset having two or more words, where at least more than a minimum number of words are in the input text and more than a minimum number of queries have all of those words in the input text sufficiently close to each other according to a criterion, calculating a matching score, the matching score indicating a degree of matching between the concept and the input text according to a bag-of-words method, and wherein calculating the score for each concept comprises calculating the score depending on the matching score of the concept and depending on the sub-score of the query of the concept.
3. The method of claim 2 , wherein calculating the score for each concept comprises calculating a weighted sum of the matching score and the subscore of the query.
4. 3. The method of claim 2, wherein the minimum number of words is 2 for a concept having 2 words, 2 or 3 for a concept having 3 words, 2, 3 or 4 for a concept having 4 words, 3 or 4 for a concept having 5 words, and 3, 4 or 5 for a concept having 6 words.
5. 3. The method of claim 2, further comprising the step of assigning a score to a concept having only one word when the single word is found in the input text, and wherein the rule dependent on the concept's score is applied to both concepts having only the single word and concepts having two or more words.
6. 6. The method of claim 1 or 5, wherein when two concepts for which a score is calculated have a sufficiently large overlap in their words, the one or more rules provide that a concept with a lower score is not relevant to the input text and that the concept is relevant to the input text if it has a calculated score higher than the score calculated for any other concept with a sufficiently large overlap in its words.
7. The method of claim 1 , wherein the first minimum number is between 35% and 65% of the number of queries made for the concept.
8. The method of claim 1 , wherein calculating the score comprises calculating a weighted sum of the subscores of the queries, giving a lower weight to queries having words that are further apart in the concept.
9. The method of claim 1 , wherein the selected subset of concepts excludes at least those concepts for which one or more words defined as essential words of that concept are not found in the input text.
10. The method of claim 9 , wherein a word in a concept that is the rarest of all words in the set of concepts is defined as an essential word.
11. The method of claim 9, wherein any singular word within the concept that is a disease name is defined as an essential word.
12. 2. The method of claim 1 , wherein the selected subset of concepts includes at least body part words and words describing a location or orientation of the body part, and excludes concepts in which the words describing the location or orientation of the body part are more than one word away from the body part words in the input text.
13. 2. The method of claim 1 , wherein the criterion for words in the query to be sufficiently close to each other in the input text defines a maximum distance between the words, the maximum distance being smaller for words that are not in the same order in the input text as they are in the query, and larger for words that are farther apart in the concept than for words that are closer together in the concept.
14. The method of claim 13, wherein the maximum distance for words that are adjacent in the concept and in the same order in the query and the input text is between 10 and 25.
15. preparing the set of concepts; and pre-processing the input text, a) providing an initial set of concepts from a database of medical concepts; b) modifying the initial set of concepts by expanding the letter-number designation of vertebrae to include the words "vertebrae" and "spinal column" and replacing the letters of the letter-number designation with the body region it represents, i.e., cervical, thoracic, or lumbar; c) preprocessing the input text by expanding the letter-number designation of vertebrae to include the words "vertebrae" and "vertebral column" and replacing the letters of the letter-number designation with the body region it represents, i.e., cervical, thoracic, or lumbar; The method of claim 1 , comprising:
16. At least one computer storage medium having stored thereon instructions for causing one or more computers to perform the method of claim 1.
17. A computer storage medium having stored thereon instructions for causing a computer to perform the method of claim 1.
18. A computer readable medium for performing the steps of the method of claim 1.
19. 1. A system for automatically identifying which concepts of a set of medical concepts are found in a medical report, comprising: a) a first database providing access to one or more medical reports; b) a splitter module having access to said first database for splitting a medical report into input text; c) a second database providing access to said set of medical concepts; and d) a processor module having access to said input texts and said second database, said processor module comprising: 1) for each concept having two or more words, create a set of one or more queries, each of which is a string of two words that are substrings of the words in the concept, in the same order as the words in the concept; 2) for each concept in the selected subset of concepts having two or more words, for each query, determining whether the input text contains all the words of the query, and if so, calculating a subscore indicating the degree of matching between the query and the input text; 3) for each concept in the selected subset for which more than a minimum number of the queries have all of their words in the input text sufficiently close to each other according to a criterion, calculating a score indicative of the degree of matching between the concept and the input text depending on the subscore of the queries for the concept; 4) a processor module that applies one or more rules, at least some of which are dependent on the scores of the concepts, to determine which of the concepts in the selected subset for which scores have been calculated are relevant to the input text and which are not; e) an output module for outputting the concepts determined to be relevant to the input text of the medical report; Including, the system.
Citation Information
Patent Citations
Conference keyword extraction device, conference keyword extraction method and conference keyword extraction program
JP2012038064A
Structured support of clinical heatlhcare professionals
US20160203281A1
Negation scope analysis for negation detection
US20180293227A1
