Abstract
SkeletonNet is a specialized deep learning architecture designed to extract the medial axis, or "skeleton," of an object from its binary mask. By augmenting a U-Net backbone with Coordinate Convolution (CoordConv) for spatial awareness and Holistically-nested Edge Detection (HED) side layers for multi-scale supervision, the model effectively addresses the inherent difficulties of skeletonization, such as extreme class imbalance and the need for global structural connectivity. SkeletonNet achieved a competitive F1-score of 0.7711 in the CVPR 2019 SkelNetOn challenge, securing 3rd place.
Introduction
In computer vision, a skeleton represents a shape's topological properties by identifying pixels equidistant from its boundaries. This representation is vital for applications ranging from fingerprint recognition and object tracking to biological morphology analysis. However, traditional skeletonization algorithms often struggle with boundary noise, leading to unwanted branches or fragmented links. The SkelNetOn challenge tasks researchers with extracting clean skeletons from binary masks across 89 diverse object categories, a problem characterized by sparse targets and the requirement for high-level geometric understanding to maintain connectivity.
Methodology
The authors frame skeletonization as a specialized edge detection task. SkeletonNet modifies the standard U-Net architecture with several key innovations to improve localization and connectivity.
Architectural Components
- Coordinate Convolution (CoordConv): Standard convolutions are translation-invariant and lack absolute spatial awareness. By concatenating two additional channels representing $(i, j)$ coordinates to the input, the network gains the spatial context necessary to identify the central axis of a shape. This addition alone improved the F1-score by over 3%.
- HED-inspired Side Layers: The decoder path incorporates side layers inspired by Holistically-nested Edge Detection. These layers generate four intermediate predictions at different scales, which are subsequently fused. This multi-scale supervision allows the network to capture both fine details and global structure simultaneously, providing a performance boost of more than 10% over a vanilla decoder.
- CS-SE Blocks: Channel Squeeze and Spatial Excitation (CS-SE) blocks are integrated after up-sampling. These blocks help the network "re-weigh" feature maps, focusing on meaningful spatial features and suppressing background noise.
- Dilation Layer: To mitigate the "broken link" problem common in sparse prediction tasks, the fused output passes through a dilation convolutional layer to help bridge small gaps in the skeleton.
Hybrid Loss Function
To handle the extreme sparsity of skeleton pixels relative to the background, the model employs a combination of Binary Cross-Entropy (BCE) and Dice Loss. While BCE handles pixel-wise accuracy, Dice Loss focuses on the overlap between predicted and ground-truth skeletons, which is significantly more effective for imbalanced data. Combining these losses with CoordConv pushed the F1-score from 0.65 to 0.76 during development.
Experimental Results
The model was trained and evaluated on the SkelNetOn @ CVPR 2019 dataset, which includes 1,219 training images augmented to 1,296 via rotation.
Quantitative Performance
The final SkeletonNet model achieved the following results:
- Validation (Original): 0.7480 (beating the challenge baseline of 0.6244).
- Test Data: 0.7711
Qualitative Analysis
Qualitatively, SkeletonNet demonstrates a strong ability to produce clean, thin skeletons even for complex, branching shapes, effectively connecting broken links that often plague standard algorithms.
Conclusion
SkeletonNet effectively combines spatial awareness and multi-scale supervision to solve the challenging task of skeletonization from binary masks. The integration of CoordConv and HED side layers proved critical for achieving high F1-scores. Future work aims to extend this architecture to extract skeletons directly from RGB images, which would require the model to perform segmentation and skeletonization simultaneously.
Summary updated