Introduction
Skeletonization is a fundamental computer vision task that involves reducing a binary shape to its medial axis—a thin, 1-pixel wide representation that preserves the object's topology and geometric structure. While traditional thinning algorithms are available, they often struggle with boundary noise and require manual parameter tuning. Deep learning approaches offer a robust alternative, but they face significant challenges in maintaining the strict 1-pixel width and topological continuity required for downstream applications like shape matching or medical imaging.
The SDRNet Architecture
To address these challenges, the Subpixel Dense Refinement Network (SDRNet) introduces a novel architecture optimized for high-precision skeleton extraction. Unlike standard single-pass U-Net models, SDRNet utilizes three key innovations:
- Three-Stage Stacked Design: The network processes images through three successive encoder-decoder stages. Instead of passing only the final binary mask between stages, SDRNet passes the penultimate feature maps. This allows subsequent stages to refine the rich geometric context captured earlier in the pipeline.
- Subpixel Convolutions (Pixel Shuffle): To avoid the information loss common in standard upsampling methods like bilinear interpolation, SDRNet employs subpixel convolutions. This technique rearranges channel-wise information into spatial dimensions, enabling "lossless" upsampling critical for maintaining 1-pixel precision.
- Dense Interconnections: Decoders across different stages are densely connected. This architectural choice ensures that spatial knowledge from early stages is preserved and utilized throughout the refinement process, improving the overall flow of information.
The model is trained using a hybrid loss function combining Binary Cross-Entropy (BCE) and Dice Loss to mitigate the extreme class imbalance inherent in skeletonization, where the skeleton typically occupies less than 1% of the image pixels.
Experimental Results
SDRNet was evaluated on the Pixel SkelNetOn Challenge dataset, consisting of 1,725 binary shape images. To enhance model robustness, the training set was augmented using elastic transforms, rotations, and grid distortions.
The proposed architecture achieved a state-of-the-art F1-score of 0.7708, significantly outperforming previous benchmarks:
- SDRNet: 0.7708
- Previous SOTA (Panichev et al.): 0.7500
- pix2pix Baseline: 0.6244
Ablation studies confirmed the efficacy of the design choices. A baseline U-Net achieved an F1-score of 0.6987. The addition of subpixel layers improved this to 0.7130, while the full stacked and densely connected architecture reached the final 0.7708 mark.
Conclusion and Future Work
SDRNet demonstrates that treating skeletonization as an iterative refinement process, supported by subpixel precision and dense feature sharing, yields superior results. While the current model is memory-intensive—requiring careful batch size management on high-end GPUs—it sets a new standard for accuracy in the Pixel SkelNetOn challenge. Future research will focus on optimizing inference speed and testing the network's generalization on noisy, real-world segmentation masks.
Summary updated