Abstract
Miniature fluorescence microscopes are becoming an increasingly established tool to investigate neural circuits in freely moving animals. In this work we present a lightweight one-photon microscope capable of imaging at different focal depths. The focal plane can be changed dynamically by modulating the pulse width of the control signal to a variable focus liquid lens, which is synchronized to the image sensor to enable changing focal plane between frames. The system was tested by imaging GCaMP7f expressing neurons in the mouse medial prefrontal cortex (mPFC) in vivo during open field test. Results showed that with the proposed design it is possible to image neurons across an axial scan of ~ 60 μm, resulting in a ~ 40% increase of total neurons imaged compared to single plane imaging.
Similar content being viewed by others
Explore related subjects
Discover the latest articles, news and stories from top researchers in related subjects.Introduction
Over the past decade, the development of miniature fluorescence microscopes (commonly referred to as miniscopes), paired with genetically encoded calcium indicators and voltage sensitive dyes has grown to be one of the most powerful tools available in neuroscience1,2,3,4,5, enabling researchers to investigate neural circuits in vivo and correlate the activity of large neuronal populations with complex behaviors which could not be replicated in head fixed animals, in timescales spanning from days to months6,7.
These versatile tools offer a unique insight into key neural processes involved in complex behaviors or animal models of disease, fueling the development of new generation of miniscopes to expand the horizon of neural circuits investigation. Active areas of research include simultaneous imaging and optogenetic stimulation of targeted neurons8,9,10, to untangle causality of neuronal population activity in specific behaviors; wireless miniscopes11,12, to reduce the influence of a tether on the animal’s behavior, and to enable neural activity recording in more complex behaviors (such as multiple subject social interaction); other versions of miniscopes include large scale imaging13,14,15, and 2-photon for imaging at multiple depths16,17,18,19.
A key element for expanding the miniscope’s potential is the ability to change focal plane rapidly and reliably during experiments. This would allow not only a more stable focusing system, improving the quality of individual neurons’ tracking over time, but also imaging on different focal planes, enabling multi-color imaging. There are several methods which can be leveraged for achieving this goal in multi-photon imaging (piezoelectric actuators, voice coil-motors actuators, tunable acoustic gradient index lenses20), however these techniques are not easily scalable to miniaturized, single photon microscope for studying neural circuits in freely behaving rodents. Electrically Tunable Lenses (ETLs, or liquid lenses) can be more effectively integrated in such applications20,21,22,23. Bagramyan et al. developed a tunable liquid crystal lens24,25 which was integrated in a one-photon miniscope for sub-cellular resolution imaging. A benchtop two-photon implementation of a remote focusing system based on liquid lens was described in26, but limited to head-restrained behaviors. An expansion to the UCLA miniscope also includes an ETL15, however the total weight is 13.9 g, which makes it too heavy to be used in freely moving mice.
In this study we present an open-source miniature miniscope capable of remote and dynamic focal plane change leveraging a commercially available variable focus liquid lens, which can be easily integrated in custom imaging systems.
Methods
All experimental procedures and animal care were reviewed and approved by the Institutional Animal Care and Use Committee (IACUC), the Intramural Research Program, National Institute on Drug Abuse, National Institutes of Health. All animal studies were carried out in accordance with guidelines of the approved IACUC protocol and in accordance with ARRIVE guidelines.
Viral injection
The viral injection procedure was similar to the one described previously27, and briefly outlined here. Six C57BL/6 J male mice (age of 3–4 months, body weight ~ 25 g) were injected with AAV-pgk-Cre (Addgene, #24593-AAVrg) into Nucleus Accumbens and pGP-AAV-syn-FLEX-jGCaMP7f-WPRE (Addgene, #104492-AAV1) into prelimbic cortex (PrL). Briefly, mice were anaesthetized with 2% isoflurane in oxygen at a flow rate of 0.4 L/min and mounted on a stereotactic frame (Model 962, David Kopf Instruments), while body temperature was maintained at 37 °C using a temperature control system (TCAT-2DF, Physitemp). Sterile ocular lubricant ointment (Dechra Veterinary Products) was applied to mouse corneas to prevent drying. A hole was drilled through the right side of the skull above the injection site (A/P: + 1.9 mm; M/L: − 0.3 mm) using a 0.5-mm diameter round burr on a high-speed rotary micro drill (19007-05, Fine Science Tools). A total of 500 nl of virus (a titer of 6.75e12 GC/mL) was injected using the stereotactic coordinates (A/P: + 1.9 mm, M/L: − 0.3 mm, D/V: − 1.7 mm, 0° angle) at a rate of 25 nl/min with a micro pump and Micro4 controller (World Precision Instruments). After injection, the injection needle was kept in the parenchyma for 5 min before being slowly withdrawn. The hole on the skull was then sealed with bone wax, and the skin was sutured. After surgery, Neosporin ointment was applied to the closed skin incision line. Mice were subcutaneously injected with buprenorphine (0.05 mg/kg) and returned to their home cage to recover from anesthesia in a 37 °C isothermal chamber (Lyon Technologies, Inc). Mice were maintained on ibuprofen (30 mg/mL in water) ad libitum for at least 3 days post-surgery.
Gradient index (GRIN) lens implantation
The GRIN lens implantation procedure was similar to the one described previously27, and briefly outlined here. One week after viral injection, a 1-mm diameter gradient index (GRIN) lens (GRINTECH GmBH) was implanted in the mouse brain in the mPFC. Briefly, mice were anesthetized with ketamine/xylazine (ketamine:100 mg/kg, xylazine:15 mg/kg), and a 1 mm-diameter craniotomy was generated in the right hemisphere above the coordinates (A/P: + 1.9 mm, M/L: − 0.7 mm). Freshly prepared artificial cerebrospinal fluid (aCSF) was continuous applied to the exposed tissue throughout the surgery to prevent brain tissue dehydration. The brain tissue above the PrL, along a direction of a 10° laterally shifted angle into a depth of 1.8 mm was precisely removed using vacuum suction through a 30-gauge blunted needle attached to a custom-constructed three-axis motorized stereotactic device, modified from a commercial stereotactic frame (Model 962, David Kopf Instruments). After brain tissue above mPFC had been removed and the surgical site was clear of blood, a GRIN lens was slowly lowered into the mPFC and secured to the skull using dental cement (DuraLay). About one month after the GRIN lens implantation, a custom baseplate was mounted onto the mouse head with dental cement. The miniscope was then secured to the baseplate using 3 screws.
Miniscope design
The miniscope consists of the main body, designed in Solidworks and 3D-printed in black resin (Protolabs, Maple Plain, MN), light source (high power 470 nm LED XPEBBL-L1-0000-00302, Cree LED), optics (see Table 1) and a CMOS sensor (MT9V022, Aptina/Onsemi) mounted on a custom PCB which connects to the data acquisition system as described in28. A schematic of the miniscope mechanical design is shown in Fig. 1a. We used a variable focus liquid lens (A-16F0-P12, Corning Varioptic), which allows for a fast change of focal length, controlled and synchronized to the miniscope image sensor through the custom FPGA control board.
Benchmarking
We tested the optical performance of the miniscope by imaging a 1951 USAF target (Fig. 1b), measuring a vertical and horizontal resolution of 5.52 μm for a ~ 3× magnification factor.
The axial scanning performance was tested by positioning the miniscope vertically (Fig. 2a) over a 45° depth of field target (Edmund Optics DOF 5–15, Fig. 2b), and recording the horizontal lines from the 15 lp/mm section (Fig. 2c) at different plane depths, ranging from 0 to 100% PWM duty cycle of the liquid lens control signal in 26 steps (Fig. 2d,e). For each plane depth, we calculated the average of a 30-frame sequence. The change in control signal produced a change in focal plane depth which was estimated through the curve fitting parameters of the frames row-average: by averaging along y for each duty cycle step, the resulting curves were approximated as a Fourier series truncated at the first harmonic (tuned to the frequency of the line pairs, ω = 66.67), multiplied by an exponential envelope curve, whose center parameter b indicated the estimated depth of the focal plane:
The focal plane change as a function of the liquid lens PWM duty cycle could be approximated linearly (R2 = 0.99287) with a slope of 5.98 μm per percent change in duty cycle (Fig. 2f).
To assess whether the image could stabilize within the time between two frames, we recorded 200 frames at 10fps, alternating focal plane depth at each frame, for 5 sessions (Fig. 3a).
We then calculated the RMS difference between the 100 frame-average for each plane and the static frames captured across the 26 PWM cycle steps (Fig. 3b): for all sessions, across all focal plane differences, the local minima of the RMS curve (and the highest similarity between frames) coincided with the focal plane at which the alternating planes were recorded, indicating a close match between the static images captured at each depth and the corresponding alternating frames.
Results
To demonstrate the ability of both imaging at single neuron level and detecting different neurons across different focal plane depths, we performed in vivo imaging on mice (n = 6) expressing GCaMP7f in the mPFC, as described previously28. The setup used to carry out the recordings is depicted in Fig. 4a. Imaging was performed during 15 open field trials (sample images from top and side view camera is shown in Supplementary Fig. 1a), recording 2000 frames per trials at 10 fps, and alternating focal plane at each frame following the schedule shown in Supplementary Fig. 1b. The maximum focal depth change was limited by light scattering in the deeper brain tissue, and it was experimentally measured to be ~ 60 μm across all imaged mice.
For each trial, the two interleaved data streams of 1000 frames per plane were separately processed by performing a Fourier-based motion correction first29, and then applying the CNMFe based calcium trace extraction method described previously30. The resulting spatial components were then registered across the two imaging planes and trials with the method described previously31, which estimates the likelihood of two neurons from different focal planes to be the same based on a probabilistic model built on the centroid distance and spatial footprint correlation. Representative cell maps and peak-to-noise ratios (PNR) for the two focal planes at the maximum distance is shown in Fig. 4b and Supplementary Fig. 2a. Based on the cell registration results, all neurons detected in each trial were assigned to either plane 1, plane 2, or both planes (Fig. 4c, Supplementary Movie 1). Examples of neurons detected only in one plane are shown in Supplementary Fig. 2b.
Neurons identified as common ones in both focal planes showed high correlation in their activity measured in the two focal planes (Fig. 4d), confirming the same identity in both spatial and temporal components. On the other hand, calcium traces from closest non-same neurons were largely uncorrelated (Fig. 4d), with some exceptions represented by cells whose footprint differed due to focal, but likely were the same neurons. To reduce the number of false negatives in the neuron registration across focal planes, one could use a less conservative approach by including not only spatial footprint criteria, but also a temporal component matching.
Overall, we could identify a larger number of neurons in trials with maximum distance between the two focal planes compared with trials with no focal plane change (two tailed paired t test, p = 0.0053, Fig. 4e), for an average increase in number of detected neurons per trial of 41.67% \(\pm 24.46\%\) SD in n = 6 mice.
We then measured the ratio of total number of neurons detected on each trial (merging the information from both focal planes) and the average number of neurons detected on each focal plane (Fig. 4f), which also resulted in a larger number neurons when the two focal planes were at maximal distance compared to when the same focal length was used for both planes (two tailed paired t test, n = 6 mice, p = 0.0069 for same plane with offset = 0 μm (trials 2, 6 and 14) and p = 0.0055 for same focal plane at offset = 58.3 μm (trials 4, 8 and 15).
Discussion
We presented the design of a miniature fluorescence microscope which integrates a variable focus liquid lens, enabling a dynamic change of focal plane between frames during in vivo calcium imaging recordings. Despite the limitation in the maximum possible focal length posed by light scattering in single photon imaging, the integration of a variable focus lens offers several advantages that can push the boundaries of in vivo neural circuit investigation. Beyond increasing the number of imaged neurons, it simplifies the focusing mechanism of miniature microscopes, which often consists of rotating parts, making it difficult to reliably image the same plane and possibly introducing image registration issues across sessions.
Compared with other variable focus imaging systems, the proposed miniscope is more lightweight15, and it is tethered with a flexible cable which, combined with a motorized swivel, allows for less constraint on the rodent’s head than fiber coupled systems23.
One aspect to consider regarding the accuracy of the neuron identification in the two focal planes, is that current neuron registration algorithms mainly target session-to-session registration6,31, and therefore rely on spatial information only to infer the likelihood of two neurons being the same; in the multi-plane context, there is also a temporal component which can be used, as the extracted calcium traces from the same neuron in the two planes are expected to be very similar. A hybrid registration method which accounts for both spatial and temporal neural components would improve the accuracy of neuron identification in multi-plane imaging.
We believe ETLs will be integrated increasingly more in miniature single- and multi-photon microscopes due to the advantages it offers over other tunable focus technologies20. A potential development of the variable focus design is the application to dual-color imaging, where focal plane change between the two layers of neurons imaged with two different colors can be corrected for on alternating frames.
Data availability
The datasets generated during and/or analyzed during the current study are available from the corresponding author on reasonable request.
Code availability
The code and design files are available on github at https://github.com/giovannibarbera/miniscope_v2.0.
References
Ghosh, K. K. et al. Miniaturized integration of a fluorescence microscope. Nat. Methods 8, 871–882 (2011).
Yang, W. & Yuste, R. In vivo imaging of neural activity. Nat. Methods 14, 349–359 (2017).
Stamatakis, A. M. et al. Miniature microscopes for manipulating and recording in vivo brain activity. Microscopy 70, 399–414. https://doi.org/10.1093/jmicro/dfab028 (2021).
Aharoni, D. & Hoogland, T. M. Circuit investigations with open-source miniaturized microscopes: Past, present and future. Front. Cell. Neurosci. 13, 141–141. https://doi.org/10.3389/fncel.2019.00141 (2019).
Malvaut, S., Constantinescu, V.-S., Dehez, H., Doric, S. & Saghatelyan, A. Deciphering brain function by miniaturized fluorescence microscopy in freely behaving animals. Front. Neurosci. 14, 819. https://doi.org/10.3389/fnins.2020.00819 (2020).
Ziv, Y. et al. Long-term dynamics of CA1 hippocampal place codes. Nat. Neurosci. 16, 264–268 (2013).
Barretto, R. P. et al. Time-lapse imaging of disease progression in deep brain areas using fluorescence microendoscopy. Nat. Med. 17, 1–15 (2011).
Zhang, J. et al. All-optical imaging and patterned stimulation with a one-photon endoscope. bioRxiv. https://doi.org/10.1101/2021.12.19.473349 (2021).
Stamatakis, A. M. et al. Simultaneous optogenetics and cellular resolution calcium imaging during active behavior using a miniaturized microscope. Front. Neurosci. 12, 496. https://doi.org/10.3389/fnins.2018.00496 (2018).
Vickstrom, C. R., Snarrenberg, S. T., Friedman, V. & Liu, Q.-S. Application of optogenetics and in vivo imaging approaches for elucidating the neurobiology of addiction. Mol. Psychiatry 27, 640–651. https://doi.org/10.1038/s41380-021-01181-3 (2021).
Iii, W. A. L., Perkins, L. N., Leman, D. P. & Gardner, T. J. An open source, wireless capable miniature microscope system. J. Neural Eng. 14, 1–9 (2017).
Barbera, G., Liang, B., Zhang, L., Li, Y. & Lin, D.-T. A wireless miniScope for deep brain imaging in freely moving mice. J. Neurosci. Methods 323, 56–60. https://doi.org/10.1016/j.jneumeth.2019.05.008 (2019).
Leman, D. P. et al. Large-scale cellular-resolution imaging of neural activity in freely behaving mice. bioRxiv. https://doi.org/10.1101/2021.01.15.426462 (2021).
Jercog, P., Rogerson, T. & Schnitzer, M. J. Large-scale fluorescence calcium-imaging methods for studies of long-term memory in behaving mammals. Cold Spring Harb. Perspect. Biol. https://doi.org/10.1101/cshperspect.a021824 (2016).
Guo, C. et al. Miniscope-LFOV: A large field of view, single cell resolution, miniature microscope for wired and wire-free imaging of neural dynamics in freely behaving animals. bioRxiv. https://doi.org/10.1101/2021.11.21.469394 (2021).
Zong, W. et al. Miniature two-photon microscopy for enlarged field-of-view, multi-plane and long-term brain imaging. Nat. Methods 18, 46–49. https://doi.org/10.1038/s41592-020-01024-z (2021).
Piyawattanametha, W. et al. In vivo brain imaging using a portable 2.9g two-photon microscope based on a microelectromechanical systems scanning mirror. Opt. Lett. 34, 2309–2311 (2009).
Zong, W. et al. Fast high-resolution miniature two-photon microscopy for brain imaging in freely behaving mice. Nat. Methods 14, 713–719. https://doi.org/10.1038/nmeth.4305 (2017).
Grewe, B. F., Voigt, F. F., Van’t Hoff, M. & Helmchen, F. Fast two-layer two-photon imaging of neuronal cell populations using an electrically tunable lens. Biomed. Opt. Express 2, 2035–2046. https://doi.org/10.1364/BOE.2.002035 (2011).
Ito, K. N., Isobe, K. & Osakada, F. Fast z-focus controlling and multiplexing strategies for multiplane two-photon imaging of neural dynamics. Neurosci. Res. 179, 15–23. https://doi.org/10.1016/j.neures.2022.03.007 (2022).
Zou, Y., Zhang, W., Chau, F. S. & Zhou, G. Miniature adjustable-focus endoscope with a solid electrically tunable lens. Opt. Express 23, 20582–20592. https://doi.org/10.1364/OE.23.020582 (2015).
Supekar, O. D. et al. Two-photon laser scanning microscopy with electrowetting-based prism scanning. Biomed. Opt. Express 8, 5412–5426. https://doi.org/10.1364/BOE.8.005412 (2017).
Ozbay, B. N. et al. Three dimensional two-photon brain imaging in freely moving mice using a miniature fiber coupled microscope with active axial-scanning. Sci. Rep. 8, 8108. https://doi.org/10.1038/s41598-018-26326-3 (2018).
Bagramyan, A., Galstian, T. & Saghatelyan, A. Motion free micro-endoscopic system for imaging in freely behaving animals at variable focal depths using liquid crystal lenses. In Three-Dimensional and Multidimensional Microscopy: Image Acquisition and Processing XXVI Vol. 10883. https://doi.org/10.1117/12.2508929 (2016).
Bagramyan, A. et al. Focus-tunable microscope for imaging small neuronal processes in freely moving animals. Photon. Res. 9, 1300–1309. https://doi.org/10.1364/PRJ.418154 (2021).
Tehrani, K. F. et al. Five-dimensional two-photon volumetric microscopy of in vivo dynamic activities using liquid lens remote focusing. Biomed. Opt. Express 10, 3591–3604. https://doi.org/10.1364/BOE.10.003591 (2019).
Zhang, Y. et al. Detailed mapping of behavior reveals the formation of prelimbic neural ensembles across operant learning. Neuron 110, 674–685.e6. https://doi.org/10.1016/j.neuron.2021.11.022 (2021).
Zhang, L. et al. Miniscope GRIN lens system for calcium imaging of neuronal activity from deep brain structures in behaving animals. Curr. Protoc. Neurosci. 86, e56. https://doi.org/10.1002/cpns.56 (2018).
Barbera, G. et al. Spatially compact neural clusters in the dorsal striatum encode locomotion relevant information. Neuron 92, 202–213 (2016).
Giovannucci, A. et al. CaImAn: An open source tool for scalable calcium imaging data analysis. eLife 8, e38173. https://doi.org/10.7554/eLife.38173 (2019).
Sheintuch, L. et al. Tracking the same neurons across multiple days in Ca2+ imaging data. Cell Rep. 21, 1102–1115. https://doi.org/10.1016/j.celrep.2017.10.013 (2017).
Acknowledgements
Research is supported by the Intramural Research Program, National Institute on Drug Abuse, National Institutes of Health. YL is supported by National Institutes of Health grants 5P20GM121310, R61NS115161, and UG3NS115608. GB, YZ, D-TL supported by U.S. Department of Health & Human Services | NIH | National Institute on Drug Abuse (NIDA) (Grant No. ZIA DA000603). We would like to thank the Genetically-Encoded Neuronal Indicator and Effector (GENIE) Project and the Janelia Research Campus of the Howard Hughes Medical Institute (HHMI) for generously allowing the use of GCaMP7 in our research. This work utilized the computational resources of the NIH HPC Biowulf cluster (http://hpc.nih.gov).
Funding
Open Access funding provided by the National Institutes of Health (NIH).
Author information
Authors and Affiliations
Contributions
D.T.L., G.B., Y.Z., R.J., and Y.L. conceptualized the project. G.B. and Y.Z. constructed the experimental setup, and G.B. and B.L. built the custom imaging system. R.J. and Y.Z. performed the surgeries and all the animal imaging experiments. G.B. performed the data analysis and wrote the manuscript. All authors contributed critical intellectual inputs throughout the project. D.T.L. supervised the entire project.
Corresponding authors
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher's note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary Information
Supplementary Video 1.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, 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 changes were made. 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/4.0/.
About this article
Cite this article
Barbera, G., Jun, R., Zhang, Y. et al. A miniature fluorescence microscope for multi-plane imaging. Sci Rep 12, 16686 (2022). https://doi.org/10.1038/s41598-022-21022-9
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598-022-21022-9
- Springer Nature Limited
This article is cited by
-
On Optimizing Miniscope Data Analysis with Simulated Data: A Study of Parameter Optimization in the Minian Analysis Pipeline
Neuroscience and Behavioral Physiology (2024)