Module 09: Neuron Morphology and Skeletonization

Extract and interpret morphology and skeleton features to support connectomics analysis and cell-type reasoning.

Stylized vector art: a filled neuron beside its skeletonized centerline twin.

Lesson Flow

Learn

Goals and Concepts

Start with the capability target and concept set for this module.

Practice

Studio Activity

Apply the ideas in a guided activity tied to realistic outputs.

Check

Assessment Rubric

Use the rubric to verify competency and identify improvement targets.

Interactive Lab

Practice in short loops: checkpoint quiz, microtask decision, and competency progress tracking.

NeuroAI Analysis Microtask

Before reporting a motif result, include:

Progress Tracker

State is saved locally in your browser for this module.

0% complete

Capability target

Produce a skeleton-based morphology summary with at least three descriptors and one explicit limitation.

Concept set

1) What is skeletonization and why do we need it?

A segmented neuron occupies millions of voxels in the EM volume. To analyze its morphology efficiently, we reduce it to a skeleton: a tree graph where nodes represent points along the neurite centerline and edges represent the path between them. Skeletons compress a neuron’s 3D structure from gigabytes to kilobytes while preserving topology (branching pattern, path lengths, connectivity) — at the cost of surface geometry and spine shape, which are discarded.

Skeletonization algorithms (e.g., TEASAR — Sato et al. 2000) work by finding the medial axis of the volumetric segment. The result is a set of nodes with (x, y, z, radius) attributes connected in a parent-child tree rooted at the soma. The standard file format is SWC (Stockley-Wheal-Cole), where each line records: node ID, compartment type, x, y, z, radius, parent ID.

2) Core morphological descriptors

From a skeleton, you can compute a rich set of descriptors that characterize neuron morphology:

Descriptor Definition Biological meaning
Total cable length Sum of all edge lengths (μm) Extent of the neuron’s arbor; correlates with total input capacity
Number of branch points Nodes with >1 child Arbor complexity; more branches = more distributed connectivity
Branch order Distance (in branches) from soma Proximal vs distal structure
Strahler number Hierarchical ordering of branches (terminal = 1, increases at confluences of equal order) Tree complexity metric from hydrology, useful for comparing neuron types
Sholl analysis Number of intersections with concentric spheres centered on soma Spatial distribution of arbor; peaks indicate regions of maximum branching
Tortuosity Path length / Euclidean distance between endpoints How “winding” a process is; axons tend to be more tortuous than dendrites
Spine density Spines per μm of dendritic length Input density; excitatory neurons have 0.5-3 spines/μm, inhibitory neurons ~0
Arbor volume Convex hull of all skeleton nodes Spatial territory covered by the neuron
Bifurcation angles Angle between daughter branches at each branch point Distinguishes cell types (pyramidal cells have characteristic apical bifurcation)

3) Morphology for cell-type classification

Neuronal cell types have characteristic morphological signatures. A layer 5 thick-tufted pyramidal cell has a distinctive apical dendrite reaching L1 with a prominent terminal tuft, thick axon, and large soma. A parvalbumin+ basket cell has smooth dendrites and a dense local axonal arbor. By computing morphological descriptors and comparing to reference databases, you can classify neurons from their shape alone.

Key tools: NeuroM (Blue Brain Project) for morphology analysis in Python. NBLAST (Costa et al. 2016) for morphological similarity search — compare a neuron’s shape to a library of typed neurons and find the best match.

4) Reconstruction quality affects morphological measurements

Critical caveat: Morphological descriptors are only as reliable as the underlying reconstruction. Specific failure modes:

Always report: reconstruction completeness (estimated fraction of arbor within volume), known errors, and how these might affect the measured descriptors.

Misconception guardrails

Each of these is a belief a learner plausibly holds on arriving. Name it, then check your own work against it.

Worked example: the interneuron that was a truncated pyramidal cell

The numbers below are illustrative — they show the shape of the reasoning, not measurements from a specific dataset.

You are classifying neuron 7 from a set of 10 skeletons in L2/3 of mouse visual cortex, pyramidal versus interneuron.

Step 1: compute the descriptors. Cable length 1,850 µm, 41 branch points, spine density 0.11 spines/µm, maximum Strahler order 4, small arbor volume. Reference ranges: L2/3 pyramidal cells run several millimeters of cable at 0.5-3 spines/µm; smooth interneurons sit near 0 spines/µm. The value 0.11 fits neither range but is nearer the interneuron side. Naive call: interneuron.

Step 2: distrust a value that falls between bimodal reference ranges. Spine density is bimodal across these two classes for a biological reason. An intermediate value more often signals a measurement problem than intermediate biology, so the next move is a reconstruction audit, not a classification.

