Abstract
We apply reinforcement learning to video compressive sensing to adapt the compression ratio. Specifically, video snapshot compressive imaging (SCI), which captures high-speed video using a low-speed camera is considered in this work, in which multiple (B) video frames can be reconstructed from a snapshot measurement. One research gap in previous studies is how to adapt B in the video SCI system for different scenes. In this paper, we fill this gap utilizing reinforcement learning (RL). An RL model, as well as various convolutional neural networks for reconstruction, are learned to achieve adaptive sensing of video SCI systems. Furthermore, the performance of an object detection network using directly the video SCI measurements without reconstruction is also used to perform RL-based adaptive video compressive sensing. Our proposed adaptive SCI method can thus be implemented in low cost and real time. Our work takes the technology one step further towards real applications of video SCI.
Introduction
Video Snapshot Compressive Imaging (SCI) is a computational imaging technique that enables low-speed sensors to capture high-speed dynamics. By modulating multiple high-speed frames with high-frequency masks and integrating them into a single 2D measurement, SCI achieves significant temporal compression. The compression ratio, denoted as $B$, represents the number of frames collapsed into one snapshot.
Historically, $B$ has been a fixed parameter. This static approach introduces a significant trade-off: a high $B$ in fast-moving scenes (e.g., sports) results in severe motion blur and loss of detail, while a low $B$ in slow-moving scenes (e.g., surveillance) leads to inefficient data handling and resource waste. This paper introduces a reinforcement learning (RL) framework to enable real-time, scene-dependent adaptation of the compression ratio $B$, treating the camera as an intelligent agent.
Methodology: RL-Based Adaptive Sensing
The proposed system treats the SCI camera as an autonomous agent interacting with a dynamic environment (the scene). The agent's goal is to select an optimal $B$ from a discrete set $S = \{6, 8, 10, 12, 15, 20\}$ to maximize a reward function based on both reconstruction quality and task performance.
Reward Policy and Real-Time Feedback
A key innovation is the use of object detection as a proxy for sensing quality. The system employs YOLOv3-Tiny to perform detection directly on the compressed measurements. This avoids the high computational latency of full video reconstruction, allowing the RL agent to make adaptation decisions in approximately 12ms. During training, the reward function incorporates both the detection rate and the Peak Signal-to-Noise Ratio (PSNR) of the reconstructed video to ensure high fidelity. This dual-metric approach ensures the system balances visual quality with functional utility.
Experimental Evaluation
The framework was evaluated across diverse datasets, including urban traffic (PDTV), highway movement (DynTex), surveillance (Grocery Store), and high-speed sports (NBA).
The adaptive method consistently outperformed fixed-ratio baselines. For instance, in the NBA dataset, the adaptive approach achieved a 6.85 dB improvement in PSNR and increased the average detection rate from 56.35% to 82.24%. On highway scenes, the system demonstrated its ability to "skip" states—rapidly jumping between $B$ values—to respond to sudden changes in vehicle speed, maintaining a balance between bandwidth efficiency and visual clarity. The RL module remained robust even when significant Gaussian noise was introduced to the measurements.
Conclusion and Future Work
This work demonstrates that RL can effectively bridge the gap between static hardware configurations and dynamic real-world scenes in video SCI. By utilizing lightweight object detection on compressed data, the system achieves real-time adaptation with minimal overhead. Future research will explore continuous state spaces for finer control and the integration of this logic into physical SCI hardware, such as Digital Micromirror Device (DMD) based cameras, to evaluate hardware-level latency and power consumption in edge computing environments.
Summary updated