Process for semi-automatic maintenance of a knowledge base using tagged examples

Information

  • Patent Application
  • 20040117335
  • Publication Number
    20040117335
  • Date Filed
    December 16, 2002
    21 years ago
  • Date Published
    June 17, 2004
    20 years ago
Abstract
The present invention provides a method for maintaining a knowledge base. The method taking as input, text examples that are tagged with a structural markup language; and maps knowledge nodes in the knowledge base with the tagged examples to determine: (1) the knowledge nodes that best match the tagged examples, and (2) the knowledge nodes that are best connected to the tagged examples. The results are displayed to the user, who verifies that the tagged examples match the selected knowledge nodes. Based on the user response, indices of the knowledge nodes are updated. The method may further include determining discrepancies between the existing knowledge base and the tagged examples, and further displaying the discrepancies to the user. The user can update the missing information in the knowledge base to remove the discrepancies in the existing knowledge base.
Description


BACKGROUND OF THE INVENTION

[0001] Knowledge is an important resource for business organizations. It is constantly being generated as a result of the continuous accumulation of information, and its use by an organization. Knowledge bases are used to store the generated knowledge.


[0002] Knowledge bases need regular maintenance, as knowledge is not a static resource. Fresh insights, changing business requirements, alternative or external resources and acquired experiences have to be constantly incorporated to the existing knowledge.


[0003] To this end, usually there are knowledge engineers who are assigned the task of maintaining and updating knowledge bases. Maintaining a structured knowledge base involves searching through the knowledge base to match the knowledge present in the knowledge base with knowledge obtained from interviews with experts. This is an economically unviable and manually intensive process. Knowledge engineers have to depend completely on the experts to determine whether any information is missing, or any discrepancies exist in the knowledge base, and to provide them with the necessary information.


[0004] Another problem that knowledge engineers face is the task of classifying the information that they obtain through interviews with experts, for incorporation into the knowledge base. Known techniques fail to appreciate and effectively address these concerns.


[0005] Accordingly, the present invention addresses the abovementioned problems and others.



BRIEF SUMMARY OF THE INVENTION

[0006] The present invention provides systems and methods for maintaining knowledge bases using tagged text examples. In accordance with one aspect, the present invention provides a method that is envisioned to work in a knowledge base, where the information is arranged in knowledge nodes such as “symptom” and “solution”. These knowledge nodes are set in hierarchical structures or a network of nodes (semantic network) that are further indexed with text matching methods. The present invention takes as input, text examples that are tagged with a structural markup language. These tagged examples are compared to knowledge nodes in the knowledge base to determine: (1) the knowledge nodes that best match the tagged examples, and (2) the knowledge nodes that are best connected to the tagged examples short-listed from the knowledge nodes that best match the tagged examples. The results are displayed to the user, and the user verifies that the tagged examples match the selected knowledge nodes. Based on the user's response, indices of the knowledge nodes are updated. The method may further include determining discrepancies between the existing knowledge base and the tagged examples, and displaying the discrepancies to the user. The user can update the missing information in the knowledge base to remove the discrepancies in the existing knowledge base.


[0007] In accordance with one aspect, the present invention provides a system for maintaining a knowledge base, where information in the knowledge base is arranged in knowledge nodes such as “symptom” and “solution”, set in hierarchical structures or a network of nodes (semantic) structure that are further indexed with text matching methods; an input portion that accepts an input of text examples that are tagged with a structural markup language; a mapping portion that matches knowledge nodes in the knowledge base with the tagged examples to determine: first, a best match between the knowledge nodes and the tagged examples and; second, the best-connected knowledge nodes, from the knowledge best matched to the tagged examples; a modifying portion for updating the indices of the knowledge nodes; and a displaying portion which shows the discrepancies between the existing knowledge base and the tagged examples to the user, which the user can update accordingly.


[0008] In accordance with one aspect, the present invention provides a computer readable medium for maintaining a knowledge base where a first portion of the computer readable program accepts an input of text examples that are tagged with a structural markup language; a second portion matches knowledge nodes in the knowledge base with the tagged examples to determine the knowledge nodes that best match the tagged examples and; from the knowledge best matched to the tagged examples, the best-connected knowledge nodes are determined; a third portion updates the indexes of the knowledge nodes; and a fourth portion shows the discrepancies between the existing knowledge base and the tagged examples to the user, which the user can update accordingly.







