TL;DR
Autonomous vehicles generate massive amounts of data, making it challenging to store and analyze everything. This paper introduces the "Smart Black Box" (SBB), a novel system that intelligently prioritizes and compresses data, focusing on high-value events while discarding less critical information. This approach ensures that crucial driving events are captured with sufficient detail for analysis, even with limited storage.
What Problem Does This Paper Address?
Modern autonomous vehicles (AVs) are equipped with numerous high-bandwidth sensors (cameras, LiDAR, etc.) that generate terabytes of data daily. Traditional data recorders often log everything at a uniform, low compression rate or use a simple first-in, first-out (FIFO) buffer, leading to either excessive storage requirements or the loss of potentially important data. This makes it difficult and expensive to collect comprehensive datasets for validating AV systems, especially for rare but critical events (Events of Interest - EOIs) like near-crashes or sudden maneuvers. The challenge is to efficiently capture and store high-value data while minimizing storage costs, ensuring that the recorded data is still useful for downstream analysis, particularly for deep learning models.
Methods
The Smart Black Box (SBB) employs a two-stage approach:
- Short-Term Buffering and Compression Decision Making:
- Deterministic Mealy Machine (DMM): A DMM tracks incoming data, buffering it into segments. It uses data value (based on event rarity) and similarity metrics (how similar a new frame is to the current buffer) to decide when to start and stop buffering a segment.
- Value-Driven Compression: For each buffered segment, a multi-objective optimization problem is solved to determine the optimal compression quality (e.g., JPEG quality) for each frame. This optimization balances data value, storage cost, and decision continuity (avoiding abrupt changes in compression quality).
- Decoupled Local Buffer Optimization (LBO): To make the process computationally feasible, the continuity term is dropped, allowing for independent optimization of each frame's compression quality.
- Long-Term Storage Management:
- Prioritized Data Recording: When onboard storage is full, the SBB uses a priority queue (min-heap) to discard the lowest-value buffered data first, ensuring that high-value events are retained. This is a significant improvement over FIFO, which discards data based solely on age.
Datasets
- Simulated Highway Traffic Data: The primary dataset used for evaluation was generated using a simulator capable of representing heterogeneous and interactive multi-vehicle traffic scenarios. This simulator was used to create trajectories containing specific Events of Interest (EOIs) such as cut-ins, hard braking, conflicts, and crashes.
- TORCS (The Open Racing Car Simulator): Used to generate first-person view images for evaluating the impact of compression on deep learning models.
Key Insights and Ideas
- Data Value as a Primary Driver: The core idea is that not all driving data is equally important. By quantifying data value based on event rarity and context, the SBB can make intelligent decisions about what to keep and how to compress it.
- Balancing Compression and Information Loss: The SBB's optimization framework explicitly tackles the trade-off between data size and information content, aiming to compress normal driving data heavily while preserving detail for critical events.
- Prioritization Over Age: The shift from FIFO to a value-based priority queue for storage management is crucial. It ensures that older but valuable data is not prematurely discarded in favor of newer, less important data.
- Deep Learning Reproducibility: The paper demonstrates that even with significant compression, the SBB can retain enough detail for deep learning models (like Mask-RCNN and DeepLabV2) to perform object detection and semantic segmentation with reasonable accuracy, especially for the critical events it prioritizes.
Key Results
- Storage Savings: The SBB achieved significant storage savings compared to traditional methods. For example, with a storage limit of 500MB, the SBB saved 40% of cut-in events and all conflict events, while a FIFO recorder missed 79% of conflict events.
- EOI Preservation: The SBB effectively prioritized and preserved high-value events. The paper shows that the SBB can record more reproducible data for EOIs compared to baselines that use fixed compression ratios.
- Deep Learning Performance: For EOIs, the SBB-compressed data showed comparable or even better performance for Mask-RCNN and DeeplabV2 compared to baseline compression methods, indicating the SBB's ability to retain crucial information for these tasks. For normal frames, the SBB's performance was lower, as expected, due to its aggressive compression strategy.
- Computational Feasibility: While coupled LBO was computationally intensive, the decoupled LBO approach significantly reduced computation time, making it more practical for real-time deployment.
Limitations and Future Work
- Static Metrics: The current SBB relies on static metrics for data value and event detection. Future work should incorporate real-time, dynamic metrics such as available storage, observed driving conditions, traffic risk, and event novelty.
- Limited EOIs: The study focused on four specific EOIs. A more comprehensive set of EOIs would be beneficial for broader applications.
- Simulator Dependence: While the simulator provides a controlled environment, real-world driving scenarios can be more complex and unpredictable.
- Cloud Storage and Upload: The paper focuses on onboard storage and does not delve into the complexities of data uploading to cloud storage or cloud-based data management.
The authors suggest extending the SBB to combine static metrics with dynamic ones, incorporating more sophisticated event detection, and exploring its application in diverse driving scenarios.
Summary updated