Skip to content

Lattice SIM: ZEISS Elyra

Elyra-SIM-Recon reconstructs ZEISS Elyra lattice SIM data with pySRX as a world model: the lattice illumination is fitted from the raw data, the microscope is written as one forward operator, and the sample is recovered by Richardson-Lucy, MAP or a neural field (the Lattice SIM NeRF) through that operator. This page follows the project's slide deck.

The lattice-SIM light path, animated over the 13 lattice phases: the sample is the plane times the 4-beam lattice, and the camera shows the real raw phases

The lattice-SIM light path, animated over the 13 lattice phases. The sample is the ZEN 488 plane times the 4-beam lattice (its period exaggerated); the camera shows the real raw phases.

Lattice SIM in one view

Widefield over the full camera field with the crop outlined, then the crop: pseudo-widefield, the raw lattice phases in turn, and the reconstruction

63x/1.4 oil, 13 phases, 89 planes at 120 nm, 62.6 nm camera pixels (ZEN reconstructs on 31.3 nm); 488 nm, mitochondria (MT-CO1), mean signal 15 counts above the camera offset. Left: widefield over the full 80 µm field, the 10 µm crop outlined. Then the crop: pseudo-widefield (the mean of the 13 raw phases), the raw phases in turn as recorded (the lattice shifts between phases), and the reconstruction. Imaging: Robert Mitchell, Clarke Group, KIR, Oxford.

Illumination pattern

The power spectrum of the separated orders, with the fitted lattice circled: solid detected, dashed predicted but empty

The fitted modulation, animated over the 13 phase steps

Order Period (nm) SNR (dB) |co| (%)
±ka 722 not detected –
±kb 721 not detected –
±(ka + kb) 510 27 5.09
±(ka − kb) 510 26 5.52
±2ka 361 27 13.41
±2kb 360 33 28.14

The lattice is square, with a 720 nm basis period, 510 nm diagonals and 361 nm second harmonics; the fundamentals are empty. Left: the power spectra of the cross-correlation of each separated order with the zero order; a peak at an order's frequency means the order is present (the dotted circle is the detection OTF cutoff, 2 NA / λ). Right: the fitted modulation over the 13 phase steps. SNR is the spectral peak over the band median (detection threshold 16 dB); |co| is the fitted order amplitude relative to the zero order. Fitted with pysrx.optics.sim.estimate_pattern.

Forward model

The forward model on an illustrative cell, animated over the 13 phase steps: the sample times the lattice illumination, convolved with the PSF, binned onto the camera pixels, plus background, with Poisson noise

\[ \mathrm{raw}_h(\mathbf{r}) \sim \mathrm{Poisson}\!\left(\mathrm{bin}\left[\, \sum_{o} e^{i\varphi_{o,h}}\; p_o \circledast \left( c_o\, e^{2\pi i\, \mathbf{k}_o \cdot \mathbf{r}}\, x(\mathbf{r}) \right) \right] + b\right) \]
\[ \varphi_{o,h} = \frac{2\pi h\,(3m - 2n)}{13}, \qquad \mathbf{k}_o = m\,\mathbf{k}_a + n\,\mathbf{k}_b, \qquad h = 0, \ldots, 12 \]
Term Meaning
\(\mathrm{raw}_h(\mathbf{r})\) the detected raw image at phase step \(h\)
Poisson photon counting noise, applied last
\(\mathrm{bin}\) 2 x 2 sum onto the 62.6 nm camera pixels
\(p_o\) the 3D detection PSF (\(k_z = 0\): one widefield PSF)
\(\circledast\) 3D convolution
\(\sum_o c_o e^{i\varphi_{o,h}}\) the lattice illumination: 13 orders summed
\(x(\mathbf{r})\) the sample: the 3D fluorophore density
\(b\) bias and background counts

The Elyra steps the lattice by 3h and -2h thirteenths of a period along ka and kb, so order (m, n) carries the phase above: the 13 x 13 phase matrix is a DFT, and the 13 orders separate exactly. In pySRX this operator is pysrx.forward.sim.SimOperator.

