How it works
- Find the joints of each person in the frame — wrists, elbows, shoulders, hips. This is called pose estimation — Finding the position of each body joint (wrist, elbow, hip…) of each person in a video frame. The result is a skeleton..
- Look at every dyad — A pair of people. Argus scores each pair, because violence is something one person does to another. close enough to touch.
- For each pair, measure how they move: how close they are, how fast a hand moves toward the other person’s head or body. All distances are in torso-length (TL) — The distance from mid-shoulder to mid-hip of a person. Argus measures distance and speed in this unit, so a near person and a far person give the same numbers., not pixels, so it works on any camera.
- A small model scores each pair, many times per second.
- Put the pair scores together into one answer for the scene.
video frame ─► joints of each person ─► pairs of people close enough to hit
─► 53 measurements per pair ─► a score per pair ─► one answer for the scene
A second, simpler check runs at the same time. It only uses geometry: “will this hand reach that head?”. It fires about 240 ms before a punch lands.
What went wrong
The first trained model scored very well on paper (AUC — A score from 0.5 (random guess) to 1.0 (perfect) for how well a model ranks positive examples above negative ones. 0.970). Then it raised alarms on hugs, handshakes and pats on the back.
I measured why. In the lab dataset I trained on, a hug had a faster wrist than a punch. The actors in that lab held back their punches and swung their arms wide for hugs. So the model learned “a hand moving toward a person = violence”.
I did not change the numbers to fit the lab. I checked real data instead. In motion capture (mocap) — Recordings of body motion from markers or sensors on a real person. More accurate than joints found in video. and in 60 real CCTV clips, punches were fast and calm movement was slow, as expected. Then I trained the model a little more on motion capture. False alarms on calm pairs of people dropped from 50% to 5%.
The full story: In my training data, a hug was faster than a punch.
Design choices
- Score pairs of people, not frames. Violence is something one person does to another, so the question is “is this person attacking that person?”.
- A forecast never raises an alarm by itself. People argue and push without fighting. A “fight soon” guess only makes the system watch more closely.
- Keep skeletons, not video. A skeleton does not show a face. No face recognition, on purpose.
- Do not tune numbers on fake data. A number tuned until a scripted scene passes proves nothing.