Authors: Junzhi Liu, Yinghao Zeng, Yang Liu, Huafeng Li, Xiaosong Li
Organizations: College of Physics and Optoelectronic Engineering, Foshan University, Foshan 528225, China · School of Computer Science and Engineering, Huizhou University, Huizhou 516007, China · School of Information Engineering and Automation, Kunming University of Science and Technology, Kunming 650500, China
Endoscopic images captured under complex illumination conditions often suffer from spatially non-uniform exposure degradation, including local under-exposure, over-exposure, and illumination-induced color variation. These degradations are usually entangled with tissue structures, making it challenging for general-purpose low-light enhancement and image restoration methods to improve visibility while preserving local structural and chromatic cues. In this paper, we propose EID-Net, an endoscopic illumination-aware degradation correction network for structure-preserving endoscopic illumination correction. Rather than treating illumination correction as a global intensity adjustment, EID-Net explicitly extracts an endoscopy-oriented degradation prior from the input image to characterize illumination-related variations in a unified representation. This prior is then introduced into the decoder through an illumination-modulated transposed attention mechanism, where it adaptively guides feature aggregation by modulating the key-value feature subspace. Extensive experiments on CEC, Endo4IE, EndoVis17, and EndoVis18 datasets demonstrate that EID-Net performs favorably against recent endoscopic enhancement and general image restoration methods. The code is available at https://github.com/JUNZHIlius/EID-Net.
Figures & tables
Fig. 1: Endoscopic images often exhibit spatially localized over-exposure and under-exposure.
Fig. 2: Overview of EID-Net. The U-shaped encoder–decoder combines an illumination prior estimator (LE Block), transposed attention blocks (TA Blocks) [ 8 ] , and illumination-modulated Transformer blocks (IMT Blocks). The LE Block uses Lightweight Convolutional Projection Blocks (LCPBs) for feature projection. SSHR and RSCR denote the soft specular highlight response and red-sensitive chromatic response, respectively. Some skip connections are omitted for clarity.
Fig. 3: Illustration of the proposed Illumination-Modulated Transposed Attention (IMTA).
Method
CEC
Endo4IE
PSNR ↑
SSIM ↑
LPIPS ↓
PSNR ↑
SSIM ↑
LPIPS ↓
General image restoration and enhancement methods
MIRNetv2 [ 23 ]
28.36
93.58
0.1080
23.85
82.33
0.2376
PromptIR [ 16 ]
28.27
83.14
0.0717
23.73
79.57
0.2396
AdaIR [ 18 ]
34.48
96.92
0.0413
26.33
83.91
0.2107
Retinexformer [ 15 ]
37.87
97.54
0.0328
28.00
85.13
0.1939
TABLE I: Quantitative comparison on CEC and Endo4IE datasets. The best and second-best results are highlighted with red and green shading, respectively. ↑ indicates higher is better, while ↓ indicates lower is better.
Fig. 4: Visual comparison on Endo4IE and CEC. From top to bottom: overexposed and underexposed Endo4IE samples, followed by overexposed and underexposed CEC samples.
Fig. 5: Visual comparison on EndoVis17 (top) and EndoVis18 (bottom).
Method
EndoVis17
EndoVis18
PSNR ↑
SSIM ↑
LPIPS ↓
PSNR ↑
SSIM ↑
LPIPS ↓
AdaIR
36.10
96.48
0.0274
33.97
95.83
0.0399
Retinexformer
33.89
95.91
0.0359
33.23
95.56
0.0451
MIRNetv2
31.94
93.48
0.0671
28.96
92.63
0.0799
LLCaps
31.88
93.53
0.0589
25.18
90.16
0.1110
WTNet
34.36
96.70
0.0328
33.48
96.28
0.0437
TABLE II: Quantitative comparison on EndoVis17 and EndoVis18. Best and second-best results are shaded in red and green.
Setting
Q
K
V
PSNR ↑
SSIM ↑
LPIPS ↓
Effect of illumination-modulated attention target
Baseline
–
–
–
26.99
85.06
0.2093
Guided-V
–
–
✓
28.70
87.26
0.1772
Guided-Q
✓
–
–
28.64
87.19
0.1782
Guided-K
–
✓
–
28.65
87.16
0.1787
Guided-KV
–
✓
✓
28.71
87.34
0.1781
TABLE III: Ablation study on the attention modulation target and illumination prior components.
Method
Params (M) ↓
FLOPs (G) ↓
FPS ↑
WTNet [ 6 ]
1.40
11.28
21.2
EndoIR [ 10 ]
20.30
30.61
10.6
LightDiff [ 5 ]
18.78
41.93
21.1
EID-Net
3.62
4.47
80.5
TABLE IV: Efficiency comparison with recent endoscopic restoration methods. FLOPs and FPS are measured at 128×128 resolution.
School of Aeronautics and Astronautics, Sichuan University · University of Electronic Science and Technology of China · College of Electronics and Information Engineering, Sichuan University
Faculty of Information Engineering and Automation, Kunming University of Science and Technology · Department of Biomedical Engineering, Hefei University of Technology · School of Mathematics and Statistics, Yunnan University