Abstract
With the rapid development of the internet technology, dirty data are commonly observed in various real scenarios, e.g., owing to unreliable sensor reading, transmission and collection from heterogeneous sources. To deal with their negative effects on downstream applications, data cleaning approaches are designed to preprocess the dirty data before conducting applications. The idea of most data cleaning methods is to identify or correct dirty data, referring to the values of their neighbors which share the same information. Unfortunately, owing to data sparsity and heterogeneity, the number of neighbors based on equality relationship is rather limited, especially in the presence of data values with variances. To tackle this problem, distance-based data cleaning approaches propose to consider similarity neighbors based on value distance. By tolerance of small variants, the enriched similarity neighbors can be identified and used for data cleaning tasks. At the same time, distance relationship between tuples is also helpful to guide the data cleaning, which contains more information and includes the equality relationship. Therefore, distance-based technology plays an important role in the data cleaning area, and we also have reason to believe that distance-based data cleaning technology will attract more attention in data preprocessing research in the future. Hence this survey provides a classification of four main data cleaning tasks, i.e., rule profiling, error detection, data repair and data imputation, and comprehensively reviews the state of the art for each class.
Introduction: The Limits of Exact Equality
Traditional data cleaning algorithms have long operated on the principle of equality. For instance, a standard functional dependency might dictate that if two records share the same "Zip Code," they must also share the same "City." However, real-world data is rarely pristine. Sensor noise, typos (e.g., "New York" vs. "New Yorkk"), and varying formats ("St." vs. "Street") mean that strict equality often fails to identify related records. This leads to "data sparsity," where there are insufficient exact matches to reliably detect or fix errors.
Distance-based data cleaning addresses this by replacing strict equality with similarity metrics. By allowing for a tolerance threshold—such as string edit distance or numerical ranges—these methods identify "similarity neighbors." This paradigm shift provides a much richer context for cleaning heterogeneous datasets, treating equality as a special case where the distance is zero.
A Unified Framework for Data Cleaning
The survey organizes the distance-based cleaning landscape into four interconnected tasks. As shown in the workflow below, these tasks form a pipeline where rule profiling establishes constraints that guide detection, repair, and subsequent imputation.
1. Rule Profiling
Rule profiling involves defining the "laws" governing the data. Beyond standard Functional Dependencies (FDs), distance-based approaches utilize more flexible constraints:
- Metric Functional Dependencies (MFDs): These allow for small variances on dependent attributes.
- Differential Dependencies (DDs): These specify that if distances on one set of attributes (LHS) are within a certain range, distances on another set (RHS) must also be constrained. Interestingly, DDs can also express dissimilarity constraints.
2. Error Detection
Error detection focuses on identifying outliers and discordant values. These are generally categorized into:
- Clustering-based: Algorithms like DBSCAN or OPTICS identify points that do not belong to any dense cluster.
- Distribution-based: Statistical models (e.g., dBoost) or local density factors (LOF) are used to find values that deviate significantly from the expected global or local distribution.
3. Data Repair
Once errors are detected, they must be fixed. Most methods adhere to the Minimum Change Principle, seeking the smallest modification that brings the dataset into compliance with established rules. This often involves cost-based swapping or graph-based repair strategies to resolve conflicts and duplications.
4. Data Imputation
Data imputation fills in missing values. Rather than using simple global averages, distance-based methods leverage similarity neighbors (kNN) or regression models (like LOESS) learned from similar records. This ensures that the predicted values are contextually appropriate for the specific record.
Key Insights and Future Directions
Distance-based methods are significantly more expressive than their equality-based counterparts, making them essential for modern web and sensor data. However, this expressiveness comes with increased computational complexity, often requiring $O(n^2)$ comparisons or advanced indexing to remain performant at scale.
Future research directions identified by the authors include:
- Scaling to Big Data: Developing more efficient algorithms to handle massive datasets without sacrificing the benefits of similarity matching.
- Specialized Data Types: Creating distance metrics tailored for complex data like timestamps (handling periodicity) and event sequences.
- Automated Parameter Tuning: Reducing the reliance on manually set thresholds ($\delta$ or $\epsilon$) through automated discovery and machine learning techniques.
Summary updated