SAMJAM: Zero-Shot Video Scene Graph Generation for Egocentric Kitchen Videos
Joshua Li, Fernando Jose Pena Cantu, Emily Yu, Alexander Wong, Yuchen Cui, Yuhao Chen
TL;DR
The paper tackles zero-shot video scene graph generation (VidSGG) in egocentric kitchen videos, where maintaining stable object identities across frames is challenging. It introduces SAMJAM, a 5-stage pipeline that fuses Gemini's open-vocabulary frame-level scene graphs with SAM2's robust temporal segmentation and tracking to produce temporally-consistent graphs. A base-frame object-to-mask matching via IoU and a mask-propagation mechanism form temporally coherent representations, while subsequent frames refine them with new masks and overlaps. Empirical results on EPIC-KITCHENS and EPIC-KITCHENS-100 show SAMJAM achieving a mean recall of $39.66\%$, an $8.33\%$ improvement over Gemini alone, demonstrating improved identity stability and bounding-box grounding. This approach enhances zero-shot VidSGG applicability for egocentric cooking tasks and has implications for downstream QA and robotic assistance in dynamic environments.
Abstract
Video Scene Graph Generation (VidSGG) is an important topic in understanding dynamic kitchen environments. Current models for VidSGG require extensive training to produce scene graphs. Recently, Vision Language Models (VLM) and Vision Foundation Models (VFM) have demonstrated impressive zero-shot capabilities in a variety of tasks. However, VLMs like Gemini struggle with the dynamics for VidSGG, failing to maintain stable object identities across frames. To overcome this limitation, we propose SAMJAM, a zero-shot pipeline that combines SAM2's temporal tracking with Gemini's semantic understanding. SAM2 also improves upon Gemini's object grounding by producing more accurate bounding boxes. In our method, we first prompt Gemini to generate a frame-level scene graph. Then, we employ a matching algorithm to map each object in the scene graph with a SAM2-generated or SAM2-propagated mask, producing a temporally-consistent scene graph in dynamic environments. Finally, we repeat this process again in each of the following frames. We empirically demonstrate that SAMJAM outperforms Gemini by 8.33% in mean recall on the EPIC-KITCHENS and EPIC-KITCHENS-100 datasets.
