Abstract
Real-time image enhancement is critical for minimally invasive surgery (MIS), where poor lighting conditions can obscure anatomical details and increase surgical risk. While Denoising Diffusion Probabilistic Models (DDPMs) offer state-of-the-art restoration, their high computational demand typically limits clinical deployment. This paper presents LighTDiff, a lightweight diffusion-based framework optimized for surgical environments. By employing a pruned "T-shape" architecture and a novel Temporal Light Unit (TLU), LighTDiff achieves high-quality enhancement at significantly higher speeds than traditional diffusion models, bridging the gap between generative performance and real-time clinical utility.
Introduction
In minimally invasive surgery, surgeons rely on high-definition endoscopic video feeds to navigate complex anatomical structures. However, the confined spaces of the human body often lead to inadequate or uneven illumination, resulting in low-contrast images and lost textural detail. This degradation is not merely an aesthetic concern; it directly impacts the accuracy of lesion localization and the safety of surgical maneuvers.
Recent advancements in generative AI, specifically Denoising Diffusion Probabilistic Models (DDPMs), have demonstrated remarkable capabilities in image restoration. However, these models are notoriously "heavy," requiring extensive computational resources and exhibiting slow inference speeds that make them unsuitable for the real-time requirements of the operating room. LighTDiff addresses these limitations by redesigning the diffusion process for efficiency without sacrificing restoration quality.
Methodology
LighTDiff introduces three core architectural innovations designed to streamline the diffusion process for surgical applications.
1. LighT (T-shape) Architecture
Standard diffusion models maintain a constant high resolution throughout the denoising process, which is computationally intensive. LighTDiff adopts an "inconstant resolution" strategy. The model processes images at lower resolutions during the initial denoising stages to capture global structural context, then gradually recovers fine-grained details as the process nears completion. By strategically pruning downsampling components, the authors reduced the model size to less than 50% of a vanilla DDPM.
2. Temporal Light Unit (TLU)
Model pruning often introduces training instability. To mitigate this, LighTDiff replaces the heavy self-attention blocks common in DDPMs with the Temporal Light Unit (TLU). The TLU is a "plug-and-play" module that injects time-step information directly into the image features. This allows the model to maintain temporal awareness across the denoising trajectory without the massive memory and compute overhead associated with global self-attention.
3. Chroma Balancer (CB)
Diffusion models are prone to "spectral shifts" or color biases during restoration. The Chroma Balancer module utilizes channel attention mechanisms to rectify these biases, ensuring that the enhanced surgical images maintain naturalistic color distributions—a critical factor for accurate tissue differentiation and clinical diagnosis.
Experimental Setup
The framework was evaluated using both synthetic and real-world surgical data:
- Synthetic Datasets: Using EndoVis17 and EndoVis18 (standard surgical instrument segmentation datasets), the authors generated low-light pairs using random Gamma correction and illumination reduction to simulate surgical environments.
- Real-world Dataset: Data was collected from 20 Endoscopic Submucosal Dissection (ESD) surgeries performed on pigs. This included 61 manually labeled low-light images to assess the impact of enhancement on downstream tasks like instrument segmentation.
Results
LighTDiff demonstrates superior performance across image quality, computational efficiency, and practical utility.
Image Quality and Restoration
On the EndoVis17 benchmark, LighTDiff achieved a Peak Signal-to-Noise Ratio (PSNR) of 34.28 dB. This significantly outperforms other diffusion-based methods such as PyDiff (31.02 dB) and CLEDiffusion (31.12 dB), indicating higher fidelity to the ground-truth well-lit images.
Efficiency and Real-time Potential
LighTDiff achieved an inference speed of 14.19 FPS, a dramatic improvement over CLEDiffusion’s 0.37 FPS. Furthermore, the model is 85.6% lighter in terms of parameters compared to PyDiff, with training costs reduced by nearly 50%.
Downstream Task Performance
To prove clinical utility, the authors tested how enhancement affects automated surgical tools. Images processed by LighTDiff yielded the highest Dice scores (59.55) for instrument segmentation on real-world data, confirming that the model preserves essential edges and textures required for computer-aided surgery and automated navigation.
Conclusion
LighTDiff represents a significant step toward bringing diffusion-based enhancement into the clinical workflow. By optimizing the architecture for speed and size, it provides a viable path for real-time surgical assistance. While current speeds (14.19 FPS) are approaching the requirements for fluid video, future work will focus on further optimization to reach the 30-60 FPS standard and validating the system on human clinical datasets for widespread adoption.
Summary updated