BRIEF DESCRIPTION OF THE DRAWINGS

[0009] The various embodiments of the present invention will hereinafter be described in conjunction with the appended drawings provided to illustrate and not to limit the present invention, wherein like designations denote like elements, and in which:


[0010]
FIG. 1 is a block diagram that illustrates the general environment in which one embodiment of the present invention works;


[0011]
FIG. 2 is a flowchart that illustrates the working of the present invention in accordance with one embodiment of the present invention;


[0012]
FIG. 3 is a flowchart that illustrates the step of mapping input tagged text examples to the knowledge nodes in further detail, in accordance with one embodiment of the present invention;


[0013]
FIG. 4 is a schematic diagram that illustrates three exemplary case notes that form an exemplary knowledge base in accordance with one embodiment of the present invention;


[0014]
FIG. 5 is a schematic diagram that illustrates the structure of an exemplary knowledge base in accordance with one embodiment of the present invention;


[0015]
FIG. 6 is a schematic diagram that illustrates an exemplary situation wherein knowledge nodes are matched to an input tagged example, in accordance with one embodiment of the present invention;


[0016]
FIG. 7 is a schematic diagram that illustrates the process of determination of missing information in the knowledge base in accordance with one embodiment of the present invention;


[0017]
FIG. 8 is a schematic diagram that illustrates the addition of a new case to the knowledge base, based on the input case in accordance with one embodiment of the present invention; and


[0018]
FIG. 9 is a block diagram that illustrates the system in accordance with one embodiment of the present invention.







DETAILED DESCRIPTION OF THE INVENTION

[0019] The present invention is envisioned to be operating in structured knowledge bases such as Bayesian Belief Nets (BBN) and others, interactive learning systems such as equipment Failure Modes And Effects Analysis (eFMEA), Decision trees and Case-based reasoning systems. Information in these structures is arranged in a hierarchical form or a network of nodes (semantic network) comprising knowledge nodes, and the present invention may be adapted to operate on any structures that have a hierarchical form or semantic network of structuring information into knowledge nodes. Further, each of the knowledge nodes is indexed with text matching methods, including, but not limited to n-gram, keyword frequency and arrays.


[0020] It may be noted, however, that though the present invention is envisioned to be operating in conjunction with structured knowledge bases, this does not limit the scope of the present invention in any manner. Further, it should be further understood that the present invention can also be implemented with a network of nodes (semantic network). Further, the recitation of network structures includes those structures that are hierarchical forms, semantic networks and any other types that may be used by those skilled in the art.


[0021]
FIG. 1 is a block diagram that illustrates the general environment in which one embodiment of the present invention works. The present invention resides on a computational device 104, and accesses a database 102. Database 102 contains documents such as case notes. Typical examples of database 102 include Oracle InterMedia and Microsoft SQLServer. A user interacts with the present invention and inputs tags and keywords. The present invention then automatically tags the case notes.


[0022] Typical examples of computing device 104 include a general-purpose computer, a programmed microprocessor, a micro-controller, a peripheral integrated circuit element, a server and other devices or arrangements of devices. Computational device 104 is to be understood to include at least one processor that uses at least one memory. The at least one memory stores a set of instructions. The instructions may be either permanently or temporarily stored in the memory or memories of the processing machine. The processor executes the instructions that are stored in the memory or memories in order to process data. The set of instructions may include various instructions that perform a particular task or tasks, such as those tasks described below in the flowcharts. Such a set of instructions for performing a particular task may be characterized as a program, software program, or simply software.


[0023] Computational device 104 executes a set of instructions that are stored in one or more storage elements, in order to process input data. The storage elements may also hold data or other information as desired. The storage element may be in the form of a database or a physical memory element present in the processing machine.


[0024] The set of instructions may include various instructions that instruct computational device 104 to perform specific tasks such as the steps that constitute the method of the present invention. The set of instructions may be in the form of a program or software. The software may be in various forms such as system software or application software. Further, the software might be in the form of a collection of separate programs, a program module with a larger program or a portion of a program module. The software might also include modular programming in the form of object-oriented programming. The processing of input data by computational device 104 may be in response to user commands, or in response to results of previous processing or in response to a request made by another processing machine.


