Structure-preserving super-resolution of retinal fundus images via a dual-transformer residual network
Emmanuel Eric Pazo, Salissou Moutari, Fei Gao, Liying Hu, Muhammad Usama, Xiaorong Li, Juping Liu
Retina & vascular imagingAI & deep learning
At a glance
A hybrid Swin Transformer and CNN network upscales fundus images while preserving fine retinal vessels.
- Design
- Deep learning method study
- Sample
- 3 benchmark datasets
- PSNR at 2× super-resolution
- 33.64 dB
- Gain over SwinIR
- +0.96 dB
- Better vascular structure preservation
- 17.0%
See the results in 5 charts ↓ data as CSV · JSON
Abstract
High-resolution retinal fundus images are critical for diagnosing diabetic retinopathy, yet clinical datasets often contain low-resolution images that obscure fine vascular structures essential for accurate diagnosis. Existing super-resolution methods face a fundamental trade-off: convolutional neural networks produce overly smooth results, while generative adversarial networks (GANs) risk creating hallucinated artifacts. We propose the Dual-Transformer Residual Super-Resolution Network (DTRSRN), a hybrid architecture combining Swin Transformers for global context modeling with a parallel residual Convolutional Neural Network (CNN) pathway for fine-grained vascular detail preservation. Our key innovation lies in using Fractal Dimension analysis to quantitatively measure retinal vascular morphology preservation. Experimental results on three benchmark datasets demonstrate that DTRSRN achieves 33.64 dB PSNR for 2 × super-resolution, out performing state-of-the-art methods including SwinIR (+0.96 dB), HAT (+0.37 dB), and ResShift (+0.30 dB). Critically, DTRSRN achieves 17.0% improvement in vascular structure preservation (Δ D f = 0.0987) compared to the best baseline, demonstrating superior clinical relevance for retinal image enhancement.
Keywords: diabetic retinopathy; Swin Transformer; residual convolutional neural network; CNN-Transformer hybrid; fractal dimension
Results in charts
5 charts · 3-minute read
Low-resolution fundus photographs blur the fine vessels that diabetic retinopathy grading depends on. DTRSRN upscales them with two paths working in parallel: a Swin Transformer path for global context and a residual CNN path for fine vessel detail. It is trained with a fractal-dimension loss so the enlarged image keeps the true branching of the vascular tree. These five charts, built from the paper's published tables, compare it with 12 other methods on three public datasets (DRIVE, STARE and HRF).
1. Sharper than every method tested
Averaged over the three datasets at 2× upscaling, DTRSRN reaches 33.64 dB PSNR: 0.30 dB above the next best method (ResShift) and 5.15 dB above plain bicubic interpolation. The lead holds at 4× (30.27 dB against 29.96 dB for ResShift), and every 2× comparison was statistically significant (Wilcoxon signed-rank test, p ≤ 0.0041 for PSNR).
Data table
| Method | Average PSNR (2×) |
|---|---|
| DTRSRN | 33.64 |
| ResShift | 33.34 |
| HAT | 33.27 |
| SRFormer | 33.19 |
| RD-ViT | 33.04 |
| MSCT-SR | 32.96 |
| HNCT | 32.83 |
| SwinIR | 32.68 |
| RCAN | 32.57 |
| EDSR | 32.26 |
| PAN | 31.87 |
| SRCNN | 30.26 |
| Bicubic | 28.49 |
2. The vessel tree survives, not just the pixels
PSNR rewards average pixel accuracy, which an over-smoothed or invented vessel can still score well on. ΔDf measures how far the fractal dimension (branching complexity) of the upscaled vessel tree drifts from the original. DTRSRN's 0.0987 is 17.0% lower than the best baseline, ResShift (0.1189). It also scored highest on vessel connectivity (VCI 0.8456) and tortuosity preservation (VTP 0.8123).
Data table
| Method | ΔDf (2×) |
|---|---|
| DTRSRN | 0.0987 |
| ResShift | 0.1189 |
| HAT | 0.1267 |
| SRFormer | 0.1298 |
| RD-ViT | 0.1312 |
| SwinIR | 0.1423 |
| MSCT-SR | 0.1434 |
| HNCT | 0.1456 |
| RCAN | 0.1489 |
| EDSR | 0.1567 |
| PAN | 0.1689 |
| SRCNN | 0.2134 |
| Bicubic | 0.2847 |
3. It holds up on imperfect photographs
Clinic photographs are often blurred, noisy, compressed or unevenly lit. With each defect simulated on DRIVE images, DTRSRN had the highest PSNR and the lowest ΔDf in all six conditions. Its margin over the next best method ranged from 0.61 dB (Gaussian blur) to 1.11 dB when all defects were combined.
Data table
| Method | Gaussian blur PSNR (dB) | Motion blur PSNR (dB) | Gaussian noise PSNR (dB) | JPEG compression PSNR (dB) | Uneven illumination PSNR (dB) | Combined PSNR (dB) |
|---|---|---|---|---|---|---|
| EDSR | 30.34 | 28.89 | 27.98 | 29.67 | 29.78 | 26.89 |
| RCAN | 30.67 | 29.76 | 27.45 | 29.89 | 30.12 | 27.23 |
| SwinIR | 31.45 | 30.34 | 28.89 | 30.78 | 30.56 | 27.89 |
| SRFormer | 31.68 | 30.92 | 28.54 | 30.45 | 31.34 | 27.98 |
| ResShift | 32.23 | 30.84 | 29.67 | 31.56 | 31.62 | 28.67 |
| HAT | 31.92 | 31.15 | 29.23 | 30.89 | 31.48 | 28.31 |
| DTRSRN | 32.84 | 31.97 | 30.45 | 32.18 | 32.56 | 29.78 |
4. Every component adds accuracy
Starting from the CNN path alone (32.18 dB), adding the Transformer path in parallel gives the largest gain (+0.82 dB). Multi-scale fusion adds 0.15 dB and the fractal loss a further 0.49 dB, for +1.46 dB in total. The fractal loss matters most for vessel shape: removing it raises ΔDf from 0.0987 to 0.1302.
Data table
| Step | PSNR (dB) | Gain (dB) |
|---|---|---|
| CNN path only | 32.18 | – |
| + Transformer path | 33.00 | +0.82 |
| + Multi-scale fusion | 33.15 | +0.15 |
| + Fractal loss | 33.64 | +0.49 |
| Full DTRSRN | 33.64 | +1.46 total |
5. Accurate without being the slowest
DTRSRN processes a 512 × 512 image in 56.8 ms on an NVIDIA GeForce RTX 5090, with 18.4 million parameters. That is in line with other Transformer models such as SwinIR (52.3 ms) and HAT (68.4 ms), and about 3.2 times faster than the diffusion-based ResShift (184.3 ms), the closest competitor on accuracy.
Data table
| Method | Time (ms) | Average PSNR (2×) |
|---|---|---|
| DTRSRN | 56.8 | 33.64 |
| ResShift | 184.3 | 33.34 |
| HAT | 68.4 | 33.27 |
| SRFormer | 49.8 | 33.19 |
| RD-ViT | 54.6 | 33.04 |
| MSCT-SR | 48.2 | 32.96 |
| HNCT | 41.6 | 32.83 |
| SwinIR | 52.3 | 32.68 |
| RCAN | 38.9 | 32.57 |
| EDSR | 45.7 | 32.26 |
| PAN | 8.7 | 31.87 |
| SRCNN | 3.2 | 30.26 |
What it means
Across standard benchmarks, DTRSRN gives the sharpest upscaled fundus images of the 13 methods compared while best preserving vessel shape, at a run time comparable to other Transformer models.
Limitation: All results come from synthetically degraded images (bicubic downsampling plus Gaussian blur) drawn from three public datasets totalling 105 images (DRIVE 40, STARE 20, HRF 45). The tables do not report performance on natively low-resolution clinical photographs.
Data and reuse
All values are copied from Tables 2–12 of the published article (open access, CC BY 4.0). Download every value as tidy CSV (one measurement per row) or JSON. Charts and data follow the article's licence (CC BY 4.0): reuse with attribution. For full methods, read the full article.
All published results tables (11)
| Method | DRIVE PSNR (2×) | DRIVE SSIM (2×) | STARE PSNR (2×) | STARE SSIM (2×) | HRF PSNR (2×) | HRF SSIM (2×) | Average PSNR (2×) | Average SSIM (2×) | DRIVE PSNR (4×) | DRIVE SSIM (4×) | STARE PSNR (4×) | STARE SSIM (4×) | HRF PSNR (4×) | HRF SSIM (4×) | Average PSNR (4×) | Average SSIM (4×) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Bicubic | 28.42 | 0.8651 | 27.89 | 0.8534 | 29.15 | 0.8723 | 28.49 | 0.8636 | 25.73 | 0.7892 | 25.21 | 0.7745 | 26.18 | 0.8012 | 25.71 | 0.7883 |
| SRCNN | 30.18 | 0.8943 | 29.67 | 0.8856 | 30.92 | 0.9021 | 30.26 | 0.894 | 27.14 | 0.8267 | 26.68 | 0.8156 | 27.85 | 0.8398 | 27.22 | 0.8274 |
| PAN | 31.76 | 0.9123 | 31.32 | 0.9058 | 32.54 | 0.9201 | 31.87 | 0.9127 | 28.45 | 0.8567 | 28.01 | 0.8487 | 29.23 | 0.8681 | 28.56 | 0.8578 |
| EDSR | 32.15 | 0.9156 | 31.74 | 0.9087 | 32.89 | 0.9234 | 32.26 | 0.9159 | 28.92 | 0.8621 | 28.47 | 0.8534 | 29.68 | 0.8734 | 29.02 | 0.863 |
| RCAN | 32.48 | 0.9187 | 32.02 | 0.9121 | 33.21 | 0.9267 | 32.57 | 0.9192 | 29.18 | 0.8657 | 28.71 | 0.8567 | 29.94 | 0.8769 | 29.28 | 0.8664 |
| SwinIR | 32.91 | 0.9218 | 32.45 | 0.9154 | 33.67 | 0.9298 | 32.68 | 0.9223 | 29.45 | 0.8689 | 28.97 | 0.8601 | 30.23 | 0.8801 | 29.55 | 0.8697 |
| HNCT | 32.73 | 0.9203 | 32.28 | 0.9139 | 33.48 | 0.9283 | 32.83 | 0.9208 | 29.32 | 0.8674 | 28.84 | 0.8588 | 30.09 | 0.8786 | 29.42 | 0.8683 |
| MSCT-SR | 32.86 | 0.9214 | 32.41 | 0.9149 | 33.62 | 0.9294 | 32.96 | 0.9219 | 29.41 | 0.8685 | 28.93 | 0.8597 | 30.19 | 0.8797 | 29.51 | 0.8693 |
| HAT | 33.17 | 0.9243 | 32.71 | 0.9176 | 33.94 | 0.9318 | 33.27 | 0.9246 | 29.78 | 0.8721 | 29.31 | 0.8634 | 30.57 | 0.8833 | 29.89 | 0.8729 |
| SRFormer | 33.09 | 0.9236 | 32.63 | 0.9169 | 33.86 | 0.9312 | 33.19 | 0.9239 | 29.71 | 0.8714 | 29.24 | 0.8627 | 30.49 | 0.8826 | 29.81 | 0.8722 |
| RD-ViT | 32.94 | 0.9225 | 32.48 | 0.9161 | 33.71 | 0.9305 | 33.04 | 0.923 | 29.58 | 0.8702 | 29.11 | 0.8615 | 30.35 | 0.8814 | 29.68 | 0.871 |
| ResShift | 33.23 | 0.9248 | 32.78 | 0.9182 | 34.01 | 0.9323 | 33.34 | 0.9251 | 29.85 | 0.8728 | 29.38 | 0.8641 | 30.64 | 0.884 | 29.96 | 0.8736 |
| DTRSRN | 33.54 | 0.9267 | 33.08 | 0.9198 | 34.31 | 0.9342 | 33.64 | 0.9269 | 30.17 | 0.8743 | 29.69 | 0.8652 | 30.96 | 0.8856 | 30.27 | 0.875 |
| DTRSRN versus | PSNR p-value | PSNR 95% CI lower (dB) | PSNR 95% CI upper (dB) | SSIM p-value | SSIM 95% CI lower | SSIM 95% CI upper |
|---|---|---|---|---|---|---|
| Bicubic | <0.001 | 4.89 | 5.41 | <0.001 | 0.058 | 0.068 |
| SRCNN | <0.001 | 3.12 | 3.64 | <0.001 | 0.029 | 0.037 |
| PAN | <0.001 | 1.51 | 2.03 | <0.001 | 0.011 | 0.018 |
| EDSR | <0.001 | 1.12 | 1.64 | <0.001 | 0.008 | 0.014 |
| RCAN | <0.001 | 0.81 | 1.33 | <0.001 | 0.005 | 0.011 |
| SwinIR | <0.001 | 0.7 | 1.22 | <0.001 | 0.003 | 0.007 |
| HNCT | <0.001 | 0.55 | 1.07 | <0.001 | 0.004 | 0.009 |
| MSCT-SR | <0.001 | 0.42 | 0.94 | <0.001 | 0.003 | 0.007 |
| HAT | 0.0034 | 0.11 | 0.63 | 0.0089 | 0.001 | 0.004 |
| SRFormer | 0.0018 | 0.19 | 0.71 | 0.0056 | 0.001 | 0.005 |
| RD-ViT | <0.001 | 0.34 | 0.86 | 0.0023 | 0.002 | 0.006 |
| ResShift | 0.0041 | 0.04 | 0.56 | 0.0124 | 0.001 | 0.003 |
| Method | ΔDf (2×) | VCI (2×) | VTP (2×) | ΔDf (4×) | VCI (4×) | VTP (4×) |
|---|---|---|---|---|---|---|
| Bicubic | 0.2847 | 0.6234 | 0.5891 | 0.4156 | 0.5012 | 0.4623 |
| SRCNN | 0.2134 | 0.7123 | 0.6745 | 0.3287 | 0.6089 | 0.5534 |
| PAN | 0.1689 | 0.7756 | 0.7312 | 0.2789 | 0.6834 | 0.6087 |
| EDSR | 0.1567 | 0.7891 | 0.7456 | 0.2634 | 0.6978 | 0.6234 |
| RCAN | 0.1489 | 0.7934 | 0.7523 | 0.2567 | 0.7023 | 0.6298 |
| SwinIR | 0.1423 | 0.8012 | 0.7612 | 0.2489 | 0.7089 | 0.6378 |
| HNCT | 0.1456 | 0.7967 | 0.7567 | 0.2523 | 0.7045 | 0.6334 |
| MSCT-SR | 0.1434 | 0.8001 | 0.7598 | 0.2501 | 0.7078 | 0.6365 |
| HAT | 0.1267 | 0.8189 | 0.7834 | 0.2201 | 0.7289 | 0.6612 |
| SRFormer | 0.1298 | 0.8156 | 0.7798 | 0.2245 | 0.7256 | 0.6578 |
| RD-ViT | 0.1312 | 0.8134 | 0.7767 | 0.2278 | 0.7223 | 0.6545 |
| ResShift | 0.1189 | 0.8267 | 0.7912 | 0.2089 | 0.7378 | 0.6734 |
| DTRSRN | 0.0987 | 0.8456 | 0.8123 | 0.1789 | 0.7612 | 0.6987 |
| Configuration | PSNR (dB) | SSIM | ΔDf |
|---|---|---|---|
| CNN path only | 32.18 | 0.9162 | 0.1456 |
| Transformer path only | 32.45 | 0.9189 | 0.1389 |
| Full w/o fractal loss | 33.18 | 0.9232 | 0.1302 |
| Full w/o channel attention | 33.37 | 0.9245 | 0.1145 |
| Full w/o multi-scale fusion | 33.45 | 0.9251 | 0.1098 |
| Full w/o residual fusion | 33.51 | 0.9262 | 0.1034 |
| Full DTRSRN | 33.64 | 0.9269 | 0.0987 |
| Loss configuration | PSNR (dB) | SSIM | ΔDf |
|---|---|---|---|
| MSE loss only | 32.43 | 0.9176 | 0.1534 |
| MSE + Perceptual | 33.18 | 0.9232 | 0.1302 |
| MSE + Fractal | 33.15 | 0.9227 | 0.1091 |
| Full loss | 33.64 | 0.9269 | 0.0987 |
| Configuration | PSNR (dB) | SSIM | ΔDf |
|---|---|---|---|
| 4 RSTB + 6 RCAB | 33.31 | 0.9238 | 0.1089 |
| 6 RSTB + 6 RCAB | 33.49 | 0.9254 | 0.1023 |
| 6 RSTB + 8 RCAB | 33.64 | 0.9269 | 0.0987 |
| 8 RSTB + 8 RCAB | 33.67 | 0.9271 | 0.0984 |
| Window size 4 × 4 | 33.26 | 0.9243 | 0.1067 |
| Window size 16 × 16 | 33.39 | 0.9256 | 0.1015 |
| Fusion strategy | PSNR (dB) | SSIM | ΔDf |
|---|---|---|---|
| Concatenation | 33.19 | 0.9232 | 0.1143 |
| Element-wise addition | 33.13 | 0.9226 | 0.1167 |
| Weighted addition | 33.36 | 0.9246 | 0.1102 |
| Multi-scale fusion | 33.64 | 0.9269 | 0.0987 |
| Configuration | Parameters (M) | FLOPs (G) | Time (ms) | PSNR (dB) | ΔPSNR vs CNN path (dB) |
|---|---|---|---|---|---|
| CNN path only | 6.8 | 412.5 | 21.3 | 32.18 | – |
| Transformer path only | 9.2 | 623.7 | 32.4 | 32.45 | 0.27 |
| Dual-path (w/o Fusion) | 16 | 1036.2 | 48.7 | 33 | 0.82 |
| + Multi-scale fusion | 17.6 | 1098.4 | 52.1 | 33.15 | 0.97 |
| + Fractal loss | 18.4 | 1156.3 | 56.8 | 33.64 | 1.46 |
| Full DTRSRN | 18.4 | 1156.3 | 56.8 | 33.64 | 1.46 |
| Method | Gaussian blur PSNR (dB) | Gaussian blur ΔDf | Motion blur PSNR (dB) | Motion blur ΔDf | Gaussian noise PSNR (dB) | Gaussian noise ΔDf | JPEG compression PSNR (dB) | JPEG compression ΔDf | Uneven illumination PSNR (dB) | Uneven illumination ΔDf | Combined PSNR (dB) | Combined ΔDf |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| EDSR | 30.34 | 0.1823 | 28.89 | 0.2001 | 27.98 | 0.2478 | 29.67 | 0.1867 | 29.78 | 0.1712 | 26.89 | 0.2734 |
| RCAN | 30.67 | 0.1689 | 29.76 | 0.2034 | 27.45 | 0.2312 | 29.89 | 0.1823 | 30.12 | 0.1645 | 27.23 | 0.2623 |
| SwinIR | 31.45 | 0.1612 | 30.34 | 0.1798 | 28.89 | 0.2089 | 30.78 | 0.1734 | 30.56 | 0.1512 | 27.89 | 0.2456 |
| SRFormer | 31.68 | 0.1534 | 30.92 | 0.1712 | 28.54 | 0.2134 | 30.45 | 0.1576 | 31.34 | 0.1423 | 27.98 | 0.2312 |
| ResShift | 32.23 | 0.1345 | 30.84 | 0.1623 | 29.67 | 0.1789 | 31.56 | 0.1467 | 31.62 | 0.1312 | 28.67 | 0.2089 |
| HAT | 31.92 | 0.1423 | 31.15 | 0.1689 | 29.23 | 0.2012 | 30.89 | 0.1498 | 31.48 | 0.1378 | 28.31 | 0.2234 |
| DTRSRN | 32.84 | 0.1123 | 31.97 | 0.1298 | 30.45 | 0.1567 | 32.18 | 0.1189 | 32.56 | 0.1076 | 29.78 | 0.1834 |
| Method | Parameters (M) | FLOPs (G) | Time (ms) |
|---|---|---|---|
| SRCNN | 0.02 | 2.8 | 3.2 |
| PAN | 0.27 | 18.3 | 8.7 |
| EDSR | 43.1 | 2841.6 | 45.7 |
| RCAN | 15.6 | 1032.4 | 38.9 |
| SwinIR | 11.9 | 788.2 | 52.3 |
| HNCT | 8.7 | 567.8 | 41.6 |
| MSCT-SR | 12.3 | 814.5 | 48.2 |
| HAT | 20.8 | 1402.7 | 68.4 |
| SRFormer | 10.5 | 697.3 | 49.8 |
| RD-ViT | 13.7 | 865.2 | 54.6 |
| ResShift | 16.2 | 1089.4 | 184.3 |
| DTRSRN | 18.4 | 1156.3 | 56.8 |
| Training set | Tested on DRIVE: PSNR (dB) | Tested on DRIVE: SSIM | Tested on STARE: PSNR (dB) | Tested on STARE: SSIM | Tested on HRF: PSNR (dB) | Tested on HRF: SSIM |
|---|---|---|---|---|---|---|
| Trained on DRIVE | 33.54 | 0.9267 | 31.89 | 0.9134 | 32.76 | 0.9198 |
| Trained on STARE | 32.12 | 0.9187 | 33.08 | 0.9198 | 33.21 | 0.9234 |
| Trained on HRF | 32.67 | 0.9213 | 32.45 | 0.9167 | 34.31 | 0.9342 |
Access
How to cite
Show BibTeX
@article{pazo2026structure,
title = {{Structure-preserving super-resolution of retinal fundus images via a dual-transformer residual network}},
author = {Pazo, Emmanuel Eric and Moutari, Salissou and Gao, Fei and Hu, Liying and Usama, Muhammad and Li, Xiaorong and Liu, Juping},
journal = {Frontiers in Medicine},
year = {2026},
doi = {10.3389/fmed.2025.1730678},
url = {https://doi.org/10.3389/fmed.2025.1730678},
}
Related work
- Association of Anti-VEGF Knowledge and Attitudes With Self-Reported Treatment Interruption: A Temporally Separated Classification Study (2026)
- Automated deep learning-based retinoschisis and detachment volume measurement in pathological myopia with posterior scleral contraction (2026)
- Development of a predictive model based on aqueous cytokines data for response to anti-VEGF therapy in diabetic macular edema (2026)
- Validation of the Eyerobo FC Portable Fundus Camera for Diabetic Retinopathy Screening Using Public Datasets and Deep Learning (2026)
- Exploring the effect of hypertension on retinal microvasculature using deep learning on East Asian population (2020)