Guide
What is entity resolution?
How separate records become one trusted view of a person or organisation: the steps, the trade-offs and the vocabulary.
The problem it solves
Organisations do not hold information about customers. They hold records: a row in a core system, an entry in a CRM, an application form, a line on a watchlist. Each record was created for one purpose, by one team, at one moment. The same person can appear in a dozen of them, spelt a dozen ways.
Until you know which records belong together you cannot answer simple questions. How many customers do we have? What is our total exposure to this group? Has this applicant been declined before? Entity resolution is the process of working that out.
Records and entities
A record is one row in one system. An entity is the real-world thing the row describes: a person, an organisation, an address, an account, a device.
Resolution links records to entities. Three records with slightly different names, the same date of birth in three formats and one phone number written three ways are, very probably, one person. The entity keeps all three records, shows the best value for each attribute and remembers where every value came from.
The steps
1. Prepare
Before records can be compared they have to be made comparable. Dates are brought to one format. Phone numbers get a country code. "Rd", "Rd." and "Road" become the same word. Names are split into parts, and placeholder values such as "UNKNOWN" are removed so that they cannot match each other.
The original value is always kept. Preparation creates a cleansed copy to compare; it does not overwrite what the source said.
2. Find candidates
Comparing every record with every other is impossible at scale: a million records would need half a trillion comparisons. Instead, records are grouped by keys that true matches are likely to share, such as the sound of the surname plus the postcode, or the last six digits of a phone number. Only records that share a key are compared. This step is often called blocking.
Good keys are forgiving. Several different keys are used together so that a typing error in one field does not hide a match.
3. Compare
Each candidate pair is compared attribute by attribute, using a method that suits the data:
- Exact for identifiers that are either right or wrong.
- Edit distance for typing errors: "Haddad" and "Hadad".
- Phonetic for names that sound alike.
- Token-based for addresses and company names where word order varies.
- Tolerance for dates and numbers that may be a digit out.
4. Weigh the evidence
Agreement on a rare value is strong evidence. Two records sharing an unusual surname and a full date of birth are far more likely to be the same person than two records sharing "Smith" and a birth year. Disagreement counts too: two different national identifiers are a strong sign that the records are different people, however similar the names.
The result is a confidence: a number between 0 and 1 expressing how strong the case is.
5. Decide
Pairs above a threshold are linked. Pairs well below it are left apart. Pairs in between go to a person to review. Linked records are then gathered into entities.
Why explanations matter
A link that cannot be explained cannot be trusted or corrected. For each record in an entity you should be able to see which attributes agreed, how closely, and which rule made the link. When a steward disagrees they split the entity, and that decision must hold the next time the data is reloaded.
How strict should matching be?
There is no universal answer, because the two kinds of error cost different amounts in different settings.
| Decision | Worse error | Sensible setting |
|---|---|---|
| Sending a statement to a customer | Joining two different people | Strict |
| Screening against a sanctions list | Missing a true match | Looser, with review |
| Investigating a suspected fraud ring | Missing a connection | Looser, clearly labelled as possible links |
| Counting customers for a report | Either, moderately | Balanced |
A good system lets you resolve the same records at more than one strictness and use each where it fits.
Batch and real time
Resolution can run across everything at once, which gives the most consistent result, or one record at a time as it arrives, which lets a new application be recognised while the applicant waits. Most organisations need both, driven by the same rules.
Where to go next
- See how networks are built from entities in A practical guide to graph analytics.
- Read how a match explanation is laid out in Why two records match.
- See entity resolution in the Inselu Platform.