[0025] A person skilled in the art can appreciate that it is not necessary that the various computational devices 104 and/or storage elements be physically located in the same geographical location. Computational devices 104 and/or storage elements may be located in geographically distinct locations and connected to each other to enable communication. Various communication technologies may be used to enable communication between computational devices 104 and/or storage elements. Such technologies include connection of computational devices 104 and/or storage elements, in the form of a network. The network can be an intranet, an extranet, the Internet or any client server models that enable communication. Such communication technologies may use various protocols such as TCP/IP, UDP, ATM or OSI.


[0026] In the system and method of the present invention, a variety of “user interfaces” may be utilized to allow a user to interface with computational device 104 or machines that are used to implement the present invention. Computational device 104 uses the user interface to interact with a user in order to convey or receive information. The user interface could be any hardware, software, or a combination of hardware and software used by computational device 104 that allows a user to interact with the processing machine. The user interface may be in the form of a dialogue screen and may include various associated devices to enable communication between a user and computational device 104. It is contemplated that the user interface might interact with another computational device 104 rather than a human user. Further, it is also contemplated that the user interface may interact partially with other computational devices 104 while also interacting partially with the human user.


[0027]
FIG. 2 is a flowchart that illustrates the working of the present invention in accordance with one embodiment of the invention. At step 201, there is an input of a set of text examples, which are tagged with a structural markup language. In a preferred embodiment, the structural markup language used is eXtensible Markup Language (XML).


[0028] At step 203, the tagged text examples are mapped to knowledge nodes in the knowledge base. This mapping process is explained in detail in FIG. 3.


[0029] At step 205, the knowledge nodes that best match and are best connected to the tagged example are presented to the user in order of decreasing relevance.


[0030] At step 207, the example that has been selected for processing is displayed and the user verifies that the text matches the knowledge nodes. If there are multiple matches, the matches are displayed to the user with matching and mismatching parts highlighted, so that the user can determine the most relevant matches.


[0031] At step 209, indexes on the knowledge nodes selected by the user are updated according to the matches selected by the user.


[0032] At step 211, discrepancies between the existing knowledge base and the tagged text examples are displayed to the user and the user indicates what needs to be updated. The user can update this knowledge accordingly.


[0033]
FIG. 3 is a flowchart that illustrates the process of mapping input tagged text examples to the knowledge nodes in the knowledge base in FIG. 2 in accordance with one embodiment of the invention.


[0034] At step 301, knowledge nodes that best match the input tagged example are determined. Matches are performed using standard natural language text clustering, where the frequency of occurrence of words in the input tagged example is calculated by reducing words to their roots in the example. Thus, a search for the word “swimming” will also match words “swam”, “swum” and “swim”, because the word swim is the root for all of these. That, if the word “swimming” is present in the tagged example, then the knowledge base will be searched for words “swam”, “swum”, “swimming” and “swim”.


[0035] At step 303, the frequency of occurrence of words in the tagged example is compared to the normal frequency of the words in the knowledge base and a ratio is calculated. In other embodiment, the calculation need not be a ratio but any calculation that can determine similar properties can be used. Words that appear more frequently in the tagged example than the normal frequency of words in the knowledge base are considered the most relevant words. As a result, sentences, which share the most important words, are considered the best match.


[0036] At step 305, the number of matching knowledge nodes is reduced to knowledge nodes that are not only best matched, but also best connected to the tagged example. For instance, if two symptoms in the knowledge base seem to match the symptom in the tagged text example, the symptom of the stored case in the knowledge base whose other features match the current case the best, is considered “best connected”.


[0037]
FIG. 4 is a schematic diagram that illustrates three exemplary case notes that form an exemplary knowledge base in accordance with one embodiment of the present invention. The information provided in these case notes is in an unstructured format. For instance, in the first case, the following information is provided:


[0038] “The radio does not work.


[0039] The display is dark.


[0040] Put in a new radio.”


[0041] Similarly the second case contains the following information:


