Improving Data Quality: Consistency and Accuracy

Gao Cong, Wenfei Fan, Floris Geerts, Xibei Jia, Shuai Ma

Abstract: Data quality is a critical challenge in modern databases, with error rates often reaching 5%. Traditional cleaning methods using Functional Dependencies (FDs) frequently fail to capture semantic errors. This paper introduces a framework leveraging Conditional Functional Dependencies (CFDs) to improve both consistency and accuracy. We present heuristic algorithms for batch and incremental data repair, integrated with a statistical sampling module that provides formal guarantees on repair quality.

Introduction

Real-world data is notoriously "dirty," with error rates typically ranging between 1% and 5%. Traditionally, researchers have relied on Functional Dependencies (FDs)—rules such as "Zip Code determines City"—to identify errors. However, FDs were originally designed for database schema normalization, not data cleaning. They are often too broad to catch specific semantic errors; for instance, an FD can mandate that identical zip codes must have the same city, but it cannot specify that a particular zip code must correspond to New York City.

Furthermore, automated cleaning tools often prioritize consistency (adherence to rules) over accuracy (reflection of reality). A tool might "fix" a record to satisfy a rule by changing it to a value that is factually incorrect. This paper addresses the dual challenge of ensuring data consistency while verifying that automated repairs are accurate, minimizing the need for expensive manual intervention.

Methodology: The CFD Framework

The authors propose a three-pronged framework centered on Conditional Functional Dependencies (CFDs) and a robust system architecture for data repair.

Conditional Functional Dependencies (CFDs)

Unlike standard FDs, CFDs utilize "pattern tableaus" to bind specific data values to constraints. For example, a CFD can explicitly state that if an Area Code (AC) is '212', the City (CT) must be 'NYC'. This allows for much finer-grained error detection than traditional methods.

Example CFDs showing pattern tableaus for specific data values.

System Architecture and Repairing Algorithms

The framework consists of several interconnected modules designed to handle both batch processing and real-time updates while maintaining high accuracy through statistical guarantees.

The system architecture featuring repairing, incremental, and sampling modules.
  1. Repairing Algorithms:
    • BATCHREPAIR: A heuristic algorithm for cleaning an entire "dirty" database. It employs a cost model based on the Damerau-Levenshtein distance (edit distance) and attribute weights to identify the most likely accurate resolution for violations.
  2. INCREPAIR: An incremental algorithm designed for real-time updates. When new data is inserted, it greedily resolves conflicts without requiring a full re-scan of the clean database portion.
  3. Statistical Sampling Module: To guarantee accuracy without exhaustive manual verification, the authors developed a stratified sampling method. By having a domain expert check a small, statistically significant sample, the system can mathematically guarantee that the overall repair accuracy exceeds a threshold $\epsilon$ with a confidence level $\delta$.

Experimental Evaluation

The authors evaluated their methods using real-world data scraped from Amazon and other web sources, with datasets ranging from 10,000 to 300,000 tuples. They systematically introduced noise (1% to 10% error rates) into clean data to test recovery capabilities.

Key results include:

  • Superior Accuracy: CFDs significantly outperformed traditional FDs in both precision and recall.
  • Scalability: The BATCHREPAIR algorithm scaled linearly, processing 300,000 tuples in under 3500 seconds.
  • Heuristic Effectiveness: The greedy V-INCREPAIR approach, which prioritizes fixing tuples with the fewest violations, consistently provided high-quality repairs, demonstrating that smart heuristics can effectively navigate the NP-complete problem of optimal repair.

Conclusion

This research highlights that CFDs are a powerful tool for data cleaning, capable of catching semantic inconsistencies invisible to standard FDs. While finding an optimal repair is NP-complete, the proposed heuristic algorithms and human-in-the-loop sampling provide a scalable and accurate solution. Future work will explore extending these methods to include inclusion dependencies and automated CFD discovery.

Summary updated

BibTeX
@inproceedings{cong2007improving,
  author = {Gao Cong and Wenfei Fan and Floris Geerts and Xibei Jia and Shuai Ma},
  title = {{Improving Data Quality: Consistency and Accuracy}},
  booktitle = {VLDB},
  year = {2007},
}
Figure