Abstract
All-optical interrogation, based on high-resolution two-photon stimulation and imaging, has emerged as a potentially transformative approach in neuroscience, allowing for the simultaneous precise manipulation and monitoring of neuronal activity across various model organisms. However, the unintended excitation of light-gated ion channels such as channelrhodopsin (ChR) during two-photon calcium imaging with genetically encoded calcium indicators (GECIs) introduces artifactual neuronal perturbation and contaminates neural activity measurements. In this study, we propose an active pixel power control (APPC) approach, which dynamically adjusts the imaging laser power at each scanning pixel, to address the challenge. We aim to achieve simultaneous two-photon optogenetic manipulation and calcium imaging with a single femtosecond laser, while minimizing the cross-talk between manipulation and imaging. To study this technology’s capabilities, we applied it to the larval zebrafish brain in vivo. Our results demonstrate that the APPC approach preserves GECI signal quality while suppressing optogenetic artifacts significantly. This enhances the accuracy of neural circuit dissection and advances the precision of all-optical interrogation, offering a robust framework for probing neural circuit dynamics and causality in vivo with high fidelity, potentially across various model organisms. Importantly, this technology can be seamlessly integrated with commonly used two-photon microscope systems in laboratories worldwide.
Similar content being viewed by others
Data availability
The main data supporting the findings of this study are available within the paper and Supplementary Information files. The source data files for all data presented within the figures can be found at: https://github.com/QuLab1234/APPC.
Code availability
The custom codes for image processing are available online at: https://github.com/QuLab1234/APPC.
References
Rickgauer, J. P., Deisseroth, K. & Tank, D. W. Simultaneous cellular-resolution optical perturbation and imaging of place cell firing fields. Nat. Neurosci. 17, 1816–1824 (2014).
Packer, A. M., Russell, L. E., Dalgleish, H. W. P. & Häusser, M. Simultaneous all-optical manipulation and recording of neural circuit activity with cellular resolution in vivo. Nat. Methods 12, 140–146 (2015).
Zhang, Z., Russell, L. E., Packer, A. M., Gauld, O. M. & Häusser, M. Closed-loop all-optical interrogation of neural circuits in vivo. Nat. Methods 15, 1037–1040 (2018).
Yang, W., Carrillo-Reid, L., Bando, Y., Peterka, D. S. & Yuste, R. Simultaneous two-photon imaging and two-photon optogenetics of cortical circuits in three dimensions. Elife 7, 1–21 (2018).
Mardinly, A. R. et al. Precise multimodal optical control of neural ensemble activity. Nat. Neurosci. 21, 881–893 (2018).
Marshel, J. H. et al. Cortical layer-specific critical dynamics triggering perception. Science 365, eaaw5202 (2019).
Chen, I. W. et al. In Vivo submillisecond two-photon optogenetics with temporally focused patterned light. J. Neurosci. 39, 3484–3497 (2019).
Förster, D., Dal Maschio, M., Laurell, E. & Baier, H. An optogenetic toolbox for unbiased discovery of functionally connected cells in neural circuits. Nat Commun 8, 116 (2017).
dal Maschio, M., Donovan, J. C., Helmbrecht, T. O. & Baier, H. Linking neurons to network function and behavior by two-photon holographic optogenetics and volumetric imaging. Neuron 94, 774–789 (2017).
Hampel, S., Franconville, R., Simpson, J. H. & Seeds, A. M. A neural command circuit for grooming movement control. Elife 4, 1–26 (2015).
Shipley, F. B., Clark, C. M., Alkema, M. J. & Leifer, A. M. Simultaneous optogenetic manipulation and calcium imaging in freely moving C. elegans. Front Neural Circuits 8, 1–8 (2014).
Zhang, F. et al. Multimodal fast optical interrogation of neural circuitry. Nature 446, 633–639 (2007).
Emiliani, V., Cohen, A. E., Deisseroth, K. & Häusser, M. All-optical interrogation of neural circuits. J. Neurosci. 35, 13917–13926 (2015).
Grosenick, L., Marshel, J. H. & Deisseroth, K. Closed-loop and activity-guided optogenetic control. Neuron 86, 106–139 (2015).
Jackson, A. Closed-loop optogenetic control of the dynamics of neural activity in non-human primates. https://doi.org/10.1038/s41551-022-00945-8 (2022).
Iaccarino, H. F. et al. Gamma frequency entrainment attenuates amyloid load and modifies microglia. Nature 540, 230–235 (2016).
Etter, G. et al. Optogenetic gamma stimulation rescues memory impairments in an Alzheimer’s disease mouse model. Nat. Commun. 10, 1–11 (2019).
Fougère, M. et al. Optogenetic stimulation of glutamatergic neurons in the cuneiform nucleus controls locomotion in a mouse model of Parkinson’s disease. Proc. Natl. Acad. Sci. USA 118, e2110934118 (2021).
Valverde, S. et al. Deep brain stimulation-guided optogenetic rescue of parkinsonian symptoms. Nat. Commun. 11, 2388 (2020).
Carrillo-Reid, L., Han, S., Yang, W., Akrouh, A. & Yuste, R. Controlling visually guided behavior by holographic recalling of cortical ensembles. Cell 178, 447–457.e5 (2019).
Chettih, S. N. & Harvey, C. D. Single-neuron perturbations reveal feature-specific competition in V1. Nature 567, 334–340 (2019).
Gill, J. V. et al. Precise holographic manipulation of olfactory circuits reveals coding features determining perceptual detection. Neuron 108, 382–393.e5 (2020).
Dalgleish, H. W. P. et al. How many neurons are sufficient for perception of cortical activity? Elife 9, 1–99 (2020).
Vinograd, A., Nair, A., Kim, J., Linderman, S. W. & Anderson, D. J. Causal evidence of a line attractor encoding an affective state. Nature 634, 910–918 (2024).
Forli, A. et al. Two-photon bidirectional control and imaging of neuronal excitability with high spatial resolution in vivo. Cell Rep. 22, 3087–3098 (2018).
Chen, I. W., Papagiakoumou, E. & Emiliani, V. Towards circuit optogenetics. Curr. Opin. Neurobiol. 50, 179–189 (2018).
Soor, N. S. et al. All-optical crosstalk-free manipulation and readout of Chronos-expressing neurons. J. Phys. D Appl. Phys. 52, 104002 (2019).
Liu, C., Hao, Y., Lei, B., Zhong, Y. & Kong, L. Removing crosstalk signals in neuron activity by time multiplexed excitations in a two-photon all-optical physiology system. Biomed. Opt. Express 15, 2708 (2024).
Ernst, O. P. et al. Photoactivation of channelrhodopsin. J. Biol. Chem. 283, 1637–1643 (2008).
Guo, Z. V., Hart, A. C. & Ramanathan, S. Optical interrogation of neural circuits in Caenorhabditis elegans. Nat. Methods 6, 891–896 (2009).
Stoltzfus, C. R. et al. Two-photon directed evolution of green fluorescent proteins. Sci. Rep 1–9 https://doi.org/10.1038/srep11968 (2015).
Dana, H. et al. Sensitive red protein calcium indicators for imaging neural activity. Elife 5, 1–24 (2016).
Rickgauer, J. P. & Tank, D. W. Two-photon excitation of channelrhodopsin-2 at saturation. Proc. Natl. Acad. Sci. USA 106, 15025–15030 (2009).
Papagiakoumou, E., Ronzitti, E. & Emiliani, V. Scanless two-photon excitation with temporal focusing. Nat. Methods 17, 571–581 (2020).
Akerboom, J. et al. Genetically encoded calcium indicators for multi-color neural activity imaging and combination with optogenetics. Front Mol. Neurosci. 6, 1–29 (2013).
Shen, Y. et al. A genetically encoded Ca2+ indicator based on circularly permutated sea anemone red fluorescent protein eqFP578. BMC Biol. 16, 1–16 (2018).
Inoue, M. et al. Rational engineering of XCaMPs, a multicolor GECI suite for in vivo imaging of complex brain circuit dynamics. Cell 177, 1346–1360.e24 (2019).
Yokoyama, T. et al. A multicolor suite for deciphering population coding of calcium and cAMP in vivo. Nat. Methods 21, 897–907 (2024).
Dalangin, R. et al. Far-red fluorescent genetically encoded calcium ion indicators. Nat. Commun. 16, 1–14 (2025).
Zhou, S. et al. A sensitive soma-localized red fluorescent calcium indicator for in vivo imaging of neuronal populations at single-cell resolution. PLoS Biol. 23, e3003048 (2025).
Packer, A. M. et al. Two-photon optogenetics of dendritic spines and neural circuits. Nat. Methods 9, 1202–1205 (2012).
Lin, J. Y., Knutsen, P. M., Muller, A., Kleinfeld, D. & Tsien, R. Y. ReaChR: A red-shifted variant of channelrhodopsin enables deep transcranial optogenetic excitation. Nat. Neurosci. 16, 1499–1508 (2013).
Klapoetke, N. C. et al. Independent optical excitation of distinct neural populations. Nat. Methods 11, 338–346 (2014).
Forli, A., Pisoni, M., Printz, Y., Yizhar, O. & Fellin, T. Optogenetic strategies for high-efficiency all-optical interrogation using blue-light-sensitive opsins. Elife 10, 1–25 (2021).
Sridharan, S. et al. High-performance microbial opsins for spatially and temporally precise perturbations of large neuronal networks. Neuron 110, 1139–1155.e6 (2022).
Ronzitti, E. et al. Submillisecond optogenetic control of neuronal firing with two-photon holographic photoactivation of chronos. J. Neurosci. 37, 10679–10689 (2017).
Tajkhorshid, E., Baudry, J., Schulten, K. & Suhai, S. Molecular dynamics study of the nature and origin of retinal’s twisted structure in bacteriorhodopsin. Biophys. J. 78, 683–693 (2000).
Logunov, S. L., Volkov, V. V., Braun, M. & El-Sayed, M. A. The relaxation dynamics of the excited electronic states of retinal in bacteriorhodopsin by two-pump-probe femtosecond studies. Proc. Natl. Acad. Sci. USA 98, 8475–8479 (2001).
Cembran, A., Bernardi, F., Olivucci, M. & Garavelli, M. The retinal chromophore/chloride ion pair: Structure of the photoisomerization path and interplay of charge transfer and covalent states. Proc. Natl. Acad. Sci. USA 102, 6255–6260 (2005).
Drobizhev, M., Makarov, N. S., Hughes, T. & Rebane, A. Resonance enhancement of two-photon absorption in fluorescent proteins. J. Phys. Chem. B 111, 14051–14054 (2007).
Drobizhev, M., Makarov, N. S., Tillo, S. E., Hughes, T. E. & Rebane, A. Two-photon absorption properties of fluorescent proteins. Nat. Methods 8, 393–399 (2011).
Oda, K. et al. Crystal structure of the red light-activated channelrhodopsin Chrimson. Nat. Commun. 9, 1–11 (2018).
Malakar, P. et al. Retinal photoisomerization versus counterion protonation in light and dark-adapted bacteriorhodopsin and its primary photoproduct. Nat. Commun. 15, 1–14 (2024).
Pnevmatikakis, E. A. et al. Simultaneous Denoising, Deconvolution, and Demixing of Calcium Imaging Data. Neuron 89, 285 (2016).
Ahrens, M. B. et al. Brain-wide neuronal dynamics during motor adaptation in zebrafish. Nature 485, 471–477 (2012).
Antinucci, P., Folgueira, M. & Bianco, I. H. Pretectal neurons control hunting behaviour. Elife 8, 1–34 (2019).
Thiele, T. R., Donovan, J. C. & Baier, H. Descending Control of Swim Posture by a Midbrain Nucleus in Zebrafish. Neuron 83, 679–691 (2014).
Shang, C. F. et al. Real-time analysis of large-scale neuronal imaging enables closed-loop investigation of neural dynamics. Nat. Neurosci. 27, 1014–1018 (2024).
Freeman, J. et al. Mapping brain activity at scale with cluster computing. Nat. Methods 11, 941–950 (2014).
Tian, A. G., Ka, T., Lam, C., Yan, G. & He, Y. Binocular integration of prey stimuli in the zebrafish visual system. Current Biology 35, 3228–3240.e5 (2024).
Lister, J.A., Robertson, C.P., Lepage, T., Johnson, S.L. & Raible, D.W. Nacre encodes a zebrafish microphthalmia-related protein that regulates neural-crest-derived pigment cell fate. Development 126, 3757–3767 (1999).
Pozzi, P. et al. Fast calculation of computer generated holograms for 3D photostimulation through compressive-sensing Gerchberg-Saxton algorithm. Methods Protoc. 2, 1–11 (2018).
Pnevmatikakis, E. A. & Giovannucci, A. NoRMCorre: An online algorithm for piecewise rigid motion correction of calcium imaging data. J. Neurosci. Methods 291, 83–94 (2017).
Diaspro, A., Chirico, G. & Collini, M. Two-photon fluorescence excitation and related techniques in biological microscopy. Q Rev. Biophys. 38, 97–166 (2005).
Svelto, O. Principles of lasers. Princ. Lasers https://doi.org/10.1007/978-1-4757-6266-2 (1998).
Horton, N. G. et al. In vivo three-photon microscopy of subcortical structures within an intact mouse brain. Nat. Photonics 7, 205–209 (2013).
Acknowledgements
This study was supported in part by the Research Grants Council of Hong Kong to J.Y.Q. (16102825, 16102123, 16102122, 16102421, 16102920, 16102518); Collaborative Research Fund (C6001-19E); the Innovation and Technology Commission (ITCPD/17-9); the Theme-Based Research Scheme (T12-611/25-N) and the Hong Kong University of Science & Technology through grant 30 for 30 Research Initiative Scheme, and Research Grants Council of Hong Kong to J.L.S. (16101221, 16103224, 16103522, and 16103625).
Author information
Authors and Affiliations
Contributions
G.Y., G.T., and J.Y.Q. conceived the research idea and designed the experiments. G.Y. built the imaging systems and Y.F. and Z.S. provided technical support; G.T. and K.Y.C. prepared animals; G.Y. performed imaging experiments under the supervision of J.Y.Q. and J.L.S.; G.Y. and G.T. analyzed the data with assistance from Y.H.; G.Y., G.T., Y.H., J.L.S., and J.Y.Q. wrote the paper with input from all other authors.
Corresponding authors
Ethics declarations
Competing interests
The authors declare no competing interests.
Peer review
Peer review information
Nature Communications thanks anonymous reviewers 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.
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
Yan, G., Tian, G., Fu, Y. et al. Active pixel power control for crosstalk-free All-optical neural interrogation. Nat Commun (2026). https://doi.org/10.1038/s41467-026-69419-8
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41467-026-69419-8


