open model · neuromorphic

Versalit Match-Analytics

Football analytics with no YOLO and no pre-trained model: neuromorphic-camera events, a spiking neural network to find the players, Kalman to follow them and a 2D radar with each team's control zones.

Apache-2.0spiking network (SNN)2D radar in meterszero manual labels
What the pipeline sees: events (cyan and magenta), players with their ID and team colour, the radar with control zones and the distance covered per team. This version does not show the original broadcast image.

What it does

It takes a match video and returns, frame by frame, where every player is, their ID and their team — and projects it all onto a 2D radar, in meters, with each team's control zones and distance covered.

No YOLO and no pre-trained model: a spiking network, a Kalman filter, k-means and a homography, all built from scratch.

How it works

The video becomes neuromorphic-camera events, with camera motion compensated by phase correlation. Event clusters give positions; an SNN looks at each cluster and decides whether it is a player or noise. A Kalman filter keeps each player's ID, k-means splits the teams by jersey colour and a homography calibrated from 4 points on the pitch maps each position to meters.

video → DVS events (camera motion compensated)
  → event clusters = positions
  → SNN: player or noise
  → Kalman = ID per player · k-means on jersey colour = teams
  → 4-point homography → 2D radar + Voronoi + distance per team

Metrics

MetricValue
Player vs noise classifier97.1%
Player96.8%
Noise97.4%
End-to-end detector (experimental)precision 0.85 · recall 0.31

How to read it: training labels come from an automatic rule (inside the pitch and with human proportions). The 97.1% measures how well the SNN reproduces that rule on 6,506 test clusters — it is not a comparison against human annotation. The end-to-end detector, evaluated on a clip outside its training data, is right when it fires but misses most players: a player standing still produces no events. That is why the pipeline uses the cluster + classifier path.

How to run it

git clone https://huggingface.co/delvek/versalit-match-analytics
cd versalit-match-analytics
pip install -r requirements.txt
python -m src.demo_match match.mp4 --calib calib_m02.json \
    --use-events -o out.mp4

Calibrate for your video

Each calib_*.json maps 4 points in the image (pixels) to 4 points on the pitch (meters, 105×68).

Train it again

# auto-labelled clusters, from 30% to 40% of the video
python -m src.harvest_players "match.mp4:0.3:0.4"
# player vs noise classifier
python -m src.train_player
# evaluates the experimental detector on a clip outside training
python eval_detector.py another_clip.mp4

Honest limitations

  • A player standing still produces no events: the Kalman filter holds the track for a few frames.
  • Labels are automatic — the classifier inherits the rule's hits and misses.
  • The homography is calibrated by hand; a camera that reframes or zooms needs a new calibration.
  • Touching players merge into one cluster, and similar jersey colours confuse k-means.