The Record Checks feature lets QMS users execute a recurrence check or duplicate check on a quality event record in order to find recurrences or duplicates of that quality event. When running a record check, Vault identifies match terms and assigns a percentage similarity score that describes how closely text in each returned record matches the text in the originating record. This article describes how Vault finds similar records and calculates similarity scores during record checks.
How Vault Finds Potential Matches
When performing a record check, Vault generally takes the following record data into account:
- Timeframe and lifecycle state: Vault searches for matching records in the timeframe and lifecycle states specified by your Admin. Users may be able to adjust the timeframe.
- Exact match fields: These are fields of any type that must match exactly between the originating record and the records returned in the results, for instance, Facility or Product. Your Admin’s configuration may allow users to modify exact match fields when running a record check.
- Similar match fields: These are text fields that Vault compares with the values on other records in your Vault. For similar match fields, Vault extracts suggested match terms and uses them to find matching records, then assigns a similarity score to each matching record. Metadata such as the timeframe, lifecycle state, and exact match fields determine the scope of the record check, and the text in the similar match fields determines which records within that scope are included in the results.
- Related object match criteria: If configured, Vault evaluates data from records related to the originating record and includes or excludes potential matches based on configured criteria.
How Vault Identifies Important Terms & Calculates Similarity Scores
To understand how Vault evaluates potential matches, think of a record check as an automated, highly focused investigator evaluating a record’s text against the text of all other records in your Vault. After narrowing the pool of potential matching records, Vault then looks at text fields to find similar records and calculates a similarity score for each record found. This similarity score describes the overlap of terms between the originating record and matching records.
Each record check consists of the following elements:
- Source record evaluation: Vault compares the source record’s field text to all other records in your Vault to check for similarity.
- Important term selection: Vault uses the text in fields on the source record to determine which terms are important for finding similar records. Vault typically looks at the Title and Description fields, but the specific fields may vary based on the configuration of the record check. Vault selects terms that appear in the source record but do not appear frequently in other records in your Vault. These important terms are suggested to users when manually running a record check, and can be added or removed if your configuration allows.
- Important term weighting: Vault calculates weights for the identified important terms based on how often they appear in other records in your Vault. These weights determine the importance of each term in the source record relative to all other records. Users may also be able to suggest important terms when running a record check; these terms are not weighted.
- Record comparison: Vault compares the extracted important terms against other records in your Vault to retrieve a set of similar records.
- Similarity score calculation: For each record retrieved, Vault calculates a similarity score by comparing similar records to an identical record to determine the relative similarity. The score is primarily based on the overlap of terms between the two records. Every important term found in the retrieved records contributes to the similarity score.
- Ranking: Vault ranks the retrieved records based on their similarity scores, even if the similarity scores are hidden by configuration. Vault sorts the results in descending order of similarity score, so the most similar records appear at the top of the results list. Vault groups the records into distinct similarity tiers of Likely Match, Possible Match, or Unlikely Match based on how closely their contextual vocabularies overlap.
The exact similarity computation in each record check can vary based on several factors, including the size of the source record’s evaluated text and the number of records in your Vault.
Record checks work best when there are several sentences of text to compare and an adequate number of records in your Vault to check for similarity. When the source record’s fields contain only a few words or there is a small number of records in your Vault, calculating the relative importance of each term is imprecise because there isn’t enough text available for Vault to determine which terms are high value relative to all other terms in the record and other records of the same kind.
Weighting of Vault-Suggested & User-Provided Terms
During record checks, Vault weights similar match terms differently depending on whether they are suggested by Vault or provided by the user:
- Vault-suggested terms: Selected by Vault algorithmically by comparing text field values in the incoming record to other bodies of text stored in records within your Vault. This relative comparison allows Vault to assign weights to these terms to indicate the likelihood of the term being high-value or important rather than simply commonly occurring. Rarely appearing words (for instance, “shattered”, “crushed”, or specific batch numbers) are weighted higher, and words that appear more commonly (for instance, “deviation”, “complaint”, or “resolution”) are weighted lower. This helps Vault to distinguish between irrelevant and high-value terms.
- User-provided terms: Optionally provided by users upon initiation of a record check. While both types of terms influence the set of returned records, this difference means user-provided terms are not weighted in the same way as Vault-suggested terms, and influence the similarity score results differently.