Classic SIM, SIM² and pySRX

Classic SIM and SIM² both reconstruct from the separated orders. pySRX fits the raw phases themselves.

flowchart LR
  R["Raw phase images"] --> S["Order separation"] --> P["Parameter estimation<br/>period, angle, phase"]
  P --> W["Generalised Wiener filter"] --> SW["Shift and weight<br/>the orders"] --> C["Combine the orders"] --> O1["<b>Classic SIM</b>"]
  P --> D1["Iterative deconvolution<br/>of each order, own PSF"] --> D2["Combine, then iterative<br/>deconvolution of the result"] --> O2["<b>SIM²</b>"]
  P --> A["Forward operator<br/>SimOperator"] --> F["Fit the sample to the<br/>raw phases, Poisson:<br/>RL, MAP, NeRF"] --> O3["<b>pySRX</b>"]
  R --> F

Three ways from the same raw phase images. Classic SIM and SIM² reconstruct from the separated orders; pySRX uses them only to estimate the pattern and then fits the raw phases.

  • Classic SIM (Gustafsson 2000, 2008): record the phase images, separate the orders, estimate the pattern parameters, filter in Fourier space with a generalised Wiener filter, shift and weight the orders back into place, and combine them. Its typical artefacts are on the Concepts page.
  • SIM² (dual-iterative SIM; Löschberger et al. 2021) keeps order separation and parameter estimation but replaces the Wiener filtering and combination with two iterative deconvolution steps: first each order with its own PSF, then the combined result.
  • pySRX separates the orders only to estimate the pattern (above). The reconstruction does not separate them: the 13 raw phases are fitted directly through SimOperator with a Poisson likelihood, by Richardson-Lucy, MAP or the Lattice SIM NeRF (below). There is no Wiener parameter, and the result can be checked by predicting a raw phase left out of the fit.

ZEN SIM, the reference in the results, is ZEISS's classic SIM reconstruction in ZEN, not SIM².

The raw grid-projection frames of a cleared mouse retina, in turn

An example of SIM² on another sample: a cleared mouse retina imaged on a ZEISS Elyra 7. Left: the raw frames with the projected grid (Apotome grid projection), in turn. Below: pseudo-widefield, the classic SIM reconstruction and the SIM² reconstruction of the same field. SIM² gives a darker background and crisper processes than classic SIM; as with any filter-based result, the images alone cannot say how much of that the photons support.

A cleared mouse retina: pseudo-widefield, classic SIM and SIM² over the full field, and the boxed region enlarged below

Cleared mouse retina, ZEISS Elyra 7. From left: pseudo-widefield, classic SIM reconstruction, SIM² (dual-iterative SIM) reconstruction; bottom: the boxed region enlarged. Imaging: Kseniya Korobchevskaya and Christoffer Lagerholm, Oxford-ZEISS Centre of Excellence, University of Oxford. SIM²: A. Löschberger et al. Super-resolution imaging by dual iterative structured illumination microscopy. bioRxiv (2021), doi:10.1101/2021.05.12.443720.

Richardson-Lucy

Richardson-Lucy through the lattice-SIM operator on real data: a flat guess, the 13 predicted phase images, the ratio of recorded to predicted, and the better guess; left, the plane over 40 iterations

Start from a flat guess on the 31 nm object grid; predict the 13 phase images the camera should record (illuminate with each lattice position, blur by the PSF, bin onto the camera pixels); divide what the camera saw by that prediction (red: we predicted too little, blue: too much); send the ratio back through the exact adjoint (all 13 phases summed onto the object grid) and multiply the guess by it. The 13 raw phases play the role the 37 views play in the light field. Over 40 iterations the Poisson deviance falls from 55.1 to 2.47.

MAP by gradient descent

The MAP loss: Poisson deviance of the 13 predicted phase images plus a 3D TV prior, with ZEN, Richardson-Lucy and MAP side by side

\[ \hat{x} = \arg\min_{x \geq 0}\ \sum_h \sum_{\mathbf{r}} \left[ (Ax)_h + b - y_h \log\left( (Ax)_h + b \right) \right] + \lambda\, \mathrm{TV}(x), \qquad x = s\, \mathrm{softplus}(u) \]

