# MSRF-Net: A Multi-Scale Residual Fusion Network for Biomedical Image Segmentation

Abhishek Srivastava, Debesh Jha, Sukalpa Chanda, Umapada Pal, Håvard D. Johansen, Dag Johansen and 3 more · arXiv · 2021-5-16

- **Problem** Biomedical segmentation models must handle targets of very different sizes, yet annotated training data are costly, and existing skip-connection and multi-scale fusion designs either fuse only matching scales or rely on heavy fusion modules.
- **Method** Stacks Dual-Scale Dense Fusion blocks in a multi-scale residual sub-network that exchanges features across resolutions, then adds a gated shape stream and triple attention decoders to an encoder-decoder.
- **Results** Reached DSC of 0.9217 on Kvasir-SEG, 0.9420 on CVC-ClinicDB, 0.9224 on the 2018 Data Science Bowl and 0.8824 on ISIC-2018 in the reported comparisons.

![Figure 1: Components of our MSRF-Net, a) Proposed Dual-Scale Dense Fusion (DSDF) block and b) Multi-Scale Residual Fusion (MSRF). Dotted rectangle block in (b)…](https://refivu.com/papers/6a391bec-28c7-48c8-b3ae-92ae5788cd01/figures/figure-02ea26c8f95951e5bbfe6ea458359f36.png?thumb=512)

**Fig. 1** . Components of our MSRF-Net, a) Proposed Dual-Scale Dense Fusion (DSDF) block and b) Multi-Scale Residual Fusion (MSRF). Dotted rectangle block in (b) represents multi-scale feature exchange in MSRF-Net

