Skip to content

Classical reconstruction methods

Before neural fields, reconstruction meant inverting the forward model directly, with a rule that keeps noise from being amplified where the optics pass little signal. These methods are fast and well understood, and every pySRX result is compared with them.

Method Idea Typical use In pySRX
Inverse and Wiener filtering divide by the OTF in Fourier space; Wiener damps the division where the signal-to-noise ratio is low fast deconvolution; classical SIM reconstruction (Gustafsson 2000, 2008) not in pySRX; ZEN SIM, the vendor reconstruction, is the reference on the lattice SIM page
Tikhonov (regularised least squares) minimise \(\lVert Hx - y \rVert^2 + \lambda \lVert x \rVert^2\): Gaussian noise and a penalty on large values a quick linear baseline solvers.opsolve.tikhonov_op
Richardson-Lucy the EM update for the Poisson likelihood: multiplicative, keeps \(x \ge 0\); stopping early regularises widefield, confocal and light-field deconvolution (Broxton et al. 2013) rl_op (any operator, optional acceleration and TV); solvers.rl.richardson_lucy (light field)
MAP with total variation the Poisson likelihood plus a total-variation prior, optimised by gradients noisy data, piecewise-smooth samples solvers.map.map_recon; rl_op(tv=...)

All four describe the sample as a voxel grid and differ in the noise model and the prior. Their weak points are shared: a trade-off between noise and blur set by hand (\(\lambda\), the number of iterations), a grid fixed in advance, and artefacts (ringing, the honeycomb of SIM) when the PSF or the pattern is slightly wrong. The world model keeps the operator and the Poisson likelihood and changes only the representation of the sample.

The limitation: the PSF is not the sample's PSF

Every method above assumes one known PSF, computed from theory (NA, wavelength, refractive index) or measured on beads on a coverslip. Inside a biological sample, neither is exact.

The XZ point spread function of an oil objective at 0, 10 and 30 µm depth: in a matched medium it stays the same; in water it dims, stretches along z and shifts

Simulated (scalar pupil model, NA 1.3, 525 nm): an oil objective focused into oil keeps its PSF at any depth. Focused into water or cells, the PSF dims to 44 % of its peak at 10 µm and 23 % at 30 µm, stretches along z and moves away from the nominal focus.

  • Refractive-index mismatch. Oil objectives are designed for \(n = 1.518\) all the way to the focus; cells and their media are 1.33 to 1.38. The deeper the focus, the stronger the spherical aberration: the PSF stretches along z, dims, and the focus shifts, so planes appear at the wrong depth.
  • An uneven medium. Nuclei, lipids, membranes and tissue differ in refractive index. They bend and scatter light, so the PSF changes from place to place and with depth, and scattered light adds a diffuse haze.
  • A tilted sample. A coverslip or tissue slice that is not square to the optical axis puts more mismatched medium on one side of the pupil than the other. The PSF leans and moves sideways, so it is no longer symmetric, and a symmetric PSF model cannot describe it.

    The XZ and XY point spread function 20 µm into water through an interface tilted by 0, 5 and 10 degrees: the PSF leans and moves sideways by 0.29 and 0.59 µm

    Simulated as above, 20 µm into water through an interface tilted by 0°, 5° and 10°: the PSF leans along the tilt and its centre moves sideways by 0.29 µm and 0.59 µm, more than its own width.

  • Spatially varying optics. Field curvature and off-axis aberrations change the PSF across the field; in a light-field microscope every view has its own PSF.

  • The consequence. Deconvolving with the wrong PSF does not just leave some blur: it creates artefacts, such as ringing around bright objects, the honeycomb of SIM, structures at the wrong depth and lost signal, and more iterations amplify them.

What pySRX does about it today: PSFs are 3D (one per plane) and computed in the medium's refractive index (ConfocalOptics(n_medium=...)); light-field PSFs and focal groups are calibrated from data, per view; the SIM pattern and its amplitudes are fitted from the raw data (estimate_pattern, fit_amplitudes) instead of assumed; and a smooth per-view haze term takes up scattered and out-of-volume light (MAP and the neural field). Not modelled yet: the depth-dependent aberration of an index mismatch, a tilted sample, a PSF that varies across the field, and aberrations caused by the sample itself.

Reconstruction artefacts

A reconstruction can look sharp and still be wrong. This section collects where the artefacts of the classical methods come from, and why a narrower peak is not by itself evidence of more resolution.

Deconvolution is ill-posed

The microscope blurs the sample \(x\) with the PSF \(h\) and adds noise \(n\): \(y = h \circledast x + n\). Undoing this is ill-posed in three ways.

  • Not unique. Many pairs of object and PSF give the same image; even with the PSF known, whatever the OTF does not pass cannot be pinned down by the data.
  • Unstable. A small change in the data can make a large change in the result.
  • Noise is amplified. In Fourier space the blur is a product, \(\tilde Y = \tilde H \tilde X + \tilde N\), so the direct inverse is a division:

    \[ \frac{\tilde Y(\mathbf{k})}{\tilde H(\mathbf{k})} = \tilde X(\mathbf{k}) + \frac{\tilde N(\mathbf{k})}{\tilde H(\mathbf{k})} . \]

    Where the OTF \(\tilde H\) is small, towards the cutoff, the second term dominates and the noise is blown up.

The Wiener filter damps the division where the signal is weak,