[0042] “Radio is not working.


[0043] Radio display is dim when off, but when you turn it on, then it goes dark.


[0044] Blown fuse 13 replaced.”


[0045] The third case provides the following information:


[0046] “Hatchback light would not turn off.


[0047] Dome light also on.


[0048] Greased the latch and now it works.”


[0049] These exemplary case notes are used as the basis while forming an exemplary knowledge base, as depicted in FIG. 5.


[0050]
FIG. 5 is a schematic diagram that illustrates the structure of an exemplary knowledge base in accordance with one embodiment of the present invention. The knowledge base is organized in a hierarchical structure or a network of nodes (semantic structure), where the information in the three exemplary case notes provided in FIG. 3 is arranged in hierarchical knowledge nodes, and tagged with structural markup tags such as <Symptom> and <Fix>. These are shown in FIG. 5 as Case 1, Case 2 and Case 3.


[0051] In Case 1, “The radio does not work” is tagged as <Symptom> and “The display is dark” is tagged as <Symptom>, while “Put in a new radio” is tagged as <Fix>.


[0052] In Case 2, “Radio is not working” is tagged as <Symptom> and “Radio display is dim when off, but when you turn it on, then it goes dark” is tagged as <Symptom>, while “Blown fuse 13 replaced” is tagged as <Fix>.


[0053] Similarly, in Case 3, “Hatchback light would not turn off” is tagged as <Symptom> and “Dome light also on” is tagged as <Symptom>, while “Greased the latch and now it works” is tagged as <Fix>.


[0054] The <Symptom> “The radio does not work” of Case 1 is similar to the <Symptom> “Radio is not working” of Case 2 and are therefore connected in the knowledge base.


[0055]
FIG. 6 is a schematic diagram that illustrates an exemplary situation wherein knowledge nodes are matched to an input tagged example, in accordance with one embodiment of the present invention. The tags on the input case are not displayed to avoid confusion. The input case, which is shown as “New Case” in the figure, contains the following information: “Radio doesn't work.


[0056] It shows dim time but goes dark when turned on. Hatchback light is also on. New fuse 13.”


[0057] The information in the input case is compared to the existing information in the knowledge base. Case 2 in the knowledge base has information similar to the input case—namely, the <Symptom> “Radio is not working” in Case 2 is similar to the <Symptom> “Radio doesn't work” in the input case.


[0058] The <Symptom> “Radio display is dim when off, but when you turn it on, then it goes dark” in Case 2 is similar to the <Symptom> “It shows dim time but goes dark when turned on” in the input case.


[0059] The <Fix> “Blown fuse 13 replaced” in Case 2 is similar to the <Fix> “New fuse 13” in the input case. As Case 2 shares the maximum information with the input case, it is best connected to the input case.


[0060] The input case also shares a common <Symptom> with Case 3. The <Symptom> “Hatchback light would not turn off” in the Case 3 is similar to <Symptom> “Hatchback light is also on” in the input case.


[0061] Steps 301 and 303 of FIG. 3 perform the above. Words like “Radio”, “work”, “does”, “doesn't”, “display”, dim”, “new”, “fuse” etc. in the tagged examples are broken down to their root words, and matched with words in the knowledge base.


[0062]
FIG. 7 is a schematic diagram that illustrates the process of determination of missing information in the knowledge base in accordance with one embodiment of the present invention.


[0063] Once the input case is matched with the cases in the knowledge nodes, as in FIG. 6, the information that is missing in knowledge base is identified. Case 2 and Case 3 match all the information in the input case, but neither of them completely matches the input case by itself. Case 2 has all the information present in the input case, except for <Symptom> “Hatchback light is also on”, which is present in Case 3. Thus, the input case is a new case that is to be added to the knowledge base.


[0064] The link between the information in the Case 2 and Case 3 is updated. The <Symptom> “Radio is not working” of Case 2 is linked to <Symptom> “Hatchback light would not turn off” of Case 3, which in turn is linked to <Symptom> “Radio display is dim when off, but when you turn it on, then it goes dark” and in turn to <Fix> “Blown fuse 13 replaced”.


