Attribute Entropy as a Signal in Object Normalization
A system and method determines whether two objects are duplicate objects. The system and method matches common facts of the two objects based on a match measure, combines the entropies of the matching common facts, and determines whether the two objects are duplicate objects based on the sum of entropies.
This application is a continuation application of U.S. patent application Ser. No. 11/356,765, filed Feb. 17, 2006, entitled “Attribute Entropy as a Signal in Object Normalization”, which is incorporated by reference herein in its entirety.
This application is related to the following U.S. Applications all of which are incorporated by reference herein: U.S. patent application Ser. No. 11/357,748 filed on Feb. 17, 2006; U.S. patent application Ser. No. 11/342,290 filed on Jan. 27, 2006; U.S. patent application Ser. No. 11/342,293 filed on Jan. 27, 2006; U.S. patent application Ser. No. 11/356,679 filed on Feb. 17, 2006; U.S. patent application Ser. No. 11/356,837 filed on Feb. 17, 2006; U.S. patent application Ser. No. 11/356,851 filed on Feb. 17, 2006; U.S. patent application Ser. No. 11/356,842 filed on Feb. 17, 2006; U.S. patent application Ser. No. 11/356,728 filed on Feb. 17, 2006; U.S. patent application Ser. No. 11/341,069 filed on Jan. 27, 2006; U.S. patent application Ser. No. 11/356,838 filed on Feb. 17, 2006; U.S. patent application Ser. No. 11/341,907 filed on Jan. 27, 2006; and U.S. patent application Ser. No. 11/342,277 filed on Jan. 27, 2006.
TECHNICAL FIELDThe disclosed embodiments relate generally to fact databases. More particularly, the disclosed embodiments relate to determining whether two objects are duplicate objects.
BACKGROUNDData is often organized as large collections of objects. When the objects are added over time, there are often problems with data duplication. For example, a collection may include multiple objects that represent the same entity. Objects are duplicate objects if they represent the same entity, even if the information about the entity contained in the objects is different. Duplicate objects increase storage cost, take longer time to process, and confuse the display of information to the user. Duplicate objects can also lead to inaccurate results, such as an inaccurate count of distinct objects.
Some applications determine whether two objects are duplicate objects by comparing the value of a specific fact, such as the Social Security Number (SSN), the International Standard Book Number (ISBN), or the Universal Product Code (UPC). This approach is effective when all objects contain one of such facts. The specific facts used for comparison are analogous to the primary keys of database tables in relational databases. But for objects built on incomplete information, some objects may not have any of these facts. Also, when values of such facts associated with either of the two objects are inaccurate, this approach treats the two objects as distinct objects even if other facts associated with the two objects indicate that they are duplicate objects. Thus, this approach only determines whether two objects are duplicate objects when both objects include accurate and complete information.
Some other applications identify whether two objects are duplicate objects by comparing all common facts of the two objects. The two objects are determined to be duplicate objects when the number of matching common facts exceeds a threshold. This approach is problematic because it does not always give accurate results. For example, the chance that two objects sharing the same gender being duplicates are much lower than that of two objects sharing the same date of birth. By treating all facts equally, this approach is both over-inclusive by identifying distinct objects sharing many facts with little indicating value, and under-inclusive by excluding duplicate objects sharing few facts with great indicating value.
For these reasons, what is needed is a method and system that determines whether two objects built from imperfect information are duplicate objects.
SUMMARYOne method for determining whether two objects are duplicate objects is as follows. Common facts of the two objects are identified. Common facts of the two objects are the facts with the same attribute that are associated with the two objects. Values of the common facts are compared to identify matching common facts. Two objects have a matching common fact if they have a fact with the same attribute and the same value. Entropy of the matching common facts are combined (e.g., added) and compared with an entropy threshold. Objects with a sum of entropies exceeding the entropy threshold are determined to be duplicate objects.
These features are not the only features of the invention. In view of the drawings, specification, and claims, many additional features and advantages will be apparent.
The figures depict various embodiments of the present invention for purposes of illustration only. One skilled in the art will readily recognize from the following discussion that alternative embodiments of the structures and methods illustrated herein may be employed without departing from the principles of the invention described herein.
DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS System ArchitectureDocument hosts 102 store documents and provide access to documents. A document is comprised of any machine-readable data including any combination of text, graphics, multimedia content, etc. A document may be encoded in a markup language, such as Hypertext Markup Language (HTML), i.e., a web page, in an interpreted language (e.g., JavaScript) or in any other computer readable or executable format. A document can include one or more hyperlinks to other documents. A typical document will include one or more facts within its content. A document stored in a document host 102 may be located and/or identified by a Uniform Resource Locator (URL), or Web address, or any other appropriate form of identification and/or location. A document host 102 is implemented by a computer system, and typically includes a server adapted to communicate over the network 104 via networking protocols (e.g., TCP/IP), as well as application and presentation protocols (e.g., HTTP, HTML, SOAP, D-HTML, Java). The documents stored by a host 102 are typically held in a file directory, a database, or other data repository. A host 102 can be implemented in any computing device (e.g., from a PDA or personal computer, a workstation, mini-computer, or mainframe, to a cluster or grid of computers), as well as in any processor architecture or operating system.
Janitors 110 operate to process facts extracted by importer 108. This processing can include but is not limited to, data cleansing, object merging, and fact induction. In one embodiment, there are a number of different janitors 110 that perform different types of data management operations on the facts. For example, one janitor 110 may traverse some set of facts in the repository 115 to find duplicate facts (that is, facts that convey the same factual information) and merge them. Another janitor 110 may also normalize facts into standard formats. Another janitor 110 may also remove unwanted facts from repository 115, such as facts related to pornographic content. Other types of janitors 110 may be implemented, depending on the types of data management functions desired, such as translation, compression, spelling or grammar correction, and the like.
Various janitors 110 act on facts to normalize attribute names, and values and delete duplicate and near-duplicate facts so an object does not have redundant information. For example, we might find on one page that Britney Spears' birthday is “12/2/1981” while on another page that her date of birth is “Dec. 2, 1981.” Birthday and Date of Birth might both be rewritten as Birthdate by one janitor and then another janitor might notice that 12/2/1981 and Dec. 2, 1981 are different forms of the same date. It would choose the preferred form, remove the other fact and combine the source lists for the two facts. As a result when you look at the source pages for this fact, on some you'll find an exact match of the fact and on others text that is considered to be synonymous with the fact.
Build engine 112 builds and manages the repository 115. Service engine 114 is an interface for querying the repository 115. Service engine 114's main function is to process queries, score matching objects, and return them to the caller but it is also used by janitor 110.
Repository 115 stores factual information extracted from a plurality of documents that are located on document hosts 102. A document from which a particular fact may be extracted is a source document (or “source”) of that particular fact. In other words, a source of a fact includes that fact (or a synonymous fact) within its contents.
Repository 115 contains one or more facts. In one embodiment, each fact is associated with exactly one object. One implementation for this association includes in each fact an object ID that uniquely identifies the object of the association. In this manner, any number of facts may be associated with an individual object, by including the object ID for that object in the facts. In one embodiment, objects themselves are not physically stored in the repository 115, but rather are defined by the set or group of facts with the same associated object ID, as described below. Further details about facts in repository 115 are described below, in relation to
It should be appreciated that in practice at least some of the components of the data processing system 106 will be distributed over multiple computers, communicating over a network. For example, repository 115 may be deployed over multiple servers. As another example, the janitors 110 may be located on any number of different computers. For convenience of explanation, however, the components of the data processing system 106 are discussed as though they were implemented on a single computer.
In another embodiment, some or all of document hosts 102 are located on data processing system 106 instead of being coupled to data processing system 106 by a network. For example, importer 108 may import facts from a database that is a part of or associated with data processing system 106.
As described above, each fact is associated with an object ID 209 that identifies the object that the fact describes. Thus, each fact that is associated with a same entity (such as George Washington), will have the same object ID 209. In one embodiment, objects are not stored as separate data entities in memory. In this embodiment, the facts associated with an object contain the same object ID, but no physical object exists. In another embodiment, objects are stored as data entities in memory, and include references (for example, pointers or IDs) to the facts associated with the object. The logical data structure of a fact can take various forms; in general, a fact is represented by a tuple that includes a fact ID, an attribute, a value, and an object ID. The storage implementation of a fact can be in any underlying physical data structure.
Also, while the illustration of
Each fact 204 also may include one or more metrics 218. A metric provides an indication of the some quality of the fact. In some embodiments, the metrics include a confidence level and an importance level. The confidence level indicates the likelihood that the fact is correct. The importance level indicates the relevance of the fact to the object, compared to other facts for the same object. The importance level may optionally be viewed as a measure of how vital a fact is to an understanding of the entity or concept represented by the object.
Each fact 204 includes a list of one or more sources 220 that include the fact and from which the fact was extracted. Each source may be identified by a Uniform Resource Locator (URL), or Web address, or any other appropriate form of identification and/or location, such as a unique document identifier.
The facts illustrated in
Some embodiments include one or more specialized facts, such as a name fact 207 and a property fact 208. A name fact 207 is a fact that conveys a name for the entity or concept represented by the object ID. A name fact 207 includes an attribute 224 of “name” and a value, which is the name of the object. For example, for an object representing the country Spain, a name fact would have the value “Spain.” A name fact 207, being a special instance of a general fact 204, includes the same fields as any other fact 204; it has an attribute, a value, a fact ID, metrics, sources, etc. The attribute 224 of a name fact 207 indicates that the fact is a name fact, and the value is the actual name. The name may be a string of characters. An object ID may have one or more associated name facts, as many entities or concepts can have more than one name. For example, an object ID representing Spain may have associated name facts conveying the country's common name “Spain” and the official name “Kingdom of Spain.” As another example, an object ID representing the U.S. Patent and Trademark Office may have associated name facts conveying the agency's acronyms “PTO” and “USPTO” as well as the official name “United States Patent and Trademark Office.” If an object does have more than one associated name fact, one of the name facts may be designated as a primary name and other name facts may be designated as secondary names, either implicitly or explicitly.
A property fact 208 is a fact that conveys a statement about the entity or concept represented by the object ID. Property facts are generally used for summary information about an object. A property fact 208, being a special instance of a general fact 204, also includes the same parameters (such as attribute, value, fact ID, etc.) as other facts 204. The attribute field 226 of a property fact 208 indicates that the fact is a property fact (e.g., attribute is “property”) and the value is a string of text that conveys the statement of interest. For example, for the object ID representing Bill Clinton, the value of a property fact may be the text string “Bill Clinton was the 42nd President of the United States from 1993 to 2001.” Some object IDs may have one or more associated property facts while other objects may have no associated property facts. It should be appreciated that the data structures shown in
As described previously, a collection of facts is associated with an object ID of an object. An object may become a null or empty object when facts are disassociated from the object. A null object can arise in a number of different ways. One type of null object is an object that has had all of its facts (including name facts) removed, leaving no facts associated with its object ID. Another type of null object is an object that has all of its associated facts other than name facts removed, leaving only its name fact(s). Alternatively, the object may be a null object only if all of its associated name facts are removed. A null object represents an entity or concept for which the data processing system 106 has no factual information and, as far as the data processing system 106 is concerned, does not exist. In some embodiments, facts of a null object may be left in the repository 115, but have their object ID values cleared (or have their importance to a negative value). However, the facts of the null object are treated as if they were removed from the repository 115. In some other embodiments, facts of null objects are physically removed from repository 115.
An entropy is a numerical measure of the amount of information carried by a variable; the more information the variable carries, the more random the variable, and the greater the entropy. Variables with a narrower range of possible values tend to have lower entropies. Variables whose values are not distributed evenly within the possible values tend to have lower entropies.
An attribute with low entropy will be one which has a low number of possible values or has many possible values but only a few them occur with any frequency. If an attribute has low entropy, the fact that two objects have the same value for that attribute provides little information about whether the two objects are the same entity. An attribute with a higher entropy is more informative than one with a lower entropy because the value of the attribute is more likely to distinguish an object. In other words, a high entropy means the associated attribute is highly useful for distinguishing among objects. As a result, attribute entropy (also called simply entropy) is a good indicator of the importance of matching common facts when determining whether two objects are duplicate objects.
For example, the chance that two objects of type human are identical if they share the same gender attribute is much less likely than if they share the same date of birth attribute. Also note that the entropy might be refined to be calculated based on the type of object—in other words, the weight attribute may not be useful for distinguishing among human objects but it may be useful for distinguishing among planet objects.
Claude E. Shannon defines entropy in terms of a discrete random event x, with possible states 1 . . . n as:
That is, the entropy of the event x is the sum, over all possible outcomes i of x, of the product of the probability of outcome i times the log of the probability of i.
In one embodiment, the janitor 110 uses entropy to identify duplicate objects so that the duplicate objects can be merged together.
Referring to
The flowchart shown in
The janitor 110 determines 310 the entropy for each attribute, and saves the entropy in one of the metrics 218 of each fact with the attribute. In one embodiment, the janitor 110 asks the service engine 114 for all facts stored in the repository 115, and saves the attribute and value of each fact in a table. For each attribute, the janitor 110 calculates the associated entropy by applying the Shannon formula illustrated above to all values associated with the attribute in the table. For example, assuming there are four facts with attribute gender, three of them have value male, and one has value female, the entropy of the attribute gender will be: H(gender)=p(male)log2(1/p(male))+p(female)log2(1/p(female))=75%*log2(4/3)+25%*log2 4≈0.81. The janitor 110 then stores the entropy 0.81 in one of the metrics 218 of each of the four facts with attribute gender. Alternatively, the entropy can be calculated using logarithm with bases other than two. In some embodiments, the janitor 110 recomputes the entropy for each attribute every time the repository 115 is modified.
Other embodiments may use other measures of entropy. In some embodiments, entropy is calculated based on the number of possible values that the associated attribute could hypothetically have, while in some other embodiments, entropy is calculated based on the number of actual fact values of the associated attribute. In some embodiments, certain attributes are not given an entropy. In some other embodiments, certain attributes are given a predetermined weight in stead of a calculated entropy.
For two of the set of objects, the janitor 110 selects 320 common facts of the two objects. Common facts are facts sharing the same attribute. Objects having matching fact values for common fact might be duplicates. An example of the two objects is shown in
As shown in
The common facts of objects O1 and O2 as illustrated in
For each common fact associated with the two objects, the janitor 110 determines 330 a match of the fact value based on a match measure. The match measure is designed to distinguish fact values that can be treated as equivalent from fact values that are essentially different. In one example, the match measure requires the fact values to be identical in order to be a match. In another example, two fact values can be determined to match by the match measure when they are lexically equivalent, such as “U.S.A.” and “United States.” Alternatively, the match measure can be a fuzzy match based on string or tuple similarity measures (e.g., edit distance, Hamming Distance, Levenshtein Distance, Smith-Waterman Distance, Gotoh Distance, Jaro Distance Metric, Dice's Coefficient, Jaccard Coefficient to name a few).
One example of a fuzzy match measure is based on the edit distance between the fact values of the common fact. The edit distance is the minimum number of character insertion, deletion, or substitution needed to transform one fact value into the other. This approach is advantageous because typographical errors can be filtered out by the fuzzy match.
For example, values of a common fact are deemed to match when the edit distance between the two values is no more than a threshold value of 3. Fact with attribute name is a common fact of objects O1-O3 as illustrated in
In another example, the match measure treats numeric fact values within a range as matched. One such match measure deems two numeric fact values to match if the difference between either one of the two fact values and the arithmetic mean of the two fact values is no more than 1% of the arithmetic mean. Fact with attribute height is a common fact of objects O1-O3 as illustrated in
The janitor 110 determines 340 whether the two objects are duplicate objects by combining the entropies of matching common facts into one sum of entropies and comparing the sum of entropies with an entropy threshold measure. The entropy threshold measure is designed to separate duplicate objects from distinct objects.
For example, one entropy threshold measure deems two objects as duplicate objects if the sum of entropies is over a threshold value of 7. Assuming the matching common facts of objects O1 and O2 are facts with attributes phone number, date of birth, and height, as illustrated in
In other embodiments, the entropy threshold measure takes into consideration the entropies of common facts that do not match. The entropy threshold measure can deem two objects as duplicate objects if the sum of entropies of matching common facts exceeds the sum of entropies of common facts that do not match for a certain threshold value, for example, a threshold value of 5. Using the example illustrated above, the sum of matching entropies of objects O1 and O2 is 15.17, and the sum of entropies of common facts that do not match is 5.26, the entropy of attribute name, as shown in
To maintain the integrity of entropies, after the janitor 110 identifies duplicate objects, the entropies of common facts of the duplicate objects need to be recomputed. When re-computing the entropies, only one fact value of the common fact associated with the duplicate objects is used. In one embodiment, the janitor 110 has access to a copy of the table created when the janitor 110 determines 310 the entropy for each attribute. For each common fact of the duplicate objects, the janitor 110 removes the entry corresponding to the common fact associated with one of the two duplicate objects from the table, calculates a new entropy by applying the Shannon formula to all remaining values associated with the attribute of the common fact in the table, and updates the entropy stored in each fact of the attribute to the new entropy.
Finally, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter. Accordingly, the disclosure of the present invention is intended to be illustrative, but not limiting, of the scope of the invention, which is set forth in the following claims.
Claims
1. A computer-implemented method of determining if a first object and a second object represent a same entity, the method comprising:
- identifying one or more common attributes between the first object and the second object;
- determining an entropy for each of the one or more common attributes, wherein a respective entropy is a numeric value measuring an amount of information carried by the respective attribute;
- identifying a subset of the one or more common attributes whose respective values are equivalent;
- determining whether the first object and the second object represent the same entity by comparing a sum of entropies for the subset of the one or more common attributes to an entropy threshold measure; and
- in response to determining that the first object and the second object represent the same entity, merging the first object and the second object.
Type: Application
Filed: Aug 14, 2012
Publication Date: Feb 14, 2013
Inventors: Jonathan T. Betz (Summit, NJ), Vivek Menezes (Jersey City, NJ)
Application Number: 13/585,775
International Classification: G06F 17/30 (20060101);