\[ \hat X(\mathbf{k}) = \frac{\tilde H^{*}(\mathbf{k})\, \tilde Y(\mathbf{k})}{\lvert \tilde H(\mathbf{k}) \rvert^{2} + w^{2}}, \]

with \(w^2\), a noise-to-signal ratio, set by hand. Every method in the table above is a way of deciding how much to trust the frequencies the optics pass weakly: through \(w\), \(\lambda\), the number of iterations or a prior.

SIM artefacts

Classic SIM (Gustafsson 2000, 2008) separates the raw phase images into orders, shifts each order back to its place in Fourier space and combines them with a generalised Wiener filter. Each step can leave a trace in the image:

  • Noise, amplified where the combined OTF is weak, as above.
  • Imperfect alignment. A pattern period, angle or phase estimated slightly wrong puts the shifted orders in the wrong place, which leaves stripes or a periodic texture.
  • Missing information. With too few illumination phases the orders cannot be separated cleanly, and what is left of one order leaks into the others.
  • Sidelobes. The combined OTF is not smooth (see the figure below), so the effective PSF has side peaks that repeat around every bright point; with three pattern directions they form the honeycomb of SIM.
  • Tilted samples. The pattern and the PSF are no longer the same across the field (above), so a single set of pattern parameters leaves higher-order artefacts.

Theoretical and ideal SIM: the OTF with a downward kink and residual background, the PSF with sidelobes, and the honeycomb artefacts of three pattern directions, compared with HiFi-SIM

(a) Left: the OTF of TIRF, of SIM as theory gives it (the shifted copies of the detection OTF summed) and of an ideal SIM (the TIRF OTF stretched to the extended cutoff \(k_c + k_{ex}\)). The theoretical OTF has a downward kink where the copies meet and a residual background peak at each shifted zero frequency. Right: the matching PSFs; the theoretical SIM PSF has sidelobes about 130 nm either side of the peak. (b) One pattern direction: the OTF and the PSF with sidelobes on both sides. (c) Three directions: six sidelobes around the peak, the honeycomb. (d) The same with HiFi-SIM, which engineers the OTF towards the ideal one. (e, f) Profiles through (c) and (d): sidelobe artefacts in frequency, optical sectioning, honeycomb artefacts around the circle and sidelobes in real space. Reproduced from Wen et al. (2021), Light Sci. Appl. 10, 70, CC BY 4.0 (G. Wen et al., High-fidelity structured illumination microscopy by point-spread-function engineering).

TIRF-SIM of 100 nm beads: the field of beads, one bead enlarged with a ring of side peaks around it, and its Fourier spectrum

The same artefact in real data: TIRF-SIM of 100 nm beads, reconstructed with HiFi-SIM. Left: the field, one bead boxed. Middle: that bead enlarged; a bead much smaller than the PSF should be a single spot, but here it is surrounded by a ring of side peaks. Right: the Fourier spectrum. Courtesy Y. Zhang.

Sharper is not truer

Does a sharper reconstruction reveal more biological truth? The usual evidence for resolution is the full width at half maximum (FWHM) of a thin structure, but the FWHM measures only the central peak. Sidelobes, ringing and over-sharpening (a Wiener parameter set too small, too many iterations, strong background subtraction) all make that peak narrower without adding information.

Microtubules in widefield, classic SIM and SIM², with a line profile: the classic SIM peak is narrow but has side peaks either side

Microtubules, the same field in widefield, classic SIM and SIM² (scale bar 3 µm), and a line profile across one filament. Classic SIM has the narrowest peak, but also side peaks about 0.2 µm either side, at half the peak height, that the widefield profile does not have; SIM² is wider and has none. Courtesy K. Korobchevskaya.

HeLa actin in TIRF and TIRF-SIM: the cell split along a diagonal, a region in each, and a line profile across four filaments

HeLa cells, actin labelled with Atto 488, TIRF and TIRF-SIM at 488 nm with a 1.41 NA objective. Left: one cell, TIRF to the left of the diagonal and TIRF-SIM to the right (scale bar 10 µm). Middle: a region in TIRF and in TIRF-SIM. Right: a line profile across four filaments (intensity in arbitrary units). Gaussian fits to the TIRF-SIM peaks give a mean FWHM of 87 ± 8 nm, about the \(\lambda / 4\mathrm{NA} \approx 92\) nm expected of linear SIM for 520 nm emission, and between the peaks the profile falls to zero where TIRF records signal. Courtesy K. Korobchevskaya.

A narrow FWHM is therefore not proof of resolution. Two checks are harder to fool, and pySRX reports both:

  • Split FRC (how). Reconstruct two independent halves of the photons and find the frequency where the two stop agreeing. Amplified noise differs between the halves and does not count. It does not catch an artefact both halves share, such as a sidelobe of the same filter.
  • Prediction of held-out data. Leave one raw image out of the fit and predict it through the forward model. Structure that is not in the sample predicts photons that were not recorded, and the deviance rises. On the lattice SIM page, ZEN SIM has the finest decorrelation resolution but predicts a held-out phase worst.

The world model never filters the data: it keeps the Poisson likelihood of the raw counts, so every structure in the result has to explain the recorded photons through \(H\), and a sidelobe that the data do not contain costs likelihood. That does not make it immune: Richardson-Lucy run for too long still sharpens noise, which is why the metrics above are reported with every result.