Direct answer
AI for data management improves data quality by learning what normal looks like in pipelines and records, then flagging what departs from it. Typical uses are anomaly detection on table metrics, machine learning for entity matching and deduplication, and profiling that suggests tests and sensitivity tags for a data owner to approve.
Table of contents
- 1. Where hand-written quality rules stop scaling
- 2. Anomaly detection on table and column metrics
- 3. Machine learning for entity matching and deduplication
- 4. Profiling that proposes tests and sensitivity tags
- 5. Keeping owners accountable for automated fixes
- 6. Tooling for explainable quality automation
- 7. Illustrative example: cleaning a supplier master
Key takeaways
- Hand-written rules catch known failures; learned baselines catch the volume, null, and distribution shifts nobody wrote a rule for.
- Entity matching works best as a scored pipeline with blocking, similarity features, and human review of uncertain pairs.
- Profiling can propose tests and column tags, but a named owner should approve them before they become enforced rules.
- AI should flag, quarantine, or suggest fixes; silent automatic correction of business data weakens accountability.
Where hand-written quality rules stop scaling
Most data teams start quality work with explicit tests: this key is unique, that column is never null, these values come from an approved list. Those tests are valuable and should stay. The trouble begins when the estate grows to hundreds of tables fed by dozens of sources. Nobody can write a rule for every failure, and many incidents come from changes that no rule anticipated.
Examples are familiar to anyone who supports a warehouse. A source starts sending half the usual rows after a vendor update. A currency column switches from cents to whole units. A new sales region appears with a blank segment field. Each change passes the existing tests yet distorts reports. Machine learning helps by modelling the normal behaviour of tables and columns, then surfacing departures for a person to judge.
Anomaly detection on table and column metrics
Pipeline anomaly detection works on metadata and summary statistics rather than individual records. For each table, a monitor collects row counts, load times, and freshness. For important columns, it adds null rates, distinct counts, minimum and maximum values, and distribution summaries. A model per metric learns the usual range, including weekly and seasonal patterns, and raises an alert when a new value falls well outside it.
Alert quality matters more than detection volume. Thresholds should be tuned so that most alerts lead to action, and each alert should go to the owner of the affected dataset with context such as the last good run and the downstream reports affected. Where a failed load would mislead decision makers, pipelines can quarantine the batch and keep the previous version visible until someone reviews it.
Machine learning for entity matching and deduplication
Duplicate customers, suppliers, and products cause wrong counts, missed discounts, and payments to the wrong account. Exact matching on names or IDs misses records that differ by spelling, abbreviation, or formatting. A typical matching pipeline first uses blocking to limit comparisons, for example grouping records by postcode or name prefix. It then computes similarity features across name, address, tax ID, phone, and email, and a classifier scores each candidate pair.
Scores feed three bands: automatic merge above a high threshold, human review in the middle, and no match below. Reviewers see both records side by side and record a decision, which becomes labelled data for retraining. Survivorship rules then decide which source supplies each attribute of the merged golden record, such as the billing address from the ERP and the contact email from the CRM.
Related: Advanced analytics and AI services
Keeping owners accountable for automated fixes
The tempting next step is to let a model correct data automatically. For low-risk, reversible changes, such as standardising address formats, that can be reasonable. For financial amounts, identifiers, or anything that drives a customer decision, automated correction hides problems at the source and makes figures hard to audit. Flagging, quarantining, and suggesting a fix keeps a person responsible for the outcome.
Every automated action should leave a trace: what changed, which model version proposed it, who approved it, and when. Rejected suggestions are useful too, because they show where a model misreads the data. A monthly review of alert volumes, false positives, and incidents that monitoring missed keeps the system honest and tells the team where to add explicit rules or retrain a model.
Tooling for explainable quality automation
dbt holds the explicit tests and documentation, so accepted suggestions become versioned, reviewed code. Python covers the modelling work: seasonal baselines for metrics, similarity features and classifiers for matching, and scripts that evaluate thresholds against labelled pairs. Spark helps when matching runs across tens of millions of records. Airflow schedules profiling, monitoring, and matching jobs and records which model version ran.
A warehouse such as Snowflake stores metric history, match scores, review decisions, and quarantined batches alongside the data itself, queryable with SQL. A Power BI quality scorecard can show alert counts, open incidents, duplicate rates, and test coverage by domain. Owners then see the state of their data in one place, and leaders can judge whether quality is improving.
Related: dbt for versioned quality tests, Python for anomaly and matching models, Spark for large-scale entity matching, Snowflake for metric history and match results, FIX Analytics technology capabilities
Illustrative example: cleaning a supplier master
Consider an illustrative manufacturer whose supplier master has grown through several ERP migrations. Procurement suspects the same suppliers appear under several names, which splits spend analysis and weakens price negotiations. The team labels a few hundred candidate pairs, trains a matching model, and routes the uncertain middle band to a procurement analyst for review, while high-scoring pairs merge with a full audit trail.
Alongside the cleanup, anomaly monitors watch the supplier and invoice tables so that new duplicates or unusual loads are caught early. Results would be judged on outcomes that procurement cares about: how many supplier records remain, how much spend is now attributed to a single supplier, and how often reviewers overturn model suggestions. Those figures guide whether to extend matching to products or customers.
Related: Data and analytics for manufacturing, Data strategy and management services
Frequently asked questions
Does AI replace data quality rules?
No. Explicit rules remain the clearest way to enforce known requirements, such as a unique order ID or a valid country code. Learned checks add coverage for unexpected changes and help teams discover which new rules are worth writing.
What data is needed to start anomaly detection on pipelines?
A few weeks to a few months of history for basic table metrics, such as row counts, null rates, distinct counts, freshness, and summary statistics for key columns. Many warehouses expose enough metadata to collect this without scanning full tables.
How is entity matching evaluated?
Teams label a sample of candidate pairs as match or non-match and measure precision and recall at different score thresholds. The chosen thresholds decide which pairs merge automatically, which go to review, and which stay separate.
Keep exploring
