Two behavioral features achieve perfect AI agent detection even against evasion
A three-class detector using only mouse_event_rate and teleport_click_ratio can recall 100% of AI agents with ~99.4% precision
AI/ML arXiv 29 Jul 2026 Measurement Prototype evidence
Published as “What Does It Take to Detect an AI Agent? Minimal Feature Sets for Behavioral Detection under Browser Automation”
Why it matters
Operators can reliably block AI agents in production by instrumenting just two low-cost client-side features, without harming legitimate human traffic.
Summary
Two lightweight behavioral features (mouse_event_rate and either teleport_click_ratio or click_duration_std) achieve 100% agent recall and unit agent precision across a five-level evasion ladder, with zero false negatives in 22,990 predictions over 30 runs; by contrast, binary human-bot detectors miss 30-40% of agents. The evidence is strong: exhaustive experiments with three model families, ten random seeds, and confidence-interval macro-F1 scores above 0.98.
What they found 2
- Adding an explicit agent class eliminates the detection gap, achieving perfect per-class agent F1.
“adding an explicit agent class yields per-class agent F1 = 1.000 in every one of 30 runs (3 model families × 10 seeds), eliminating the gap entirely.”
- Across extensive runs, the three-class detector missed no agents.
“Across 10 seeds and 3 model families we observe zero agent misses in 22,990 perseed predictions: 100% agent recall at every level, with macro-F1 95% CIs of [0.986, 0.994] (SAINT), [0.993, 0.997] (RF), and [0.993, 0.998] (GBM).”
Caveats 5
- The single-feature “perfect” indicator (cursor_path_linearity) collapses to always predicting “agent”, yielding only 0.33 precision and macro-F1 0.17.
- Our experiments are run on Playwright-driven agents, but the underlying signal is a property of the Chrome DevTools Protocol (CDP) control channel rather than Playwright specifically.
- Execution paths that bypass CDP entirely are outside our scope and would likely require different detection approaches: OS-level input simulation (e.g., xdotool, PyAutoGUI, or the macOS Accessibility API ...).
- Our agent data covers 10 web tasks driven by a single LLM (Claude) through Playwright and MCP; other LLMs, automation frameworks (Selenium, Puppeteer), and task distributions may produce different behavioral profiles.
- Bot-dependent claims (macro-F1 values and the minimal feature set for 3-class discrimination) depend on our synthetic bot class ... may shift under different bot distributions.
What’s new here 4
- Introduces a three-class detection framework that explicitly models AI agents separate from humans and bots.
- Demonstrates that only two behavioral features are sufficient for perfect agent detection, dramatically reducing deployment cost.
- Performs exhaustive search over 9,401 GBM feature subsets to identify minimal feature sets.
- Evaluates robustness against a five-level evasion ladder including GAN-generated and human-replay trajectories.