Fiberpose: state-of-the-art fiber morphometry and instance segmentation with a distance-transform neural network

Viktor A. Balashov, Daniil S. AntonenkoarXiv 2026 · arXiv

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.

Figure 1: Overview of the Fiberpose pipeline for fiber network representation and morphometry. (a) Raw microscopy image. (b, c) Geometric representation of the fiber net- work: (b) distance-transform (DT) field predicted by a neural network from the raw image, in which grayscale intensity represents the distance to the nearest fiber boundary; (c) candidate ridges (red) and measurement centerlines (green) traced on the DT field, with instance borders shown in blue. (d–f) Analysis steps: (d) fiber instance segmentation, with color denoting in- stance labels; (e) local radii sampled from the DT values along the measurement centerlines; (f) local orientations estimated from DT gradients near the measurement centerlines, color-coded according to the color wheel. (g) Diameter and orientation distributions within the sample. (h) Schematic summary of the Fiberpose deep learning framework.

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.
Comparison of diameter measurement errors across different tools, showing Fiberpose's superior accuracy and consistency.
  • 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

Abstract

Analysis of fibrous structures in SEM images is a routine task in biomedical engineering and materials science. However, most available methods for fiber quantification still rely on classical image binarization followed by simple post-processing. These approaches often produce unreliable results in images with weak boundaries, heterogeneous contrast, and densely packed fibers. Here, we introduce Fiberpose, a framework that reformulates fiber analysis as direct regression of a smooth distance-transform (DT) field, together with a novel set of geometry-based algorithms specifically adapted to this representation. The predicted field directly encodes fiber geometry, while the accompanying algorithms enable instance reconstruction and measurement of diameter and orientation within a unified workflow. The framework is implemented as a standalone Python desktop application and a web tool https://fiberpose.org. On an independent dataset of fibrous SEM images, Fiberpose achieved state-of-the-art instance-segmentation accuracy in comparison with SAM2 and Cellpose-SAM, and more accurate diameter measurements than DiameterJ, Fibar and GIFT. The method remains effective in dense and weakly contrasted regions and shows qualitative generalization across microscopy modalities not represented in the training data. Fiberpose therefore provides an interpretable geometric representation and an automated pipeline for reproducible quantitative characterization of fibrous materials.
BibTeX
@misc{balashov2026fiberpose,
  author = {Viktor A. Balashov and Daniil S. Antonenko},
  title = {{Fiberpose: state-of-the-art fiber morphometry and instance segmentation with a distance-transform neural network}},
  year = {2026},
  eprint = {2611.22953},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.22953},
}
Figure