A structured-illumination miniscope for optically sectioned imaging and real-time neural decoding

Curation statements for this article:
  • Curated by eLife

    eLife logo

    eLife Assessment

    This useful study describes a well-designed lightweight head-mounted microscope that uses structured illumination to suppress out-of-focus background fluorescence, potentially enhancing real-time decoding of neuronal activity. However, the evidence for its central performance claims is incomplete: whereas the method shows improvement compared to unprocessed conventional images, typical image processing steps widely used in the field generated similar results, suggesting a limited practical advance.

This article has been Reviewed by the following groups

Read the full article

Abstract

Single-photon miniscopes enable large-scale calcium imaging in freely behaving animals but are limited by out-of-focus background fluorescence that degrades image contrast and single-cell signal fidelity. Multiphoton approaches address this limitation but remain costly and complex. Here we introduce a lightweight (<3 g), low-cost structured illumination miniscope that achieves optical sectioning in freely behaving mice. Using HiLo imaging implemented with a simple Ronchi grating and time-multiplexed excitation, the system strongly suppresses background fluorescence while preserving the speed, field of view, and accessibility of widefield miniscopes, and supports optical-sectioned multi-plane imaging to increase neuronal yield. Using hippocampal recordings, we show enhanced region-of-interest (ROI)-based signal quality and spatial information readout, allowing simple ROI-averaged signals to approach the performance of offline algorithm-extracted signals. We further demonstrate a proof-of-principle closed-loop brain–machine interface enabled by rapid online signal extraction and real-time neural decoding. Together, these results establish structured illumination as a practical and accessible strategy for achieving high-contrast calcium imaging with miniaturized microscopes.

