Tracking Fundamentals
Foundations of Object Tracking and Motion Prediction
Introduce object tracking as the estimation of an object’s state over time. Students learn how positions, velocities, bounding boxes, trajectories, and uncertainty are represented. The tutorial develops motion prediction from frame differencing and optical flow to constant-velocity models and Kalman filtering.
Notebook workflow
Learn
Learning objectives
- Differentiate detection, single-object tracking, and multi-object tracking
- Represent position, size, velocity, identity, and uncertainty as track state
- Explain prediction, observation, innovation, correction, and covariance
- Apply a Kalman filter across missed and noisy observations
Build
Notebook activities
- Detect one object in a video and extract its center position
- Estimate velocity and predict the next position
- Apply a Kalman filter to noisy observations
- Simulate missed detections and compare raw with filtered trajectories
Submit
Expected outcome
Students create a motion-prediction notebook that visualizes noisy detections, Kalman predictions, corrected states, uncertainty, and object trajectories.
View full notebook syllabusConcepts, algorithms, mathematics, and practiceHide syllabus
Core concepts
- Video as a temporal signal
- Frames and frame rate
- Object state
- Bounding-box center, width, and height
- Velocity and acceleration
- Trajectory and observation
- State prediction and measurement update
- Process and measurement noise
- Uncertainty
- Track initialization and lifecycle
- Single-object tracking
- Multi-object tracking
Key algorithms
- Frame differencing
- Background subtraction
- Sparse and dense optical flow
- Constant-position model
- Constant-velocity model
- Constant-acceleration model
- Kalman filter prediction–update cycle
Mathematical topics
State vector: xₜ = [cₓ, cᵧ, w, h, vₓ, vᵧ]ᵀPrediction: x̂ₜ|ₜ₋₁ = F x̂ₜ₋₁|ₜ₋₁Covariance prediction: Pₜ|ₜ₋₁ = F Pₜ₋₁|ₜ₋₁ Fᵀ + QKalman gain and innovationCorrected state and covariance ellipsePractice checklist
- Visualize true, observed, predicted, and corrected positions
- Adjust process noise Q and measurement noise R
- Plot the covariance ellipse during an observation gap
- Document how the track recovers after detections return
Student guidance: complete the notebook in sequence and keep the generated figures, metrics, and written observations.
Open Notebook