A template-matching algorithm for laminar identification of cortical recording sites from evoked response potentials

Giulio Matteucci, Margherita Riggi, Davide ZoccolanbioRxiv 2019 · DOI

TL;DR

This paper introduces an automated method for pinpointing the exact depth and layer of neural recording sites within the cortex using evoked response potentials (ERPs). By matching experimental data to a pre-established "template" of brain activity, this approach overcomes the subjectivity and laboriousness of traditional methods, achieving high accuracy in laminar identification.

What Problem Does This Paper Address?

Understanding neural activity requires knowing precisely where recordings are made within the complex, layered structure of the cerebral cortex. Traditional methods, like Current Source-Density (CSD) analysis, rely on visually identifying specific electrical "landmarks" in the recorded signals. However, these landmarks can be absent if the recording probe doesn't span the entire cortical depth, and the visual interpretation is inherently subjective, leading to inconsistencies and making the process time-consuming. This paper tackles the challenge of providing an objective, automated, and accurate way to determine the laminar location of neural recording sites.

Methods

The core of the proposed method is a template-matching algorithm. Here's a breakdown:

  • Template VEP Profile: The researchers first create a "template" of typical visually evoked potential (VEP) waveforms across the entire cortical depth. This template is built by averaging VEPs from multiple recording sessions where the precise depth of each recording site was determined through histology.
  • Depth-to-Layer Map: Simultaneously, they establish a map that correlates cortical depth with specific layers in the rat visual cortex (V1). This map is also derived from histological data, identifying layer boundaries based on cellular morphology and density.
  • Template Matching: For a new recording session, the algorithm compares the observed VEPs from the probe to the template VEP profile. It systematically explores a grid of possible probe insertion depths and angles (tilts) to find the combination that best matches the observed data to the template. This is done by calculating the Euclidean distance between the observed and expected VEPs for each depth/tilt combination.
  • Weighted Averaging: Instead of simply picking the single best match, the algorithm uses a weighted average of the best-fitting depth and tilt combinations. This approach is more robust and prevents over-reliance on a single, potentially noisy, data point.
  • Laminar Assignment: Once the optimal depth and tilt are inferred, the algorithm uses the probe's known geometry and the depth-to-layer map to predict the laminar location of each recording site.

This approach is novel in its use of VEPs for automated laminar identification and its reliance on a template-matching framework, moving away from subjective visual inspection of CSD patterns.

Datasets

The study utilized data from a total of 18 recording sessions in Long-Evans rats. These sessions were a combination of:

  • 10 recording sessions from a previously published dataset (Matteucci et al., 2019).
  • 8 additional recording sessions from an ongoing study.

Crucially, for all these sessions, the ground-truth depth and laminar location of the recording sites were meticulously recovered through histological analysis. This histological data served as the gold standard for training the template VEP profile and the depth-to-layer map, and for validating the algorithm's performance. No new benchmark datasets were introduced; rather, existing datasets with histological validation were leveraged.

Key Insights and Ideas

  • VEPs as Laminar Fingerprints: The study demonstrates that the temporal dynamics of VEPs, particularly the initial deflection, carry a strong "fingerprint" of the recording site's laminar location. This signal is robust and relatively invariant to stimulus details, making it ideal for automated analysis.
  • Automated Objectivity: By replacing subjective visual interpretation of CSD with a quantitative template-matching approach, the method introduces a high degree of objectivity and reproducibility into laminar identification.
  • Robustness to Incomplete Coverage: A significant advantage is the method's ability to accurately infer laminar locations even when the probe doesn't span the entire cortical thickness, a limitation for traditional CSD.
  • "Recycling" Data: The approach is flexible, allowing researchers to leverage existing electrophysiology data (with sufficient VEPs) and histological information, potentially reducing the need for new, dedicated experiments for laminar mapping.

Key Results

The developed template-matching algorithm achieved impressive accuracy:

  • Cortical Depth Recovery: An average cross-validated accuracy of 79 µm in recovering the cortical depth of recording sites.
  • Laminar Location Inference: A 76% accuracy in inferring the laminar location when distinguishing between four cortical layers.
  • Coarser Layer Groupings: Accuracy increased to 83% for a three-layer grouping (superficial, granular, infragranular) and 91% for a binary grouping (superficial vs. deep layers).
  • Layer-Specific Performance: Recall accuracy peaked in layer 5 (~80%), while precision accuracy also peaked in layer 5 (~80%) and dropped in layer 6.
  • Error Distribution: The majority of depth errors were concentrated in the 0-50 µm range, with very few errors exceeding 220 µm.

Limitations and Future Work

  • Dataset Size Requirement: The method's accuracy is dependent on having a sufficiently large dataset (e.g., 18 recording sessions in this study) to build a reliable template VEP profile and depth-to-layer map. This might limit its applicability in situations where acquiring such extensive data is difficult or time-consuming.
  • Cortical Area/Species Specificity: The current template and depth-to-layer map are specific to the rat visual cortex (V1). For application to other cortical areas, species, or brain states (e.g., awake vs. anesthetized), the template and map would need to be re-established.
  • Sensitivity to Polarity Inversion: While the method can estimate parameters even without a clear polarity inversion between layers 3 and 4 (a key CSD landmark), it still benefits from this feature.
  • Future Work: The authors suggest that their approach could be extended to other brain areas, species, and states by collecting appropriate datasets. They also propose that the core algorithm could potentially be adapted to parse layer boundaries directly from CSD patterns, though they believe their LFP-based approach is more robust. The ability to "recycle" existing data is highlighted as a key avenue for broader adoption.

Summary updated

Abstract

Abstract In recent years, the advent of the so-called silicon probes has made it possible to homogeneously sample spikes and local field potentials (LFPs) from a regular grid of cortical recording sites. In principle, this allows inferring the laminar location of the sites based on the spatiotemporal pattern of LFPs recorded along the probe, as in the well-known current source-density (CSD) analysis. This approach, however, has several limitations, since it relies on visual identification of landmark features (i.e., current sinks and sources) by human operators – features that can be absent from the CSD pattern if the probe does not span the whole cortical thickness, thus making manual labelling harder. Furthermore, as any manual annotation procedure, the typical CSD-based workflow for laminar identification of recording sites is affected by subjective judgment undermining the consistency and reproducibility of results. To overcome these limitations, we developed an alternative approach, based on finding the optimal match between the LFPs recorded along a probe in a given experiment and a template LFP profile that was computed using 18 recording sessions, in which the depth of the recording sites had been recovered through histology. We show that this method can achieve an accuracy of 79 µm in recovering the cortical depth of recording sites and a 76% accuracy in inferring their laminar location. As such, our approach provides an alternative to CSD that, being fully automated, is less prone to the idiosyncrasies of subjective judgment and works reliably also for recordings spanning a limited cortical stretch. New and noteworthy Knowing the depth and laminar location of the microelectrodes used to record neuronal activity from the cerebral cortex is crucial to properly interpret the recorded patterns of neuronal responses. Here we present an innovative approach that allows inferring such properties with high accuracy and in an automated way (i.e., without the need of visual inspection and manual annotation) from the evoked response potentials (ERPs) elicited by sensory (e.g., visual) stimuli.
BibTeX
@misc{matteucci2019template,
  author = {Giulio Matteucci and Margherita Riggi and Davide Zoccolan},
  title = {{A template-matching algorithm for laminar identification of cortical recording sites from evoked response potentials}},
  year = {2019},
  doi = {10.1101/749069},
  howpublished = {bioRxiv},
}

Loading related content...

Figure