Step 3: audit the reconstruction before believing the number. Three checks. Completeness: the soma sits 30 µm from a volume face, and the thickest dendrite exits the volume 60 µm from the soma — consistent with a truncated apical trunk; estimated arbor containment is roughly 40%. Split errors: the edit log shows two unrepaired split candidates on distal branches. Skeleton artifacts: seven terminal “branches” shorter than 2 µm hug the segmentation boundary — skeletonization noise, not biology. Pruning them drops the branch count from 41 to 34.

Step 4: recompute what can be salvaged. A per-length ratio like spine density is robust to truncation only if computed on compartments actually contained in the volume. Restricted to the three fully contained basal dendrites, spine density is 1.4 spines/µm — squarely pyramidal. Total cable length and arbor volume cannot be reported as properties of the neuron at 40% containment; report “within-volume cable: 1,850 µm (lower bound)” instead.

Step 5: the corrected call and its evidence. Putative pyramidal cell: spine density 1.4/µm on contained compartments, a truncated thick trunk oriented toward the pia, and asymmetric output synapses onto spines in the provided synapse table. The synapse-based label agrees. The original mismatch was manufactured by averaging spines over the whole skeleton, including the spine-poor truncated trunk and seven spurious boundary branches.

What gets reported. Cell 7: putative pyramidal; containment ~40%; descriptors partitioned into robust (spine density on contained dendrites, bifurcation angles) and unreliable (total cable, branch count, Sholl profile, arbor volume). The limitation sentence names the truncation specifically — not a generic “reconstruction may contain errors.”

Core workflow

  1. Build skeleton from volumetric segmentation using TEASAR or equivalent algorithm.
  2. Quality-check the skeleton: prune spurious branches, verify branch points, check for disconnected fragments.
  3. Compute descriptors: cable length, branch points, Strahler number, Sholl profile, spine density.
  4. Compare against reference patterns: does this neuron match the expected morphology for its putative cell type?
  5. Report interpretation confidence: which descriptors are robust, which are affected by reconstruction quality?

60-minute tutorial run-of-show

Pre-class preparation (10 min async)

Minute-by-minute plan

  1. **00:00-10:00 Morphology overview**
    • “Why do we care about neuron shape?” — Shape constrains function: a neuron’s dendritic arbor determines what inputs it can receive; its axonal arbor determines where it can send output.
    • Show 3 neuron types (pyramidal, basket, Martinotti) and their characteristic morphologies.
    • “Today you’ll learn to quantify these shapes from EM data.”
  2. **10:00-24:00 Skeleton extraction demo**
    • Live demo: take a segmented neuron, run skeletonization, visualize result in Neuroglancer.
    • Walk through SWC format: “Each line is a node. Parent ID tells you the tree structure.”
    • Common pitfall: show a skeleton with spurious branches from noisy segmentation. Demonstrate pruning.
  3. **24:00-38:00 Descriptor calculation**
    • Hands-on: learners compute 5 descriptors for one neuron using NeuroM or provided scripts.
    • Compare results across the group: did everyone get the same numbers? Discuss sources of variation.
    • Introduce Sholl analysis with live visualization.
  4. **38:00-50:00 Interpretation and caveats**
    • “Your neuron has total cable length of 2,100 μm and 47 branch points. Is that a lot?” — Compare to published values for the putative cell type.
    • Discussion: which descriptors are robust to reconstruction errors? (Cable length is sensitive to splits; branch count is sensitive to both splits and spurious branches; spine density is robust if the segmentation boundary is accurate.)
    • “What if 30% of the arbor is outside the volume? How does that change your interpretation?”
  5. **50:00-60:00 Competency check**
    • Each learner submits their morphology descriptor table with:
      • At least 3 descriptors with values
      • Putative cell-type classification based on morphology
      • One explicit limitation of the measurement
    • Exit ticket: “Name one morphology feature that could be confounded by reconstruction quality.”

Studio activity: comparative morphometry (60-75 minutes)

Scenario: You have skeletons for 10 neurons in L2/3 of mouse visual cortex. Your task is to classify them as pyramidal vs interneuron based on morphology alone, then validate against synapse-based classification (excitatory vs inhibitory output synapses).

Task sequence:

  1. Compute morphological descriptors for all 10 neurons (cable length, branch points, spine density, Strahler number, arbor volume).
  2. Create a summary table and scatter plot (e.g., spine density vs cable length).
  3. Classify each neuron as pyramidal or interneuron based on morphological criteria.
  4. Compare your morphological classification to the synapse-based classification (provided). Do they agree?
  5. For any mismatches, investigate: was the morphological measurement affected by reconstruction quality?

Expected outputs:

Assessment rubric

Common errors and how to recover

What this module does not cover

Content library references

Teaching resources

References

Quick practice prompt

Explain one morphology feature that could be confounded by reconstruction quality.

Teaching Materials

Activity Worksheet

Learner worksheet aligned to the studio activity and rubric.

Open worksheet

Slide Source

Marp source file for editing and rendering.

course/decks/marp/modules/module09.marp.md

Related Content