# H-DenseUNet: Hybrid Densely Connected UNet for Liver and Tumor Segmentation from CT Volumes

H-DenseUNet combines 2D and 3D networks to segment livers and tumors in CT

Li, Xiaomeng, Chen, Hao, Qi, Xiaojuan, Dou, Qi, Fu, Chi-Wing, Heng, Pheng Ann · arXiv · 2017-9-21

- **Problem** 2D networks miss context along the z-axis, and 3D networks use too much GPU memory to go deep. Liver tumors are hard to segment because their edges are faint and their sizes and shapes vary widely.
- **Method** H-DenseUNet pairs a 2D DenseUNet with a 3D DenseUNet. The 3D network takes the 2D probabilities as guidance, and a hybrid feature fusion layer optimizes both together.
- **Results** On LiTS, the single-model H-DenseUNet scored 72.2 lesion Dice per case, compared to 70.2 for IeHealth.

## Why z-axis context is hard to use

Liver tumor segmentation is hard for several reasons, and the authors illustrate them with contrast-enhanced CT examples. The liver has low intensity contrast with neighboring organs, so its edge is hard to find. Tumors differ in size, shape, location and number within one patient, and some have no clear boundary. Voxel spacing along the z-axis also varies from 0.45 mm to 6.0 mm, which makes the volumes anisotropic.

Radiologists read a tumor by scrolling through neighboring slices, but a 2D network sees one slice or a few stacked slices at a time. Stacking the 2D outputs into a volume models the z-direction only weakly. A 3D network sees the z-axis directly, but its convolutions use much more GPU memory, which caps depth and field of view. Few 3D pretrained models exist, so the transfer learning that helps 2D networks is hard to use in 3D.

## A 2D network guides a 3D network

The key idea is to let a strong 2D network do most of the feature work and let a 3D network refine the result with z-axis context. The 2D part is a DenseUNet, which combines DenseNet's dense connectivity with long-range UNet links. The authors expected dense connectivity to ease training a very deep network, because each layer connects directly to all later layers.

They add UNet links because pooling and upsampling in a segmentation network can lose high-resolution detail.

The 3D part takes the 2D probability output as auto-context guidance. The expectation is that a 3D network starting from good probabilities has less to learn, so it trains more efficiently. A hybrid feature fusion (HFF) layer then optimizes the intra-slice and inter-slice features together.

## How the network computes its output

A ResNet first produces a coarse liver region of interest, which limits the input to the second stage. Training volumes are 224×224×12, and the transformation process groups every three adjacent slices into one 2D sample.

The 2D DenseUNet-167 has 167 layers, with dense blocks, transition layers and upsampling layers. Its growth rate k is 48, and transition layers use a compression factor of 0.5 to stop feature maps from growing. Each upsampling step adds low-level features through the UNet connection and then applies a 3×3 convolution. The network outputs 64-channel features at upsampling layer 5, and per-pixel probabilities for three classes.

