Abstract
Numerical sequential data from IoT devices often contains errors and inconsistencies. Traditional cleaning methods rely on static data quality constraints, which are frequently inaccurate or outdated due to concept drift. This paper presents bNDCRepair, a framework that simultaneously repairs both dirty data and inaccurate constraints by dynamically adjusting numerical boundaries. Experimental results show an improvement in cleaning F1-scores by up to 17.6% over existing methods while maintaining high computational efficiency.
Introduction
In IoT environments, data quality is maintained through physical rules and constraints. However, these constraints—often mined from historical data or defined by experts—can become obsolete. Blindly applying inaccurate constraints leads to over-cleaning (false positives) or missed errors (false negatives). While logical predicate modification works for relational data, numerical sequential data requires a different approach: calibrating continuous numerical boundaries (tolerances) while preserving the underlying physical structure of the rules. The challenge lies in adjusting these parameters without over-fitting the rules to noisy data.
The bNDCRepair Framework
The proposed bNDCRepair (both repair Data and Constraints) framework treats constraint boundaries as flexible parameters. The process begins by translating various rule types into a unified Data Quality Requirement (DQR) format with [min, max] acceptable value domains.
The core of the system is a joint cost function that balances the penalty for modifying data against the penalty for modifying constraints. The algorithm determines whether to expand or compress boundaries based on this cost. To prevent over-fitting—where boundaries are widened excessively to accommodate all noise—bNDCRepair employs a small, clean validation set for one-way fine-tuning. This "anchors" the modifications to a trusted distribution.
A critical component is the handling of dependent constraints. When multiple constraints govern the same sequence, modifying one in isolation can lead to logical inconsistencies. The algorithm clusters dependent constraints and aligns their modifications in a shared search space to ensure holistic consistency across the dataset.
Experimental Evaluation
The authors evaluated bNDCRepair using four real-world datasets (IDF, NASDAQ, PUMP, WADI) and one synthetic dataset (SIM). These datasets cover industrial machinery, stock markets, and water distribution networks, providing a robust testbed for continuous and correlated errors.
Key findings include:
- Accuracy:
bNDCRepairconsistently outperformed baselines, achieving F1-scores above 0.85. It improved cleaning performance by 9.6% to 17.6% compared to static-constraint methods. - Precision: The repaired values were closer to the ground truth (measured by Mean Normalized Absolute Distance) than those produced by other state-of-the-art cleaners.
- Efficiency: The algorithm is highly efficient, running twice as fast as Clean4TSDB and an order of magnitude faster than CVtRepair.
- Modularity: Plugging the range modification logic into existing tools like CVtRepair boosted their F1-scores by over 0.1, demonstrating the method's versatility.
Conclusion
bNDCRepair demonstrates that numerical rules in IoT systems require parameter tuning rather than structural pruning. By anchoring constraint modifications with a small validation set and solving dependent constraints holistically, the framework provides a modular and effective solution for modern data cleaning. Future work will explore multi-type constraints and streaming data applications to handle highly volatile IoT environments.
Summary updated