A tool for analyzing electrode tracks from slice histology

Philip Shamash, Matteo Carandini, Kenneth D. Harris, Nicholas A. SteinmetzbioRxiv 2018 · DOI

TL;DR

Researchers have developed SHARP-Track, a MATLAB tool that significantly improves the accuracy of mapping electrode tracks to specific brain regions in histological slices. By enabling precise registration of angled brain slices to a reference atlas and interactive visualization of electrode paths, SHARP-Track reduces localization errors compared to traditional manual methods.

What Problem Does This Paper Address?

Modern electrophysiology allows simultaneous recordings from hundreds or thousands of neurons across multiple brain regions. A critical step in analyzing this data is assigning each recorded neuron to its correct brain region. Historically, this has been done by visually comparing images of brain slices to a reference atlas. However, this manual process is prone to errors, especially when brain slices are not perfectly coronal or when electrode tracks span across multiple slices. These inaccuracies can lead to misinterpretations of neural circuit function.

Methods

SHARP-Track provides a MATLAB graphical user interface (GUI) for a multi-step pipeline:

  1. Pre-processing: Histology images are down-sampled and contrast is adjusted.
  2. Navigation and Registration: Users navigate a reference atlas (Allen Mouse Brain Atlas) to find the corresponding slice. They then manually identify matching points between the histological slice and the atlas. A projective transform is generated to geometrically align the slice image with the atlas. This transform allows for "keystone" distortion, accommodating non-coronal slices.
  3. Region of Interest (ROI) Identification: Once registered, users can explore the brain regions within the slice and mark fluorescent tracks corresponding to electrode paths.
  4. Visualization: The tool allows for interactive visualization of electrode tracks across multiple registered slices, plotting best-fit lines and identifying the brain regions they traverse.

Datasets

The primary dataset used is the Allen Mouse Brain Atlas (specifically the 10µm-voxel 2017 release with region annotations). The authors also used Nissl-stained mouse brain images for ground-truth ROI localization and actual electrode tracks marked with fluorescent dye for evaluating localization inconsistency. No new benchmarks were introduced; rather, the tool is evaluated against existing manual methods.

Key Insights and Ideas

  • The power of registration: Manually aligning angled histological slices to a 3D atlas is a significant source of error. SHARP-Track's registration step, even with manual input, dramatically improves accuracy.
  • Interactive visualization is key: The ability to see electrode tracks in 3D and across multiple slices, combined with the reference atlas, provides crucial context that is lost in purely manual methods.
  • Beyond electrodes: While designed for electrode tracks, the SHARP-Track pipeline can be adapted for analyzing other types of ROIs, such as fluorescently labeled cell populations.

Key Results

  • Reduced localization error: The registration step in SHARP-Track reduced localization error by 42% compared to marking tracks by eye without registration (218 ± 15 μm vs. 126 ± 15 μm).
  • Improved consistency: The inconsistency in localizing electrode tracks (a proxy for error) was halved by using the registration step (155 ± 16 μm without registration vs. 77 ± 10 μm with registration).
  • Qualitative improvements: The tool allows for visualization of electrode trajectories that span multiple slices, which was previously difficult.

Limitations and Future Work

  • Manual input time-consuming: Creating registration transforms currently requires manual input, which can be time-consuming for experiments with many slices. Future work could integrate automated slice registration algorithms.
  • Remaining error sources: The authors acknowledge that some error and inconsistency persist, potentially due to the spread of fluorescent dye, ambiguity in selecting slice angles, and non-isometric tissue warping during fixation and slicing.
  • Future directions:
    • Combining manual features with automated registration.
  • Adding constraints (e.g., similar slicing angles between consecutive slices) or stains (e.g., Nissl) to improve visual distinctiveness.
  • Incorporating non-rigid transformations for more accurate registration.
  • Developing an "electrophysiological brain atlas" that matches activity signatures to brain regions, moving beyond purely anatomical localization.
  • Expanding the tool's utility for tagging channels in electrophysiological landmarks or matching activity signatures to regions.

Summary updated

Abstract

It is now possible to record from hundreds of neurons across multiple brain regions in a single electrophysiology experiment. An essential step in the ensuing data analysis is to assign recorded neurons to the correct brain regions. Brain regions are typically identified after the recordings by comparing images of brain slices to a reference atlas by eye. This introduces error, in particular when slices are not cut at a perfectly coronal angle or when electrode tracks span multiple slices. Here we introduce SHARP-Track, a tool to localize regions of interest and plot the brain regions they pass through. SHARP-Track offers a MATLAB user interface to explore the Allen Mouse Brain Atlas, register asymmetric slice images to the atlas using manual input, and interactively analyze electrode tracks. We find that it reduces error compared to localizing electrodes in a reference atlas by eye. See github.com/cortex-lab/allenCCF for the software and wiki.
BibTeX
@misc{shamash2018tool,
  author = {Philip Shamash and Matteo Carandini and Kenneth D. Harris and Nicholas A. Steinmetz},
  title = {{A tool for analyzing electrode tracks from slice histology}},
  year = {2018},
  doi = {10.1101/447995},
  howpublished = {bioRxiv},
}
Figure