TL;DR
Fiberpose is a new deep-learning framework that ditches brittle binary masks in favor of predicting a continuous distance-transform (DT) field for fiber analysis. By reformulating fiber geometry as a smooth surface, it achieves state-of-the-art instance segmentation and highly accurate diameter measurements in dense, overlapping networks where traditional tools fail.
What Problem Does This Paper Address?
Quantifying fibrous structures—like collagen networks in biology or electrospun scaffolds in materials science—is a fundamental task. However, most researchers still rely on "classical" image processing: binarizing an image (turning it into black and white) and then measuring the resulting blobs.
This approach hits a wall in real-world conditions. When fibers are densely packed, overlapping, or imaged with low contrast, binarization merges individual fibers into indistinguishable clumps. Furthermore, even modern deep-learning models like Mask R-CNN often struggle with the extreme aspect ratios and complex intersections found in "haystack-like" fiber networks. The authors identify that the bottleneck isn't just the quality of the segmentation, but the binary representation itself.
Methods
The core innovation of Fiberpose is predicting a Distance Transform (DT) field directly from raw microscopy images. In this field, every pixel's intensity represents its distance to the nearest fiber boundary.
Key technical components include:
- FPUNet: A compact residual U-Net architecture designed to regress the DT field. It uses Eikonal regularization during training, which forces the network to produce a geometrically consistent field with a unit gradient.
- Ridge Detection: Fiber centerlines are extracted as the "ridges" (local maxima) of the DT field using Steger’s ridge detector.
- Two-Offset Sampling: Neural networks often "round off" the sharp peaks of predicted ridges, leading to diameter underestimation. Fiberpose corrects this by sampling the DT field at a fixed offset on either side of the ridge and extrapolating to find the true radius.
- Unified Workflow: The same DT field is used for three distinct tasks: instance segmentation (via watershed or ridge expansion), diameter measurement, and orientation mapping (derived from the field's gradients).
Datasets
The authors curated a dataset of 275 distinct SEM images of fibrous structures from published literature.
- Training: 60 real SEM images with sparse instance annotations and 50 synthetically generated SEM-like images.
- Evaluation: An independent set of 10 SEM images for segmentation benchmarking and 20 SEM images for diameter accuracy testing. These included both high-contrast and challenging, low-quality images.
Key Insights and Ideas
- Geometry over Probabilities: Instead of asking a network "is this pixel a fiber?", Fiberpose asks "how far is this pixel from the edge?". This continuous representation is much more robust to noise and overlap.
- Decoupling Measurement from Segmentation: In traditional tools, if your segmentation fails, your measurement is wrong. In Fiberpose, diameters are measured along the DT ridges. Even if two fibers are merged in the final segmentation mask, their individual ridges often remain distinct, allowing for accurate local measurements.
- Efficiency Matters: The model is remarkably compact. With only 0.93M parameters, it is roughly 300 times smaller than foundation models like SAM2, yet it performs significantly better on the specific geometry of fibers.
Key Results
Fiberpose was benchmarked against both general-purpose segmenters (SAM2, Cellpose-SAM) and specialized fiber tools (DiameterJ, Fibar, GIFT).
- Instance Segmentation: On highly elongated fibers (aspect ratio ≥ 4), Fiberpose achieved a recall of 0.97, vastly outperforming Cellpose-SAM (0.70).
- Diameter Accuracy: Fiberpose achieved a median relative absolute error of ~4%. In comparison, traditional tools like DiameterJ and GIFT showed errors ranging from 14% to a staggering 82% on the same dataset.
- Correction Efficacy: The two-offset sampling method reduced diameter measurement bias by nearly 30% compared to simple ridge-top measurements.
- Generalization: Despite being trained on SEM images, the model generalized qualitatively to TEM (collagen fibrils) and optical microscopy (wood pulp, hair) simply by inverting the image intensity.
Limitations and Future Work
- Ultra-thin Fibers: The method struggles with fibers only a few pixels wide, as there isn't enough spatial information to form a reliable DT ridge.
- Network Topology: Fiberpose currently identifies "fragments" rather than reconstructing a fully connected graph of the fiber network. The authors suggest that future work could integrate graph-based approaches to resolve intersections.
- Dimensionality: The current implementation is limited to 2D images, though the underlying DT math could theoretically be extended to 3D volumetric data.
The software is available as a standalone Python application and a web tool at fiberpose.org.
Summary updated