TATraffic Analyzer

Technical report

What we built, what worked, what did not

One page, written for someone who wants to rebuild the system or decide what to fix next.

What we built

A detector-tracker-rules pipeline behind the official solution.detect_events interface. A fine-tuned YOLO finds road users and signal heads, ByteTrack links them into tracks, and a scene map of the junction is aligned to each clip with a SIFT homography. Seven per-class rule modules turn tracks and zones into time segments. The same entry point backs the live demo. See the approach for the diagram and every rule.

What worked

What did not work, or not yet

What we would do next

  1. Have a second reviewer audit the four labelled clips, then tune thresholds against F1 at IoU 0.7.
  2. wrong_way and stopped_vehicle next: both are direct rules on existing tracks plus the lane directions we already measured with optical flow.
  3. Part B with time-to-collision between track pairs, calibrated so 0.5 means “probably within 5 s”. This also gives near_miss candidates.
  4. Decode on the GPU (NVDEC) and batch the detector to widen the time margin.