The 3D DenseUNet-65 receives the original volume concatenated with these probabilities. It uses growth rate 32 and fewer micro-blocks per dense block than the 2D network, because 3D convolutions use more memory. Its features are added to the 2D feature volume, giving \\( Z = X\_{3d} + X\_{2d'} \\), and the HFF layer produces the final probabilities.

## Training stages, loss and inference

The 2D encoder starts from DenseNet weights trained for object classification, while the decoder starts random and the UNet links join after a warm-up. The loss is a class-weighted cross-entropy, \\( L(y,\\hat y) = -\\frac{1}{N}\\sum\_{i=1}^{N}\\sum\_{c=1}^{3} w\_{ci}\\, y\_{ci}\\log \\hat y\_{ic} \\).

The 3D counterpart is reported to take about 9 hours to converge, versus 63 hours when trained on the original data alone. A later passage gives around 60 hours for the 3D DenseUNet, so the two figures differ. Overall the 2D network took about 21 hours, the end-to-end fine-tuning about 9 hours, and the total about 30 hours. Training used stochastic gradient descent with momentum, an initial learning rate of 0.01, and random mirroring with scaling from 0.8 to 1.2.

At test time the coarse liver region comes first, then H-DenseUNet gives tumor probabilities inside it, which are thresholded. Largest connected component labeling fills holes in the liver mask, and lesions outside the final liver are removed. Intensities are clipped to \[-200, 250\] HU, and the coarse stage uses 0.69×0.69×1.0 mm3 resampling while the lesion stage keeps the original resolution.

## LiTS ablations and leaderboard results

The ablations run on the LiTS test set, because the challenge provided no separate validation set. Lesion Dice per case rose from 67.7 for the 2D DenseUNet without pre-training to 70.2 with it. The training-loss curves show faster convergence and a lower loss with pre-training.

Without pre-training, the 3D DenseUNet scored 59.4 lesion Dice per case, compared to 67.7 for the 2D DenseUNet. The authors link this gap to the 3D kernel's memory cost, which limits network depth and width. The 3D network also took around 60 hours to converge, nearly three times the 2D networks' training time. Both networks lack pre-training in this comparison, so it does not test a pre-trained 3D network.

Adding the 3D context raises lesion Dice per case from 70.2 to 72.2, and liver Dice per case from 95.8 to 96.1. The authors attribute the gain to z-axis context helping with lesions that have blurred boundaries. On the LiTS leaderboard, the single-model H-DenseUNet scored 72.2 lesion Dice per case, compared to 70.2 for IeHealth and 65.7 for deepX.

Its tumor burden RMSE of 0.015 is the lowest listed, while deepX scored 96.3 liver Dice per case against 96.1.

## Cross-validation and LiTS-trained transfer on 3DIRCADb

On 3DIRCADb, the authors ran cross-validation with the setup of Christ et al. Tumor DICE was 0.65 ± 0.02, compared to 0.56 ± 0.26 for Christ et al. Liver DICE was 0.947 ± 0.01, compared to 0.943 for Christ et al. The authors report DICE gains of 9.0% for tumors and 0.4% for liver over Christ et al., and tumor gains of 14.0% and 5.0% over UNet and ResNet.

A model trained only on LiTS was tested directly on 3DIRCADb, without any 3DIRCADb training. The authors report gains of 10.7% for tumors and 7.1% for liver over the reported prior results. Those prior methods used extra training data or semi-automatic steps, so these gains are not a controlled comparison.

## Where the gain appears by tumor size

The authors split 40 validation CT volumes into large-tumor and small-tumor groups by tumor voxel count. Against the 2D DenseUNet baseline with pre-training, total Dice (%) rose from 43.56 to 45.04. The large-tumor group rose from 58.24 to 60.59, while the small-tumor group rose from 41.08 to 42.18.

The authors argue that most of the gain comes from large tumors, whose blurred boundaries are easier to resolve across adjacent slices. Small tumors occur in fewer slices, so the z-axis context adds less for them.

## Limitations

Small liver tumors remain the weak point, and the authors list multi-scale representation and deep supervision as next steps. GPU memory limits how deep H-DenseUNet can go, and the authors name model-parallel training as one route around it.

The ablations use the test set, and the reported final result is one of ten entries rather than an average. Other methods on 3DIRCADb used different training data or semi-automatic steps, so their scores can't be ranked directly against H-DenseUNet.

## Paper info

- **Authors**: Li, Xiaomeng, Chen, Hao, Qi, Xiaojuan, Dou, Qi, Fu, Chi-Wing, Heng, Pheng Ann
- **Venue**: arXiv · Preprint
- **First published**: 2017-9-21
- **Added**: 2026-11-12
- **Updated**: 2018-7-3
- **Version**: v3
- **arXiv**: 1709.07330
- **Category**: cs.CV
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

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

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.

## Quote from the paper

Li, Xiaomeng, Chen, Hao, Qi, Xiaojuan, Dou, Qi, Fu, Chi-Wing, Heng, Pheng Ann (2017). H-DenseUNet: Hybrid Densely Connected UNet for Liver and Tumor Segmentation from CT Volumes. arXiv:1709.07330v3. https://arxiv.org/abs/1709.07330v3

**BibTeX**

```
@misc{xiaomeng2017denseunet,
  title = {{H-DenseUNet: Hybrid Densely Connected UNet for Liver and Tumor Segmentation from CT Volumes}},
  author = {Li, Xiaomeng and Chen, Hao and Qi, Xiaojuan and Dou, Qi and Fu, Chi-Wing and Heng, Pheng Ann},
  year = {2017},
  eprint = {1709.07330},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1709.07330v3}
}
```

## Other paper commentary

- [Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNet](https://refivu.com/en/papers/55385708-c65a-43d7-b2e0-c4751a8d2757-tokens-to-token-vit-training-vision-transformers-from.md)
- [Swin UNETR: Swin Transformers for Semantic Segmentation of Brain Tumors in MRI Images](https://refivu.com/en/papers/44c6c3a9-434b-4cb2-aed0-e8b3167653fc-swin-unetr-swin-transformers-for-semantic-segmentation-of.md)
- [Uformer: A General U-Shaped Transformer for Image Restoration](https://refivu.com/en/papers/f59714df-d19d-41d7-8c41-8c04e0636925-uformer-a-general-u-shaped-transformer-for-image.md)
- [Bridging the Gap Between Anchor-based and Anchor-free Detection via Adaptive Training Sample Selection](https://refivu.com/en/papers/a286d37a-f6cf-498c-9170-fa2a9627c54e-bridging-the-gap-between-anchor-based-and-anchor.md)
- [YOLACT: Real-time Instance Segmentation](https://refivu.com/en/papers/5c58130c-e869-497b-8b85-e21d46848fe1-yolact-real-time-instance-segmentation.md)
- [SiamRPN++: Evolution of Siamese Visual Tracking with Very Deep Networks](https://refivu.com/en/papers/bd27ac05-aab2-4448-8e23-79659dfe759b-siamrpn-evolution-of-siamese-visual-tracking-with-very.md)
- [Recurrent Neural Networks for Multivariate Time Series with Missing Values](https://refivu.com/en/papers/04779a68-ae30-4f73-bc85-9bae7235eaaf-recurrent-neural-networks-for-multivariate-time-series-with.md)
- [Learning deep representations by mutual information estimation and maximization](https://refivu.com/en/papers/0ecc4e49-5a6d-49c7-a22d-0464db0ce259-learning-deep-representations-by-mutual-information.md)
- [Tabular Data: Deep Learning is Not All You Need](https://refivu.com/en/papers/0cc42765-172d-4179-95b3-7ecf786ac425-tabular-data-deep-learning-is-not-all-you.md)
- [Benchmarking Neural Network Robustness to Common Corruptions and Perturbations](https://refivu.com/en/papers/68d5da5e-9028-4e0b-9bd6-89ee4c213027-benchmarking-neural-network-robustness-to-common-corruptions.md)

## Terms in this paper

- [transfer learning](https://refivu.com/en/terms/9c71d6928a00-transfer-learning)
- [RMSE](https://refivu.com/en/terms/ad2579cf164a-rmse)
- [DenseNet](https://refivu.com/en/terms/43ab92ad19d5-densenet)
- [DICE](https://refivu.com/en/terms/806602d5f351-dice)
- [growth rate](https://refivu.com/en/terms/673bd5308bb7-growth-rate)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/baba5f05-45fc-4d5b-84cb-c78d65c377a5-h-denseunet-hybrid-densely-connected-unet-for-liver)