Article activity feed

  1. eLife Assessment

    This useful study describes a well-designed lightweight head-mounted microscope that uses structured illumination to suppress out-of-focus background fluorescence, potentially enhancing real-time decoding of neuronal activity. However, the evidence for its central performance claims is incomplete: whereas the method shows improvement compared to unprocessed conventional images, typical image processing steps widely used in the field generated similar results, suggesting a limited practical advance.

  2. Reviewer #1 (Public review):

    Summary:

    The manuscript reported a miniscope that implemented a Hi-Lo structured imaging technique for recording neural activity. The authors presented solid data supporting the advantages of having Hi-Lo, which suppressed the image background and generated better-quality raw images for neural decoding. The better raw images, in turn, improved real-time decoding results to a level close to offline decoding. The manuscript demonstrated a closed-loop brain-machine interface using real-time decoding of the Hi-Lo images from the miniscope.

    Strengths:

    The work is solid and presents a valuable technique improvement in a head-mounted brain miniscope.

    Weaknesses:

    (1) Offline processes are progressing fast and could quickly become capable of running real-time with hardware advancement and algorithm optimalization. The physical technique improvement, i.e. Hi-Lo, that allows simpler but real-time decoding methods, is in competition with advanced decoding methods, which may be capable of real-time process quickly.

    (2) The miniscope also implemented depth tuning and demonstrated multi-plane imaging. The depth tuning speed, however, is too slow for 3D imaging of neural activities. In practice, acquisition must select one or two depths and extract ROI from them. There is potential to use the depth tuning to target a certain group of neurons. But the work did not sufficiently discuss how the depth-tuning and multi-plane imaging capability was used in in vivo studies, or what criteria were used to set the image depth of the ROI.

  3. Reviewer #2 (Public review):

    Summary:

    This manuscript presents a miniaturized microscope capable of structured illumination using the HiLo approach. This is achieved through adding a second excitation path with a Ronchi grating to generate time-multiplexed excitation that sequentially generates wide-field and lined images at 15 FPS each. Through lightweight HiLo computation, this results in a 15 FPS recording with larger spatial components removed. Structured illumination can reduce background signal, out-of-focus neuronal signals, and can achieve optical sectioning for multi-plane imaging in some cases. The core engineering idea in this manuscript is clever and motivated by a fundamentally limiting aspect of wide-field imaging.

    My central problem is that I cannot identify what the authors are arguing for overall. The paper evaluates HiLo against two conditions: raw widefield ROI pixel-averaging, and full CNMF source extraction. Nothing in between the 2 extremes is considered but this is the space where it seems the real gains from this approach could be made. Within those two conditions, the authors report that after CNMF extraction, HiLo provides no significant advantage in SNR or decoding accuracy. A spatial-information difference remains, but it disappears for deconvolved signals after event-rate matching. The conclusion I can draw from the manuscript's central figure is that one should use a conventional widefield miniscope and run CNMF. The remaining claim, that HiLo lets you skip offline demixing, is a narrow one, and it is not demonstrated, including in the authors' closed-loop experiment, where spatial footprints were identified offline in advance. I do not think this is what the authors intend to convey, but the manuscript lacks support for another story.

    Beyond this, the manuscript has a number of unsupported critical claims and gaps in methodology and comparisons, which I try to outline below. I think the approach and tool itself are interesting, but as presented, I am not able to judge how much it improves real-world 1p imaging, and I suspect the improvement is smaller and more specific than the framing implies. To be clear, I think there is value in this work, but I think the claims need to be narrowed to what is currently demonstrated or analysis be added to support unsupported claims.

    Major Concerns:

    (1) The comparison space is missing its middle, where HiLo would be most relevant to compare against other widefield processing

    HiLo combines a physical change in hardware and acquisition with a computational processing step, and the manuscript never separates the two. The demonstrated advantages of this approach are either measured against unprocessed widefield or mostly disappear once CNMF is applied.

    The comparison that likely is most relevant, widefield with lightweight preprocessing alone, spatial filtering and background subtraction as simple as removing a minimum projection, appears nowhere. These steps are standard in the field and are built into essentially every CNMF pipeline, including Minian, MIN1PIPE, and CaImAn. As presented, it is unclear whether the physical Ronchi mask achieves anything that lightweight preprocessing cannot.

    The current comparisons do not establish how much benefit specifically requires patterned acquisition rather than lightweight digital background suppression: HiLo + CNMF performs no better than widefield + CNMF on SNR or decoding accuracy. The small spatial information difference that remains does not survive the authors' own activity rate matching control. If optical sectioning were removing background that computation could not, these comparisons should favor HiLo.

    Separately, and I do not see this acknowledged anywhere, HiLo is given twice the raw data, since each output frame is built from two camera frames while the widefield condition is one of those streams at 15 FPS.

    (2) Inconsistent use of CNMF-E comparisons

    CNMF is run with different parameters on the two modalities, justified on the grounds that the modalities "differ in signal intensity and signal-to-noise characteristics." That difference is the quantity being measured, so the justification is possibly circular.

    CNMF is also used in two structurally different roles that are never distinguished. In one, it serves only to find and segment cell footprints. In the other, its extracted traces are used directly. The first use discards demixing, which is a major point of CNMF and the reason it is standard in the field, not SNR improvement. The manuscript does not address demixing, which is arguably the most important processing challenge in 1P imaging due to scattering and cell overlap. Optical sectioning can indeed help in certain cases of this but that isn't argued, supported, or shown here. It leaves me asking what I think is an important question given how this manuscript is structured: what are the limits on how HiLo can separate out-of-plane cells?

    (3) Concerns around simulated data

    The performance of HiLo depends on the patterned line spacing/frequency relative to the spatial scale of features being suppressed vs retained. The simulated data does not address this dependency. The grating period is given as roughly 28 µm at the sample plane, but the spatial frequency response it produces is never characterized, and the simulated neurons and local background are described only as having "distinct dimensions" with no sizes stated. The one ratio that determines the outcome is therefore unspecified on both sides. Without a spatial frequency filtering curve, or performance across a range of spatial scales, the simulation could simply be tuned to the pattern spacing that gives optimal results. Related to this: how was the pattern line spacing determined? Was it optimized for the brain region, microscope parameters, expression pattern, and imaging depth used in experiments? This is not discussed.

    (4) Support for calling HiLo "multi-plane or volumetric imaging"

    I do not think the data support this being two distinct planes in the brain. The quoted axial sectioning is narrower than the stated separation between the two planes, which should leave little signal leaking between them, yet Figure 3D reports a substantial fraction of cells detected in both. These are difficult to reconcile.

    Field curvature is a possible straightforward alternative explanation for two focal settings yielding largely non-overlapping cell sets, and nothing in Figure 3 distinguishes it from true depth sectioning. It would equally explain the SNR difference in Figure 3E as increased aberration toward the edge of the GRIN lens. CA1 is also approximately a single cell layer thick, which makes resolving cells at truly different depths here unlikely. I am not suggesting that these alternatives necessarily explain the result, but they should be distinguished from true depth-resolved optical sectioning before the data are characterized as volumetric imaging.

    Lastly, the claim in lines 165-168 that this "increases neuronal yield while maintaining reliable signal quality across imaging depths" lacks the proper comparison. Figure 3 has no widefield condition, so yield is compared only against a single HiLo plane. The proper comparison would be against processed widefield imaging at a single optimally-chosen focal plane. Lower per-plane counts are also expected by design under optical sectioning and cannot serve as evidence of improved performance without that control.

    (5) Place cell analysis

    I have several methodological concerns with the place cell analysis:

    a) Place field analysis should use deconvolved neural activity, not calcium signals. Deconvolved signals appear only in Figure 4 and Figure Supplement 2; the main figure uses ΔF/F for the ROI condition and raw CNMF fluorescence for the other.

    b) Lines 170-172 motivate this analysis by the "improved performance of HiLo imaging in suppressing background fluorescence for ROI-based signals," but ROI averaging without demixing is not the standard analysis for place-cell inference. CNMF or similar demixing is generally used and should be the main comparison.

    Concerning the spatial info content differences in Figure 4: how do the authors know that HiLo+CNMF is more correct than WF+CNMF? They observe a minor but significant difference, but there is no literature (and none cited) that would support the implied conclusion that, since HiLo results in higher spatial info content, it is somehow extracting more accurate neuronal dynamics. Even if decoding performance improved, Figure 4I shows no significance for CNMF-extracted signals, and artificially suppressing weak parts of a place field could improve these metrics without reflecting truer neural signals. The authors' own data argue for exactly this: HiLo signals show significantly lower event rates, and when event rates are matched between conditions the spatial information difference disappears (Figure 4-figure supplement 2). However, this control was applied only to the deconvolved signals and not to the ROI-based signals that carry the central claim.

    (6) Real-time experiment adds little value

    The closed-loop demonstration does not establish that HiLo enables anything beyond current capabilities. Spatial footprints are identified offline before training, and there are existing real-time streaming calcium imaging approaches that work once cell footprints are identified. The DeCalciOn approach (Chen et al., eLife 2023) demonstrates that similar decoder performance can be achieved without even requiring cell ROIs.

    I do note that the discussion states these demonstrations are not intended to define the primary application domain of the device. Nevertheless, the title leads with real-time neural decoding, and the demonstration occupies a main figure. I don't believe anything in it demonstrates that the described experiments are enabled by HiLo and could not be done with existing widefield systems right now. The authors would benefit from being able to directly show and argue for this, or they should change the framing of this section.

    Overall Assessment:

    The core engineering contribution, integrating structured illumination into a miniature microscope with a reasonably direct approach, is a clever design that is worth reporting. However, the manuscript's central claims about improved performance are undermined by how the comparisons are set up. Fully processed HiLo data is placed against either raw widefield or full CNMF, with nothing in between, and that middle ground is where the standard lightweight processing used across the field actually sits. Where CNMF is applied to both, the advantage largely disappears, which makes it difficult to tell what the physical approach is contributing at all. The multi-plane imaging claims may be overstated and potentially confounded by field curvature, while the correspondence between the bench calibration and effective in vivo axial sectioning is not directly validated. The place cell analysis has methodological issues, and the real-time decoding demonstration does not establish that HiLo enables capabilities beyond what existing systems can achieve.

    My view is that the claims need to be narrowed to what is currently demonstrated, or the analyses added to support them, and I would be happy to read and review a revised version.

  4. Reviewer #3 (Public review):

    Summary:

    The authors report on a structured illumination miniscope for optical sectioning imaging and multiplane focusing and demonstrate the device on freely moving mice, showing improved decoding accuracy from Ca2+ activity in place cells in the hippocampus. They compare optical sectioning with a simple widefield miniscope technique, demonstrating that the contamination of background activity complicates neural decoding. They also compare their optical sectioning results with CNMF-E extracted widefield signals and show that they are equivalent. The primary motivation then is the ability to potentially directly obtain signal without the post-processing CNMF-E step, although this is less impactful since with calcium imaging CNMF-E can be done in realtime. The authors also show very preliminary real-time feedback based on correlation measurements of hippocampal activity with a reward. Overall, the results show a nice demonstration of the use of an optical-sectioning miniscope for calcium activity decoding and real-time feedback with potential benefit for researchers interested in studies of brain-machine interfaces, although this could be done with a simpler widefield miniscope.

    Strengths:

    (1) Novelty of the Ronchi grating technique and time-separated acquisition to obtain HiLo in a low-weight device.

    (2) Use of multiplane imaging to improve the number of cells acquired.

    (3) Decoding experiments show nice results on the improvement with optical sectioning and show an additional verification of CNMF-E performance.

    (4) Real-time feedback experiments are interesting but not as well developed.

    Weaknesses:

    (1) The device characterization was all performed without a GRIN relay lens, while the actual use included the GRIN lens. Because GRIN lenses can cause severe aberrations, the authors should also perform their characterization in fixed tissue with the GRIN lens, and it would be helpful to compare the results to those without the GRIN lens.

    (2) The authors state that they can reconstruct optical sectioned images only down to 132 microns in fixed tissue, but the in vivo data is acquired at 212- and 179-microns depths. Can the authors explain this discrepancy? The signal-to-noise degradation at depth should be addressed more quantitatively. For example, one can calculate the modulation contrast-to-noise ratio to determine how scattering at greater depths affects the signal-to-noise in the image reconstruction. Also, providing more quantitative details on signal-to-noise in the fluorescence time series at different depths would be useful.

    (3) When showing two-plane imaging, why was the imaging rate 2.5 Hz instead of just half of the one-plane imaging rate (15 Hz)? The two-plane image rate is very low and could cause an issue with correcting for motion. Can the authors show the amount of motion they observed?

    (4) Please discuss how motion was corrected in the HiLo reconstruction when using structured illumination frames.

    (5) Additionally, the authors should report on any differences in animal movement with the device by comparing the trajectory of the mouse in the arena with and without the miniscope attached, for example, by quantifying speed, distance, etc.

    (6) The closed-loop experiments could use a more detailed description. I was unclear on several things in the behavior experiments. When the mice were initially presented with the olfactory cue to measure the activity template, was that done with or without reward? Figure 5B shows training data, but I couldn't figure out from the text how training was performed, whether odor was used, for how long, and how training differed from the experimental sessions.

    (7) Additionally, for the closed-loop experiments, how much brain motion was observed, and how was this motion corrected in real time.

    (8) How did the authors justify the odor template as averaging activity within 0.5 - 1.5 s following odor delivery as opposed to other possible signals or time scales?

  5. A structured-illumination miniscope for optically sectioned imaging and real-time neural decoding #SingleCell 🧪🧬🖥️ https://www.biorxiv.org/content/10.64898/2026.07.13.738146v1

  6. A structured-illumination miniscope for optically sectioned imaging and real-time neural decoding https://www.biorxiv.org/content/10.64898/2026.07.13.738146v1

  7. A structured-illumination miniscope for optically sectioned imaging and real-time neural decoding https://www.biorxiv.org/content/10.64898/2026.07.13.738146v1