[Original paper](https://arxiv.org/abs/2105.07451v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Abhishek Srivastava, Debesh Jha, Sukalpa Chanda, Umapada Pal, Håvard D. Johansen, Dag Johansen, Michael A. Riegler, Sharib Ali, Pål Halvorsen · MSRF-Net: A Multi-Scale Residual Fusion Network for Biomedical Image Segmentation · Original paper figure · Extracted the figure area from page 3 of the original PDF.

## Why variable-size targets and small datasets are hard

Segmenting polyps, cell nuclei or skin lesions requires a model that copes with targets of very different sizes, and the annotations used to train such a model take expert time and cost money to produce. Encoder-decoder networks pass encoder features to the decoder through skip connections, which carry deep semantic features, but the optimal depth of these networks varies between biomedical applications and the skip design can be too rigid, since it fuses only encoder and decoder maps of the same scale.

U-Net combines low-level features from early encoder layers with high-level decoder features, which may create a semantic gap between the two.

Multi-scale fusion addresses variable target sizes, but fusion-based designs such as HRNet keep high-resolution representations at the price of fusion modules with many trainable parameters, and informative low-level features can be lost during segmentation. The authors report that their design needs lower computational complexity than HRNetV2 while fusing features more often.

## Exchanging features between two scales in a DSDF block

The DSDF block takes a high-resolution input and a low-resolution input and runs them in two parallel streams, one per scale. Each stream is a densely connected residual block of five CLR operations in series, where a CLR operation is a 3×3 convolution followed by a LeakyReLU activation. Figure 1(a) shows the block layout.

The lower-resolution term M\_{d-1,l} is brought to the high resolution by a transposed convolution with a 3×3 kernel and stride 2 before it is concatenated.

The high-resolution term M\_{d-1,h} is downsampled by a convolution with a 3×3 kernel and stride 2 first, so information moves in both directions at every layer, with d ranging from 1 to 5.

Each CLR operation outputs k channels, where k is the growth factor, and it is set to 16, 32 and 64 for the resolution scale pairs. Only two scales are used at once in a DSDF block, because the growth factor differs by scale and using more scales makes training harder to afford. The block output for resolution r is w times the last CLR output plus the block input, as written in Equation 3 with the symbol X\_r on both sides, and w lies between 0 and 1.

The authors set w to 0.4.

## Chaining DSDF blocks into a global fusion

The MSRF sub-network chains several DSDF blocks so that features from each resolution scale can reach the others. N is the number of DSDF layers, and the sub-network in Figure 1(b) uses N = 6. Each DSDF block receives the outputs of earlier DSDF blocks in the same resolution stream, which keeps multi-scale features available deeper in the network.

Each layer carries four resolution scales, with high-resolution features H and low-resolution features L indexed by block numbers, and the scale pairs p in {1, 3} and q in {2, 4} are fed together into one DSDF call. The first layer updates the pair features from the pair inputs, and a loop runs the middle layers, where a second DSDF call pairs a low-resolution feature with a high-resolution feature from another scale so that the two streams mix.

After each call the updated features are written back as inputs for the next layer.

After the fourth layer the sub-network has exchanged features across all scales, which the authors call global multi-scale fusion and mark as the red rectangle in Figure 1(b). The output of the last layer is scaled by w and added back to the sub-network input, in the same way as the residual scaling of a single block.

## Encoder, shape stream and triple attention decoder

MSRF-Net consists of an encoder, the MSRF sub-network, a gated shape stream and a decoder. Figure 2(a) gives the full block diagram, and Figure 2(b) gives the decoder.

The squeeze step averages each channel over its spatial extent, and the excitation step turns these statistics into per-channel weights that model dependencies between channels. Max pooling with stride two lowers the resolution between encoder stages, and dropout regularizes the model.

The shape stream resizes the MSRF output X bilinearly to match the shape feature maps S\_l, and it forms an attention map at the gated convolution as \\\[ \\alpha\_l = \\sigma(\\mathrm{Conv}\_{1\\times1}(S\_l \\oplus X)) \\\] where σ is the sigmoid function. The next shape feature is S\_{l+1} = RB(S\_l × α), where RB is a residual block with two CLR operations and a skip connection.

Channel attention comes from a squeeze and excitation block, and spatial attention comes from a 1×1 convolution that reduces the channels to one, followed by a sigmoid that is repeated over the channels; the two are combined as \\\[ D\_{sc} = (X\_{\\alpha s} + 1)\\otimes X\_{\\alpha se} \\\] where ⊗ is the Hadamard product. The +1 keeps the original features while amplifying the regions that the activation map marks as relevant.

A gated attention term is computed as \\\[ D\_{AG} = \\Omega\\big(\\sigma\\big(\\Psi(\\theta(X)+\\phi(D^-))\\big)\\big) \\\] where θ is a strided 1×1 convolution on X, φ is a 1×1 convolution on D−, Ψ is a 1×1 convolution that outputs one channel, and Ω is a transposed convolution. Multiplying D\_AG by X prunes irrelevant features, and the transposed convolution of D− is then added to the result, as Equation 7 states.

The decoder output D\_α concatenates D\_sc with the gated term, and two CLR operations follow.

## How the training losses are combined

The binary cross-entropy loss is \\\[ L\_{BCE} = (y-1)\\log(1-\\hat{y}) - y\\log\\hat{y} \\\] where y is the ground truth and ŷ the predicted value. The dice loss is one minus an overlap ratio built from the predicted and ground-truth maps, and the combined loss is L\_comb = λ1 L\_BCE + λ2 L\_DCS. Both λ1 and λ2 are set to 1.

The shape stream is supervised with binary cross-entropy only, and its target is the predicted edge map against the ground-truth edge map. Deep supervision adds losses on two intermediate outputs, which the authors say improves gradient flow and regularization, and the final objective is \\\[ L\_{MSRF} = \\alpha L\_{comb} + \\beta\_1 L^{DS0}\_{comb} + \\beta\_2 L^{DS1}\_{comb} + \\gamma L^{SS}\_{BCE} \\\] with α, β1, β2 and γ each set to 1.

Training uses the Adam optimizer with a learning rate of 0.0001 and dropout with p = 0.2. The number of epochs was set empirically to 200 for all datasets. Images are resized to 256×256 for Kvasir-SEG and the 2018 Data Science Bowl, 384×288 for CVC-ClinicDB and 384×512 for ISIC-2018.

## Datasets, splits and metrics

Four public datasets are used: Kvasir-SEG and CVC-ClinicDB for colonoscopy, the 2018 Data Science Bowl for cell nuclei in microscopy, and ISIC-2018 for skin lesions. Kvasir-SEG has 1000 images with variable input size, split 800, 100 and 100 for training, validation and testing. CVC-ClinicDB has 612 images at 384×288, split 490, 61 and 61, and the 2018 Data Science Bowl has 670 images at 256×256, split 536, 67 and 67.

ISIC-2018 has 2596 images at 384×512, split 2078, 259 and 259.

Results are reported as DSC, mIoU, recall, precision and FPS, with standard deviations for DSC, mIoU, recall and precision. Paired t-tests between the DSC of MSRF-Net and the DSC of each baseline give the p-values in the tables, and the MSRF-Net row itself has no p-value. Baselines were run with the open-source code released by their authors, and the training uses random cropping, random rotation, horizontal and vertical flipping and grid distortion.

## Colonoscopy results on Kvasir-SEG and CVC-ClinicDB

On Kvasir-SEG, the MSRF-Net row reaches DSC 0.9217 ± 0.1685 and mIoU 0.8914 ± 0.1938, the highest DSC and mIoU in Table II. The text also reports a 1.70% precision gain over DeepLabv3+ with Xception and a 1.04% recall gain over U-Net.

On CVC-ClinicDB, the MSRF-Net row reaches DSC 0.9420 ± 0.0804, the highest DSC in Table III. The text gives this as a 1.76% DSC gain over HRNetV2-W48, which scores 0.9244 ± 0.1280. Its mIoU of 0.9043 ± 0.1009 is a 1.44% gain over ResUNet++ with CRF, and its recall of 0.9567 ± 0.0620 is a 2.82% gain over UACANet-S. Figure 3 shows qualitative masks for all four datasets.

## Microscopy and skin lesion results

On the 2018 Data Science Bowl dataset, MSRF-Net reaches DSC 0.9224 ± 0.0538, mIoU 0.8534 ± 0.0870, recall 0.9402 ± 0.0734 and precision 0.9022 ± 0.0601. ColonSegNet has DSC 0.9197 ± 0.0605 and precision 0.9312 ± 0.0532, so MSRF-Net is higher on DSC, mIoU and recall but lower on precision.

On ISIC-2018, MSRF-Net reaches DSC 0.8824 ± 0.1602, mIoU 0.8373 ± 0.1818, recall 0.8893 ± 0.1889 and precision 0.9348 ± 0.1488. DoubleU-Net has the highest DSC in that table at 0.8938 ± 0.1362, while its mIoU of 0.8212 ± 0.1659 is below MSRF-Net's. Against DeepLabv3+ with MobileNet, the text gives gains of 0.43% in DSC and 1.37% in mIoU.

## Cross-dataset generalization

Models trained on Kvasir-SEG were tested on CVC-ClinicDB, and the reverse direction was also run. The two datasets come from different institutions and were acquired with different imaging protocols.

Trained on Kvasir-SEG and tested on CVC-ClinicDB, MSRF-Net reaches DSC 0.7921 ± 0.2564, mIoU 0.6498 ± 0.2729, recall 0.9001 ± 0.2980 and precision 0.7000 ± 0.1572. HRNetV2-W48 is the closest in DSC, at 0.7901 ± 0.2280.

Trained on CVC-ClinicDB and tested on Kvasir-SEG, MSRF-Net reaches DSC 0.7575 ± 0.2643, mIoU 0.6337 ± 0.2815, recall 0.7197 ± 0.2775 and precision 0.8414 ± 0.2731. The text calls PraNet second best, with DSC 0.7293 ± 0.3004, but Table VII lists UACANet-L at 0.7312 ± 0.2724, which is higher than PraNet's value. The text gives a 2.82% DSC margin and a 0.75% mIoU margin over PraNet, while PraNet records the highest recall at 0.8007 ± 0.2675.

The authors attribute the transfer to multi-scale fusion that exploits features at different scales and keeps class-representative features. The ablations were run only on Kvasir-SEG, so this explanation is not tested within the ablation experiments.

## What the ablations isolate

The authors report this as a 4.46% drop in DSC. That variant also has far fewer parameters, so the drop reflects removing the sub-network together with the reduction in size.

Keeping only a subset of the sub-network, the red dotted region in Figure 1(b), gives DSC 0.8986 ± 0.1997. Removing the DSDF blocks for the second and third scale inputs gives DSC 0.9013 ± 0.2111, which the authors report as a 2.04% drop. Reducing the DSDF layers from six to three lowers DSC by 2.31%.

Without residual scaling the DSC is 0.9137 ± 0.1772, a drop of 0.80% from the full model. Figure 6(b) plots DSC against the scaling factor w, and the authors use it to justify w = 0.4.

Removing the gated shape stream gives DSC 0.9194 ± 0.1779, a minor drop of 0.23% that still exceeds most SOTA methods according to the text. Placing the MSRF sub-network after the shape stream, with the parameter count kept equal, gives boundaries that the authors judge less precise than the full model's.

The table row labelled Without decoder block gives DSC 0.9067 ± 0.1834, and the text describes that variant as disabling the triple attention mechanism, a 1.50% drop. Removing deep supervision gives DSC 0.8988 ± 0.2060, a 2.29% drop according to the text.

Using L\_comb = L\_BCE alone gives DSC 0.9059 ± 0.1859, and L\_comb = L\_DCS alone gives DSC 0.8861 ± 0.2192. The text puts the combined loss 3.56% above the dice-only setting in DSC.

## Limitations

Generalization was checked only on the Kvasir-SEG and CVC-ClinicDB pair, in both directions. Only four datasets were evaluated.

The authors report failures on oblique samples in the polyp datasets, extremely low contrast images in the 2018 Data Science Bowl, and scattered similar patches in ISIC-2018, as shown in Figure 4.

The tables leave the p-value for the MSRF-Net row blank, because the paired t-test is not computed for the same network. The training budget is a fixed 200 epochs chosen empirically, and training loss starts to converge at epoch 75.

## Paper info

- **Authors**: Abhishek Srivastava, Debesh Jha, Sukalpa Chanda, Umapada Pal, Håvard D. Johansen, Dag Johansen, Michael A. Riegler, Sharib Ali, Pål Halvorsen
- **Venue**: arXiv · Preprint
- **First published**: 2021-5-16
- **Added**: 2026-11-6
- **Updated**: 2022-1-31
- **Version**: v2
- **arXiv**: 2105.07451
- **Category**: eess.IV · cs.CV
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2105.07451v2) · [PDF ↗](https://arxiv.org/pdf/2105.07451v2)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

Methods based on convolutional neural networks have improved the performance of biomedical image segmentation. However, most of these methods cannot efficiently segment objects of variable sizes and train on small and biased datasets, which are common for biomedical use cases. While methods exist that incorporate multi-scale fusion approaches to address the challenges arising with variable sizes, they usually use complex models that are more suitable for general semantic segmentation problems. In this paper, we propose a novel architecture called Multi-Scale Residual Fusion Network (MSRF-Net), which is specially designed for medical image segmentation. The proposed MSRF-Net is able to exchange multi-scale features of varying receptive fields using a Dual-Scale Dense Fusion (DSDF) block. Our DSDF block can exchange information rigorously across two different resolution scales, and our MSRF sub-network uses multiple DSDF blocks in sequence to perform multi-scale fusion. This allows the preservation of resolution, improved information flow and propagation of both high- and low-level features to obtain accurate segmentation maps. The proposed MSRF-Net allows to capture object variabilities and provides improved results on different biomedical datasets. Extensive experiments on MSRF-Net demonstrate that the proposed method outperforms the cutting-edge medical image segmentation methods on four publicly available datasets. We achieve the dice coefficient of 0.9217, 0.9420, and 0.9224, 0.8824 on Kvasir-SEG, CVC-ClinicDB, 2018 Data Science Bowl dataset, and ISIC-2018 skin lesion segmentation challenge dataset respectively. We further conducted generalizability tests and achieved a dice coefficient of 0.7921 and 0.7575 on CVC-ClinicDB and Kvasir-SEG, respectively.

## Quote from the paper

Abhishek Srivastava, Debesh Jha, Sukalpa Chanda, Umapada Pal, Håvard D. Johansen, Dag Johansen, Michael A. Riegler, Sharib Ali, Pål Halvorsen (2021). MSRF-Net: A Multi-Scale Residual Fusion Network for Biomedical Image Segmentation. arXiv:2105.07451v2. https://arxiv.org/abs/2105.07451v2

**BibTeX**

```
@misc{srivastava2021msrf,
  title = {{MSRF-Net: A Multi-Scale Residual Fusion Network for Biomedical Image Segmentation}},
  author = {Abhishek Srivastava and Debesh Jha and Sukalpa Chanda and Umapada Pal and Håvard D. Johansen and Dag Johansen and Michael A. Riegler and Sharib Ali and Pål Halvorsen},
  year = {2021},
  eprint = {2105.07451},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2105.07451v2}
}
```

## Related papers

- [Residual Dense Network for Image Super-Resolution](https://refivu.com/en/papers/01bf3f14-f3f5-49d6-9844-02a897713390-residual-dense-network-for-image-super-resolution.md)
- [NAS-FPN: Learning Scalable Feature Pyramid Architecture for Object Detection](https://refivu.com/en/papers/52a19738-611e-4c4e-b54f-2e9b88114304-nas-fpn-learning-scalable-feature-pyramid-architecture-for.md)
- [Generative Adversarial Network in Medical Imaging: A Review](https://refivu.com/en/papers/52fe40f2-c64e-4c29-a115-6564288d69f5-generative-adversarial-network-in-medical-imaging-a-review.md)
- [Attention Gated Networks: Learning to Leverage Salient Regions in Medical Images](https://refivu.com/en/papers/63b212b7-3fc0-42f4-b6d8-1724e918c784-attention-gated-networks-learning-to-leverage-salient.md)
- [Attention U-Net: Learning Where to Look for the Pancreas](https://refivu.com/en/papers/b480e08e-027d-4c11-b1c5-0d3a4a63ead9-attention-u-net-learning-where-to-look-for.md)
- [A Survey on Deep Learning in Medical Image Analysis](https://refivu.com/en/papers/4d173b56-9ea6-4644-98f2-af1794e63965-a-survey-on-deep-learning-in-medical-image.md)

## Other paper commentary

- [Advanced Steel Microstructural Classification by Deep Learning Methods](https://refivu.com/en/papers/40557ea6-2c03-4d59-8884-5b126f8414d1-advanced-steel-microstructural-classification-by-deep.md)
- [Rethinking RGB-D Salient Object Detection: Models, Data Sets, and Large-Scale Benchmarks](https://refivu.com/en/papers/5abc609e-361c-4e17-87a0-9ee4d3898f77-rethinking-rgb-d-salient-object-detection-models-data.md)
- [Video Salient Object Detection via Fully Convolutional Networks](https://refivu.com/en/papers/bc9ebd0c-9bab-4b48-a6aa-5dc69dbeadea-video-salient-object-detection-via-fully-convolutional.md)
- [Analyzing and Improving the Image Quality of StyleGAN](https://refivu.com/en/papers/e2a72d06-1704-43a3-b07f-7a9c61ec260b-analyzing-and-improving-the-image-quality-of-stylegan.md)
- [Focal Loss for Dense Object Detection](https://refivu.com/en/papers/e443afaf-8dd8-45c6-8192-0357f4961dd2-focal-loss-for-dense-object-detection.md)
- [Searching for Activation Functions](https://refivu.com/en/papers/c0d7cda2-c8f4-4569-a4e6-5b9d53ac1dc1-searching-for-activation-functions.md)
- [High-Dimensional Continuous Control Using Generalized Advantage Estimation](https://refivu.com/en/papers/95183c94-f386-4a6d-8fda-f7e55021273b-high-dimensional-continuous-control-using-generalized.md)
- [Generative Modeling by Estimating Gradients of the Data Distribution](https://refivu.com/en/papers/f3ef856d-6161-4eaa-b2c9-6a0c3f1ff432-generative-modeling-by-estimating-gradients-of-the-data.md)

## Terms in this paper

- [mIoU](https://refivu.com/en/terms/901dcc5384c2-miou)
- [deep supervision](https://refivu.com/en/terms/5fe4f2985157-deep-supervision)
- [DSC](https://refivu.com/en/terms/c69d8ddad221-dsc)
- [DeepLabv3+](https://refivu.com/en/terms/26afd1971cb0-deeplabv3)
- [medical image segmentation](https://refivu.com/en/terms/96ad294cdaad-medical-image-segmentation)
- [CVC-ClinicDB](https://refivu.com/en/terms/09c033c0d734-cvc-clinicdb)
- [residual scaling](https://refivu.com/en/terms/a751c3b56eaa-residual-scaling)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/6a391bec-28c7-48c8-b3ae-92ae5788cd01-msrf-net-a-multi-scale-residual-fusion-network)
