Abstract
Neurons of different types perform diverse computations and coordinate their activity during sensation, perception, and action. While electrophysiological recordings can measure the activity of many neurons simultaneously, identifying cell types during these experiments remains difficult. Here we present PhysMAP, a framework adapted from multiomics data analysis that weights multiple electrophysiological modalities simultaneously to obtain interpretable multimodal representations. We apply PhysMAP to seven datasets and demonstrate that these multimodal representations are better aligned with known transcriptomically-defined cell types than any single modality alone. We then show that this alignment allows PhysMAP to better identify putative cell types in the absence of ground truth. We also demonstrate how annotated datasets can transfer labels to unannotated recordings and confirm that inferred cell types exhibit properties consistent with ground truth. Crucially, we show that PhysMAP can also be used to iteratively detect batch effects which confound classification. Together, these results establish PhysMAP as a tool for studying multiple cell types simultaneously and gaining insight into neural circuit dynamics.
Similar content being viewed by others
Data availability
Post-processed data used in analyses and figure generation are provided in the repository https://github.com/EricKenjiLee/PhysMAP_Manuscript. Raw datasets are available from each source publication’s open data repositories in Table 1. Additionally, source data for all non-schematic main and Supplementary Figs. are provided as pages in a “Source Data” Excel file. Source data are provided with this paper.
Code availability
MATLAB, Python, and R for open dataset analysis and figure generation are available at https://github.com/EricKenjiLee/PhysMAP_Manuscript and is citable at https://doi.org/10.5281/zenodo.18239113.
References
Scala, F. Phenotypic variation of transcriptomic cell types in mouse motor cortex. Nature 598, 144–150 (2021).
Gouwens, N. W. Integrated morphoelectric and transcriptomic classification of cortical gabaergic cells. Cell 183, 935–953 (2020).
(BICCN) BICCN A multimodal cell census and atlas of the mammalian primary motor cortex. Nature 598, 86–102 (2021).
Bomkamp, C. Transcriptomic correlates of electrophysiological and morphological diversity within and across excitatory and inhibitory neuron classes. PLoS Comput. Biol. 15, e1007113 (2019).
Keller, A. J. et al. A disinhibitory circuit for contextual modulation in primary visual cortex. Neuron 108, 1181–1193.e8 (2020).
Kullander, K. & Topolnik, L. Cortical disinhibitory circuits: cell types, connectivity and function. Trends Neurosci. 44, 643–657 (2021).
Christensen, A. J., Ott, T. & Kepecs, A. Cognition and the single neuron: how cell types construct the dynamic computations of frontal cortex. Curr. Opin. Neurobiol. 77, 102630 (2022).
Ferguson, K. A. & Cardin, J. A. Mechanisms underlying gain modulation in the cortex. Nat. Rev. Neurosci. 21, 80–92 (2020).
Millman, D. J. VIP interneurons in mouse primary visual cortex selectively enhance responses to weak but specific stimuli. eLife 9, e55130 (2020).
Adesnik, H. & Naka, A. Cracking the function of layers in the sensory cortex. Neuron 100, 1028–1043 (2018).
Bohlen, M. & Tremblay, S. Considerations for the Use of Viral Vectors in Nonhuman Primates. In Vectorology for optogenetics and chemogenetics (eds Eldrige, M. A. G. & Galvan, A.) 293–329 (Humana, New York, NY, 2023).
Bliss-Moreau, E, Costa, V. D. & Baxter, M. G. A pragmatic reevaluation of the efficacy of nonhuman primate optogenetics for psychiatry. Oxf. Open Neurosci. 1, kvac006 (2022).
O’Shea, D. J. The need for calcium imaging in nonhuman primates: new motor neuroscience and brain-machine interfaces. Exp. Neurol. 287, 437–451 (2017).
Trautmann, E. M. Dendritic calcium signals in rhesus macaque motor cortex drive an optical brain-computer interface. Nat. Commun. 12, 3689 (2021).
Takasaki, K., Abbasi-Asl, R. & Waters, J. Superficial bound of the depth limit of 2-photon imaging in mouse brain. eNeuro 7, ENEURO.0255–19.2019 (2020).
Jun, J. J. Fully integrated silicon probes for high-density recording of neural activity. Nature 551, nature24636 (2017).
Steinmetz, N. A., Zatka-Haas, P., Carandini, M. & Harris, K. D. Distributed coding of choice, action and engagement across the mouse brain. Nature 576, 266–273 (2019).
Siegle, J. H. et al. Survey of spiking in the mouse visual system reveals functional hierarchy. Nature 592, 86–92 (2021).
Chen, S. Brain-wide neural activity underlying memory-guided movement. Cell 187, 676–691.e16 (2024).
Bondy, A. G. et al. Coordinated cross-brain activity during accumulation of sensory evidence and decision commitment. Preprint at bioRxiv https://www.biorxiv.org/content/10.1101/2024.08.21.609044v1 (2024).
Paulk, A. C. et al. Large-scale neural recordings with single neuron resolution using Neuropixels probes in human cortex. Nat. Neurosci. 25, 252–263 (2022).
Leonard, M. K. et al. Large-scale single-neuron speech sound encoding across the depth of human cortex. Nature 626, 593–602 (2023).
Trainito, C., Nicolai, C., Miller, E. K. & Siegel, M. Extracellular Spike Waveform Dissociates Four Functionally Distinct Cell Classes in Primate Cortex. Curr. Biol. 29, 2973–2982.e5 (2019).
Carr, N. et al. Neuropixels reveal laminar microcircuit organization in monkey V1 in vivo. Proc. Natl. Acad. Sci. 123, e2521556123 (2025).
Lee, E. K. Non-linear dimensionality reduction on extracellular waveforms reveals cell type diversity in premotor cortex. eLife 10, e67490 (2021).
Sun, S. H., Killian, N. J. & Pezaris, J. S. More than expected: extracellular waveforms and functional responses in monkey LGN. Preprint at bioRxiv https://www.biorxiv.org/content/10.1101/2023.11.22.568065v1 (2024).
Latuske, P., Toader, O. & Allen, K. Interspike intervals reveal functionally distinct cell populations in the medial entorhinal cortex. J. Neurosci. 35, 10963–10976 (2015).
Schneider, A. Transcriptomic cell type structures in vivo neuronal activity across multiple timescales. Cell Rep. 42, 112318 (2023).
Abbaspoor, S. & Hoffman, K. Circuit dynamics of superficial and deep CA1 pyramidal cells and inhibitory cells in freely moving macaques. Cell Rep. 43, 114519 (2024).
Beau, M. et al. A deep learning strategy to identify cell types across species from high-density extracellular recordings. Cell. 188, 2218–2234.e22 (2025).
Pinto, L. & Dan, Y. Cell-type-specific activity in prefrontal cortex during goal-directed behavior. Neuron 87, 437–450 (2015).
Yu, J., Hu, H., Agmon, A. & Svoboda, K. Recruitment of GABAergic interneurons in the barrel cortex during active tactile behavior. Neuron 104, 412–427.e4 (2019).
Ramadan, M. A standardized nonvisual behavioral event is broadcasted homogeneously across cortical visual areas without modulating visual responses. eNeuro 9, ENEURO.0491–21.2022 (2022).
Cembrowski, M. S. & Menon, V. Continuous variation within cell types of the nervous system. Trends Neurosci. 41, 337–348 (2018).
Hao, Y. Integrated analysis of multimodal single-cell data. Cell 184, 3573–3587.e29 (2021).
Baltrusaitis, T., Ahuja, C. & Morency, L. P. Multimodal machine learning: a survey and taxonomy. IEEE Trans. Pattern Anal. Mach. Intell. 41, 423–443 (2019).
Zhu, C., Preissl, S. & Ren, B. Single-cell multimodal omics: the power of many. Nat. Methods 17, 11–14 (2020).
McInnes, L., Healy, J. & Melville, J. UMAP: uniform manifold approximation and projection for dimension reduction. Preprint at https://arxiv.org/abs/1802.03426 (2018).
Krimer, L. S. Cluster analysis–based physiological classification and morphological properties of inhibitory neurons in layers 2–3 of monkey dorsolateral prefrontal cortex. J. Neurophysiol. 94, 3009–3022 (2005).
Zaitsev, A. V. Interneuron diversity in layers 2-3 of monkey prefrontal cortex. Cereb. Cortex 19, 1597–1615 (2008).
Swanson, E. Simultaneous trimodal single-cell measurement of transcripts, epitopes, and chromatin accessibility using tea-seq. eLife 10, e63632 (2021).
Lee, K., Carr, N., Perliss, A. & Chandrasekaran, C. Wavemap for identifying putative cell types from in vivo electrophysiology. STAR Protoc. 4, 102320 (2023).
Huang, W. et al. On the comparison between multi-modal and single-modal contrastive learning. In Advances in Neural Information Processing Systems. 37, 81549–81605 (Curran Associates, Inc., 2024).
Urban-Ciecko, J. & Barth, A. L. Somatostatin-expressing neurons in cortical networks. Nat. Rev. Neurosci. 17, 401–409 (2016).
Wu, S. J. et al. Cortical somatostatin interneuron subtypes form cell-type-specific circuits. Neuron 111, 2675–2692.e9 (2023).
Yavorska, I. & Wehr, M. Somatostatin-expressing inhibitory interneurons in cortical circuits. Front. Neural Circuits 10, 76 (2016).
Kriegeskorte, N., Simmons, W. K., Bellgowan, P. S. F. & Baker, C. I. Circular analysis in systems neuroscience: the dangers of double dipping. Nat. Neurosci. 12, nn.2303 (2009).
Hostetler, R. E., Hu, H. & Agmon, A. Genetically defined subtypes of somatostatin-containing cortical interneurons. eNeuro 10, ENEURO.0204-23.2023 (2023).
Sun, S. H. Analysis of extracellular spike waveforms and associated receptive fields of neurons in cat primary visual cortex. J. Physiol. 599, 2211–2238 (2021).
Sundqvist, M., Chiquet, J. & Rigaill, G. Adjusting the adjusted Rand Index. Comput. Stat. 38, 327–347 (2020).
Kvitsiani, D. Distinct behavioural and network correlates of two interneuron types in prefrontal cortex. Nature 498, 363–366 (2013).
Kim, D. Distinct roles of parvalbumin- and somatostatin-expressing interneurons in working memory. Neuron 92, 902–915 (2016).
Petersen, P. C., Hernandez, M. & Buzsáki, G. The Buzsaki Lab Databank - Public electrophysiological datasets from awake animals (2020).
Sanzeni, A. Inhibition stabilization is a widespread property of cortical networks. eLife 9, e54875 (2020).
Ye, Z. Ultra-high-density neuropixels probes improve detection and identification in neuronal recordings. Neuron 113, 3966–3982 (2025).
Herzfeld, D. J., Hall, N. J. & Lisberger, S. G. Strategies to decipher neuron identity from extracellular recordings in the cerebellum of behaving non-human primates. J. Neurosci. 45, e0230252025 (2025).
Laboratory, I. B. et al. Reproducibility of in vivo electrophysiological measurements in mice. eLife 13, RP100840 (2025).
Zhang, Y., Patil, P., Johnson, W. E. & Parmigiani, G. Robustifying genomic classifiers to batch effects via ensemble learning. Bioinformatics 37, 1521–1527 (2021).
Soneson, C., Gerster, S. & Delorenzi, M. Batch effect confounding leads to strong bias in performance estimates obtained by cross-validation. PLoS ONE 9, e100335 (2014).
Stuart, T. Comprehensive integration of single-cell data. Cell 177, 1888–1902.e21 (2019).
Beau, M. et al. NeuroPyxels: Loading, Processing and Plotting Neuropixels Data in Python. Zenodo, https://doi.org/10.5281/zenodo.5509733 (2021).
The Allen Institute for Brain Science. Allen Brain Observatory: Visual Behavior Neuropixels Technical White Paper. (2022).
Zhu, F. et al. Open-world machine learning: a review and new outlooks. Preprint at https://arxiv.org/abs/2403.01759 (2025).
Sohal, V. S., Zhang, F., Yizhar, O. & Deisseroth, K. Parvalbumin neurons and gamma rhythms enhance cortical circuit performance. Nature 459, 698–702 (2009).
Cardin, J. A. Driving fast-spiking cells induces gamma rhythm and controls sensory responses. Nature 459, 663–667 (2009).
Chen, G. Distinct inhibitory circuits orchestrate cortical beta and gamma band oscillations. Neuron 96, 1403–1418.e6 (2017).
Ma, W. Visual representations by cortical somatostatin inhibitory neurons–selective but with weak and delayed responses. J. Neurosci. 30, 14371–14379 (2010).
Gentet, L. J. Unique functional properties of somatostatin-expressing GABAergic neurons in mouse barrel cortex. Nat. Neurosci. 15, 607–612 (2012).
Luo, L. Architectures of neuronal circuits. Science 373, eabg7285 (2021).
Bastos, A. M. Canonical microcircuits for predictive coding. Neuron 76, 695–711 (2012).
Fishell, G. & Kepecs, A. Interneuron types as attractors and controllers. Annu. Rev. Neurosci. 43, 1–30 (2019).
Lee, S., Kruglikov, I., Huang, Z. J., Fishell, G. & Rudy, B. A disinhibitory circuit mediates motor integration in the somatosensory cortex. Nat. Neurosci. 16, 1662–1670 (2013).
Kobayashi, R. Reconstructing neuronal circuitry from parallel spike trains. Nat. Commun. 10, 4468 (2019).
Campagnola, L. Local connectivity and synaptic dynamics in mouse and human neocortex. Science 375, eabj5861 (2022).
Pi, H. J. Cortical interneurons that specialize in disinhibitory control. Nature 503, 521–524 (2013).
Moscovich, A. & Rosset, S. On the cross-validation bias due to unsupervised preprocessing. J. R. Stat. Soc. Ser. B Stat. Methodol. 84, 1474–1502 (2022).
Wei, Y. Associations between in vitro, in vivo and in silico cell classes in mouse primary visual cortex. Nat. Commun. 14, 2344 (2023).
Onorato, I. et al. Distinct roles of PV and Sst interneurons in visually induced gamma oscillations. Cell Rep. 44, 115385 (2025).
Yu, H. et al. In vivo cell-type and brain region classification via multimodal contrastive learning. in Proc. Thirteenth International Conference on Learning Representations, ICLR 2025, Singapore, April 24–28, 2025. (OpenReview.net, 2025).
Li, N. Spatiotemporal constraints on optogenetic inactivation in cortical circuits. eLife 8, e48622 (2019).
Prönneke, A. Characterizing VIP neurons in the barrel cortex of VIPcre/tdTomato mice reveals layer-specific differences. Cereb. Cortex 25, 4854–4868 (2015).
Buccino, A. P., Garcia, S. & Yger, P. Spike sorting: new trends and challenges of the era of high-density probes. Prog. Biomed. Eng. 4, 022005 (2022).
Pachitariu, M., Steinmetz, N., Kadir, S. & Carandini, M. D. HK Kilosort: realtime spike-sorting for extracellular electrophysiology with hundreds of channels. Preprint at bioRxiv https://www.biorxiv.org/content/10.1101/061481v1 (2016).
Vincent, J. P. & Economo, M. N. Assessing cross-contamination in spike-sorted electrophysiology data. eNeuro 11, ENEURO.0554-23.2024 (2024).
Trautmann, E. M. et al. Accurate estimation of neural population dynamics without spike sorting. Neuron 103, 292–308.e4 (2019).
Lakunina, A. et al. Neuropixels opto: combining high-resolution electrophysiology and optogenetics. Preprint at bioRxiv https://www.biorxiv.org/content/10.1101/2025.02.04.636286v1 (2025).
Aharoni, D. & Hoogland, T. M. Circuit investigations with open-source miniaturized microscopes: past, present and future. Front. Cell Neurosci. 13, 141 (2019).
Peixoto, D. et al. Decoding and perturbing decision states in real time. Nature 591, 604–609 (2021).
Boucher, P. O. Initial conditions combine with sensory evidence to induce decision-related dynamics in premotor cortex. Nat. Commun. 14, 6510 (2023).
Esparza, J., Sebastián, E. R. & Prida, L. M. dl From cell types to population dynamics: Making hippocampal manifolds physiologically interpretable. Curr. Opin. Neurobiol. 83, 102800 (2023).
Ji, N. The practical and fundamental limits of optical imaging in mammalian brains. Neuron 83, 1242–1245 (2014).
Lecoq, J., Orlova, N. & Grewe, B. F. Wide. Fast. Deep. Recent advances in multi-photon microscopy of in vivo neuronal activity. J. Neurosci. 39, 9042–9052 (2019).
Brooks, F. P., Davis, H. C., Wong-Campos, J. D. & Cohen, A. E. Optical constraints on two-photon voltage imaging. Neurophotonics 11, 035007–035007 (2024).
Bliss-Moreau, E., Costa, V. D. & Baxter, M. G. A pragmatic reevaluation of the efficacy of nonhuman primate optogenetics for psychiatry. Oxf. Open Neurosci. 1, kvac006 (2022).
Lakunina, A. A., Nardoci, M. B., Ahmadian, Y. & Jaramillo, S. Somatostatin-expressing interneurons in the auditory cortex mediate sustained suppression by spectral surround. J. Neurosci. 40, 3564–3575 (2020).
Ma, Y., Hu, H., Berrebi, A. S., Mathers, P. H. & Agmon, A. Distinct subtypes of somatostatin-containing neocortical interneurons revealed in transgenic mice. J. Neurosci. 26, 5069–5082 (2006).
Hu, H., Cavendish, J. Z. & Agmon, A. Not all that glitters is gold: off-target recombination in the somatostatin-IRES-Cre mouse line labels a subset of fast-spiking interneurons. Front. Neural Circuits 7, 195 (2013).
Petersen, P. C., Siegle, J. H., Steinmetz, N. A., Mahallati, S. & Buzsáki, G. CellExplorer: a framework for visualizing and characterizing single neurons. Neuron 109, 3594–3608.e2 (2021).
Ester, M., Kriegel, H. P., Sander, J., Xu, X. A Density-based Algorithm for Discovering Clusters in Large Spatial Databases with Noise. 226–231 (AAAI Press, 1996).
Traag, V. A., Waltman, L. & Eck, N. J. From Louvain to Leiden: guaranteeing well-connected communities. Sci. Rep. 9, 5233 (2019).
Kuhn, M. Building predictive models in R using the caret package. J. Stat. Softw. 28, 1–26 (2008).
Vigneswaran, G., Kraskov, A. & Lemon, R. N. Large identified pyramidal cells in macaque motor and premotor cortex exhibit “Thin Spikes”: implications for cell type classification. J. Neurosci. 31, 14235–14242 (2011).
Aertsen, A. M. & Gerstein, G. L. Evaluation of neuronal connectivity: sensitivity of cross-correlation. Brain Res. 340, 341–354 (1985).
Amarasingham, A., Harrison, M. T., Hatsopoulos, N. G. & Geman, S. Conditional modeling and the jitter method of spike resampling. J. Neurophysiol. 107, 517–531 (2012).
Xiao, D., Forys, B. J., Vanni, M. P. & Murphy, T. H. MesoNet allows automated scaling and segmentation of mouse mesoscale cortical maps using machine learning. Nat. Commun. 12, 5992 (2021).
Acknowledgements
We are grateful to Dr. Karel Svoboda, Dr. Anna Lakunina, and Dr. Josh Siegle for the initial ideas of cell type classifiers for electrophysiology. We also thank Dr. Adam Smoulder, Dr. Yujin Han, Dr. Josh Siegle, Dr. Ching Fang, Pierre Boucher, Nicole Carr, Dr. Tian Wang, Vivian Moosmann, Tushar Arora, Mateo Umaguing, and Dr. Munib Hasnain for their thoughtful comments on our manuscript. CC was supported by an NIH NINDS R00NS092972, R01NS121409, R21NS135361 and R01NS122969 award; the Moorman-Simon Interdisciplinary Career Development Professorship from Boston University; the Whitehall Foundation (2019-12-77); and the Young Investigator Award from the Brain and Behavior Research Foundation (27923). The auditory cortex dataset (collected by AL and SJ) was supported by an NIH NIDCD R01DC015531. SJ was also supported by an NIH NINDS RF1NS131993. EKL was supported by an NIH NINDS F31NS131018. The Neuropixels Ultras dataset was supported by NIH NINDS/NIMH U01NS113252 awarded to NS.
Author information
Authors and Affiliations
Contributions
E.K.L. and C.C. jointly developed the multi-modal cell type classifier approach. A.E.G. helped with derived waveform metric analysis and several control analyses. G.H. helped collect one of the open datasets and provided technical advice, especially with regard to the usage of quality metrics, and helped edit initial manuscript drafts. H.Y. and C.H. provided many useful discussions, suggested analyses, and provided access to several datasets. A.L. and S.J. provided technical support and also collected the A1 open datasets. A.S., S.O., and N.A.S. provided technical support and collected the Ultras dataset. P.F.P. provided guidance on various approaches for multi-modal integration and other technical advice. E.K.L. curated datasets. C.C. wrote initial R code and performed some analyses. Code was further refined and augmented by E.K.L. Additional analyses were also written by E.K.L. E.K.L. made figures and wrote initial drafts of the paper with C.C. All authors edited the manuscript and provided feedback on presentation and clarity.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Peer review
Peer review information
Nature Communications thanks Xiaoxuan Jia and the other anonymous reviewer(s) for their contribution to the peer review of this work. A peer review file is available.
Additional information
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Source data
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
About this article
Cite this article
Lee, E.K., Gül, A.E., Heller, G. et al. A multimodal approach for visualizing and identifying electrophysiological cell types in vivo. Nat Commun (2026). https://doi.org/10.1038/s41467-026-71331-0
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41467-026-71331-0


