Carnegie Mellon University · Computer Vision course project
Baseball Video Retrieval & Model Evaluation
Turning timestamped baseball frames into searchable vectors, then inspecting the poses that cause retrieval errors.
- Scope
- 16 clips · 128 frames · 512-dimensional CLIP vectors
- When
- November 2026
The question
Can a text query find a bunt attempt, and which changes improve the ranking without hiding failures?
Supporting figure
Better first hit, unchanged coverage
16-CLIP DEVELOPMENT SET| Metric | Baseline | Posture prompt |
|---|---|---|
| First relevant rank | 3 | 1 |
| Reciprocal rank | 0.333 | 1.000 |
| Precision@3 | 33.3% | 33.3% |
| Recall@3 | 50% | 50% |
Approach
Pin and verify 16 MLB-YouTube example GIFs, sample eight frames per clip, encode them with pretrained CLIP ViT-B/32, and store normalized vectors with source, frame, and timestamp metadata in SQLite. Text-to-image cosine scores are pooled into one result per clip.
Project work
I defined relevance as a visible bunt attempt and manually reviewed all 16 clips. AI assisted implementation and execution. The analysis compares 98 configurations of sampling density, fixed crops, prompt wording, frame pooling, and rank fusion, preserving every trial and the original labels.
Results & evidence
The initial query ranked two irrelevant clips first. Describing the horizontal bat posture moved the first relevant clip from rank 3 to 1 (reciprocal rank 0.333 to 1.0). Precision@3 stayed 33.3% and recall@3 stayed 50%; the second relevant clip moved from rank 4 to 7. Denser sampling and more complex combinations did not improve coverage.
Scope & interpretation
These are development results on one query, 16 clips, and two relevant items, not a held-out benchmark. No fine-tuning or production deployment is claimed. The demo includes short, attributed research-example clips for inspecting the retrieval results. Pretrained weights are not redistributed.
Project materials
Reproducible code, source manifest, human labels, experiment plans and all results. The result explorer plays source clips alongside matched frames and saved rankings, not live model inference.