AdaEnlight: Energy-aware Low-light Video Stream Enhancement on Mobile Devices

Sicong Liu, Xiaochen Li, Zimu Zhou, Bin Guo, Meng Zhang, Haochen Shen, Zhiwen Yu

TL;DR

AdaEnlight is an energy-aware middleware system designed to bring real-time, high-quality low-light video enhancement to resource-constrained mobile devices. By replacing slow iterative models with a novel non-iterative Gamma-based curve and employing a runtime energy controller, it achieves near real-time performance while dynamically trading off visual quality to preserve battery life.

What Problem Does This Paper Address?

Mobile devices—from smartphones to delivery robots—frequently capture video in dim environments using small-aperture cameras, resulting in dark, noisy, and low-contrast streams. While deep learning has revolutionized low-light image enhancement, two major hurdles prevent these models from being useful on mobile platforms:

  1. Computational Latency: State-of-the-art models like Zero-DCE are often iterative, making them too slow for real-time video (e.g., taking over 10 seconds to process a single frame on a Raspberry Pi).
  2. Energy Blindness: Mobile devices are battery-powered. Running heavy enhancement models continuously can drain a battery in minutes, yet existing solutions lack the "knobs" to adjust their behavior based on the remaining energy budget.
  3. Temporal Instability: Applying image-based enhancement to video often causes distracting "flickering" because the model treats each frame in isolation.
Fig. 1. Illustration of AdaEnlight as a video enhancement middleware for downstream mobile video applications.

Methods

The authors propose AdaEnlight, which tackles these issues through three main innovations:

  • Non-iterative Gamma-based Curve: Instead of the standard iterative quadratic curves used in prior work, AdaEnlight uses a pixel-wise exponential curve: $E(x) = I(x)^{\Gamma(x)}$. By learning a parameter map $\Gamma(x)$ via a lightweight U-Net, the system achieves high-order non-linearity in a single pass, drastically reducing latency.
  • Temporal Consistency Losses: To stop flickering, the authors introduced exposure and color consistency losses. They use the Gunnar-Farneback optical flow method to align adjacent frames before calculating these losses, ensuring that the enhancement remains stable even when the camera or objects are moving.
  • Energy-Aware Adaptation Controller: This is the "brain" of the system. It features a runtime energy profiler that estimates energy consumption based on the cache-hit-rate—a clever proxy for DRAM access, which is the primary energy consumer in mobile neural network execution. The controller can dynamically adjust the frame resolution and "computation reuse" (skipping layers or reusing results from previous frames) to meet a specific energy budget.

Datasets

The researchers utilized a mix of standard benchmarks and a new self-collected dataset:

  • Training: SCIE (diverse exposure images) and Loli-Phone (smartphone videos).
  • Testing/Evaluation: VV, LIME, and LOL for image quality; NightOwls for video performance.
  • MobiScene: A new self-collected dataset featuring four scenarios (moving/static cameras and objects) specifically designed to measure temporal stability in real-world mobile use cases.
Fig. 2. An example study of the ubiquity of low-light video streams in the mobile video surveillance scenario.

Key Insights and Ideas

  • Iteration is the Enemy of Real-Time: The most significant "aha" moment is that the iterative nature of previous curve-based models was the primary bottleneck. Moving to a learned, non-iterative Gamma curve provides comparable quality at a fraction of the time.
  • Cache-Hit-Rate as an Energy Proxy: Modeling energy consumption on mobile is notoriously difficult due to hardware diversity. By focusing on the cache-hit-rate to estimate expensive off-chip memory (DRAM) accesses, the authors created a portable way to predict energy demand at runtime.
  • Middleware is the Right Abstraction: By implementing AdaEnlight as a middleware, it transparently improves all downstream tasks. For instance, the authors showed that face detection accuracy on low-light video improves significantly when AdaEnlight is running in the background.

Key Results

  • Speed: AdaEnlight achieves an average latency of ~50ms per frame on a Raspberry Pi 4B and ~20ms on an NVIDIA Jetson Nano, making it roughly 4x faster than the previous state-of-the-art lightweight model (Zero-DCE++).
  • Visual Quality: Despite the speedup, it achieved the best NIQE (a no-reference quality metric) on the NightOwls and LIME datasets and the best PSNR on the LOL dataset.
  • Energy Efficiency: The adaptation controller can reduce power consumption from 0.68mAh to 0.4mAh per video segment when the device enters a low-power state, successfully trading off some visual quality to extend battery life by hours.

Limitations and Future Work

While impressive, the authors note several areas for improvement:

  • Resolution Scaling: The current real-time performance is benchmarked at 270p. Supporting 4K video in real-time on mobile remains a challenge that may require further model compression or hardware-specific optimizations (like fixed-point operations).
  • RAW Support: The system currently processes RGB video. Extending this to RAW formats could unlock even better results in extreme low-light conditions, though RAW support is not yet universal across mobile platforms.
  • Hardware Diversity: The current energy profiler is optimized for CPUs and GPUs; future work is needed to integrate it with specialized AI accelerators (NPUs).

Summary updated

Abstract

The ubiquity of camera-embedded devices and the advances in deep learning have stimulated various intelligent mobile video applications. These applications often demand on-device processing of video streams to deliver real-time, high-quality services for privacy and robustness concerns. However, the performance of these applications is constrained by the raw video streams, which tend to be taken with small-aperture cameras of ubiquitous mobile platforms in dim light. Despite extensive low-light video enhancement solutions, they are unfit for deployment to mobile devices due to their complex models and and ignorance of system dynamics like energy budgets. In this paper, we propose AdaEnlight, an energy-aware low-light video stream enhancement system on mobile devices. It achieves real-time video enhancement with competitive visual quality while allowing runtime behavior adaptation to the platform-imposed dynamic energy budgets. We report extensive experiments on diverse datasets, scenarios, and platforms and demonstrate the superiority of AdaEnlight compared with state-of-the-art low-light image and video enhancement solutions.
BibTeX
@misc{liu2022adaenlight,
  author = {Sicong Liu and Xiaochen Li and Zimu Zhou and Bin Guo and Meng Zhang and Haochen Shen and Zhiwen Yu},
  title = {{AdaEnlight: Energy-aware Low-light Video Stream Enhancement on Mobile Devices}},
  year = {2022},
  eprint = {2211.16135},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.16135},
}
Figure