[0065]
FIG. 8 is a schematic diagram that illustrates the addition of a new case to the knowledge base, based on the input case in accordance with one embodiment of the present invention.


[0066] As a result of mapping the input case information to the knowledge nodes in the knowledge base, in FIG. 7, Case 2 is determined to be the best connected to the input case. Case 2 mentions <Fix> “Blown fuse 13 replaced”.


[0067] Therefore, <Fix> “New fuse 13” in the input case depicted in FIG. 5 is substituted with <Fix> “Replaced fusel3” to include information from the second case. A new case is thus revealed, and the user can accordingly update the knowledge base.


[0068] In further explanation of the present invention, FIG. 9 is a block diagram that illustrates the system in accordance with one embodiment of the present invention. Processing portion 901 includes various components, namely a control portion 903, an input/ output portion 905 and a memory 907. Control portion 903 controls overall operations of processing portion 901, such as coordinating the operation of the various components. Input/ output portion 905 inputs a variety of data in conjunction with the input device 909. For example, the input device 909 might be a scanning device, a keyboard, a mouse or a device to provide connection to the Internet.


[0069] Processing portion 901 further includes a mapping portion 911, a modifying portion 913 and a displaying portion 915. The mapping portion 911 is responsible for matching knowledge nodes in the knowledge base with the tagged examples, as described in FIG. 2. The mapping is carried out by first determining a best match between the knowledge nodes and the tagged example. Determining the knowledge nodes that are best connected to the tagged examples further narrows the selected knowledge nodes.


[0070] The modifying portion 913 updates the indices of the knowledge nodes to improve its informational content, while the displaying portion 915 indicates the discrepancies between the existing knowledge base and the tagged examples to the user. The user can update the information, and remove the discrepancy, accordingly.


[0071] The various components of the processing portion 901 are connected using a suitable interface 917, such as a bus. Further, as mentioned above, the various components need not even be geographically together. In such case, interface 917 may even be a network such as the Internet.


[0072] While the various embodiments of the present invention have been illustrated and described, it will be clear that the present invention is not limited to these embodiments only. Numerous modifications, changes, variations, substitutions and equivalents will be apparent to those skilled in the art without departing from the spirit and scope of the present invention as described in the claims.


