Skip to content
tezvyn:
Menu

Re-identification in multi-object tracking

Source: interviewMediumHow cards are made

Summary

maintaining identity across gaps and occlusions.

Key points

Re-ID matches an object to its prior id using appearance embeddings, not just position; store track features and match re-entering detections by embedding similarity.

WHAT THIS TESTS Whether you understand that across long occlusions motion models fail and identity must be recovered from appearance, the Re-ID problem.

A GOOD ANSWER COVERS In multi-object tracking, frame-to-frame association by IoU or a Kalman prediction works only while objects stay visible and move predictably. When an object is occluded for many frames or exits and re-enters, its predicted position is stale, so position-based matching breaks. Re-identification is the task of correctly reassigning a reappearing detection to its original track id. The high-level strategy is appearance-based. Train a Re-ID embedding network, often with a triplet or contrastive loss, so crops of the same identity map to nearby vectors and different identities map far apart. For each active track, maintain a gallery of recent appearance embeddings. When a detection cannot be matched by motion, compare its embedding against the embeddings of recently lost tracks using cosine or Euclidean distance; a close match revives that track's id rather than creating a new one. DeepSORT combines this appearance distance with Mahalanobis motion distance.

COMMON WRONG ANSWERS Relying solely on IoU or Kalman prediction, which cannot bridge long gaps. Always spawning a new id on reappearance, inflating identity switches. Comparing raw pixels instead of a learned embedding, which is brittle to pose and lighting.

LIKELY FOLLOW-UPS How is the Re-ID network trained and evaluated? How long should lost tracks be retained before deletion? How does DeepSORT fuse appearance and motion? How do you handle similar-looking objects like uniformed players?

ONE CONCRETE EXAMPLE A pedestrian walks behind a bus for two seconds. The Kalman prediction drifts and the track is marked lost but kept. When the person reappears, a new detection's embedding is compared to the lost track's stored embeddings, the cosine distance is small, so the original id is restored instead of assigning a fresh one.

Interview question

Why is appearance-based Re-ID needed when an object is occluded for a long duration in MOT?

  • a.The detector stops working entirely during any occlusion
  • b.Optical flow becomes faster to compute during occlusion
  • c.Bounding boxes shrink to zero area and must be regenerated
  • d.Motion prediction grows stale, so identity must be matched by learned appearance featuresCorrect
Why?

Over a long gap a Kalman or IoU prediction drifts and cannot reliably match the reappearing object, so a learned appearance embedding is used to recover the original id. The other options misdescribe what occlusion does to the system.

Just read this? Test yourself on what you have been reading.

Read the original → osjournal.org

Put your scrolling time to good use

Learn one idea, try a quiz and save useful cards for revision. Tezvyn makes it easy to learn and stay current in your tech field, a few minutes at a time.

The iPhone app is on the way

We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.

Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.

Get it on Google PlayiPhone app coming soon

We are hiring for this. Every open role lists the topics its interview covers, so you can prepare for the real thing rather than guessing.

See open roles