The present invention relates in general to concept and term scoring and clustering and, in particular, to a system and method for scoring concepts in a document set.
Large collections of documents have become increasingly available in electronically stored form due, in part, to the widespread adoption of computer-automated information and decision support systems. At the same time, electronically stored document collections have increasingly complemented and often supplanted traditional forms of printed communications. Electronically stored documents present several significant advantages over traditional printed formats, including efficient storage, rapid searchability, and facilitating immediate communication and publication over networking means, including the Internet.
From a pragmatic standpoint, the availability of electronically stored document collections has presented both a treasure and a curse to those seeking information discovery and retrieval. These types of document collections have expanded to include various forms of information classes, such as word processing documents, electronic mail, Worldwide Web (or simply “Web”) pages, spreadsheets, databases, and the like. And although now available in a highly searchable format, information embedded in documents stored in an electronic format must generally still be “mined” at a semantic level to discover and retrieve the data contained within. Mining out the semantic content of a document collection is essential to certain fields of endeavor, such as during the discovery phase of litigation. However, efficiently discovering and extracting such embedded semantic information can be an intractable problem, particularly when the size of the collection of documents is large.
Text mining is at the core of the information discovery process, and is described in D. Sullivan, “Document Warehousing and Text Mining, Techniques for Improving Business Operations, Marketing, and Sales,” Chs. 1-3, Wiley Computer Publishing (2001), the disclosure of which is incorporated by reference. Text mining involves the compiling, organizing and analyzing of document collections to support identification of types of information contained in the documents and to discover relationships between relevant facts. However, identifying relevant information can be difficult. First, extracting relevant content requires a high degree of precision and recall. Precision is the measure of how well the documents returned in response to a query actually address the query criteria. Recall is the measure of what should have been returned by the query. Typically, the broader and less structured the documents, the lower the degree of precision and recall. Second, analyzing an unstructured document collection without the benefit of a priori knowledge in the form of keywords and indices can present a potentially intractable problem space. Finally, synonymy and polysemy can cloud and confuse extracted content. Synonymy refers to multiple words having the same meaning and polysemy refers to a single word with multiple meanings. Fine-grained text mining must reconcile synonymy and polysemy to yield meaningful results.
Text mining is a significant first step in the overall process of discovering semantic meanings within a document collection. A further problem involves classifying the documents within a collection with respect to ad hoc categories of interest. For instance, during the discovery phase of litigation, documents must often be categorized into distinct groups, such as “relevant,” “non-relevant,” and “privileged.” Generally, the various documents falling into each group share certain characteristics, which can often be expressed as concepts and terms.
Similarly, categorizing the documents themselves into groups of related documents may be necessary as an aid to post-text mining document analysis. Text mining creates a multi-dimensional problem space that can be difficult to intuitively comprehend based on the presence of concepts and terms within the document collection overlapping by various degrees. Data visualization tools are available to display groups or “clusters” of documents, such as described in commonly-assigned U.S. Pat. No. 6,888,548, issued May 3, 2005, and U.S. Pat. No. 6,778,995, issued Aug. 17, 2004, and U.S. Pat. No. 7,271,804, issued Sep. 18, 2007, pending, the disclosures of which are incorporated by reference. Data visualization tools enable a user to rapidly comprehend and pare down the potential search field within a document collection, based on extracted concepts and terms.
In the prior art, text mining is performed in two ways. First, syntactic searching provides a brute force approach to analyzing and extracting content based on literal textual attributes found in each document. Syntactic searching includes keyword and proximate keyword searching as well as rule-based searching through Boolean relationships. Syntactic searching relies on predefined indices of keywords and stop words to locate relevant information. However, there are several ways to express any given concept. Accordingly, syntactic searching can fail to yield satisfactory results due to incomplete indices and poorly structured search criteria.
A more advanced prior art approach uses a vector space model to search for underlying meanings in a document collection. The vector space model employs a geometric representation of documents using word vectors. Individual keywords are mapped into vectors in multi-dimensional space along axes representative of query search terms. Significant terms are assigned a relative weight and semantic content is extracted based on threshold filters. Although substantially overcoming the shortcomings of syntactic searching, the multivariant and multidimensional nature of the vector space model can lead to a computationally intractable problem space. As well, the vector space model fails to resolve the problems of synonymy and polysemy.
Therefore, there is a need for an approach to identifying semantic information within a document collection based on extracted concepts and terms. Preferably, such an approach would assign a score to each concept and term based on the inherent characteristics of each document and the overall document set.
There is a further need for an approach to clustering documents within a document collection with respect to similarities reflected by the scores assigned to the concepts and terms. Preferably, such an approach would accept a set of candidate seed documents for evaluation and initial clustering.
The present invention provides a system and method for scoring and clustering documents based on extracted concepts and terms. Canonical concepts are formed from concepts and terms extracted from a set of documents and the frequencies of occurrences and reference counts of the concepts and terms are determined. Each concept and term is then scored based on frequency, concept weight, structural weight, and corpus weight. The scores are compressed and assigned to normalized score vectors for each of the documents. A similarity between each normalized score vector is determined, preferably as a cosine value. A set of candidate seed documents is evaluated to select a set of seed documents as initial cluster centers based on relative similarity between the assigned normalized score vectors for each of the candidate seed documents. The remaining non-seed documents are evaluated against the cluster centers also based on relative similarity and are grouped into clusters based oil a best fit, subject to a minimum fit criterion.
An embodiment provides a system and method for scoring concepts in a document set. A set of documents is maintained. Concepts including two or more terms extracted from the document set are identified. Each document having one or more of the concepts is designated as a candidate seed document. A score is calculated for each of the concepts identified within each candidate seed document based on a frequency of occurrence, concept weight, structural weight, and corpus weight. A vector is formed for each candidate seed document including the concepts located in that candidate seed document and the associated concept scores. The vector for each candidate seed document is compared with a center of one or more clusters each having thematically-related documents. At least one of the candidate seed documents that is sufficiently distinct from the other candidate seed documents is selected as a seed document for a new cluster. Each of the unselected candidate seed documents is placed into one of the clusters having a most similar cluster center.
Still other embodiments of the present invention will become readily apparent to those skilled in the art from the following detailed description, wherein are described embodiments of the invention by way of illustrating the best mode contemplated for carrying out the invention. As will be realized, the invention is capable of other and different embodiments and its several details are capable of modifications in various obvious respects, all without departing from the spirit and the scope of the present invention. Accordingly, the drawings and detailed description are to be regarded as illustrative in nature and not as restrictive.
The document analyzer 31 analyzes documents retrieved from a plurality of local sources. The local sources include documents 17 maintained in a storage device 16 coupled to a local server 15 and documents 20 maintained in a storage device 19 coupled to a local client 18. The local server 15 and local client 18 are interconnected to the production system 11 over an intranetwork 21. In addition, the document analyzer 31 can identify and retrieve documents from remote sources over an internetwork 22, including the Internet, through a gateway 23 interfaced to the intranetwork 21. The remote sources include documents 26 maintained in a storage device 25 coupled to a remote server 24 and documents 29 maintained in a storage device 28 coupled to a remote client 27.
The individual documents 17, 20, 26, 29 include all forms and types of structured and unstructured data, including electronic message stores, such as word processing documents, electronic mail (email) folders, Web pages, and graphical or multimedia data. Notwithstanding, the documents could be in the form of organized data, such as stored in a spreadsheet or database.
In the described embodiment, the individual documents 17, 20, 26, 29 include electronic message folders, such as maintained by the Outlook and Outlook Express products, licensed by Microsoft Corporation, Redmond, Wash. The database is an SQL-based relational database, such as the Oracle database management system, release 8, licensed by Oracle Corporation, Redwood Shores, Calif.
The individual computer systems, including production system 11, server 15, client 18, remote server 24 and remote client 27, are general purpose, programmed digital computing devices consisting of a central processing unit (CPU), random access memory (RAM), non-volatile secondary storage, such as a hard drive or CD ROM drive, network interfaces, and peripheral devices, including user interfacing means, such as a keyboard and display. Program code, including software programs, and data are loaded into the RAM for execution and processing by the CPU and results are generated for display, output, transmittal, or storage.
The scoring module 42 generates scores 52 for each of the concepts and terms, based on frequencies 53, concept weights 54, structural weights 55, and corpus weights 56, as further described below with reference to
The clustering module 43 forms clusters 58 of the documents 14 using the similarities of concepts and terms between the normalized score vectors 57, as further described below with reference to
The display and visualization module 44 complements the operations performed by the document analyzer 31 by presenting visual representations of the information extracted from the documents 14. The display and visualization module 44 generates a concept graph 61 of concept references determined over all documents 14, as further described below with reference to
Each module is a computer program, procedure or module written as source code in a conventional programming language, such as the C++ programming language, and is presented for execution by the CPU as object or byte code, as is known in the art. The various implementations of the source code and object and byte codes can be held on a computer-readable storage medium or embodied on a transmission medium in a carrier wave. The document analyzer 31 operates in accordance with a sequence of process steps, as further described below with reference to
As a preliminary step, the set of documents 14 to be analyzed is preprocessed (block 81) to identify terms and to extract concepts 65 and terms 66, as further described below with reference to
The set of documents 14 maintained in the storage device 13 is processed in an iterative processing loop (blocks 91-99). During each iteration (block 91), each document 14 is retrieved from the storage device 13 and converted into a document record 48 (block 92) maintained in the database 30, as further described below with reference to
Preliminarily, each document 14 may be preprocessed (block 93) to remove extraneous formatting characters, such as hard returns or angle brackets, often used to embed previous email messages. Preprocessing maximizes syntactical extraction of desired terms and phrases without altering any semantic contents.
The global stop concept cache 45 contains a set of globally-applicable stop concepts used to suppress generic terms, such as “late,” “more,” “good,” or any user-defined stop concepts, which are suppressed to emphasize other important concepts in specific review contexts. In the described embodiment, the global stop concept cache 45 is generated dynamically after document analysis as document review progresses. Other forms of term and concept exclusion could be provided, as would be recognized by one skilled in the art.
Next, terms within the documents 14 are identified (block 94). Terms are defined on the basis of extracted noun phrases, although individual nouns or tri-grams (word triples) could be used in lieu of noun phrases. In the described embodiment, the noun phrases are extracted using the LinguistX product licensed by Inxight Software, Inc., Santa Clara, Calif. The identified phrases consist of regular nouns, as well as proper nouns or adjectives.
Next, the phrases are normalized (block 95) and used to identify canonical concepts (block 96). Unless indicated otherwise, the term “concepts” refers to canonical concepts as stored in a concept record 49 and applies equally to both concepts 65 and terms 66. Canonical concepts include the concepts 65 and terms 66 preferably processed into word stem form. In addition, the individual terms 66 comprising each concept 65 are converted to uniform lower case type and are alphabetized. By way of example, the sentence, “I went to the Schools of Business,” would yield the canonical concept “business, school.” Similarly, the sentence, “He went to Business School,” would yield the same canonical concept “business, school.” Other forms of canonical concepts could be used, including alternate word forms and arrangements, as would be recognized by one skilled in the art.
The canonical concepts are then used to build concept records 49 and term records 50 (block 97), as further described below with reference to
As an initial step, each concept 56 and term 66 is individually scored (block 131), as further described below with reference to
For example, assume a normalized score vector 57 for a first document A is {right arrow over (S)}A={(5, 0.5), (120, 0.75)} and a normalized score vector 57 for another document B is {right arrow over (S)}B={(3, 0.4), (5, 0.75), (47, 0.15)}. Document A has scores corresponding to concepts ‘5’ and ‘120’ and Document B has scores corresponding to concepts ‘3,’ ‘5’ and ‘47.’ Thus, these documents only have concept ‘5’ in common.
An inner product of the normalized score vector 57 for the current document 14 is calculated against the normalized score vectors 57 of each other document 14 among corresponding dimensions (block 134) by iterating through the paired values in the normalized score vector 57 to identify commonly occurring concepts 65 and terms 66. Cosine cos σ is equivalent to the inner products between two normalized vectors. The cosine cos σ provides a measure of relative similarity or dissimilarity between the concepts 65 and terms 66 occurring in each document 14 and can therefore serve as a form of similarity metric, as would be recognized by one skilled in the art. In the described embodiment, the cosine cos σ is calculated in accordance with the equation:
where cos σAB comprises the similarity for between the document A and the document B, {right arrow over (S)}A comprises a score vector 57 for document A, and {right arrow over (S)}B comprises a score vector 57 for document B. Other forms of determining a relative similarity metric are feasible, as would be recognized by one skilled in the art. Processing continues with the next document 14 (block 135), after which the routine returns.
A score 52 is calculated for each concept 65 and term 66 in an iterative processing loop (block 141-147). During each iteration (block 141), a score 52 is calculated as follows. First, a concept weight 54 is determined for the concept 65 or term 66 (block 142). The concept weight 54 reflects the specificity of the meaning of a single concept 65 or term 66.
In the described embodiment, each concept weight 54 is based on the number of individual terms 66 that make up the concept 65 or term 66. Each concept weight 54 is calculated in accordance with the following equation:
where cwij comprises the concept weight and tij comprises a number of terms for occurrence j of each such concept i. The specificity of the meaning of a single concept 65 increases as the number of terms 66 occurring in the concept 65 increases. Intuitively, three to four terms 66 per concept 65 have proven more useful than other numbers of terms for differentiating between documents 14. Conversely, long concepts having in excess of five or more terms 66 tend to reflect parsing errors or are too specific for effective clustering.
Next, a structural weight 55 is determined for the concept 65 or term 66 (block 143). Each structural weight 55 reflects a varying degree of significance assigned to the concept 65 or term 66 based on structural location within the document 14. For example, subject lines in electronic mail (email) messages are assigned more importance than signature blocks.
In the described embodiment, each structural weight 55 is determined in accordance with the equation:
where swij comprises the structural weight for occurrence j of each such concept i. Other assignments of structural weight based on the location or arrangement of a concept 65 or term 66 occurrence within a document 14 are feasible, as would be recognized by one skilled in the art.
Next, a corpus weight is determined for the concept 65 or term 66 (block 144). The corpus weight 56 inversely weighs the reference count of the occurrences of each concept 65 or term 66 within a given document 14. The overall goal of forming clusters 58 is to group those documents 14 having similar content. Accordingly, the reference count of each concept 65 and term 66 can be used to differentiate document similarities. However, frequently referenced concepts 65 and terms 66 can dilute the differentiating measure of the reference counts and are ineffective in grouping similar documents. The reference counts for infrequently referenced concepts 65 and terms 66 also lack appreciable meaning as a differentiating measure except when evaluating clusters 58 for a small document set.
In the described embodiment, each corpus weight 56 is determined in accordance with the equation:
where rwij comprises the corpus weight, rij comprises a reference count for occurrence j of each such concept i, T comprises a total number of reference counts of documents in the document set, and M comprises a maximum reference count of documents in the document set. A value of 10% is used to indicate the maximum reference count at which a score contribution is discounted, although other limits could be used, as would be recognized by one skilled in the art.
Next, the actual score 52 for each concept 65 and term 66 is determined (block 145). Note each concept 65 and term 66 could occur one or more times within the same document 14 and could be assigned different structural weights 55 based on structural locations within the document 14. Each score 52 represents the relative weight afforded to each concept 65 and term 66 with respect to a particular document 14.
In the described embodiment, each score 52 is calculated in accordance with the equation:
where Si comprises the score 52, fij comprises the frequency 53, 0≦cwij≦1 comprises the concept weight 54, 0<swij≦1 comprises the structural weight 55, and 0<rwij≦1 comprises the corpus weight 56 for occurrence j of concept i within a given document 14. Finally, the score 52 is compressed (block 146) to minimize the skewing caused by concepts 65 and terms 66 occurring too frequently.
In the described embodiment, each compressed score is determined in accordance with the equation:
S
i′=log(Si+1)
where Si′ comprises the compressed score 52 for each such concept i. Logarithmical compression provides effective linear vector representation of those documents 14 having a large body of content. Other forms of score compression could be used, as would be recognized by one skilled in the art.
Processing continues with the next concept 65 or term 66 (block 147), after which the routine returns.
The routine proceeds in two phases. During the first phase (blocks 161-169), seed candidate documents 60 are evaluated to identify a set of seed documents 59. During the second phase (blocks 170-176), non-seed documents 78 are evaluated and grouped into clusters 58 based on a best-fit criterion.
First, candidate seed documents 60 are identified (block 161) and ordered by category (block 162). In the described embodiment, the candidate seed documents 60 are selected based on a subjective evaluation of the documents 14 and are assigned into generalized categories, such as “responsive,” “non-responsive,” or “privileged.” Other forms of classification and categorization are feasible, as would be recognized by one skilled in the art.
Next, the candidate seed documents 60 are ordered within each category based on length (block 163). Each candidate seed document 60 is then processed in an iterative processing loop (blocks 164-169) as follows. The similarity between each current candidate seed document 60 and the cluster centers 58, based on seed documents already selected 59, is determined (block 165) as the cosine cos σ of the normalized score vectors 57 for the candidate seed documents 60 being compared. Only those candidate seed documents 60 that are sufficiently distinct from all cluster centers 58 (block 166) are selected as seed documents 59 (block 167). In the described embodiment, a range of 0.10 to 0.25 is used, although other ranges and spatial values could be used, as would be recognized by one skilled in the art.
If the candidate seed documents 60 being compared are not sufficiently distinct (block 166), the candidate seed document 60 is grouped into a cluster 58 with the most similar cluster center 58 to which the candidate seed document 60 was compared (block 168). Processing continues with the next candidate seed document 60 (block 169).
In the second phase, each non-seed document 78 is iteratively processed in an iterative processing loop (blocks 170-176) as follows. The non-seed documents 78 are simply those documents 14 other than the seed documents 60. Again, the similarity between each current non-seed document 78 and each of the cluster centers based on the seed documents 59 is determined (block 171) as the cosine cos σ of the normalized score vectors 57 for each of the non-seed documents 78. A best fit between the current non-seed document 78 and the cluster centers 58 is found subject to a minimum fit criterion (block 172). In the described embodiment, a minimum fit criterion of 0.25 is used, although other minimum fit criteria could be used, as would be recognized by one skilled in the art. If a best fit is found (block 173), the current non-seed document 78 is grouped into the cluster 58 having the best fit (block 175). Otherwise, the current non-seed document 78 is grouped into a miscellaneous cluster (block 174). Processing continues with the next non-seed document 78 (block 176). Finally, a dynamic threshold is applied to each cluster 58 (block 177), as further described below with reference to
Referring back to
Upon completion of the computation of similarity calculations for each document 202, the standard deviation of all documents 202 from the center 203 of the current cluster 201 is determined and a dynamic threshold 204 is set (block 185). In the described embodiment, a dynamic threshold 204 of ±1.2 standard deviations is used, although other dynamic thresholds 204 could also be used, as would be recognized by one skilled in the art. Next, those documents 202 in the current cluster 201, which are outside of the dynamic threshold 204, that is, outlier documents 205, are identified (block 186) and are processed in an iterative processing loop (blocks 187-193) as follows. The similarity between each outlier document 205 and each of the cluster centers is determined (block 188) based on the cosine cos σ of the normalized score vectors 57 for each of the outlier documents 205. A best fit between the outlier document 205 and the cluster centers is found subject to a minimum fit criterion and the dynamic threshold 204 (block 189). In the described embodiment, a minimum fit criterion of 0.25 is used, although other minimum fit criteria could be used, as would be recognized by one skilled in the art. The dynamic threshold 204 used to rescale each cluster-to-document similarity, which enables comparisons of similarities across all available clusters, is calculated in accordance with the equation:
where similaritynew comprises a new similarity, similarityold comprises the old similarity and threshold comprises the dynamic threshold 204.
If a best fit is found (block 190), the outlier document 205 is grouped into the cluster 58. Otherwise, the outlier document 205 is grouped into a miscellaneous cluster (block 191). Processing continues with the next outlier document 205 (block 192) and the next cluster 201 (block 193), after which the routine returns.
While the invention has been particularly shown and described as referenced to the embodiments thereof, those skilled in the art will understand that the foregoing and other changes in form and detail may be made therein without departing from the spirit and scope of the invention.
This patent application is a continuation of U.S. patent application Ser. No. 10/626,984, filed Jul. 25, 2003, pending, the priority date of which is claimed and the disclosure of which is incorporated by reference.
Number | Date | Country | |
---|---|---|---|
Parent | 10626984 | Jul 2003 | US |
Child | 12606171 | US |