Embodiments of the present invention relate to performing entity recognition on a stream while providing ongoing training or supplementation of an entity dictionary. In one embodiment, a method of and computer program product for stream based named entity recognition is provided. A first portion of a textual input is received. A plurality of patterns is applied to the first portion to determine that a predetermined type is present in the first portion. approval is requested of the presence of the predetermined type. An indication of approval or disapproval of the predetermined type is received. A dictionary is supplemented according to the indication. A second portion of the textual input is received. The plurality of patterns is applied to the second portion.
|
1. A method comprising:
receiving a first portion of a textual input;
applying a first search pattern and a second search pattern to the first portion, wherein the first search pattern is one of a first plurality of search patterns and each of the first plurality of search patterns is assigned a clinical concept, the second search pattern is one of a second plurality of search patterns and each of the second plurality of search patterns is assigned a quantity, each of the first and second search patterns comprising a plurality of tokens and at least one regular expression operator, and wherein applying the first search pattern and the second search pattern comprises:
dividing the first portion into left, right, and middle subsets, the left subset adjacent to and appearing before the middle subset within the textual input, and the middle subset adjacent to and appearing before the right subset within the textual input,
matching the left subset to the first search pattern, and
matching the middle subset to the second search pattern;
assigning the clinical concept assigned to the first search pattern to the right subset;
extracting the middle subset corresponding to the quantity;
requesting approval of the presence of the assigned clinical concept in the right subset, the right subset comprising a term;
receiving an indication of approval or disapproval of the clinical concept;
supplementing a dictionary with the term according to the indication;
modifying the first and second pluralities of search patterns according to the indication and a term context indicated by the left and middle subsets;
receiving a second portion of the textual input; and
applying the modified first and second pluralities of search patterns to the second portion.
15. A computer program product for stream-based named entity recognition, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processor to cause the processor to perform a method comprising:
receiving a first portion of a textual input;
applying a first search pattern and a second search pattern to the first portion, wherein the first search pattern is one of a first plurality of search patterns and each of the first plurality of search patterns is assigned a clinical concept, the second search pattern is one of a second plurality of search patterns and each of the second plurality of search patterns is assigned a quantity, each of the first and second search patterns comprising a plurality of tokens and at least one regular expression operator, and wherein applying the the first search pattern and the second search pattern comprises:
dividing the first portion into left, right, and middle subsets, the left subset adjacent to and appearing before the middle subset within the textual input, and the middle subset adjacent to and appearing before the right subset within the textual input,
matching the left subset to the first search pattern, and
matching the middle subset to the second search pattern;
assigning the clinical concept assigned to the first search pattern to the right subset;
extracting the middle subset corresponding to the quantity;
requesting approval of the presence of the assigned clinical concept in the right subset, the right subset comprising a term;
receiving an indication of approval or disapproval of the clinical concept;
supplementing a dictionary with the term according to the indication;
modifying the first and second pluralities of search patterns according to the indication and a term context indicated by the left and middle subsets;
receiving a second portion of the textual input; and
applying the modified first and second pluralities of search patterns to the second portion.
4. The method of
prompting the user for the indication.
5. The method of
displaying a prompt on a digital display.
6. The method of
a newsfeed; and
a microblogging service.
8. The method of
storing the right subset; and
storing at least one additional word, wherein supplementing the dictionary comprises:
adding the right subset and the at least one additional word to the dictionary.
9. The method of
11. The method of
adding a request to a queue of requests.
12. The method of
13. The method of
14. The method of
18. The computer program product of
prompting the user for the indication.
19. The computer program product of
displaying a prompt on a digital display.
20. The computer program product of
|
Embodiments of the present invention relate to stream based named entity recognition, and more specifically, performing entity recognition on a stream while providing ongoing training or supplementation of an entity dictionary.
According to one embodiment of the present invention, a method of and computer program product for stream based named entity recognition are provided. A first portion of a textual input is received. A plurality of patterns is applied to the first portion to determine that a predetermined type is present in the first portion. Approval is requested of the presence of the predetermined type. An indication of approval or disapproval of the predetermined type is received. A dictionary is supplemented according to the indication. A second portion of the textual input is received. The plurality of patterns is applied to the second portion.
Named-entity recognition (NER) is the process of locating and classifying elements from text into predefined categories. Examples of categories that may be of interest include persons, organizations, locations, expressions of times, quantities, monetary values, percentages, countries, pharmaceuticals, equipment, brand names, and sports. A NER algorithm may be, e.g., grammar based or based on a statistical model. One example of a NER algorithm is the Glimpse algorithm, disclosed in commonly invented and assigned patents applications. NER algorithms may be applicable to various use cases, including those that involve identification of text containing certain categories of terms or concepts and those that involve linking entities in a source text to context appropriate information.
Various machine learning techniques may be applied to NER. However, a NER system that has been trained on data from one domain tends not to provide high quality results in other evolving domains. That is, a trained classifier tends to be brittle. Accordingly, in order to obtain reliable results, a NER system intended for handling of domain-specific data, such as clinical data, for example, should generally be trained on such clinical data.
NER algorithms may be run on static data sets, both for training and for recognition of entities. For example, a NER algorithm may be run periodically against a static data set in order to update the entity information related for that static data set. Using this process, a dictionary of entities may be built up based on the input data set. However, running training and recognition processes against static data sets is inflexible.
According to various embodiments of the present disclosure, systems, methods and computer program products are provided for application of NER over real-time streamed natural language. Detection of potential entities in real time as data is entered is advantageous both for classification and for training of the NER algorithm. Applying a pattern-based NER algorithm to real-time streaming clinical data allows instantaneous identification of new clinical concepts and terms, as well as possible false positives by the NER algorithm. Such a mechanism provides a feedback loop for optimizing an NER algorithm, thereby providing incremental training. In addition, a dictionary of new entities may be incrementally augmented based terms recognized by the NER algorithm.
Referring to
As a user (e.g., a doctor) types into input region 101, the input stream is check against a previously generated pattern set, looking for possible clinical data concepts, such as pharmaceuticals, family history, or medical procedures. If a potential clinical entity is detected immediately after being typed in, the term is identified for later adjudication (e.g., by highlighting) by the doctor via a user interface. In some embodiment, an immediate user interface element is displayed, such as popup 102. Popup 102 displays a tentative type identification, and requests feedback from the user by clicking either button 103 or 104 according to whether the user agrees with the automated type determination. In other embodiments, the list of entities is retained for later review and the user is not prompted during text entry. For example, the user may be queried to confirm each entity contained in the input text one at a time after the completion of text entry. In some embodiments, confirmation of only a subset of entities is requested of a user. In such embodiments, a random subset may be selected for review. Alternatively, entities that are recognized with less than a predetermined degree of confidence may be selected for review. In yet other embodiments, a predetermined number of entities may be selected for review, the selected entities having the lowest confidence of the entities in the input text.
A variety of entity types may be recognized in various embodiments of the present disclosure. In the example of
In some embodiments, complete entity recognition may require that an minimum amount of text be entered prior to entity recognition. For example, NER algorithms that are pattern based may require that an entire sentence be entered in order to apply patterns. Accordingly, in some embodiments entity recognition is performed once an entire text is entered by a user. In other embodiments, a sentence detector is applied to text as it is entered, and NER is performed once each sentence of the input concludes.
Stream based named entity recognition according to embodiments of the present disclosure provides immediate, real-time, high precision structured data from dynamic unstructured sources. This data is useful, for example, in cost modeling and risk analysis. For example, by obtaining more accurate information about what pharmaceuticals its patients are taking, a hospital can more accurately model for future costs and risks. It also helps validate clinician authored information to assure accurate use of terminology. In addition, this data may be used to detect the presence of new entities for inclusion in a dictionary. For example, a newly released pharmaceutical may not be present in existing dictionaries, but may be recognized as a pharmaceutical based on its context and then stored in a dictionary.
Various NER algorithms may be used according to various embodiments of the present disclosure. Among these are pattern-based NER algorithms. Some suitable algorithms are domain-specific, for example being targeted to clinical concepts. One example of a pattern based clinical concept NER algorithm is Glimpse, which is disclosed in commonly invented and assigned patent applications. It is advantageous in many use cases for the NER algorithm selected to be tuned to the particular domain in which it is to be applied. For example, certain natural language patterns arise in clinical records that a general purpose NER algorithm may not be suited to. However, a general purpose NER algorithm may be used according to various embodiments of the present disclosure.
As noted above, a pattern-based NER algorithm such as Spot may be applied to a stream S of text. In general, a pattern-based NER algorithm may identify a given concept or entity type where a set of left and right side patterns L and R are matched by the input text. For example, a left hand pattern of “administer(ed?) \d+\H*” may be associated with the clinical concept of pharmaceuticals. The right hand pattern of “mg” may be associated with quantities. In these cases, the NER algorithm would recognize “water” as a pharmaceutical and “400 mg” as a quantity, as depicted in
In some embodiments, a tentative concept or entity type is subject to additional post-processing. For example, an additional predetermined dictionary may be applied to vet the entity type.
In some embodiments, the system is seeded with a pattern set for entities of interest. The seed set may be generated by an initial run of a NER algorithm in a supervised, unsupervised, or semi-supervised mode. After a seed set is created, the patterns and dictionary are used in and refined by the real time system as described above.
In addition to user validation as text is entered, the systems and methods of the present disclosure may be used to perform batch review and training on an existing corpus of data. In such embodiments, the corpus of data is read seriatim and processed by the NER algorithm as reading progresses. A user is queried as the stream is read to validate the entity types of each identified entity. This enables efficient learning over an existing corpus, as subsequent portions of the corpus will benefit from the training performed on precedent portions.
In some embodiments, the systems and methods of the present disclosure are applied to third party data streams, such as microblogging services or newsfeeds. In such embodiments, existing patterns are applied to the data stream as it is read. New entities may be recognized in the data stream and stored for later review, or immediately brought to the attention of a user. For example, an existing pattern that identifies names of dog breeds may be applied to microblogging services for early identification of new breed names. These new names may be used to supplement a dictionary of dog breeds, or to alert a user or subscriber to the reference to such a new breed. A variety of alert methodologies known in the art may be used to bring a user's attention to a new item of interest, such as text alerts, microblogging messages, audible chimes, or on screen notifications. Validation of the new term may be requested of a subject matter expert or other user.
In some embodiments, a client-side application is provided that contains a dictionary and a set of patterns. Such a client-side application reads text from a stream as described above, and locally applies a NER algorithm. In other embodiments, a server application performs these functions, and provides output to a user via a web interface, email, text message, or other user interface mechanism known in the art.
Referring now to
In some embodiments, steps 205 and 206 are performed concurrently. In other embodiments, steps 205 and 206 are performed in reverse order. In particular, supplementation of the dictionary may be independent from modification of the patterns, and may be executed in any order. Thus, in some embodiments, step 205 may also be deferred indefinitely. In such embodiments, dictionary supplementation is performed as a batch after a predetermined period of time, after a predetermined number of entries have been compiled, or upon initiation by a user.
Referring now to
In computing node 10 there is a computer system/server 12, which is operational with numerous other general purpose or special purpose computing system environments or configurations. Examples of well-known computing systems, environments, and/or configurations that may be suitable for use with computer system/server 12 include, but are not limited to, personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputer systems, mainframe computer systems, and distributed cloud computing environments that include any of the above systems or devices, and the like.
Computer system/server 12 may be described in the general context of computer system-executable instructions, such as program modules, being executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, and so on that perform particular tasks or implement particular abstract data types. Computer system/server 12 may be practiced in distributed cloud computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computer system storage media including memory storage devices.
As shown in
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA (EISA) bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer system/server 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer system/server 12, and it includes both volatile and non-volatile media, removable and non-removable media.
System memory 28 can include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and/or cache memory 32. Computer system/server 12 may further include other removable/non-removable, volatile/non-volatile computer system storage media. By way of example only, storage system 34 can be provided for reading from and writing to a non-removable, non-volatile magnetic media (not shown and typically called a “hard drive”). Although not shown, a magnetic disk drive for reading from and writing to a removable, non-volatile magnetic disk (e.g., a “floppy disk”), and an optical disk drive for reading from or writing to a removable, non-volatile optical disk such as a CD-ROM, DVD-ROM or other optical media can be provided. In such instances, each can be connected to bus 18 by one or more data media interfaces. As will be further depicted and described below, memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
Program/utility 40, having a set (at least one) of program modules 42, may be stored in memory 28 by way of example, and not limitation, as well as an operating system, one or more application programs, other program modules, and program data. Each of the operating system, one or more application programs, other program modules, and program data or some combination thereof, may include an implementation of a networking environment. Program modules 42 generally carry out the functions and/or methodologies of embodiments of the invention as described herein.
Computer system/server 12 may also communicate with one or more external devices 14 such as a keyboard, a pointing device, a display 24, etc.; one or more devices that enable a user to interact with computer system/server 12; and/or any devices (e.g., network card, modem, etc.) that enable computer system/server 12 to communicate with one or more other computing devices. Such communication can occur via Input/Output (I/O) interfaces 22. Still yet, computer system/server 12 can communicate with one or more networks such as a local area network (LAN), a general wide area network (WAN), and/or a public network (e.g., the Internet) via network adapter 20. As depicted, network adapter 20 communicates with the other components of computer system/server 12 via bus 18. It should be understood that although not shown, other hardware and/or software components could be used in conjunction with computer system/server 12. Examples, include, but are not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data archival storage systems, etc.
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 (or media) having computer readable program instructions thereon for causing a processor to carry out aspects of the present invention.
The computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but is 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. A non-exhaustive list of more specific examples of the computer readable storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination of the foregoing. A computer readable storage medium, as used herein, is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.
Computer readable program instructions described herein can be downloaded to respective computing/processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and/or a wireless network. The network may comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. A network adapter card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing/processing device.
Computer readable program instructions for carrying out operations of the present invention may be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++ or the like, and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGA), or programmable logic arrays (PLA) may execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present invention.
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.
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 produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, a programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein comprises an article of manufacture including instructions which implement aspects of the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process, such that the instructions which execute on the computer, other programmable apparatus, or other device implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart 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 flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts or carry out combinations of special purpose hardware and computer instructions.
The descriptions of the various embodiments of the present invention have been presented for purposes of illustration, but are not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the embodiments, the practical application or technical improvement over technologies found in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.
Welch, Steven R., Drews, Clemens, Bhagwan, Varun, Gruhl, Daniel F., Lewis, Neal R., Webster, April L.
Patent | Priority | Assignee | Title |
Patent | Priority | Assignee | Title |
6915254, | Jul 30 1998 | Optum360, LLC | Automatically assigning medical codes using natural language processing |
7558778, | Jun 21 2006 | Information Extraction Systems, Inc | Semantic exploration and discovery |
7610192, | Mar 22 2006 | Process and system for high precision coding of free text documents against a standard lexicon | |
7657521, | Apr 15 2005 | General Electric Company | System and method for parsing medical data |
7979288, | Oct 12 2007 | Southwest Research Institute | Automated interpretation of medical prescription text |
8260779, | Sep 17 2009 | General Electric Company | Systems, methods, and apparatus for automated mapping and integrated workflow of a controlled medical vocabulary |
8321277, | Jun 30 2008 | Microsoft Technology Licensing, LLC | Method and system for voice ordering utilizing product information |
20030154208, | |||
20050065776, | |||
20050240439, | |||
20060173715, | |||
20060261145, | |||
20080275732, | |||
20090204596, | |||
20090281837, | |||
20090299977, | |||
20100063799, | |||
20110307435, | |||
20120158432, | |||
20120296932, | |||
20130030854, | |||
20130060793, | |||
20130086096, | |||
20130110823, | |||
20130124523, | |||
20140379386, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
May 14 2014 | DREWS, CLEMENS | International Business Machines Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 033070 | /0465 | |
May 14 2014 | GRUHL, DANIEL F | International Business Machines Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 033070 | /0465 | |
May 22 2014 | LEWIS, NEAL R | International Business Machines Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 033070 | /0465 | |
May 22 2014 | WELCH, STEVEN R | International Business Machines Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 033070 | /0465 | |
May 28 2014 | BHAGWAN, VARUN | International Business Machines Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 033070 | /0465 | |
May 28 2014 | WEBSTER, APRIL L | International Business Machines Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 033070 | /0465 | |
May 30 2014 | International Business Machines Corporation | (assignment on the face of the patent) | / |
Date | Maintenance Fee Events |
Date | Maintenance Schedule |
Jun 22 2024 | 4 years fee payment window open |
Dec 22 2024 | 6 months grace period start (w surcharge) |
Jun 22 2025 | patent expiry (for year 4) |
Jun 22 2027 | 2 years to revive unintentionally abandoned end. (for year 4) |
Jun 22 2028 | 8 years fee payment window open |
Dec 22 2028 | 6 months grace period start (w surcharge) |
Jun 22 2029 | patent expiry (for year 8) |
Jun 22 2031 | 2 years to revive unintentionally abandoned end. (for year 8) |
Jun 22 2032 | 12 years fee payment window open |
Dec 22 2032 | 6 months grace period start (w surcharge) |
Jun 22 2033 | patent expiry (for year 12) |
Jun 22 2035 | 2 years to revive unintentionally abandoned end. (for year 12) |