Related Experiment Video
Updated: Sep 10, 2026

Automatic Identification of Dendritic Branches and their Orientation
Published on: September 17, 2021
BasNet: Attention U-Net-Based Automated Axon Segmentation in Bielschowsky Silver-Stained Histology
Lukas Schönenberger1,2, Laurin Egli3,4, Dimitrios Gkotsoulias3,4,5
1Research Center for Clinical Neuroimmunology and Neuroscience Basel (RC2NB), University of Basel, Basel, Switzerland. lu.schoenenberger@unibas.ch.
Abstract:
Reliable automatic quantification of axon density in histologic sections is important for both research and clinical neuropathology applications - however, it remains a challenge for silver-impregnation stains, such as Bielschowsky. Classical color-deconvolution approaches perform poorly on silver stains, and manual annotation of densely packed axons is time-consuming and subject to inter-rater variability. We developed an automated axon segmentation pipeline in Bielschowsky silver-stained histological brain sections based on an attention U-Net architecture with attention-gated skip connections, trained using Focal Tversky Loss to handle class imbalance and thin structure recovery. Ground truth was manually annotated on 33 image tiles (covering over 25 million pixels) derived from 26 whole-slide images from varying brain regions of four multiple sclerosis patients. Slides were prepared by different laboratory technicians at different time points to capture realistic staining variability. Model performance was evaluated on a held-out test set of unseen tiles. On the test set (eight held-out tiles) the model achieved a mean pixel-wise F1/Dice of 0.717 and an intersection over union (IoU) of 0.584. A dedicated inter-rater experiment on two representative tiles yielded rater-to-rater F1 scores of 0.637 and 0.671, while model-to-rater agreement (F1: 0.681-0.736) met or exceeded that human ceiling. Generated whole-slide density and orientation visualizations accurately reflected regional axon distributions and provided quantitative readouts suitable for downstream analysis. Our attention U-Net provides an open-source solution for axon segmentation from Bielschowsky-stained sections, reducing manual effort and enabling reproducible, slide-level quantitative metrics. This tool can facilitate studies of axonal pathology across research and clinical settings.