Claims
  • 1. A method for maintaining and updating a knowledge base, the knowledge base arranged in network structures and consisting of knowledge nodes, each of the knowledge nodes being further indexed using text matching methods, with examples that are tagged with a markup language, the method comprising: a. receiving the tagged examples from a user; b. mapping the tagged examples to the knowledge nodes; c. updating the knowledge base's indices; and d. determining the discrepancies between the knowledge nodes and the tagged examples.
  • 2. The method as recited in claim 1 wherein mapping the tagged examples comprises the steps of: a. determining the knowledge nodes that are best matched to the tagged examples; and b. determining the knowledge nodes that are best connected to the tagged examples.
  • 3. The method as recited in claim 2 wherein determining the knowledge nodes that are best matched to the tagged examples comprises the steps of: a. determining the roots of words in the tagged examples; b. calculating frequency of occurrence of the roots in the tagged examples; and c. calculating the frequency of occurrence of roots to the frequency of words in the knowledge base.
  • 4. The method as recited in claim 2 wherein determining the knowledge nodes that are best connected to the tagged examples comprises the steps of: a. determining the network structure with the maximum number of matching knowledge nodes; and b. displaying the best connected network structures in decreasing order of relevance.
  • 5. The method as recited in claim 4 wherein the step of displaying the best-connected network structures in decreasing order of relevance, comprises the step of displaying the matched and mismatched portions of the network structures, if there are multiple matches.
  • 6. A method for maintaining and updating a knowledge base, the knowledge base arranged in network structures and consisting of knowledge nodes, each of the knowledge nodes being further indexed using text matching methods, with examples that are tagged with a markup language, the method comprising: a. receiving the tagged examples from a user; b. mapping the tagged examples to the knowledge nodes;  wherein the step of mapping the tagged examples further comprises the steps of: i. determining the knowledge nodes that are best matched to the tagged examples;  wherein the step of determining the knowledge nodes that are best matched to the tagged examples comprises the steps of: 1. determining the roots of words in the tagged examples; 2. calculating frequency of occurrence of the roots in the tagged examples; and 3. calculating the frequency of occurrence of roots to the frequency of words in the knowledge base; and ii. determining the knowledge nodes that are best connected to the tagged examples;  wherein the step of determining the knowledge nodes that are best connected to the tagged examples comprises the steps of: 1. determining the network structure with the maximum number of matching knowledge nodes; and 2. displaying the best connected network structures in decreasing order of relevance;  wherein the step of displaying the best-connected network structures in decreasing order of relevance, comprises the step of displaying the matched and mismatched portions of the network structures, if there are multiple matches; c. updating the knowledge base's indices; and d. determining the discrepancies between the knowledge nodes and the tagged examples.
  • 7. A system for maintaining and updating a knowledge base, the knowledge base arranged in network structures and consisting of knowledge nodes, each of the knowledge nodes being indexed using text matching methods, with examples that are tagged with a markup language, comprising: a. input portion that receives the tagged examples from a user; b. mapping portion for comparing the tagged examples with the knowledge nodes; c. modifying portion for updating the knowledge base's indices; and d. displaying portion for showing the discrepancies between the knowledge nodes and the tagged examples.
  • 8. A computer program product for use with a computer, the computer program product comprising a computer usable medium having a computer readable program code embodied therein for maintaining and updating a knowledge base, the knowledge base stored on a computer readable medium and arranged in network structures and consisting of knowledge nodes, each of the knowledge nodes being further indexed using text matching methods, with examples that are tagged with a markup language, the computer program code performing the steps of: a. receiving the tagged examples from a user; b. mapping the tagged examples to the knowledge nodes; c. updating the knowledge base's indices; and c. determining the discrepancies between the knowledge nodes and the tagged examples.
  • 9. The computer program product as recited in claim 8, wherein mapping the tagged examples comprises the steps of: a. determining the knowledge nodes that are best matched to the tagged examples; and b. determining the knowledge nodes that are best connected to the tagged examples.
  • 10. The computer program product as recited in claim 9, wherein determining the knowledge nodes that are best matched to the tagged examples comprises the steps of: a. determining the roots of words in the tagged examples; b. calculating frequency of occurrence of the roots in the tagged examples; and c. calculating the frequency of occurrence of roots to the frequency of words in the knowledge base.
  • 11. The computer program product as recited in claim 9, wherein determining the knowledge nodes that are best connected to the tagged examples comprises the steps of: a. determining the network structure with the maximum number of matching knowledge nodes; and b. displaying the best connected network structures in decreasing order of relevance.
  • 12. The computer program product as recited in claim 11, wherein the step of displaying the best-connected network structures in decreasing order of relevance, comprises the step of displaying the matched and mismatched portions of the network structures, if there are multiple matches.
  • 13. A computer program product for use with a computer, the computer program product comprising a computer usable medium having a computer readable program code embodied therein maintaining and updating a knowledge base, the knowledge base stored on a computer readable medium and arranged in network structures and consisting of knowledge nodes, each of the knowledge nodes being further indexed using text matching methods, with examples that are tagged with a markup language, the computer program code performing the steps of: a. receiving the tagged examples from a user; b. mapping the tagged examples to the knowledge nodes;  wherein the step of mapping the tagged examples further comprises the steps of: i. determining the knowledge nodes that are best matched to the tagged examples;  wherein the step of determining the knowledge nodes that are best matched to the tagged examples comprises the steps of: 1. determining the roots of words in the tagged examples; 2. calculating frequency of occurrence of the roots in the tagged examples; and 3. calculating of the frequency of occurrence of roots to the frequency of words in the knowledge base; and ii. determining the knowledge nodes that are best connected to the tagged examples;  wherein the step of determining the knowledge nodes that are best connected to the tagged examples comprises the steps of: 1. determining the network structure with the maximum number of matching knowledge nodes; and 2. displaying the best connected network structures in decreasing order of relevance;  wherein the step of displaying the best-connected network structures in decreasing order of relevance, comprises the step of displaying the matched and mismatched portions of the network structures, if there are multiple matches. c. updating the knowledge base's indices; and d. determining the discrepancies between the knowledge nodes and the tagged examples.