VisualWorldDB: A DBMS for the Visual World

Brandon Haynes, Maureen Daum, Amrita Mazumdar, Magdalena Balazinska, Alvin Cheung, Luis Ceze

Modern visual applications, such as autonomous driving and large-scale surveillance, increasingly rely on multiple overlapping video streams. However, existing Video Database Management Systems (VDBMS) treat these streams as independent 2D sequences. This approach forces developers to manually handle spatial alignment and results in significant storage and computational waste due to redundant data across cameras.

VisualWorldDB addresses these challenges by treating video as a unified 3D "world" rather than isolated files. By assigning spatiotemporal coordinates $(x, y, z, t)$ to pixels, the system can exploit physical overlap to optimize storage and query execution.

System Architecture

The core of VisualWorldDB is a novel architecture that decouples logical data views from physical storage.

The VisualWorldDB system architecture, featuring a Query Processor and a specialized Storage Manager that bridges relational data and the Video File System (VFS).

The system utilizes several key components to manage the visual world:

  • 3D Data Model: Data is organized into "Worlds" containing "Objects" (defined by polyhedral shapes and trajectories) and "Cameras."
  • Video File System (VFS): The VFS enables "compressed cropping," allowing the system to decode only the specific portions of a frame required for a query, bypassing the need to decompress entire high-resolution images.
  • Joint Compression: The Storage Manager identifies overlapping fields of view and employs techniques like "Interleaving" (alternating pixel rows) or "Stitching" (creating panoramas) to store shared visual data only once.
  • Query Optimization: Expensive machine learning (ML) inference results are reused across cameras. If an object is detected in one camera's view, the system can skip redundant detection in overlapping views from other cameras, intelligently merging the results instead.

Performance and Results

Evaluations using the Visual Road benchmark—consisting of 15 minutes of synthetic 4K video—demonstrate substantial efficiency gains.

Storage size comparison between separate compression and joint compression methods (Interleaved and Stitched) as a function of camera field-of-view overlap.

Key findings include:

  • Storage Efficiency: Jointly compressing overlapping video streams reduces the total storage footprint by up to 60% as camera overlap increases.
  • Query Speed: The "compressed cropping" technique provides a 2.5x performance boost over standard full-frame decompression.
  • Processing Gains: Joint compression reduces decompression time by an average of 45% for multi-camera queries. Even when only one camera's data is needed, the overhead of the joint format remains a manageable 30%.

Conclusion and Future Work

VisualWorldDB demonstrates that treating video as a relational 3D world enables significant optimizations for modern multi-camera environments. While the system currently achieves impressive results, future work will focus on improving ML accuracy in occluded regions, automating overlap parameter tuning, and developing dynamic spatial indexing for rapidly changing environments.

Summary updated

BibTeX
@inproceedings{haynes2020visualworlddb,
  author = {Brandon Haynes and Maureen Daum and Amrita Mazumdar and Magdalena Balazinska and Alvin Cheung and Luis Ceze},
  title = {{VisualWorldDB: A DBMS for the Visual World}},
  booktitle = {CIDR},
  year = {2020},
}
Figure