Deterministic Anomaly Detection Logic