DocsTruehands Audit
Benchmark
How well the engine catches fraud, and how often it wrongs an honest contributor, measured on an open benchmark you can rebuild. The numbers come from docs/engine-scorecard.md, written by python -m truehands.bench score; the tables on this page are read from that file when the docs are built.
What is in it#
python -m truehands.bench build assembles two programs from open first-person recordings and derives attacks from them.
- Honest clips: 182 clips of 15 seconds from 46 recordings of four datasets. Among them, 130 clips of repetitive factory work from six workers of a public factory dataset: one person, one workstation, one repeated assembly task. That is the hardest case for a copy detector, because honest clips of the same work look alike.
- Attacks: 292 clips. 37 kinds of copying, graded by strength: re-encoding, scaling, cropping, mirroring, rotation, speed changes from 0.8× to 2×, playing backwards, color shifts, noise, blur, overlays, letterboxing, frame-rate changes, picture-in-picture, partial copies and combinations. Then public-dataset footage in seven variants, idle padding, frozen-frame padding, loops, mirrored loops, slowed playback, a wrong task claimed, a sensor log swapped, shifted, held still or synthesised from the video, and screen re-recording.
- Tags do not count. Every attack carries the correct capture-app tags. Forging tags is easy, so an attack caught only because a tag was missing is not counted as caught.
- Split by recording. A calibration half (217 clips) and a held-out half (257 clips); no recording appears in both. Thresholds were chosen on the calibration half only, and the held-out half was run after they were fixed.
- What counts as caught. The clip is not accepted, at least one of the reasons expected for its attack fired, and for attacks on real footage (padding, loops, slowing) the pay is cut back to within two seconds of the honest length.
- Metrics. The share of attacks caught with a 95% Wilson interval, per variant and per family; honest clips flagged and rejected; and the money both ways: pay leaked to attacks, and pay held or withheld from honest contributors.
Results on the held-out half#
The held-out half holds 89 honest clips (65 of them factory work) and 168 attacks. "v0.2.0" is the engine before this round of work; "now" is the current engine.
| Held-out half | v0.2.0 | now |
|---|---|---|
| Attacks caught | 105/168 (62%) | 110/168 (66%) |
| 95% CI | 55%–70% | 58%–72% |
| Pay leaked to attacks | $3.25 | $3.24 |
| Honest clips flagged | 4/89 | 0/89 |
| Honest clips rejected | 0/89 (95% CI up to 4.1%) | 0/89 (95% CI up to 4.1%) |
| Honest pay held / withheld | $0.25 / $0.00 | $0.00 / $0.00 |
On the held-out half the current engine caught 110 of 168 attacks (66%, 95% CI 58-72%) and flagged 0 of 89 honest clips. Zero rejections out of 89 bounds the false-rejection rate at 4.1% (upper end of the 95% interval): that is what 89 honest clips can show, and no more. Pay leaked to the attacks it missed: $3.24 of the $11.37 the attacks claimed.
By attack family#
| Attack family | v0.2.0 | now |
|---|---|---|
| copy | 72/111 | 71/111 |
| freeze_pad | 2/2 | 2/2 |
| idle_pad | 6/6 | 6/6 |
| loop_mirror | 1/2 | 2/2 |
| loop_pad | 0/4 | 4/4 |
| public | 12/21 | 10/21 |
| screen | 3/4 | 2/4 |
| sensor | 6/8 | 6/8 |
| slowmo | 0/4 | 4/4 |
| task | 3/6 | 3/6 |
Every variant on the held-out half
| Variant | v0.2.0 | now |
|---|---|---|
| copy:blur:sigma2 | 3/3 | 3/3 |
| copy:blur:sigma6 | 3/3 | 2/3 |
| copy:color:gray | 1/3 | 0/3 |
| copy:color:mild | 3/3 | 3/3 |
| copy:color:strong | 0/3 | 0/3 |
| copy:combo:heavy | 0/3 | 0/3 |
| copy:combo:ring | 2/3 | 2/3 |
| copy:crop:0.5 | 2/3 | 1/3 |
| copy:crop:0.7 | 3/3 | 3/3 |
| copy:crop:0.85 | 2/3 | 2/3 |
| copy:crop_corner:0.6 | 0/3 | 0/3 |
| copy:fps:24 | 3/3 | 3/3 |
| copy:fps:60 | 3/3 | 3/3 |
| copy:letterbox:0.7 | 2/3 | 2/3 |
| copy:mirror:hflip | 3/3 | 3/3 |
| copy:noise:15 | 3/3 | 3/3 |
| copy:noise:40 | 0/3 | 0/3 |
| copy:overlay:14% | 3/3 | 3/3 |
| copy:overlay:36% | 0/3 | 0/3 |
| copy:partial:30% | 0/3 | 0/3 |
| copy:partial:50% | 3/3 | 1/3 |
| copy:pip:0.4 | 0/3 | 0/3 |
| copy:pip:0.6 | 0/3 | 0/3 |
| copy:reencode:crf30 | 3/3 | 3/3 |
| copy:reencode:crf38 | 3/3 | 3/3 |
| copy:reencode:crf46 | 0/3 | 0/3 |
| copy:reverse:reverse | 0/3 | 3/3 |
| copy:rewrap:exact | 3/3 | 3/3 |
| copy:rotate:12deg | 3/3 | 2/3 |
| copy:rotate:5deg | 3/3 | 3/3 |
| copy:rotate:90deg | 2/3 | 2/3 |
| copy:scale:0.25 | 3/3 | 3/3 |
| copy:scale:0.5 | 3/3 | 3/3 |
| copy:speed:x0.8 | 3/3 | 3/3 |
| copy:speed:x1.2 | 3/3 | 3/3 |
| copy:speed:x1.5 | 3/3 | 3/3 |
| copy:speed:x2.0 | 1/3 | 3/3 |
| freeze_pad:freeze_pad:10s | 2/2 | 2/2 |
| idle_pad:idle_pad:10s | 2/2 | 2/2 |
| idle_pad:idle_pad:20s | 2/2 | 2/2 |
| idle_pad:idle_pad:5s | 2/2 | 2/2 |
| loop_mirror:loop_mirror:x2 | 1/2 | 2/2 |
| loop_pad:loop_pad:x2 | 0/2 | 2/2 |
| loop_pad:loop_pad:x3 | 0/2 | 2/2 |
| public:public:crf38 | 3/3 | 2/3 |
| public:public:crop0.9 | 1/3 | 1/3 |
| public:public:gray | 0/3 | 0/3 |
| public:public:mirror | 3/3 | 3/3 |
| public:public:rotate8 | 1/3 | 0/3 |
| public:public:scale0.33 | 1/3 | 1/3 |
| public:public:x1.25 | 3/3 | 3/3 |
| screen:screen:no_imu | 1/2 | 0/2 |
| screen:screen:static_imu | 2/2 | 2/2 |
| sensor:imu_shift:3s | 2/2 | 2/2 |
| sensor:imu_static:phone_still | 2/2 | 2/2 |
| sensor:imu_swap:other_recording | 2/2 | 2/2 |
| sensor:imu_synth:from_video | 0/2 | 0/2 |
| slowmo:slowmo:x1.5 | 0/2 | 2/2 |
| slowmo:slowmo:x2 | 0/2 | 2/2 |
| task:wrong_task:far | 3/6 | 3/6 |
What changed since v0.2.0#
- Honest work. On the calibration half, v0.2.0 flagged 25 of 93 honest clips and rejected 6, all of them factory clips where repeated work at one workstation looked like a re-upload: 9% of one factory crew's honest work was rejected. The current engine flags 1 of 93 and rejects none, and that case is now part of every release check. On the held-out half, with other workers, v0.2.0 flagged 4 of 89: the same rule was nearly harmless at one workstation and rejected one honest clip in eleven at the next, and there was no way to know in advance.
- Newly caught: playing backwards (0/3 → 3/3 held-out), speed-up to 2× (1/3 → 3/3), loops (1/6 → 6/6, plain and mirrored) and slowed playback (0/4 → 4/4).
- Newly missed: 9 borderline copies and public clips (grayscale, a crop to half the frame, a 50% partial copy, a rotation, a re-encoded public clip). Searching speeds from 0.5× to 2× finds more chance alignments competing with the true one, and
distinctdrops for weak copies. Restricting the competitors to the same speed was tried on the calibration half: one more copy caught, but 7-8 honest clips flagged instead of 1. The rule was kept. This was a deliberate trade, and it is measured.
Known misses#
What neither version catches, and why:
- Heavily edited copies: grayscale, strong noise, a crop to half the frame or a corner, picture-in-picture, very heavy compression (crf 46) and heavy combinations. In CLIP space such a copy is less similar to its source (median 0.64-0.84) than honest repeated work is to itself (median 0.83, up to 0.97). No threshold fixes that; it needs a copy-detection descriptor trained for these edits.
- A sensor log computed from the video. It matches the picture perfectly, so no check on pixels can tell. Only signed capture stops it.
- Screen re-recording without a sensor log. Today only the sensor check catches it.
- Slowed footage hidden by re-encoding. A codec with B-frames rebuilds a duplicated frame as the average of its neighbours, which is interpolation: slowing 2× and re-encoding at crf 40 is not caught. Signed capture with a signed length closes it.
- A wrong task whose real task has no examples in the program: without at least five other clips of the real task there is no program footage to compare with.
- Partial copies: with 30% of someone else's footage inside a clip, some go to review and some pass.
What it does not prove#
- The attacks are ours. They are graded by strength and tested on held-out recordings, but real fraud will be more varied and will adapt once it is caught.
- 182 honest clips is a small sample. With 0 rejections out of 89, the rule of three puts the false-rejection rate below about 3.3%; claiming "below 0.1%" needs about 3,000 honest clips.
- The sensor thresholds were calibrated on 13 clips from one headset.
- There is no real fraud in it. Measuring that takes a shadow pilot: the engine runs on a customer's real stream and decides nothing, people review all its flags and a random sample of what it accepted.
Compute#
On the held-out half, the current engine used 0.73 vCPU-hours per hour of video (4 vCPU, no feature cache, reference library included): 21 minutes for 68 minutes of video plus 18 minutes of reference footage. That is about $0.03 per hour of video at on-demand CPU prices and about $0.011 on spot capacity. No GPU. v0.2.0 measured 0.87 vCPU-hours per hour on the simulated pilot.
The calibration half#
The half the thresholds were tuned on: 93 honest clips and 124 attacks. Numbers here are optimistic by construction.
| Calibration half | v0.2.0 | now |
|---|---|---|
| Attacks caught | 74/124 (60%) | 87/124 (70%) |
| 95% CI | 51%–68% | 62%–78% |
| Pay leaked to attacks | $2.16 | $2.04 |
| Honest clips flagged | 25/93 | 1/93 |
| Honest clips rejected | 6/93 (95% CI up to 13.4%) | 0/93 (95% CI up to 4.0%) |
| Honest pay held / withheld | $1.19 / $0.38 | $0.06 / $0.00 |
| Attack family | v0.2.0 | now |
|---|---|---|
| copy | 45/74 | 47/74 |
| freeze_pad | 1/2 | 2/2 |
| idle_pad | 6/6 | 6/6 |
| loop_mirror | 0/2 | 2/2 |
| loop_pad | 1/4 | 4/4 |
| public | 10/14 | 9/14 |
| screen | 2/4 | 2/4 |
| sensor | 4/8 | 6/8 |
| slowmo | 0/4 | 4/4 |
| task | 5/6 | 5/6 |
Every variant on the calibration half
| Variant | v0.2.0 | now |
|---|---|---|
| copy:blur:sigma2 | 2/2 | 2/2 |
| copy:blur:sigma6 | 1/2 | 1/2 |
| copy:color:gray | 0/2 | 0/2 |
| copy:color:mild | 2/2 | 2/2 |
| copy:color:strong | 1/2 | 1/2 |
| copy:combo:heavy | 0/2 | 0/2 |
| copy:combo:ring | 2/2 | 2/2 |
| copy:crop:0.5 | 0/2 | 0/2 |
| copy:crop:0.7 | 2/2 | 2/2 |
| copy:crop:0.85 | 2/2 | 2/2 |
| copy:crop_corner:0.6 | 0/2 | 0/2 |
| copy:fps:24 | 2/2 | 2/2 |
| copy:fps:60 | 2/2 | 2/2 |
| copy:letterbox:0.7 | 2/2 | 1/2 |
| copy:mirror:hflip | 2/2 | 2/2 |
| copy:noise:15 | 2/2 | 2/2 |
| copy:noise:40 | 0/2 | 0/2 |
| copy:overlay:14% | 2/2 | 2/2 |
| copy:overlay:36% | 0/2 | 0/2 |
| copy:partial:30% | 0/2 | 0/2 |
| copy:partial:50% | 1/2 | 0/2 |
| copy:pip:0.4 | 0/2 | 0/2 |
| copy:pip:0.6 | 0/2 | 0/2 |
| copy:reencode:crf30 | 2/2 | 2/2 |
| copy:reencode:crf38 | 2/2 | 2/2 |
| copy:reencode:crf46 | 0/2 | 0/2 |
| copy:reverse:reverse | 0/2 | 2/2 |
| copy:rewrap:exact | 2/2 | 2/2 |
| copy:rotate:12deg | 2/2 | 2/2 |
| copy:rotate:5deg | 2/2 | 2/2 |
| copy:rotate:90deg | 1/2 | 1/2 |
| copy:scale:0.25 | 1/2 | 1/2 |
| copy:scale:0.5 | 2/2 | 2/2 |
| copy:speed:x0.8 | 2/2 | 2/2 |
| copy:speed:x1.2 | 2/2 | 2/2 |
| copy:speed:x1.5 | 2/2 | 2/2 |
| copy:speed:x2.0 | 0/2 | 2/2 |
| freeze_pad:freeze_pad:10s | 1/2 | 2/2 |
| idle_pad:idle_pad:10s | 2/2 | 2/2 |
| idle_pad:idle_pad:20s | 2/2 | 2/2 |
| idle_pad:idle_pad:5s | 2/2 | 2/2 |
| loop_mirror:loop_mirror:x2 | 0/2 | 2/2 |
| loop_pad:loop_pad:x2 | 1/2 | 2/2 |
| loop_pad:loop_pad:x3 | 0/2 | 2/2 |
| public:public:crf38 | 2/2 | 2/2 |
| public:public:crop0.9 | 1/2 | 1/2 |
| public:public:gray | 0/2 | 0/2 |
| public:public:mirror | 2/2 | 2/2 |
| public:public:rotate8 | 1/2 | 1/2 |
| public:public:scale0.33 | 2/2 | 1/2 |
| public:public:x1.25 | 2/2 | 2/2 |
| screen:screen:no_imu | 0/2 | 0/2 |
| screen:screen:static_imu | 2/2 | 2/2 |
| sensor:imu_shift:3s | 1/2 | 2/2 |
| sensor:imu_static:phone_still | 1/2 | 2/2 |
| sensor:imu_swap:other_recording | 2/2 | 2/2 |
| sensor:imu_synth:from_video | 0/2 | 0/2 |
| slowmo:slowmo:x1.5 | 0/2 | 2/2 |
| slowmo:slowmo:x2 | 0/2 | 2/2 |
| task:wrong_task:far | 4/5 | 4/5 |
| task:wrong_task:near | 1/1 | 1/1 |
The simulated pilot#
The demo program in the quickstart (99 clips, 24 seeded attacks) was built while the detectors were being written, and its thresholds were set looking at the same batch. Its results are a demonstration, not a measurement, and we do not quote them as accuracy. On it, the current engine flags no honest clip; it misses a bedroom-tidying clip claimed as folding laundry, because tidying has too few other clips in the batch to serve as its own reference.
Reproduce it#
bash scripts/download_data.sh && bash scripts/download_bench.sh
uv run python -m truehands.bench build --out data/bench
uv run python -m truehands.bench run --bench data/bench # this engine -> data/bench/audits
uv run python -m truehands.bench run --bench data/bench --engine-root <checkout of v0.2.0> --out data/bench/audits-v020
uv run python -m truehands.bench.calibrate --bench data/bench # the calibration half only
uv run python -m truehands.bench score --bench data/bench # scorecard.md and scorecard.jsondownload_bench.sh adds the factory recordings used as honest hard negatives (Apache-2.0). The two workers whose footage serves as the demo's public reference library are kept out of the honest set. build cuts the honest clips and derives the attacks; run audits each half with the engine in this checkout, or the one at --engine-root, for before-and-after comparisons; score writes the scorecard with confidence intervals.
Options#
python -m truehands.bench build
| Flag | Default | Description |
|---|---|---|
--raw | data/raw | |
--out | data/bench | |
--seed | 11 | |
--workers | 4 | |
--halves | calib,test |
Flags read from truehands/bench/build.py.
python -m truehands.bench run
| Flag | Default | Description |
|---|---|---|
--bench | data/bench | |
--reference | data/raw/buildai | |
--out | default: <bench>/audits | |
--engine-root | run the engine from another checkout (for before/after comparisons) | |
--halves | calib,test |
Flags read from truehands/bench/__main__.py.
python -m truehands.bench score
| Flag | Default | Description |
|---|---|---|
--bench | data/bench | |
--audits | folder holding <half>/audit.json (default: <bench>/audits) | |
--out | write scorecard.json and scorecard.md here (default: the audits folder) |
Flags read from truehands/bench/score.py.
Every audit.json keeps all continuous measurements per clip (signals), so truehands.bench.calibrate can sweep thresholds over the calibration half without decoding any video again.