The same Poisson model as Richardson-Lucy, written as a loss: the Poisson deviance of the 13 predicted phase images against the 13 recorded ones, plus a 3D total-variation prior (λ = 0.005). Writing the volume as a softplus keeps it non-negative; the gradient of the data term is exactly the back projection \(A^{\top}(1 - y / \mu)\), so the operator's adjoint does the work and autograd adds the rest. 300 Adam steps from 8 RL iterations, 62 s on an RTX 4000. Right: ZEN SIM, RL and MAP on the same 8 µm crop.

Lattice SIM as a NeRF

The 13 lattice positions as the NeRF cameras; one phase rendered step by step through the field, the illumination, the PSF and the camera binning; and rendering written as the forward operator A

The 13 lattice positions of the Elyra grating play the role of the NeRF cameras: each phase sees the same object under a shifted illumination, and summed over the 13 phases the lattice cancels to a flat field (widefield). Rendering one phase is exactly the forward operator A: lattice phase instead of camera pose, the 3D PSF instead of a pinhole lens, emission only (so the model is linear in x), and Poisson counts instead of photos with an L2 loss. The generic idea is on the Concepts page.

The hash grid for this tile: 16 grids from 1 µm to 31 nm cells, hash tables for the 4 finest, and a tiny MLP; bottom right, features of the trained field

The field replaces MAP's voxel grid by a function: 16 grids over the 16 µm tile, from 1 µm cells down to 31 nm (the object pixel), 221 table rows with 2 numbers each, hashed for the 4 finest grids, and an MLP (2 x 64) that decodes the emission density. It is fitted by the same Poisson deviance through the same operator, started from the RL volume: 150 steps, 324 s.

A dense voxel grid next to the neural field: parameter counts, and the field queried 8x finer than the grid

For one 16 µm tile the field has about 1.5 times more numbers than the voxel grid: there the gain is the representation (smooth, multi-scale, continuous: an implicit prior), not memory. The tables are capped, so the field stops growing while the grid grows with the volume: at the full 80 µm field, 413 M voxels against 31 M field parameters.

Results: 488 crop

Drag the divider, or pick the two methods to compare. Both views share the divider: XY at the middle plane, and XZ through the brightest row.

Pseudo-widefield ZEN SIM standard Tikhonov Poisson RL Lattice SIM NeRF Pseudo-widefield ZEN SIM standard Tikhonov Poisson RL Lattice SIM NeRF

MT-CO1 (mitochondria), 488 nm.

Pseudo-widefield ZEN SIM standard Tikhonov Poisson RL Lattice SIM NeRF
XY decorrelation (nm) 286 123 300 155 143
XZ decorrelation (nm) 242 245 268 217 217
Axial FWHM (nm) 5243 † 1574 3203 1180 1229
XY split FRC (nm) 298 n/a 190 ≤ 125 ≤ 125
Held-out deviance 2.295 * 7.133 2.949 2.177 2.170

Bold: the best reconstruction per metric (lower is better). Decorrelation [1]: the finest detail with signal above noise (lower is finer; also lowered by artefacts and fixed-pattern noise). Axial FWHM: the apparent z extent of bright structures. Split FRC: where reconstructions of two independent halves of the data stop agreeing (≤ 125: still at the camera Nyquist). Held-out deviance: how well a phase left out of the fit is predicted. * Widefield held-out: the mean of the other 12 phases (no model). † Widefield axial FWHM over the full 89-plane stack. n/a: ZEN cannot be re-run on half the counts (a closed pipeline). Each panel is shown from 0 to its own 99.8th percentile, at native pixels. Run on one RTX A4500: Tikhonov 11 s, RL 23 s, NeRF 879 s.
[1] A. Descloux, K. S. Grußmayer, A. Radenovic. Parameter-free image resolution estimation based on decorrelation analysis. Nat. Methods 16, 918–924 (2019). Imaging: Robert Mitchell, Clarke Group, KIR, Oxford.