Model checking for data anomaly detection