CAROM -- Vehicle Localization and Traffic Scene Reconstruction from Monocular Cameras on Road Infrastructures

Duo Lu, Varun C Jammula, Steven Como, Jeffrey Wishart, Yan Chen, Yezhou Yang

TL;DR

CAROM ("CARs On the Map") is a novel framework that transforms standard 2D traffic monitoring videos into anonymized, structured 3D data records of vehicle types, shapes, positions, and velocities. By converting raw video into lightweight telemetry, it enables privacy-preserving traffic scene reconstruction and replay in 2D or 3D while drastically reducing network bandwidth and storage costs.

What Problem Does This Paper Address?

Traffic monitoring cameras are everywhere, but the massive streams of 2D video they produce present three major challenges:

  1. High Infrastructure Costs: Transmitting and archiving raw video requires massive network bandwidth and storage space.
  2. Unstructured Data: 2D videos are difficult to index, search, and analyze automatically. Extracting critical 3D information—like exact vehicle velocities or distances between cars—is prone to perspective distortion and human bias.
  3. Privacy Concerns: Raw footage contains Personally Identifiable Information (PII) like faces and license plates, restricting data sharing with third-party researchers, insurance companies, or autonomous vehicle (AV) manufacturers.

CAROM addresses these gaps by extracting 3D states directly from monocular (single-camera) infrastructure feeds, turning raw video into anonymized, structured data that can "re-simulate" traffic scenes from a bird's-eye view.

Methods

The CAROM framework is divided into three main subsystems: Tracking, Reconstruction, and Replay.

Fig. 2: The CAROM Framework Architecture

1. Online Vehicle Tracking Pipeline

  • Vehicle Detection: A fine-tuned Mask R-CNN handles instance segmentation, producing precise 2D vehicle masks.
  • Tracking & Type Recognition: Sparse optical flow vectors track vehicles across frames, while a decoupled ResNet-18 classifier categorizes them into one of 14 types (e.g., sedan, SUV, semi-truck).
  • Localization via Vanishing Points: The system applies RANSAC to optical flow vectors to find the camera's vanishing points. Using the tangent line method, it estimates a 3D bounding box from the 2D mask contour.
  • State Estimation: A Kalman filter utilizing 6DOF rigid body kinematics smooths out the vehicle's trajectory, velocity, and heading over time.

2. Vehicle Shape Reconstruction

To reconstruct actual 3D vehicle shapes, CAROM uses a shape-from-silhouette method. When a vehicle passes through an intersection covered by multiple cameras, the system carves out a 3D visual hull from the intersecting segmentation masks. To handle errors and limited viewing angles, it fits these rough shapes to a prior model built via Principal Component Analysis (PCA) from 80 distinct 3D CAD vehicle models.

Datasets

The authors created and utilized two distinct datasets:

  • Custom Training Dataset: Comprising 10,200 images cropped from traffic videos to train the Mask R-CNN detector and ResNet-18 vehicle type classifier.
  • Validation Benchmarking Dataset: Developed in collaboration with a local U.S. Department of Transportation (DOT). It features real-world traffic camera footage paired with ground-truth validation data from a vehicle equipped with differential GPS (D-GPS) and overhead drone videos captured 80 meters above the road.

Key Insights and Ideas

  • Automatic Anonymization: Because CAROM only stores vehicle states (3D bounding boxes, velocities, and generic CAD-like meshes) and discards the raw pixels, it inherently strips out all PII. This makes traffic data safely shareable with external researchers and insurance companies.
  • Decoupled Architecture: Separating object detection from vehicle type classification makes the underlying neural networks significantly easier to train and allows the classifier to focus on fine-grained features.
  • Exploiting Infrastructure Geometry: By leveraging static camera calibration and vanishing points derived from vehicle motion, the system successfully extracts accurate 3D spatial metrics from a single, low-cost 2D camera feed.

Key Results

The authors evaluated CAROM across multiple real-world tracks, comparing its output directly against drone telemetry and differential GPS:

Fig. 1: An overview of CAROM: (a) original traffic monitoring video, (b) detected vehicles, (c) replay on a 2D map, (d) replay on a 3D map.
  • Tracking Accuracy: Achieved a Multiple Object Tracking Accuracy (MOTA) of up to 96.2%.
  • Type Classification: The vehicle type recognizer achieved an overall accuracy of 84%.
  • Localization Error: The average localization error was 0.8 meters for vehicles within a 50-meter range of the camera, and 1.7 meters for vehicles up to 120 meters away.
  • Velocity Error: Velocity measurements differed from ground truth by only 0.69 to 1.47 m/s, proving highly viable for traffic safety metrics.

Limitations and Future Work

  • Occlusion Sensitivity: The 3D bounding box and shape-from-silhouette algorithms rely heavily on complete, un-occluded segmentation masks. Performance degrades when vehicles block one another. The authors plan to implement a neural network pose estimator to better handle partial occlusions.
  • Limited Traffic Participants: The current implementation only reconstructs motorized vehicles. Future iterations aim to incorporate "bounding cylinders" to track and protect vulnerable road users like pedestrians and cyclists.
  • Real-time Optimization: While promising, the framework is still in its early stages regarding computational efficiency, and work is ongoing to optimize it for edge deployment on roadside smart cameras.

Summary updated

Abstract

Traffic monitoring cameras are powerful tools for traffic management and essential components of intelligent road infrastructure systems. In this paper, we present a vehicle localization and traffic scene reconstruction framework using these cameras, dubbed as CAROM, i.e., "CARs On the Map". CAROM processes traffic monitoring videos and converts them to anonymous data structures of vehicle type, 3D shape, position, and velocity for traffic scene reconstruction and replay. Through collaborating with a local department of transportation in the United States, we constructed a benchmarking dataset containing GPS data, roadside camera videos, and drone videos to validate the vehicle tracking results. On average, the localization error is approximately 0.8 m and 1.7 m within the range of 50 m and 120 m from the cameras, respectively.
BibTeX
@inproceedings{lu2021carom,
  author = {Duo Lu and Varun C Jammula and Steven Como and Jeffrey Wishart and Yan Chen and Yezhou Yang},
  title = {{CAROM -- Vehicle Localization and Traffic Scene Reconstruction from Monocular Cameras on Road Infrastructures}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2021},
  url = {https://openreview.net/forum?id=bRHbSawW0k},
}
Figure