Abstract
Retinal vessel segmentation remains difficult along thin, low-contrast branches. We evaluate a conditional diffusion refiner for probability maps from a lightweight U-Net with reverse attention (LU-Net+RA). A frozen mask autoencoder produces a spatially downsampled multi-channel grid; a global RGB embedding conditions denoising diffusion implicit model (DDIM) updates, followed by frozen decoding. The refiner adds 527,233 parameters to the 1,946,961-parameter backbone. Matched evaluation on CHASE-DB1, DRIVE and HRF uses five training seeds and five sampling seeds. Refined mean Dice was 0.746, 0.790 and 0.666, against coarse values of 0.811, 0.792 and 0.732. Exploratory paired intervals exclude zero in the negative direction. Conditioning variants changed Dice by less than 0.0002. Deterministic encoded-grid refinement and autoencoder fine-tuning narrowed the gap but exceeded the baseline only on DRIVE; spatial residual refinement changed Dice by −0.0001, +0.0058 and +0.0074. Matched out-of-fold training did not establish absence of input shift. Increasing DDIM updates from 50 to 100 doubled refinement time with negligible observed Dice change. An earlier single-run result was not reproduced. Under this controlled protocol, diffusion refinement did not improve LU-Net+RA.
1. Introduction
Retinal vessel segmentation supports quantitative analysis of vascular morphology in fundus images and may assist research on ocular and systemic disease. Convolutional neural network (CNN)-based methods have become a common approach to this task, including architectures such as U-Net and its variants, volumetric models such as V-Net [1], and context-aware designs such as CE-Net [2]. Despite these advances, several technical challenges remain.
A primary difficulty is that vessel pixels occupy a relatively small part of a fundus image, producing substantial class imbalance. Under this imbalance, standard pixel-wise losses can underemphasise small structures, motivating alternatives such as focal loss [3]. Thin vessels and boundaries may also have low contrast, increasing the risk of missed or over-smoothed predictions. In addition, iterative refinement introduces a practical trade-off between predictive performance and computational cost.
Recent work has addressed some of these issues with lightweight architectures such as LU-Net with reverse attention (LU-Net+RA), which combines depth-wise separable convolutions with an attention mechanism intended to focus computation on missed regions [4]. Because a single feed-forward prediction cannot revise itself, an explicit post-processing model offers a mechanism for correcting missed vessel pixels and uncertain boundaries while retaining the coarse predictor as a fixed first stage. We therefore study segmentation refinement: a conditional diffusion module receives an LU-Net+RA probability map and the corresponding fundus image, then produces a revised vessel-probability map.
This work introduces a conditional diffusion model that operates on an encoded coarse map as a dedicated refinement stage. Denoising diffusion probabilistic models (DDPMs) provide an iterative formulation for generation and restoration [5,6], whereas latent diffusion performs the updates in an autoencoder representation [7]. The representation used here is spatially downsampled but is not compressed in scalar count; we therefore call it a spatially downsampled multi-channel representation rather than a latent or compressed space. We test, on the same test images and with five training seeds per configuration, whether the refiner improves the coarse LU-Net+RA predictions. An earlier single-run experiment with an archived version of the refiner gave higher Dice than published LU-Net+RA results, but its trained checkpoint and complete machine-readable prediction maps are no longer available for re-evaluation. We therefore re-implemented the refiner with a fully documented protocol and saved all test predictions. Under this protocol, the refiner did not improve the coarse predictions. We report this result together with component ablations, deterministic refiners and latency measurements that indicate where the shortfall arises.
- Contributions.
This work makes the following contributions:
- We propose a conditional diffusion module that operates on coarse LU-Net+RA probability maps by applying continuous Gaussian diffusion to the encoded coarse prediction, rather than to an encoded ground-truth target; it combines the encoded mask with a global red–green–blue (RGB) image embedding and returns a refined vessel-probability map through a frozen mask decoder, and we give a layer-level specification of the denoiser.
- We document the component interfaces and parameter budget of the refinement stack, counted with the same convention as the 1,946,961-parameter LU-Net+RA backbone: a 0.121 M-parameter mask autoencoder, a 0.028 M-parameter image encoder, a 0.353 M-parameter diffusion U-Net and a 0.025 M-parameter conditioning network, for 527,233 parameters in total; an earlier subtotal of 502,401 omitted the conditioning network.
- We compare refined and coarse predictions on the same CHASE-DB1, DRIVE and HRF test images with five training seeds, and find that the refiner does not improve mean Dice on any dataset.
- We report component ablations (deterministic refinement, target diffusion, conditioning variants and autoencoder fine-tuning) and a spatial residual refiner; the conditioning choice has negligible effect, and the results point to the frozen, spatially downsampled mask encoding as a plausible contributor to the observed loss.
- We measure complete-pipeline latency and the effect of 50 versus 100 DDIM updates, and present full-image and zoomed qualitative comparisons from the controlled global/frozen reference experiment.
- Overview.
Figure 1 illustrates the overall framework, comparing the conventional single-stage LU-Net+RA pipeline with the proposed two-stage approach, in which a diffusion module refines the initial segmentation through iterative correction of the encoded coarse map.
Figure 1.
Workflow of the proposed two-stage framework. The ellipses indicate intermediate DDIM updates omitted from the schematic. The encoded coarse map is , and denotes the clean endpoint of the reverse updates. Stage 1 applies vessel-enhancement preprocessing and LU-Net with reverse attention to produce the coarse vessel mask . In Stage 2, the frozen mask encoder maps to a spatially downsampled multi-channel grid, which is noised and refined by the conditional diffusion U-Net using deterministic DDIM updates. A separate RGB image encoder supplies the 128-dimensional conditioning vector, which modulates the denoiser through feature-wise linear modulation (FiLM). The frozen mask decoder produces the refined vessel-probability map . When several sampling seeds are evaluated, each realisation is decoded separately and metrics are averaged after decoding.
The remainder of this paper is organised as follows. Section 2 reviews prior work on vessel segmentation and diffusion-based refinement. Section 3 describes the coarse predictor and proposed refinement method. Section 4 presents the experimental protocol, segmentation results, and qualitative analyses. Section 5 and Section 6 discuss the evidence, limitations, and conclusions.
2. Related Work
2.1. Retinal Vessel Segmentation
Early retinal vessel segmentation methods relied on hand-crafted features, such as Gabor filters and matched filtering, combined with thresholding or classical classifiers [8,9]. While effective in controlled settings, these approaches lack robustness to variations in illumination and vessel appearance.
With the advent of deep learning, convolutional neural networks (CNNs), particularly U-Net [10], became the dominant paradigm for biomedical image segmentation, achieving strong performance on benchmark datasets such as DRIVE [11]. Subsequent work has focused on improving architectural design, including nested structures (UNet++ [12]), attention mechanisms [13,14], and recurrent or residual connections [15], as well as incorporating vessel-specific priors such as connectivity constraints and boundary information [16,17,18].
More recently, lightweight architectures such as LU-Net+RA [4] have aimed to balance accuracy and efficiency by leveraging depth-wise separable convolutions and reverse attention. Thin-vessel recovery and structural continuity remain relevant evaluation targets, particularly in low-contrast regions. These targets motivate testing whether a separate refinement strategy changes coarse predictions beneficially under a controlled protocol.
2.2. Diffusion Models
Diffusion models learn to reverse a progressive noise process [5]. DDIM permits deterministic transitions along a reduced timestep sequence [19], while latent diffusion performs these updates in an autoencoder representation [7].
Diffusion models have also been investigated for medical image segmentation. Wolleb et al. [20] generated implicit segmentation ensembles, while SegDiff and MedSegDiff adapted conditional diffusion to general and medical segmentation tasks [21,22]. Pre-segmentation diffusion sampling starts the reverse process from a noised preliminary mask rather than pure Gaussian noise [23], which is conceptually close to the initialisation used here. A broader survey is provided by Kazerouni et al. [24].
Recent work is more directly related to coarse-to-fine refinement. HiDiffSeg combines a coarse vessel estimate, vessel skeleton, and fundus-image guidance in a hierarchical diffusion model for retinal vessel segmentation [25]. RefineCatDiff uses a coarse probability map as prior knowledge in a categorical diffusion process for medical image segmentation [26]. Li et al. [27] instead introduce a plug-and-play diffusion denoising module for end-to-end feature-map refinement. The present method differs in four respects: it applies continuous Gaussian diffusion to the encoded LU-Net+RA probability map; freezes a mask autoencoder during refinement training; conditions the denoiser with a global RGB embedding; and adds 527,233 parameters as a post-processing stage. These distinctions define the architectural contribution, but they do not establish performance superiority because no controlled comparison with these methods is available. We did not reproduce these three methods under our protocol: they diffuse different quantities (skeleton-guided hierarchical maps, categorical labels and intermediate feature maps), so each would need a separate implementation and tuning. Because our refiner does not improve its own coarse input (Section 4.4), we compare it instead with two deterministic learned refiners (Section 4.5 and Section 4.6).
Unlike formulations that diffuse an encoded ground-truth target, the proposed training process adds noise to the encoded coarse mask and uses a decoded Dice term to encourage agreement with the reference mask. This choice makes the method a Dice-regularised denoiser of the coarse prediction rather than a conventional target-diffusion model. Section 4.5 reports a deterministic learned-refiner control and a target-diffusion ablation that isolate the contribution of the diffusion formulation.
2.3. Attention Mechanisms in Medical Imaging
Attention mechanisms are widely used in medical imaging to enhance feature representation by focusing on relevant regions. Channel and spatial attention modules, such as SE-Net [28] and CBAM [29], improve performance by reweighting feature responses. In contrast, reverse attention [4] explicitly emphasises regions that are likely to be misclassified, enabling the model to focus on difficult structures.
3. Methods
3.1. Problem Formulation
Bold italic symbols denote vectors, matrices and tensors; regular-weight italic symbols denote scalars and individual entries. Descriptive subscripts are upright. Thus, denotes a complete mask, whereas denotes its scalar entry at pixel p.
Retinal vessel segmentation is formulated as a dense prediction task in which each pixel of a fundus image is classified as vessel or background. Let denote an RGB fundus image, and let denote the corresponding ground-truth mask. The objective is to learn a mapping , where is the predicted vessel-probability map (thresholded to obtain a binary mask during evaluation).
Instead of a single-stage prediction, we adopt a coarse-to-fine framework. A lightweight segmentation model first produces a coarse estimate , which captures the main vessel structure but may contain discontinuities, missing thin vessels, and blurred boundaries.
To refine this estimate, is mapped to a spatially downsampled multi-channel representation , where denotes a mask encoder and is a spatially downsampled learned grid. A conditional diffusion model then updates iteratively while conditioning on the input image . The refined grid is mapped back to pixel space using a decoder , yielding:
This formulation separates coarse prediction from iterative refinement and provides a tunable additional-computation stage.
3.2. Baseline: Lightweight U-Net with Reverse Attention
For coarse segmentation, we use LU-Net+RA [4], a lightweight encoder–decoder; the released one-channel LNet_RA implementation used here employs standard convolutions and reduced channel widths. Its key component is reverse attention (RA), which emphasises uncertain regions. Given a feature map and attention logits , the RA output is
where is the sigmoid function and ⊗ denotes element-wise multiplication. Here, highlights predicted vessel regions, while its complement focuses the model on hard or misclassified areas. The resulting reverse-attention-modulated features are decoded to produce the coarse prediction used by the diffusion refinement stage.
Importantly, this RA mechanism is used only within the LU-Net+RA backbone. The diffusion refiner itself does not receive a separate RA map tensor as an additional input. Instead, the diffusion stage is conditioned on the encoded coarse mask and the image embedding . In other words, reverse-attention guidance is implemented implicitly via the RA-enhanced coarse prediction , rather than as an explicit extra conditioning channel in the diffusion U-Net.
3.3. Proposed Conditional Diffusion Refiner
To refine the coarse segmentation, we operate on a learned multi-channel grid with lower spatial resolution than the input mask. The proposed refinement framework consists of a mask autoencoder, an image encoder for conditioning, and a conditional diffusion model defined in this learned representation space.
Parameters are counted as unique registered weights and biases, including frozen modules and excluding buffers and optimiser states. Under this convention, the released LU-Net+RA has 1,946,961 parameters; its 3028 buffer elements are excluded. An earlier subtotal of 502,401 refinement parameters covered the mask autoencoder, image encoder and diffusion U-Net but omitted the archived implementation’s separate 33,024-parameter conditioning MLP; including it gives 535,425 parameters, 27.50% of the backbone. The executable configuration used in all experiments has a 24,832-parameter time-conditioning MLP instead, giving 527,233 refinement parameters, 27.08% of the backbone (Table 1 and Table 2). These counts describe storage and training budgets; sequential sampling adds inference cost, which Section 4.9 measures.
Table 1.
Component interfaces and parameter counts of the refinement module. Counts include frozen components. The executable configuration, used in all experiments, has a time-conditioning MLP; the archived implementation has a separate image-conditioning MLP.
Table 2.
Parameter budgets of LU-Net+RA and the complete two-stage systems. The backbone is frozen during refinement training.
3.3.1. Mask Autoencoder
We use a lightweight convolutional autoencoder that maps a vessel mask to a multi-channel grid , corresponding to a reduction along each spatial dimension. The input mask contains scalar values, whereas the multi-channel grid contains values. It is therefore spatially downsampled but not compressed in scalar count. The architecture is as follows:
- Encoder: Conv(, , stride 2, padding 1) + ReLU → Conv(, , stride 2, padding 1) + ReLU → Conv(, , stride 1).
- Decoder: two transposed convolutions ( and ; stride 2, padding 1), each followed by ReLU, then a convolution () and sigmoid activation.
Therefore, the spatial path is in the encoder and in the decoder, while the channel progression is (encoder) and (decoder). The autoencoder has approximately M trainable parameters in total (about in the encoder and in the decoder).
For an input ground-truth mask , the autoencoder reconstruction is
The reconstruction term is the mean squared error over the pixels,
For any predicted probability map and binary target , we use the soft Dice loss
Accordingly, the autoencoder objective is
All sums are evaluated over the complete resized mask and pooled over the images in a minibatch; the implemented Dice adds to its numerator and denominator. For CHASE-DB1 and HRF, the autoencoder is pretrained on ground-truth masks only, without additional mask augmentation, for 50 epochs with AdamW (learning rate , weight decay ), keeping the checkpoint with the highest validation soft Dice. For DRIVE, it is trained for 200 epochs with AdamW (learning rate , weight decay , cosine schedule) on equal batches of in-sample coarse maps and reference masks, reconstructing each input, and the checkpoint with the lowest validation coarse-map reconstruction error is kept. After pretraining, its parameters are frozen and used to encode . The distribution shift between binary training masks and soft coarse probability maps is analysed as a limitation in the Limitations and Reproducibility subsection.
3.3.2. Image Conditioning
To incorporate global contextual information, the diffusion refinement stage uses a custom lightweight CNN image encoder (not ResNet/MobileNet) fed by the resized and normalised RGB fundus image. Specifically, the encoder receives and maps it to a compact feature vector :
Its layer stack is as follows:
- Conv(, , stride 2, padding 1) + ReLU;
- Conv(, , stride 2, padding 1) + ReLU;
- Adaptive average pooling to ;
- Flatten;
- Linear() to produce the final embedding .
Thus, the feature map is downsampled as , then projected to a 128-dimensional conditioning vector. This image encoder has approximately M trainable parameters ( parameters) and is trained from scratch during diffusion-refiner training (no external pretrained weights are used).
This RGB conditioning branch is separate from the preprocessing used by the coarse LU-Net+RA segmentation backbone. The backbone follows the vessel-enhancement preprocessing pipeline, including green-channel extraction and contrast enhancement, to produce the coarse vessel-probability map . In contrast, the diffusion image encoder is not given a green-channel-only image or a CLAHE-enhanced single-channel input; it receives the three-channel RGB fundus image after resizing and normalisation. This design allows the refiner to exploit colour and illumination cues while the diffusion process operates on the encoded coarse mask.
3.3.3. Diffusion on the Encoded Grid
The refinement is formulated as a diffusion process in the encoded representation. Starting from the encoded coarse mask , noise is progressively added according to a cosine schedule [30]:
where denotes the diffusion step and . The implementation derives per-step rates and stores the cumulative signal-retention products for the zero-based indices , so the stored is slightly below one. Training timesteps are sampled uniformly from , and inference uses 50 DDIM updates (Section 3.3.6). The forward process generates noisy encoded variables:
where is Gaussian noise. The clean encoder output is denoted by to distinguish it from the noisy variable at stored schedule index zero.
A conditional diffusion U-Net is then trained to reverse this process by predicting the noise component , conditioned on both the noisy encoded tensor and the image embedding .
3.3.4. Conditioning Injection and Denoiser Layers
In the executable configuration, a MLP with SiLU projects the sinusoidal timestep embedding and adds it to the 128-dimensional image embedding . In each residual block of the diffusion U-Net, a linear projection of this combined vector supplies 64 scales and 64 shifts for feature-wise linear modulation (FiLM). Each residual block applies GroupNorm with eight groups, SiLU, a convolution, FiLM, a second convolution and SiLU, and then adds the block input; Table 3 lists the layers. This feature-wise conditioning supplies global fundus context throughout denoising without introducing a separate spatial cross-attention map. Reverse attention remains confined to the LU-Net+RA backbone that produces the coarse mask ; no separate RA tensor is injected into the diffusion U-Net. Residual connections are internal to the blocks; there is no additional encoder–decoder concatenation skip. The output predicts noise.
Table 3.
Layers of the diffusion U-Net (denoiser) in the executable configuration. The encoded input has 64 channels.
3.3.5. Training Objective
The model is trained to predict the noise added during the forward diffusion process while incorporating segmentation-aware constraints. Let be the number of elements in an encoded tensor. The mean DDPM noise-prediction loss is
with denoting Gaussian noise and the noisy encoded tensor obtained from at timestep t. The noise prediction is then used to estimate the clean encoded tensor corresponding to the sampled timestep:
Because the pretrained mask decoder is frozen and includes its output sigmoid, the associated vessel-probability map is
The segmentation-aware term is therefore , using the pixel-space definition given above, and the complete diffusion-refiner objective is
In the implementation evaluated here, ; no separate Sobel edge-loss term is applied. This weight was fixed in advance and not tuned.
This objective is Dice-regularised denoising of the encoded coarse mask. The DDPM term is defined with respect to Gaussian noise added to and therefore favours recovery of the coarse encoded grid, whereas the decoded Dice term encourages agreement with the ground-truth vessel mask. The method is not formulated as unconditional generation of . This distinction is important when comparing it with formulations that diffuse the ground-truth target and provide the coarse mask as a separate condition.
The models are trained in two stages. The mask autoencoder is pretrained as described in Section 3.3.1. Its weights are then frozen, and the diffusion refiner is trained for 100 epochs using AdamW at with cosine annealing over the full training schedule, weight decay , batch size four and gradient clipping at one; the predefined final epoch-100 checkpoint is evaluated. No learning-rate warm-up is used: the refiner starts at the stated initial learning rate and follows cosine annealing from the first epoch. During diffusion training, only the image encoder, conditioning multilayer perceptron (MLP), and diffusion U-Net are updated. A classifier-free-guidance conditioning dropout of 10% is applied during training. No additional image or mask augmentation is used. Images and masks are resized to , and LU-Net+RA probability maps are loaded as the coarse conditions. No explicit field-of-view loss mask or crop is applied during refiner training.
3.3.6. DDIM Sampling
For inference, we employ DDIM sampling [19] to generate a refined encoded representation from the initial code . Instead of starting from pure noise, the sampling process is initialised from a noisy version of , preserving an explicit connection to the coarse prediction throughout the refinement trajectory.
The starting timestep controls refinement strength: a larger value adds more noise to the encoded coarse mask and permits a stronger correction, whereas a smaller value preserves more of the LU-Net+RA prediction. Coarse-initialised diffusion uses . The target-diffusion Gaussian-start ablation instead starts from pure Gaussian noise at index 999, and the deterministic encoded-grid control uses no DDIM sampling. The strength of the earlier single-run experiment was not recorded. The S retained indices are spaced by integer truncation between and zero, and the last update projects from index zero to the clean endpoint, so S counts the denoiser-driven updates (DDIM transitions). At every reverse step, the diffusion U-Net is evaluated with both the image condition and a null condition. Their predictions are combined using classifier-free guidance with scale 1.5, after which the deterministic DDIM update () maps the current feature tensor to the next timestep. Because the mask decoder already ends with a sigmoid activation, the procedure in Algorithm 1 does not apply a second sigmoid. Each trained stochastic refiner in the matched repeated-training study is evaluated with five initial-noise seeds; each realisation is decoded separately, and metrics, rather than probability maps, are averaged. The fixed-checkpoint repeated-sampling experiment has a separate protocol (Section 4.8). Although each reverse trajectory is deterministic after its initial noise sample is fixed, the complete procedure remains stochastic with respect to that initial sample.
| Algorithm 1: Refinement sampling procedure of the executable configuration |
Inputs: coarse mask ; RGB image ; encoders ; decoder ; noise network ; stored schedule ; start index ; number of DDIM updates S; guidance scale .
|
4. Experiments and Results
4.1. Datasets and Preprocessing
We evaluate the refiner on three public retinal vessel datasets: the Child Heart and Health Study in England Database 1 (CHASE-DB1) [31], Digital Retinal Images for Vessel Extraction (DRIVE) [11], and High-Resolution Fundus (HRF) [32]. Table 4 reports the released image sizes used by the preprocessing pipeline and the fitting, validation and test partitions used in the reference and matched encoded-grid experiments.
Table 4.
Dataset composition and partitions used in the controlled reference and matched encoded-grid experiments. Image sizes refer to the released or cropped images used by the pipeline, not necessarily the acquisition resolution. Partitions use split seed 42 and are fixed across training seeds.
CHASE-DB1 contains images of both eyes from 14 children; its partitions are grouped by subject (8/2/4 subjects), keeping both eyes of each child together, and first-observer annotations are used for all evaluations. DRIVE has an official 20-image training set and 20-image test set; its training pool is split into 16 fitting and four validation images. HRF contains 15 healthy, 15 diabetic-retinopathy, and 15 glaucomatous images; its partitions are stratified by group, with 9/2/4 fitting/validation/test images per group. The HRF field-of-view masks are decoded from Supervisely-format annotation files, whose conversion from the original annotations is not documented.
Two preprocessing streams are used. The LU-Net+RA backbone follows the preprocessing pipeline of Hernandez-Gutierrez et al. [4]: green-channel extraction, contrast-limited adaptive histogram equalisation (CLAHE), inverse gamma correction, resizing to , and normalisation to . This stream produces the coarse probability map . The refiner receives , while its image encoder receives the corresponding resized and normalised RGB fundus image. RGB images and the preprocessed green channel are resized with bilinear interpolation, and binary annotations and FOV masks with nearest-neighbour interpolation, on a square canvas without preserving the native aspect ratio.
4.2. Training and Implementation Details
Training is sequential. LU-Net+RA is trained first and then frozen. Its stored probability maps condition the refiner, whose training does not update the backbone. The coarse maps used to train the refiner were generated from images that had also been used to fit LU-Net+RA; they are therefore in-sample rather than out-of-fold predictions. Freezing prevents joint adaptation between the stages, but it does not remove the possible train–test shift between in-sample coarse predictions and predictions for unseen images.
LU-Net+RA is trained with Dice loss and AdamW (learning rate , weight decay ), batch size four, at most 1000 epochs and early stopping with patience 20, keeping the checkpoint with the highest validation mean image Dice; its training applies aligned rotations (0, 15, 30, 45, 90, 100 and 120 degrees) and independent horizontal and vertical flips with probability 0.5. The mask autoencoder and reference refiner are trained as described in Section 3.3; the refiner uses conditioning dropout of 10% and no additional geometric, image, or mask augmentation; no test result is used for checkpoint selection. The reference and matched encoded-grid configurations are trained five times, with seeds 42, 123, 2026, 3000 and 3001 and the same fixed partitions; each seed is a separate training run, and refiner optimisation noise and dropout use the training seed plus 98765, identically across matched variants. Each trained stochastic refiner in these matched repeated-training configurations is evaluated with five initial-noise seeds (42, 123, 2026, 3000 and 3001). The deterministic encoded-grid control is evaluated once per image without sampling (Section 4.5). For these repeated-training configurations, FP32 test predictions, annotations, FOV masks and confusion counts are saved, and their metrics are computed from these outputs. The spatial refiner uses its separate augmentation recipe (Section 4.6). Section 4.8 instead uses one fixed trained model and twenty initial-noise seeds; its archived score and timing records are retained, but complete repeat-level probability arrays were not retained for fresh mask-level verification.
Timing uses one NVIDIA GeForce RTX 4070 Ti SUPER graphics processing unit in evaluation mode (Santa Clara, CA, USA), with gradient computation disabled, FP32 and a batch size of 1; Section 4.8 and Section 4.9 give the measurement protocols.
4.3. Evaluation Protocol and Metrics
Vessel pixels are treated as the positive class. Let TP, TN, FP, and FN denote true-positive, true-negative, false-positive, and false-negative pixel counts, respectively. The metrics appearing in the result tables are
Predictions are binarised at probability 0.5. Metrics are computed per image, over the whole image for CHASE-DB1 and within the field-of-view (FOV) mask for DRIVE and HRF, and then averaged over images rather than pooled over pixels. Training losses, by contrast, were evaluated over the full resized canvas, with pixels outside the retinal field represented as background.
For stochastic configurations in the matched repeated-training studies, we average the five sampling realisations within each image and training seed, then average the test images within each seed. Deterministic refiners are evaluated once per image without sampling; the fixed-checkpoint study follows the separate protocol in Section 4.8. For the matched repeated-training studies, tables report the mean and sample SD across the five seed means; sampling draws do not create additional patients or training runs. Paired comparisons use the five matched seed means, with two-sided paired t tests and exact Wilcoxon signed-rank tests and Holm correction within each stated family. With five pairs, the smallest attainable two-sided exact signed-rank probability is 0.0625. Percentile intervals come from a crossed bootstrap with 50,000 draws that jointly resamples training seeds and test units, keeping both eyes of each CHASE-DB1 subject together and resampling HRF images within pathology groups.
4.4. Quantitative Segmentation Results
Table 5 compares the coarse LU-Net+RA predictions with the diffusion refiner (global FiLM conditioning, frozen mask autoencoder, 50 updates) on the same test images: eight CHASE-DB1 images from four subjects, twenty DRIVE images and twelve HRF images. For each training seed, both arms use the same LU-Net+RA checkpoint, annotations, FOV masks, threshold and metric code. Refinement lowered mean Dice on all three datasets, by 0.064 on CHASE-DB1, 0.002 on DRIVE and 0.066 on HRF, so the refiner did not improve its coarse input under this protocol.
Table 5.
Paired coarse LU-Net+RA and global/frozen diffusion-refiner Dice at 50 DDIM updates on the same test images. Means and sample SDs are across five training-seed means after averaging five sampling realisations within each image and run. Differences are refiner minus coarse. The 95% intervals are exploratory paired crossed-bootstrap percentile intervals, not simultaneous confidence intervals.
An earlier single-run experiment with an archived version of this refiner reported Dice of 0.835 on CHASE-DB1, 0.835 on DRIVE and 0.793 on HRF at 50 updates, with 20-update values of 0.825, 0.795 and 0.762 and CHASE-DB1 values from 0.814 at 10 updates to 0.836 at 100 updates. The trained checkpoint and complete machine-readable per-image prediction maps of that run are no longer available for re-evaluation. Figure 2 and Figure 3 instead show selected predictions from the controlled global/frozen reference experiment reported in Table 5; they do not originate from that earlier single-run experiment. Its refinement strength, split identities and several training settings were not recorded. The re-implementation documented in Section 3, Section 4.1, Section 4.2 and Section 4.3, trained with five seeds, did not reproduce these scores (Table 5). We therefore no longer report them as results.
Figure 2.
Selected CHASE-DB1 examples from the controlled global/frozen reference experiment reported in Table 5, showing the input image, first-observer reference mask, LU-Net+RA coarse prediction, diffusion-refined prediction, and error map for the refined prediction. White, red, blue, and black denote true-positive, false-positive, false-negative, and true-negative pixels, respectively. The coloured rectangles mark the regions enlarged in Figure 3. The examples were selected for visible refinement effects and are illustrative rather than representative.
Figure 3.
Enlarged regions from selected CHASE-DB1 cases from the controlled global/frozen reference experiment reported in Table 5. Columns show the input crop, first-observer reference mask, LU-Net+RA coarse prediction, diffusion-refined prediction, and refined-prediction error map. White, red, blue, and black denote true-positive, false-positive, false-negative, and true-negative pixels, respectively.
4.4.1. Paired Per-Image Analysis and Uncertainty
Table 6, Table 7 and Table 8 report the per-image results for CHASE-DB1, DRIVE and HRF, respectively.
Table 6.
CHASE-DB1 per-image Dice for the Table 5 global/frozen comparison. Each entry averages five training seeds and five sampling realisations. Differences use unrounded paired values and are refined minus coarse. These are per-image means, not independent training replicates.
Table 7.
DRIVE per-image Dice for the Table 5 global/frozen comparison. Each entry averages five training seeds and five sampling realisations. Differences use unrounded paired values and are refined minus coarse. These are per-image means, not independent training replicates.
Table 8.
HRF per-image Dice for the Table 5 global/frozen comparison. Each entry averages five training seeds and five sampling realisations. Differences use unrounded paired values and are refined minus coarse. These are per-image means, not independent training replicates.
The comparison uses only the global/frozen reference records underlying Table 5: 1000 image–training-seed–sampling-seed records at 50 updates, comprising eight CHASE-DB1, twenty DRIVE and twelve HRF images, five training seeds and five sampling seeds. Both arms use the same cases, coarse checkpoints and evaluation protocol; scores from other refiner variants are excluded. Sampling realisations are averaged within each image and training seed. Per-image entries then average the five training-seed means, while dataset means and sample SDs summarise five run means on the fixed test set. The coarse prediction is repeated across sampling labels and is not counted as an additional independent observation.
For each dataset, an exploratory paired crossed bootstrap uses 50,000 replicates and random seed 20261017. Training seeds and test units are sampled independently with replacement, retaining matched coarse and refined observations. Both CHASE-DB1 eyes remain together within each of four subjects; DRIVE uses image resampling; HRF resamples images within healthy, diabetic-retinopathy and glaucoma strata. Sampling realisations are averaged before resampling. The 2.5th and 97.5th percentiles form the 95% interval. All three intervals for refiner-minus-coarse Dice lie below zero, describing lower mean Dice in this tested configuration. Only four CHASE subjects and five training pairs are available, patient independence is unverified for DRIVE and HRF, and these intervals are exploratory rather than confirmatory or simultaneous. These exploratory intervals are not used as confirmatory hypothesis tests.
4.4.2. Matched Out-of-Fold Coarse-Map Training
The separate matched OOF experiment uses four subject-grouped CHASE-DB1 folds, four DRIVE image folds and three pathology-stratified HRF folds, with fold membership fixed using seed 20261009 across the five training seeds. Each fold predictor is fitted without its held-out images and selected using the separate original validation partition. Held-out fold images and test images are not used for checkpoint selection. Both eyes of each CHASE subject remain together. The experiment comprises 55 fold-baseline fits and 15 OOF-refiner fits. The in-sample arm is the global/frozen reference in Table 5. Both arms share the coarse predictor for the fixed test images, frozen initial mask autoencoder, refiner initialisation, optimisation settings and matched sampling seeds.
Table 9 reports the matched OOF comparison. The matched OOF evaluation averages the sampling realisations before comparison. Five sampling realisations were averaged within each image and training seed, yielding 200 paired image–training-seed records. OOF crossed-bootstrap intervals use 50,000 replicates and seed 20261015, retaining both eyes within CHASE subjects and HRF pathology strata. The OOF-minus-in-sample tests use five matched training-seed means, with Holm correction across the three datasets separately for paired t and exact signed-rank tests. These intervals describe the OOF-minus-in-sample contrast; they are distinct from the coarse-versus-refiner intervals in Table 5.
Table 9.
Matched OOF versus in-sample refinement at 50 DDIM updates. The in-sample means and SDs match the global/frozen reference in Table 5. Differences are OOF minus in-sample. Intervals are exploratory crossed-bootstrap intervals; probabilities are Holm-corrected paired training-seed tests, with correction across three datasets separately for each test family.
OOF mean Dice is slightly lower on all three datasets. None of the corrected training-seed tests reaches 0.05. The bootstrap intervals exclude zero for CHASE-DB1 and DRIVE but include zero for HRF; these crossed intervals and fixed-test training-seed tests address different uncertainty structures. Nonsignificance does not establish equivalence or absence of train–test shift. Fold predictors fit fewer examples, and the shared frozen DRIVE autoencoder retains in-sample coarse-map pretraining. Small fixed test cohorts and unverified DRIVE/HRF patient independence constrain interpretation.
4.5. Component Ablations
We trained seven refiner configurations with five seeds on each dataset (105 refiners). Within each dataset and training seed, all variants share the partition, the frozen LU-Net+RA checkpoint, the initial mask-autoencoder checkpoint and, where applicable, the initial denoiser weights. Training follows Section 4.2, with no refiner augmentation and the predefined epoch-100 checkpoint. Stochastic variants are evaluated with 50 updates and five matched sampling seeds; the deterministic refiner is evaluated once per image. All 7200 evaluation records were checked against the saved predictions, annotations, FOV masks and confusion counts.
The reference is the refiner of Section 4.4. The deterministic control predicts a residual on the same encoded grid with a fixed zero time input and the decoded Dice loss, without Gaussian noise or DDIM sampling. Target diffusion encodes the training reference mask instead of the coarse map; the same checkpoint is evaluated from the noised coarse map and from pure Gaussian noise, so the second mode also changes the inference start. The remaining variants remove image conditioning, replace the global vector with spatial RGB features and spatial FiLM, replace FiLM with additive injection, or fine-tune the mask encoder and decoder jointly. The reference updates 405,824 parameters, the no-image variant 378,112 and joint fine-tuning 527,233, including 121,409 autoencoder parameters. Global and spatial conditioning have equal parameter counts but different activation costs; the additive variant combines the two FiLM branches as , which does not preserve effective capacity.
All diffusion variants with the frozen autoencoder remain below the coarse baseline on every dataset (Table 10). Changing the conditioning altered mean Dice by less than 0.0002 relative to the reference, and no conditioning comparison had a Holm-adjusted paired t probability below 0.05. Target diffusion from the coarse start gave similar mean Dice to the reference, whereas a pure Gaussian start failed (Dice 0.03–0.06). The deterministic encoded-grid refiner exceeded the diffusion reference by 0.033, 0.005 and 0.063 on CHASE-DB1, DRIVE and HRF, and joint autoencoder fine-tuning by 0.029, 0.002 and 0.045; both exceeded the coarse baseline only on DRIVE, by 0.0034 and 0.0003. The diffusion formulation therefore offers no advantage over deterministic refinement in this configuration. Paired tests use separate Holm corrections for t and exact signed-rank probabilities over 24 comparisons (seven variants against the reference on each dataset, plus Gaussian versus coarse start for target diffusion); every adjusted signed-rank probability is 1, reflecting the resolution of five pairs.
Table 10.
Component ablations: stochastic modes use 50 DDIM updates; the deterministic control uses no DDIM and is evaluated once per image. Entries are mean Dice ± sample SD across five training-seed means, after averaging sampling realisations and test images. All rows share the coarse predictions in the first row.
4.6. Spatial Residual Refiner
To test refinement without the encoded grid, we trained a deterministic spatial residual U-Net that receives the RGB image and the coarse probability map as four input channels. It has encoder widths 16, 32, 64 and 128, three skip-connected decoder blocks, bilinear upsampling, GroupNorm and SiLU, and 488,145 parameters. A zero-initialised output layer predicts an additive correction to the coarse logits. The loss weights binary cross-entropy and soft Dice equally. Training used AdamW at with weight decay , cosine scheduling over at most 120 epochs, batch size four, gradient clipping at one, and aligned flips and right-angle rotations of the image, coarse map and annotation; unlike the encoded-grid refiners, this model therefore uses augmentation. The checkpoint was selected by validation mean Dice with patience 25, including the initial zero-residual model, which was selected in two CHASE-DB1 runs and in no DRIVE or HRF run. Five refiners were trained per dataset with the five training seeds and their per-seed coarse predictors, giving 200 paired image–seed records that were checked against the saved predictions.
The spatial refiner changed CHASE-DB1 Dice negligibly and raised DRIVE and HRF Dice by 0.0058 and 0.0074 (Table 11). Both of these intervals exclude zero, but after Holm correction only the HRF paired t probability is below 0.05 and no signed-rank probability is; unadjusted probabilities were 0.2199, 0.0301 and 0.0133 for the t test and 0.25, 0.0625 and 0.0625 for the signed-rank test. Because this refiner differs from the encoded-grid refiners in architecture, input and augmentation, the comparison does not isolate a single factor; it shows that refinement in image space did not lose accuracy where the encoded-grid refiners did.
Table 11.
Spatial residual refiner versus coarse LU-Net+RA on the same test images. Entries are mean ± sample SD across five training-seed means. Difference is refined minus coarse; intervals are crossed-bootstrap 95% intervals (50,000 draws). Probabilities are Holm-adjusted across the three datasets, separately for paired t () and exact signed-rank () tests.
4.7. Published Literature Context
Table 12 separately reports the baseline U-Net and selected lightweight U-Net with reverse attention results from Table 8 of Hernandez-Gutierrez et al. [4]. The selected LU-Net+RA row uses AdamW, Dice loss without binary cross-entropy loss, and reverse attention on each dataset. This single, explicit source avoids mixing values from the abstract, dataset-comparison tables, discussion, and conclusion of that article, which report internally different CHASE-DB1 and HRF values.
Table 12.
Published contextual results from Table 8 of Hernandez-Gutierrez et al. [4]. These values were obtained under that study’s partitioning, validation, preprocessing, and metric procedures and are not paired before-refinement measurements for the test images of Table 5.
Our coarse LU-Net+RA predictions give Dice of 0.811, 0.792 and 0.732 on CHASE-DB1, DRIVE and HRF, against published values of 0.7946, 0.7871 and 0.7756. Because the studies use non-identical cases and evaluation pipelines, these numerical differences provide literature context only. The effect of the refiner is measured instead by the paired comparison in Table 5.
4.8. DDIM Transition-Count Analysis
To measure the effect of the update count without training variation, we refined the eight CHASE-DB1 test images with one trained refiner of the reference configuration, using 50 and 100 updates from the same 20 initial-noise tensors, start index 99 and guidance 1.5. Predictions were evaluated against first-observer annotations on the whole image at threshold 0.5. Mean Dice was 0.74547638 with 50 updates and 0.74547697 with 100. The mean paired difference was , with a bootstrap 95% interval of from 10,000 replicates that resample subjects (with both eyes together) and noise seeds; the SD of the 20 seed-level mean differences was . Mean refinement time rose from 116.98 to 229.64 ms. Timing was CUDA-synchronised and used FP32, batch size one, two warm-up runs per image and setting and alternating measurement order; it covered mask encoding, image conditioning, DDIM sampling and decoding, but not the backbone, transfers or scoring. Doubling the update count therefore doubled refinement time with negligible observed Dice change. This experiment uses one trained model, and its 20 noise seeds are not independent training runs. The interval includes zero, so no reliable Dice benefit from 100 updates is demonstrated; this does not establish equivalence. Update counts below 50 were not evaluated in this protocol.
4.9. Complete-Pipeline Latency
The complete-pipeline benchmark used the retained CHASE-DB1 checkpoints of the reference configuration, FP32, batch size one and the same GPU at 50 DDIM updates. Each of eight test images received five warm-up runs and ten timed repetitions per timing mode in rotated order (80 measurements per mode), with CUDA synchronisation around each call. The complete model was timed directly, not by summing stages. The decoded-RGB-to-mask mode starts from an RGB image already decoded in CPU memory and includes preprocessing, host–device transfers and thresholding, but excludes disk access, image decoding, checkpoint loading and output saving.
The complete model takes about 26 times as long per image as LU-Net+RA alone (Table 13). The separately timed backbone and refinement means sum to 122.46 ms, whereas the directly measured complete model takes 119.02 ms; independently timed calls need not add exactly. In a separate session using CUDA events on GPU-resident inputs, mean stream time was 4.30 ms for LU-Net+RA, 108.30 ms for refinement and 112.02 ms for the complete model. The 116.98-ms refinement time in Section 4.8 comes from another session with two warm-ups.
Table 13.
Measured latency at 50 DDIM updates, in milliseconds. Serial rate is images/s. P95 is the empirical 95th percentile, not a confidence interval.
4.10. Qualitative Results
Figure 2 and Figure 3 show selected CHASE-DB1 examples for which visible differences occur between the LU-Net+RA coarse prediction and the diffusion-refined prediction. The panels include the input, first-observer reference, coarse mask, refined mask, and the refined-prediction error map. These examples are selected predictions from the same controlled global/frozen reference experiment reported in Table 5 (Section 4.4). They do not come from the earlier single-run experiment, whose checkpoint and complete prediction maps are unavailable. They illustrate individual cases and do not represent the average refinement effect.
The examples were intentionally selected for visible refinement effects. No inference about average thin-vessel recovery, topology, connectivity, or boundary quality is drawn from these panels; those claims require random or median-case sampling and dedicated centreline, connectivity, or boundary metrics.
5. Discussion
The proposed refiner is most closely related to coarse-to-fine diffusion systems rather than to generic post-processing. HiDiffSeg uses hierarchical vessel and skeleton guidance for retinal segmentation [25]; RefineCatDiff incorporates a coarse probability map as prior knowledge in categorical diffusion [26]; and the diffusion feature-map denoising module of Li et al. [27] is trained end-to-end within existing segmenters. The present design instead performs continuous Gaussian diffusion on an encoded LU-Net+RA probability map, freezes the mask autoencoder, and uses a global RGB condition. These differences motivate the method, but a controlled benchmark is required before claiming an advantage over the related alternatives.
Under matched partitions, preprocessing, annotations, thresholds and test images, the conditional diffusion refiner lowered mean Dice relative to its own coarse input by 0.064 on CHASE-DB1, 0.002 on DRIVE and 0.066 on HRF (Table 5). The higher scores of the earlier single-run experiment were not reproduced, and without its checkpoint we cannot determine which configuration differences produced them.
The ablations indicate where the loss arises. Removing the image condition, replacing the global vector with spatial FiLM or using additive injection changed Dice by less than 0.0002, so the global 128-dimensional condition is not the limiting factor in this configuration. Diffusing the encoded reference mask instead of the coarse map gave similar mean Dice from a coarse start and failed from a Gaussian start. A deterministic refiner on the same encoded grid, or joint fine-tuning of the autoencoder, recovered part of the loss, and a spatial residual refiner that bypasses the encoded grid did not lose accuracy and gave small gains on DRIVE and HRF. These patterns are consistent with the frozen, spatially downsampled mask autoencoder limiting the attainable Dice, and show no benefit of the diffusion formulation over deterministic refinement here. We did not measure the reconstruction ceiling of the autoencoder directly, and the spatial refiner also differs in input and augmentation, so this interpretation remains to be tested.
Refinement adds 27% more parameters and raises per-image latency from 4.5 ms for LU-Net+RA to 119 ms for the complete model, and doubling the number of updates doubles refinement time with negligible observed Dice change. Higher Dice alone would not establish better thin-vessel recovery or connectivity, which require topology-aware metrics that we did not evaluate.
Limitations and Reproducibility
The test sets are small: eight CHASE-DB1 images from four subjects, twenty DRIVE images and twelve HRF images, and patient independence is not documented for DRIVE and HRF. Five training seeds give limited statistical resolution; the smallest two-sided exact signed-rank probability is 0.0625, and crossed-bootstrap intervals may under-cover with so few clusters. Holm corrections control each stated family, not all comparisons in the paper. Latency was measured on one GPU. The earlier single-run result could not be re-evaluated because its trained checkpoint and complete machine-readable prediction maps are unavailable. This limitation concerns that earlier run; Figure 2 and Figure 3 show selected cases from the controlled global/frozen reference experiment, not the earlier run.
The reference refiner is trained on in-sample backbone predictions; Section 4.4.2 reports a separate matched OOF comparison. Neither its nonsignificant paired tests nor its exploratory intervals establish equivalence or rule out train–test input shift. Its fold predictors fit fewer images, and the shared frozen DRIVE autoencoder retains in-sample coarse-map pretraining. In addition, its mask autoencoder is pretrained on binary annotations (for CHASE-DB1 and HRF) but later encodes soft probability maps. Both choices can create a train–test input shift. The global 128-dimensional image vector also discards spatial conditioning information, although replacing it with spatial conditioning had negligible effect (Section 4.5). Finally, the encoded grid is spatially coarser than the input mask but contains more scalar values, so the method should not be described as a compressed latent bottleneck.
We did not reproduce HiDiffSeg, RefineCatDiff or the module of Li et al. under our protocol, and we did not run measured ablations of the Dice-loss weight or of refiner augmentation. The qualitative cases were selected for visible effects, and no centreline, connectivity, boundary, or calibration metric was computed; we removed the earlier qualitative sampling-variance figure because its sample count and display scale could not be documented, and the manuscript makes no calibration claim. Future experiments should extend the matched OOF evaluation, use topology-aware metrics, unbiased qualitative sampling and controlled comparisons with recent coarse-to-fine diffusion refiners, and should test refinement without a frozen, spatially downsampled mask encoding.
6. Conclusions
We specified and evaluated a conditional diffusion refiner for LU-Net+RA probability maps that operates on a spatially downsampled multi-channel encoding with global RGB conditioning. With five training seeds per configuration and evaluation on the same test images, the refiner did not improve its coarse input: mean Dice was 0.746, 0.790 and 0.666 after refinement, against 0.811, 0.792 and 0.732 for LU-Net+RA on CHASE-DB1, DRIVE and HRF, and an earlier single-run result could not be reproduced. Conditioning variants had negligible effect, deterministic refinement on the same grid and autoencoder fine-tuning recovered part of the loss, and a spatial residual refiner gave small gains on DRIVE and HRF. These results identify the frozen, spatially downsampled mask encoding as a plausible contributor, rather than an isolated cause of the loss, and indicate that any diffusion-specific benefit should be demonstrated against a deterministic refiner under the same protocol. The paired per-image analysis and exploratory intervals are reported in Section 4.4.1; the matched OOF comparison in Section 4.4.2 does not establish absence of training-input shift.
Author Contributions
Conceptualisation, H.N. and B.B.; methodology, H.N. and B.B.; software, B.B.; validation, H.N., B.B. and C.D.; formal analysis, B.B.; investigation, H.N. and B.B.; resources, H.N. and C.D.; data curation, B.B.; writing—original draft preparation, B.B.; writing—review and editing, H.N. and C.D.; visualisation, B.B.; supervision, H.N. and C.D.; project administration, H.N. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Institutional Review Board Statement
Not applicable. This computational study used only previously released, de-identified public benchmark datasets and involved no new participant recruitment or data collection.
Informed Consent Statement
Not applicable. No new participants were recruited and no new data were collected; consent arrangements for the source datasets were managed by their original providers.
Data Availability Statement
CHASE-DB1, DRIVE, and HRF are publicly available from the providers cited in the dataset descriptions [11,31,32]. Implementation code and the evaluation and analysis scripts are available at https://github.com/thebabak/Refining_Retinal_Vessel_Segmentation_with_Conditional_Diffusion_Models (accessed on 29 October 2026). The split files, evaluation records, saved test predictions and model weights are available from the corresponding authors on reasonable request.
Acknowledgments
During manuscript revision, OpenAI Codex (model: gpt-6.1-sol) and Claude (models: Opus 5.5 and Sonnet 5.5) were used for language and structural editing, LaTeX formatting, and reference-consistency checking. The authors reviewed the output and remain responsible for the scientific content, citations, and final submission.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Milletari, F.; Navab, N.; Ahmadi, S.-A. V-Net: Fully Convolutional Neural Networks for Volumetric Medical Image Segmentation. In Proceedings of the 2016 Fourth International Conference on 3D Vision (3DV), Stanford, CA, USA, 25–28 October 2016; IEEE: New York, NY, USA, 2016; pp. 565–571. [Google Scholar] [CrossRef] [Scilit]
- Gu, Z.; Cheng, J.; Fu, H.; Zhou, K.; Hao, H.; Zhao, Y.; Zhang, T.; Gao, S.; Liu, J. CE-Net: Context Encoder Network for 2D Medical Image Segmentation. IEEE Trans. Med. Imaging 2019, 38, 2281–2292. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Lin, T.-Y.; Goyal, P.; Girshick, R.; He, K.; Dollár, P. Focal Loss for Dense Object Detection. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), Venice, Italy, 22–29 October 2017; IEEE: New York, NY, USA, 2017; pp. 2980–2988. [Google Scholar] [CrossRef] [Scilit]
- Hernández-Gutiérrez, F.D.; Avina-Bravo, E.G.; Ibarra-Manzano, M.A.; Ruiz-Pinales, J.; Ovalle-Magallanes, E.; Avina-Cervantes, J.G. Retinal Vessel Segmentation Based on a Lightweight U-Net and Reverse Attention. Mathematics 2025, 13, 2203. [Google Scholar] [CrossRef] [Scilit]
- Ho, J.; Jain, A.; Abbeel, P. Denoising Diffusion Probabilistic Models. In Advances in Neural Information Processing Systems; Curran Associates: Red Hook, NY, USA, 2020; Volume 33, pp. 6840–6851. [Google Scholar]
- Dhariwal, P.; Nichol, A. Diffusion Models Beat GANs on Image Synthesis. In Advances in Neural Information Processing Systems; Curran Associates: Red Hook, NY, USA, 2021; Volume 34, pp. 8780–8794. [Google Scholar]
- Rombach, R.; Blattmann, A.; Lorenz, D.; Esser, P.; Ommer, B. High-Resolution Image Synthesis with Latent Diffusion Models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), New Orleans, LA, USA, 18–24 June 2022; IEEE: New York, NY, USA, 2022; pp. 10684–10695. [Google Scholar] [CrossRef] [Scilit]
- Soares, J.V.B.; Leandro, J.J.G.; Cesar, R.M., Jr.; Jelinek, H.F.; Cree, M.J. Retinal Vessel Segmentation Using the 2-D Gabor Wavelet and Supervised Classification. IEEE Trans. Med. Imaging 2006, 25, 1214–1222. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Mendonça, A.M.; Campilho, A. Segmentation of Retinal Blood Vessels by Combining the Detection of Centerlines and Morphological Reconstruction. IEEE Trans. Med. Imaging 2006, 25, 1200–1213. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Ronneberger, O.; Fischer, P.; Brox, T. U-Net: Convolutional Networks for Biomedical Image Segmentation. In Medical Image Computing and Computer-Assisted Intervention–MICCAI 2015; Lecture Notes in Computer Science; Springer: Cham, Switzerland, 2015; Volume 9351, pp. 234–241. [Google Scholar] [CrossRef] [Scilit]
- Staal, J.; Abràmoff, M.D.; Niemeijer, M.; Viergever, M.A.; van Ginneken, B. Ridge-Based Vessel Segmentation in Color Images of the Retina. IEEE Trans. Med. Imaging 2004, 23, 501–509. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Zhou, Z.; Siddiquee, M.M.R.; Tajbakhsh, N.; Liang, J. UNet++: A Nested U-Net Architecture for Medical Image Segmentation. In Deep Learning in Medical Image Analysis and Multimodal Learning for Clinical Decision Support; Lecture Notes in Computer Science; Springer: Cham, Switzerland, 2018; Volume 11045, pp. 3–11. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Oktay, O.; Schlemper, J.; Le Folgoc, L.; Lee, M.; Heinrich, M.; Misawa, K.; Mori, K.; McDonagh, S.; Hammerla, N.Y.; Kainz, B.; et al. Attention U-Net: Learning Where to Look for the Pancreas. arXiv 2018, arXiv:1804.03999. [Google Scholar] [CrossRef] [Scilit]
- Schlemper, J.; Oktay, O.; Schaap, M.; Heinrich, M.; Kainz, B.; Glocker, B.; Rueckert, D. Attention Gated Networks: Learning to Leverage Salient Regions in Medical Images. Med. Image Anal. 2019, 53, 197–207. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Alom, M.Z.; Yakopcic, C.; Hasan, M.; Taha, T.M.; Asari, V.K. Recurrent Residual U-Net for Medical Image Segmentation. J. Med. Imaging 2019, 6, 014006. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Liskowski, P.; Krawiec, K. Segmenting Retinal Blood Vessels with Deep Neural Networks. IEEE Trans. Med. Imaging 2016, 35, 2369–2380. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Fu, H.; Xu, Y.; Wong, D.W.K.; Liu, J. Retinal Vessel Segmentation via Deep Learning Network and Fully-Connected Conditional Random Fields. In Proceedings of the 2016 IEEE 13th International Symposium on Biomedical Imaging (ISBI), Prague, Czech Republic, 13–16 April 2016; IEEE: New York, NY, USA, 2016; pp. 698–701. [Google Scholar] [CrossRef] [Scilit]
- Shin, S.Y.; Lee, S.; Yun, I.D.; Lee, K.M. Deep Vessel Segmentation by Learning Graphical Connectivity. Med. Image Anal. 2019, 58, 101556. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Song, J.; Meng, C.; Ermon, S. Denoising Diffusion Implicit Models. In Proceedings of the International Conference on Learning Representations, Virtual, 3–7 May 2021; Available online: https://openreview.net/forum?id=St1giarCHLP (accessed on 15 August 2026).
- Wolleb, J.; Sandkühler, R.; Bieder, F.; Valmaggia, P.; Cattin, P.C. Diffusion Models for Implicit Image Segmentation Ensembles. In Proceedings of the 5th International Conference on Medical Imaging with Deep Learning; PMLR: Cambridge, MA, USA, 2022; Volume 172, pp. 1336–1348. [Google Scholar]
- Amit, T.; Shaharbany, T.; Nachmani, E.; Wolf, L. SegDiff: Image Segmentation with Diffusion Probabilistic Models. arXiv 2021, arXiv:2112.00390. [Google Scholar] [CrossRef] [Scilit]
- Wu, J.; Fu, R.; Fang, H.; Zhang, Y.; Yang, Y.; Xiong, H.; Liu, H.; Xu, Y. MedSegDiff: Medical Image Segmentation with Diffusion Probabilistic Model. In Medical Imaging with Deep Learning; PMLR: Cambridge, MA, USA, 2024; Volume 227, pp. 1623–1639. [Google Scholar]
- Guo, X.; Yang, Y.; Ye, C.; Lu, S.; Peng, B.; Huang, H.; Xiang, Y.; Ma, T. Accelerating Diffusion Models via Pre-Segmentation Diffusion Sampling for Medical Image Segmentation. In Proceedings of the 2023 IEEE 20th International Symposium on Biomedical Imaging (ISBI), Cartagena, Colombia, 18–21 April 2023. [Google Scholar] [CrossRef] [Scilit]
- Kazerouni, A.; Aghdam, E.K.; Heidari, M.; Azad, R.; Fayyaz, M.; Hacihaliloglu, I.; Merhof, D. Diffusion Models in Medical Imaging: A Comprehensive Survey. Med. Image Anal. 2023, 88, 102846. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Huang, W.; Liu, F. HiDiffSeg: A Hierarchical Diffusion Model for Blood Vessel Segmentation in Retinal Fundus Images. Expert Syst. Appl. 2024, 253, 124249. [Google Scholar] [CrossRef] [Scilit]
- Liu, F.; Yu, H.; Huang, J.; Hua, X.; Liu, H.; Ma, Z.; Wang, Z.; Du, Z.; Sun, L. RefineCatDiff: Toward High-Quality Medical Image Segmentation via a Categorical Diffusion Refinement Framework. Adv. Intell. Syst. 2025, 7, e202401125. [Google Scholar] [CrossRef] [Scilit]
- Li, G.; Jin, D.; Zheng, Y.; Cui, J.; Gai, W.; Qi, M. A Generic Plug & Play Diffusion-Based Denosing Module for Medical Image Segmentation. Neural Netw. 2024, 172, 106096. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Hu, J.; Shen, L.; Sun, G. Squeeze-and-Excitation Networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Salt Lake City, UT, USA, 18–23 June 2018; pp. 7132–7141. [Google Scholar] [CrossRef] [Scilit]
- Woo, S.; Park, J.; Lee, J.-Y.; Kweon, I.S. CBAM: Convolutional Block Attention Module. In Computer Vision–ECCV 2018; Lecture Notes in Computer Science; Springer: Cham, Switzerland, 2018; Volume 11211, pp. 3–19. [Google Scholar] [CrossRef] [Scilit]
- Nichol, A.Q.; Dhariwal, P. Improved Denoising Diffusion Probabilistic Models. In Proceedings of the 38th International Conference on Machine Learning; PMLR: Cambridge, MA, USA, 2021; Volume 139, pp. 8162–8171. [Google Scholar]
- Fraz, M.M.; Remagnino, P.; Hoppe, A.; Uyyanonvara, B.; Rudnicka, A.R.; Owen, C.G.; Barman, S.A. An Ensemble Classification-Based Approach Applied to Retinal Blood Vessel Segmentation. IEEE Trans. Biomed. Eng. 2012, 59, 2538–2548. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Odstrčilík, J.; Kolař, R.; Budai, A.; Hornegger, J.; Jan, J.; Gazárek, J.; Kubena, T.; Černosek, P.; Svoboda, O.; Angelopoulou, E. Retinal Vessel Segmentation by Improved Matched Filtering: Evaluation on a New High-Resolution Fundus Image Database. IET Image Process. 2013, 7, 373–383. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.


