TL;DR
Releasing real-world video datasets from farms, factories, or labs is a privacy minefield: standard face-blurring fails when workers are filmed from behind, and whole-body detectors constantly mistake animals or equipment for crouching humans. OpenVeil solves this by splitting the job—using an ultra-sensitive detector to propose anything vaguely human, a custom-trained classifier to weed out the animals, and a fast human-in-the-loop review tool to catch edge cases. Using this pipeline, one researcher anonymized 50.8 million frames of dairy farm footage with just 2.4 hours of manual review, catching every single person in the test set without blanking out the calves.
What Problem Does This Paper Address?
Domain-specific video—recorded in barns, factories, or laboratories—is gold for training behavior detectors and self-supervised world models. However, privacy laws like GDPR prohibit releasing footage containing identifiable staff or visitors without consent.
Existing anonymization tools fall short here. Face blurring assumes a visible face, yet workers on ceiling-mounted wide-angle cameras often appear only from above, from behind, or as a pair of boots behind a wall (plus, people are easily recognized by posture and clothing). Whole-body detectors offer a single confidence threshold: set it high, and you miss obscured people; set it low, and you mosaic the very animals or machines you are trying to study, because to a general detector, a calf looks remarkably like a crouching person. Meanwhile, manually checking 50 million frames would take thousands of hours.
Methods
OpenVeil revives the classical "propose, then verify" pattern, organized around a lightweight table of bounding boxes rather than touching video pixels upfront. The pipeline splits into three decoupled stages:
- Detect (GPU): Because people are rare in continuous monitoring footage, an adaptive scan schedule checks only 1 frame per second by day (and 1 every 5s at night), dropping into a dense 0.2s scan only around detections. Grounding DINO (an open-vocabulary detector) acts as the generous proposer at a rock-bottom threshold (0.05) using competitor prompts (
worker. person. cow. calf.) so almost no human is missed. Next, a verifier—a frozen DINOv3 vision transformer adapted via LoRA (low-rank adaptation) and an MLP head on domain crops—judges each cropped candidate and rejects the animals. - Review (Local Laptop): A zero-dependency local web app queues up frames where errors matter most (e.g., giant mosaics, random checks, borderline scores). Reviewers confirm or delete boxes with single keystrokes, saving overrides alongside the box table.
- Apply (CPU): Kept boxes are enlarged by 20% and held for ±2 seconds to bridge detection gaps, then masked on a fixed, flicker-free pixel grid. Finally, a "smart cut" step re-encodes only the video packet groups (GOPs) containing mosaics, copying the rest byte-for-byte to preserve original video quality.
Datasets
The authors built and evaluated OpenVeil to release version 1.2 of the public Calf Play Behavior Dataset, consisting of 1,173 continuous videos (651 hours, 50.8 million frames) and 1.1 million extracted JPEGs from two Dutch dairy farms in color and infrared.
To train and evaluate the pipeline without data leakage (splitting strictly by video), they created:
- A training set (3,004 frames; 50,756 candidate crops with 1,444 positives) and validation set (261 frames from 76 hard pilot clips), pre-labelled by blind ensembles of Claude 5.5 LLM agents and 100% verified by an author.
- A test set of 731 human-checked frames (containing 172 people) drawn from a held-out 2,000-frame everyday sample, evaluated via two-fold cross-fitting.
Key Insights and Ideas
- Decoupling recall from precision breaks the single-threshold trap: Grounding DINO's raw confidence scores rank candidates poorly (0.713 AUC), forcing a brutal trade-off between missed humans and masked calves. Pairing its high-recall proposals with a domain-adapted DINOv3 crop classifier jumps ranking performance to 0.994 AUC—taking just 35 minutes on one GPU to train.
- Boxes first, pixels last: Writing detections to tiny coordinate tables means margins, temporal holds, and human review edits can be tweaked and re-applied on cheap CPUs without ever re-running neural networks or degrading unmasked video packets.
- Verifying beats drawing: Targeting human review to specific failure modes turns an impossible 8,000-hour manual slog into a 2.4-hour keyboard triage session (median 0.6 seconds per frame), mostly spent deleting false alarms rather than drawing boxes from scratch.
Key Results
- 100% test coverage at low false-alarm cost: On the 731-frame test set, OpenVeil covered all 172 of 172 people, placing false mosaic boxes on just 3.3% of everyday frames (covering 0.39% of frame area).
- Outperforming single-stage and face baselines: Capped at the same 3.3% false-box rate, a fine-tuned YOLO11l covered only 126 people, stock YOLO11x covered 82, Grounding DINO alone covered 71, and OWLv2 covered 35. RetinaFace detected faces for only 66 of the 172 people, proving face-blurring unviable.
- Massive compute and storage efficiency: Adaptive scheduling called the detector on just 5.08% of the 50.8M frames (~122 proposer and ~54 verifier A10 GPU-hours, vs. ~2,391 hours to scan every frame). Smart cut copied 88.0% of video packets untouched, leaving 150 person-free videos completely byte-identical to their sources.
Limitations and Future Work
- Evaluation bias and blind spots: Because test-set boxes were drawn while reviewing preliminary pipeline proposals (with Grounding DINO candidates offered for one-click adoption), box shapes favor Grounding DINO, and any person missed by both the pipeline and reviewer goes uncounted (leaving a 1.7% statistical 95% upper bound on per-person miss rate). Furthermore, none of the reviewed night-time infrared frames contained people, leaving infrared recall unmeasured.
- Domain transfer: The released verifier weights and cow/calf prompts do not transfer out-of-the-box; new domains require reviewing fresh queues to calibrate thresholds—as false-box rates vary wildly across threshold rules—or fine-tuning a new adapter.
- Pixels only: OpenVeil does not scrub audio, metadata, or burned-in text. Future work includes testing on factory/lab footage and using promptable segmentation inside verified boxes to hug human outlines tighter and hide even less of the scene.
Summary updated