<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>In-line holographic microscopy with model-based analysis</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>12/01/2022</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10417731</idno>
					<idno type="doi">10.1038/s43586-022-00165-z</idno>
					<title level='j'>Nature Reviews Methods Primers</title>
<idno>2662-8449</idno>
<biblScope unit="volume">2</biblScope>
<biblScope unit="issue">1</biblScope>					

					<author>Caroline Martin</author><author>Lauren E. Altman</author><author>Siddharth Rawat</author><author>Anna Wang</author><author>David G. Grier</author><author>Vinothan N. Manoharan</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[An in-line holographic microscope is an optical microscope outfitted with a coherent light source, such as a laser. Light scattered by the specimen interferes with the transmitted beam, and the intensity of that interference pattern constitutes a hologram. Unlike a conventional photograph, a hologram contains information about the phase of the scattered light that is useful for measuring the composition and 3D arrangement of microscopic objects in the specimen. This Primer presents an overview of experimental methods and discusses three recent analysis techniques: fitting scattering models to the hologram; using machine learning to localize and classify the specimen; and a hybrid approach that uses machine learning to initialize fits. The combination of holographic microscopy and model-based analysis is well suited to applications where precise, quantitative results are needed with high acquisition speed. Such applications include studying properties of heterogeneous colloidal dispersions, measuring colloidal interactions, monitoring stresses in soft materials, detecting molecular binding and aggregation, and following the motion of microorganisms in three dimensions. We discuss the reproducibility and current limitations of each method. Finally, we anticipate directions for future development and provide an outlook on the integration between experiment and computational analysis, an emerging paradigm for microscopy.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><p>It is not difficult to make a holographic microscope, a microscope that captures holograms rather than photographs. One needs only to replace the white light source in a standard light microscope with a laser aimed at the specimen. The resulting instrument captures in-line holograms <ref type="bibr">1</ref> . Although the word hologram might evoke images from popular culture, such as projections of Tupac Shakur or Princess Leia, a true hologram is not an image projected in 3D space. Instead, it is a 2D pattern of bright and dark fringes. The fringes of an in-line hologram form when light scattered from the specimen interferes with light transmitted through it, as shown in Fig. <ref type="figure">1a</ref>.</p><p>Compared with a conventional photograph, a hologram such as the example in <ref type="bibr">Fig. 1b</ref> can be difficult to interpret by eye. And unlike the vivid, colourful photo graphs captured by optical microscopy, the monochrome fringes of a hologram are unlikely to grace a journal cover. These concerns raise the question of why anyone would want to convert a microscope into a holographic microscope.</p><p>Our answer is that what is important is not the image itself but, instead, what we infer from it. We usually want to do more than just see a microscopic object; we want to precisely quantify its properties -what it is made of, how big it is, where it lies in 3D space and how fast it moves. This is where holographic microscopy excels. Electromagnetic radiation has both an amplitude and phase, but conventional optical microscopes capture little information about the phase. By contrast, a holographic microscope is designed to capture phase information, which is encoded in the fringes. The phase information allows us to quantify many features of a microscopic specimen. For example, the 3D structure and composition of a specimen can be inferred from a single 2D hologram. Denis Gabor, the inventor of holography, showed that shining light through a recorded hologram generates a 3D reconstruction of the light scattered by the original object <ref type="bibr">2,</ref><ref type="bibr">3</ref> . Reconstruction has enabled non-invasive 3D imaging of colloidal particles <ref type="bibr">[4]</ref><ref type="bibr">[5]</ref><ref type="bibr">[6]</ref> , material microstructures <ref type="bibr">7</ref> , microorganisms <ref type="bibr">4,</ref><ref type="bibr">[7]</ref><ref type="bibr">[8]</ref><ref type="bibr">[9]</ref><ref type="bibr">[10]</ref> and living eukaryotic cells <ref type="bibr">[11]</ref><ref type="bibr">[12]</ref><ref type="bibr">[13]</ref> . More complex optical set-ups can provide additional information about phase changes within a specimen <ref type="bibr">[14]</ref><ref type="bibr">[15]</ref><ref type="bibr">[16]</ref> and yield tomograms of complex 3D specimens <ref type="bibr">17,</ref><ref type="bibr">18</ref> .</p><p>This Primer focuses on an alternative analysis method ology: extracting information directly from the holo gram without reconstructing it. The analysis relies on physics-based models of how microscopic objects scatter light. Unlike reconstruction, model-based analysis requires prior information about the object's Holograms 2D intensity patterns resulting from the interference between light scattered from an object and a reference beam.</p><p>shape and structure. This information influences the choice of model. For objects such as colloidal particles, which might be described as spheres <ref type="bibr">[19]</ref><ref type="bibr">[20]</ref><ref type="bibr">[21]</ref> , ellipsoids <ref type="bibr">22</ref> , sphero-cylinders <ref type="bibr">23</ref> or clusters of spheres <ref type="bibr">24</ref> , models can be based on exact solutions to Maxwell's equations that describe the scattering. For other specimens, such as living cells, either the scattering can be numerically simulated <ref type="bibr">23,</ref><ref type="bibr">25,</ref><ref type="bibr">26</ref> or the specimen can be modelled as a simpler shape, such as a sphere. In each of these cases, the scattered field E scat (r) is a function of the object's 3D position (r), orientation, refractive index and size. We can predict the intensity I(r) of the hologram by accounting for the interference with the reference field E inc (r):</p><p>inc s cat 2</p><p>where the phenomenological parameter &#945; accounts for imperfections in the illumination <ref type="bibr">21</ref> .</p><p>Modelling enables three different approaches to hologram analysis. In the first, we directly fit the model to an experimentally captured hologram to infer information about the object -a generative modelling approach. In the second, we use modelling to train an algorithm to classify and quantify features from experimentally captured holograms -a machine-learning approach. In the third, we use machine learning to estimate parameters and then refine these estimates by fitting a generative model -a ) by a specimen. Useful information about the specimen can be extracted from the resulting interference pattern, or hologram, shown as the intensity across its centreline. b | Holograms, best fits and 3D renderings of a single sphere, sphere doublet and a capsule-shaped bacterium. Best-fit holograms and 3D renderings are generated from the estimated properties of the specimen, including position, diameter and refractive index. c | Hologram analysis yields information that is useful for applications. Analysing many holograms from the same object as a function of time can reveal its motion in 3D space or how its properties change. Analysing holograms from a population of objects can differentiate multiple species within a sample. Finally, analysing a hologram from a population of objects over time can reveal changes in the distribution of properties. Yellow scale bars = 5 &#956;m; orange scale bars = 1 &#956;m. d p , particle's diameter; n p , particle's refractive index; x p , y p and z p , particle's position. Part b (bottom row) adapted with permission from reF. <ref type="bibr">114</ref> , Optica Publishing Group.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Fringes</head><p>The bright or dark bands in an image that are produced by the interference of light.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Holographic microscopy</head><p>The use of a microscope with a coherent or semi-coherent light source to record holograms of microscopic objects.</p><p>hybrid approach. As we shall show, a lot of information can be extracted from a hologram, including the object's size, orientation and composition, as well as its 3D location (Fig. <ref type="figure">1b</ref>). The uncertainties in these measurements can be remarkably small. The size and 3D position of a microscopic object can be measured to nanometre-scale precision, whereas the refractive index and orientation can be measured to parts per thousand precision <ref type="bibr">21</ref> .</p><p>Where high-precision measurements are the main goal, a model-based analysis has several advantages over reconstruction. First, model-based analyses directly give values and uncertainties for quantities of interest. By contrast, reconstructions and tomograms are images -albeit 3D ones -that do not quantify the properties of the specimen without further analysis. Second, models account for the complex scattering of objects similar in size to the wavelength of light, such as colloidal particles or bacteria. For such objects, diffraction can distort reconstructions <ref type="bibr">27</ref> . Third, model-based analyses yield precise results even with the simplest optical set-up, the in-line configuration shown in Fig. <ref type="figure">1a</ref>. Unless otherwise stated, in this Primer we use the term holographic microscope to refer only to this microscope configuration.</p><p>The wealth and precision of information that can be extracted from in-line holograms with a model-based approach enable a host of applications, including 3D tracking of colloidal particles, measuring the forces exerted by cells, analysing the composition of complex dispersions and performing sensitive biochemical assays (Fig. <ref type="figure">1c</ref>). Many of these applications benefit from the speed of a holographic microscope. Holograms can be collected as quickly as the camera records images because no mechanical adjustments are needed to keep the object in focus; any movement in the axial direction can be measured from the fringes. Typically, analysing holograms takes more time than acquiring them. However, many sensitive and sophisticated analyses can be done in near real time on a personal computer.</p><p>The model-based approach requires a careful choice of analytical method and some prior knowledge of the sample. As a result, it has some limitations, which we discuss in the penultimate section of the Primer. Other sections explore how to create and use a holographic microscope, how to analyse the data, what measurements can be made, and what reproducibility issues might be encountered and how to overcome them. In the final section we consider the future of model-based analysis, an emerging paradigm for microscopy.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Experimentation</head><p>Instrument layout. One can convert an optical microscope into an in-line holographic microscope by making the illumination coherent, as shown in Fig. <ref type="figure">2a</ref>. The new illumination source can be either a laser or a Tomograms images recorded by a penetrating wave that represents a cross section of a 3D object.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Colloidal particles</head><p>Nanoparticles or microparticles suspended in a fluid or other medium.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Scattering</head><p>The interaction of electromagnetic radiation with an object resulting in a change in the direction of the light.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Coherent</head><p>Light that has a narrow distribution of frequencies and a well-defined phase, such that interference can be observed. partially coherent source, such as a single-colour lightemitting diode (LED). The illumination beam should be collimated and directed into the sample. Light passing through the sample is collected by the microscope's objective lens and projected by its tube lens onto an area sensor, typically a complementary metal oxide semiconductor camera. If the sample is not too dense or opaque -the usual condition under which optical microscopy is performed -the incident beam will be weakly scattered, such that most of it is unperturbed. This unperturbed, transmitted light then interferes with the light scattered by the sample to form a hologram.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Objective</head><p>To integrate a coherent illumination source with the microscope, we place a fibre-collimated laser with narrow spectral bandwidth <ref type="bibr">28</ref> between the illuminator and the phase ring turret/condenser, as shown in Fig. <ref type="figure">2b</ref>. We use single longitudinal-mode diode lasers because they are inexpensive and bright. Furthermore, their coherence length is not too large, so that reflections from various glass surfaces in the microscope do not produce extraneous interference in the hologram. Alternatively, one can use a partially coherent source, such as an LED, as shown in Fig. <ref type="figure">2c</ref>. The low temporal and spatial coherence of LEDs can further suppress extraneous fringes and speckle relative to a diode laser <ref type="bibr">29</ref> . The longitudinal coherence length of commercially available LED sources is in the order of a few micrometres, which is large enough to obtain holograms of objects smaller than this scale, such as colloidal particles. Inserting a pinhole between the LED and the sample increases the spatial coherence but also reduces brightness <ref type="bibr">30,</ref><ref type="bibr">31</ref> . One must collimate the LED source by adjusting the distance between the LED and the microscope's inbuilt condenser lens. If the illumination source is already collimated, the condenser can be removed from the beam path.</p><p>Model-based analysis of holograms is most effective if the incident mode has the simplest possible structure. Therefore, we spatially filter the illumination source by, for example, coupling the laser source to a single-mode fibre. The illumination beam can then be reasonably described as a plane wave. We set or measure its polarization, which we need to model the scattered field.</p><p>The choice of objective lens depends on the size of the object to be imaged. For micrometre-scale objects, we use an objective with a high numerical aperture, such as an oil-immersion or water-immersion lens. Although a water-immersion objective has a lower numerical aperture than an oil-immersion objective, it is potentially more useful for aqueous specimens because it reduces the spherical aberration introduced by a glass coverslip <ref type="bibr">32</ref> . In either case, it is important to select an objective that does not contain a phase plate, an inbuilt optical element used for phase-contrast microscopy, which would distort a hologram.</p><p>It is also possible to eliminate the objective lens altogether. One can construct a lensless holographic microscope from a coherent light source, a pinhole and a sensor placed close to the sample <ref type="bibr">30,</ref><ref type="bibr">33</ref> . Lensless microscopes tend to have a small effective numerical aperture and a large effective pixel size. They therefore cannot collect the strongly diverging light scattered by small particles or resolve finely spaced interference fringes. Lensless holography therefore is most effective for tracking and characterizing particles that are several times larger than the wavelength of light.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Sample preparation.</head><p>Scattering from the sample chamber can add unwanted background interference to a hologram. To minimize background interference, we place our specimens in a sealed sample cell consisting of two glass coverslips separated by a spacer about 100 &#956;m in height. The spacers can be silicone-based vacuum grease, double-sided tape, thin strips of plastic affixed with UV-curable epoxy or silicone gaskets. We avoid evaporation and undesired flow by sealing the chamber with silicone grease or epoxy.</p><p>Some experiments require the sample to flow through the microscope's observation volume. To make a simple flow chamber, we place spacers between two glass surfaces and leave the edges unsealed. We then add a droplet or an absorbent material to one end to draw fluid through the channel by capillary action. To drive flow in more sophisticated flow chambers, such as microfluidic chips <ref type="bibr">34</ref> , we use syringe pumps or pressure pumps. We reduce interference due to reflections by making the channels wider, imaging the objects or particles only when they are a few micrometres away from the walls or matching the refractive index of the fluid medium to that of the wall material. Flow enables high-throughput experiments, but one can also use an automated stage and a multi-well sample plate to carry out such experiments without flow.</p><p>Interfaces between fluids with different refractive indexes can significantly distort holograms. Holograms of particles at or near an interface should therefore be made in regions where the interface is flat. To encourage an air-water or oil-water interface to remain flat, we pin the interface <ref type="bibr">35</ref> using a machined or 3D-printed chamber with a thin, flat lip.</p><p>Holograms can also be degraded by non-uniform illumination <ref type="bibr">36</ref> , by undesired scattering from dust particles or other out-of-focus objects and by optical aberrations <ref type="bibr">37</ref> . If the hologram formation model does not correct or account for these effects, they can introduce errors into the inferred information. A spatial filter can alleviate non-uniform illumination, whereas a low-coherence source, such as a laser diode or LED, can attenuate holograms from out-of-focus objects. Cleaning the coverslips -by, for example, plasma cleaning, rinsing with purified water and drying with nitrogen -reduces background scattering from dust in or on the sample chamber. If the sample solution is sufficiently dilute, the hologram of the object of interest will not substantially overlap with holograms of other objects. Typically, the sample should be dilute enough for the particles or objects to be at least a few micrometres apart <ref type="bibr">38</ref> . With a dilute system, one can also record images with no objects in the field of view and use these images to correct for background scattering. Finally, a water-immersion lens can minimize the effects of spherical aberration. Alternatively, spherical aberration can be incorporated in the model <ref type="bibr">37</ref> .</p><p>Data collection. The camera on a holographic microscope does not need to be expensive. For experiments involving a single illumination source, we use a monochrome </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Objective lens</head><p>A lens or collection of lenses that focus and magnify light to form an image.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Tube lens</head><p>A lens or series of lenses that focus parallel rays to form an image on a sensor or eyepiece.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Speckle</head><p>Fluctuating bright and dark regions in an image that arise from extraneous scattering and interference.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Spherical aberration</head><p>A type of optical aberration in which rays nearer the edge of a lens are deflected more than those near its axis.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Capillary action</head><p>Flow driven by interfacial tension.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Syringe pumps</head><p>Volumetrically controlled pumps that deliver fluid by moving a syringe piston, typically resulting in a constant flow rate.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Pressure pumps</head><p>Pumps that are pressuredriven and have controllers to maintain constant pressure.</p><p>sensor, because the filters on a colour sensor reduce sensitivity and spatial resolution. Shortening the exposure time reduces motion blurring <ref type="bibr">39,</ref><ref type="bibr">40</ref> at the expense of the overall image intensity. Increasing the illumination intensity can compensate for this effect. The quality of the recorded image is limited by the signal-to-background ratio, which favours photodetectors with a dynamic range large enough to capture bright fringes without saturation and dark fringes without underexposure. High quantum efficiency is not necessary and can be counterproductive, as the reference wave produces a large background signal that can saturate a high-efficiency detector. Therefore, the cooled, high quantum efficiency, expensive cameras used in single-molecule and other precision microscopy techniques are unsuited to holographic microscopy.</p><p>Fast cameras enable experiments on fast-moving or quickly changing specimens. They require hardware that can handle their high data rates. For example, a 1-megapixel camera operating at 1,000 frames/s transfers 1 GiB/s of 8-bit greyscale images to a computer. This computer needs a fast interface -the latest USB, 10-Gb ethernet or a proprietary connection, often operating on a dedicated controller card -a fast internal bus to transfer the data and a solid-state drive with a high write speed. We recommend a computer with the latest peripheral component interconnect express (PCIe) bus for rapid, parallel data transfer and, ideally, a large amount of random access memory (RAM) to buffer the data stream. Many cameras come with their own proprietary control software, but the academic community has also developed open-source software such as &#956;Manager <ref type="bibr">41</ref> , which can be used to control various models of camera and the microscope itself.</p><p>Some processes, such as cells flowing through a channel at high speed <ref type="bibr">42</ref> , may be so fast that features of interest are blurred even at the shortest camera exposure times. For such processes, we pulse a laser diode to illuminate the samples for a short time (microseconds), as in strobe photography. Many cameras include synchronization input and/or output ports. We use these ports to synchronize the camera and laser diode with each other or with a pulse generator <ref type="bibr">43,</ref><ref type="bibr">44</ref> .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Results</head><p>Holograms encode comprehensive information about the position and composition of individual particles or biological specimens. In a model-based analysis, we extract this information by fitting a generative model to the hologram <ref type="bibr">20,</ref><ref type="bibr">21,</ref><ref type="bibr">23,</ref><ref type="bibr">[45]</ref><ref type="bibr">[46]</ref><ref type="bibr">[47]</ref> , by analysing the hologram with a trained machine-learning system <ref type="bibr">[48]</ref><ref type="bibr">[49]</ref><ref type="bibr">[50]</ref> or by some combination of the two. Although all three approaches require minimal processing of the hologram, some pre-processing is beneficial for reliable results. We typically normalize holograms by subtracting the dark count from both the raw hologram and background and then taking their ratio <ref type="bibr">51</ref> , as shown in Fig. <ref type="figure">3</ref>. These linear transformations remove instrument-dependent effects and facilitate comparison with models. We obtain dark counts by recording images with the illumination off, and we obtain background images by recording fields of view with no particles in frame, ideally at the same axial position as the data.</p><p>After normalization, we crop the hologram to the region of interest, which is typically a few hundred pixels wide. The size of the cropped hologram should be large enough to capture many hologram fringes, but small enough to avoid overlap with nearby objects. We automate this process by using algorithms based on Hough transforms <ref type="bibr">39,</ref><ref type="bibr">52,</ref><ref type="bibr">53</ref> or machine learning <ref type="bibr">49,</ref><ref type="bibr">50</ref> .</p><p>The computational power required to extract information about the specimen depends on the number of pixels in the hologram. However, the fringes of a hologram are often symmetric, and therefore much of the information is redundant. Consequently, most of these pixels can be discarded. Dimiduk and Manoharan found that by randomly selecting 54 just 2.5% of pixels and discarding the rest, they could accurately analyse holograms while reducing the computational time by an order of magnitude <ref type="bibr">55</ref> . Selecting a random subset of pixels is now a standard part of our hologram pre-processing routine.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Generative modelling.</head><p>To explain the generative modelling approach, we first consider inferring physical information about a single spherical particle from its hologram, as shown in Fig. <ref type="figure">4</ref>. A generative or forward model can realistically simulate the hologram of such </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Dynamic range</head><p>The range of intensities that a sensor can record.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Quantum efficiency</head><p>A measure of the sensitivity of a detector, determined by how many incident photons are converted into electrons.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Dark count</head><p>The intensity recorded by a sensor or camera in the absence of a signal.</p><p>a particle as a function of its position, size and optical properties. One can then fit the model to the data to infer these parameters. The simplest fitting approach is to iteratively modify the parameters until the differences between the model and data are minimized.</p><p>A generative model of a single spherical object might use Lorenz-Mie theory <ref type="bibr">19</ref> -the exact solution to Maxwell's equations for scattering from a spherical particle -to calculate the scattered field. It would then simulate a hologram by calculating the interference between this field and a planar reference wave <ref type="bibr">20,</ref><ref type="bibr">21</ref> . Such a model includes six parameters: the size and refractive index of the sphere, its 3D position and &#945;, the phenomenological parameter from Eq. <ref type="bibr">1.</ref> The hologram recorded on the detector is treated as a magnified image of the hologram at the objective's focal plane. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Generative modelling approach</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Machine-learning approach</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Unnormalized raw hologram</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Estimated properties Hybrid approach</head><p>Use the estimated properties found with machine learning as the initial guess for fit with generative model Fig. <ref type="figure">4</ref> | Approaches to quantitative analysis of holograms. Flow chart of approaches to hologram analysis, in which a single colloidal sphere serves as an example specimen. In a machine-learning approach, neural networks trained with generated data detect, localize and estimate the properties of particles. In the localization module, an object-detection convolutional neural network (CNN) detects any holographic features in a normalized field of view and determines the centre, x p and y p , and extent of each detected feature. A property estimation module, which is also a CNN, estimates the particle's diameter d p , refractive index n p and axial position z p from the cropped holograms. In a generative modelling approach, the first steps are normalizing and cropping the field of view around the hologram of interest, which is automatically detected with a Hough transform. A non-linear least-squares or Markov-chain Monte Carlo algorithm then fits a generative model of hologram formation to this cropped hologram. A non-linear least-squares fit requires an initial guess, which can be informed by experimental expectations, and returns the best-fit parameters and their uncertainties. In the hybrid approach, a machine-learning module first estimates the parameters, and a fitting module then refines these estimates using the parameters from the machine-learning module as the initial guess to the fit. Turquoise scale bars = 10 &#956;m; yellow scale bars = 5 &#956;m.</p><p>To fit this model to a recorded hologram, one can use a non-linear least-squares method such as the Levenberg-Marquardt algorithm <ref type="bibr">56</ref> . If the fitting algorithm is given a good initial guess, it can find parameter values that globally minimize the discrepancy between the model and the recorded hologram. Fitting the single-sphere model to data yields precise estimates of the sizes, optical properties and 3D positions of individual colloidal particles <ref type="bibr">21</ref> . This approach has been applied to measuring diffusion <ref type="bibr">57,</ref><ref type="bibr">58</ref> , quantifying interactions between a sphere and fluid interface <ref type="bibr">35,</ref><ref type="bibr">59,</ref><ref type="bibr">60</ref> , tracking particle motion in an optical trap <ref type="bibr">[61]</ref><ref type="bibr">[62]</ref><ref type="bibr">[63]</ref> , differentiating species of particles within a mixture <ref type="bibr">49,</ref><ref type="bibr">[64]</ref><ref type="bibr">[65]</ref><ref type="bibr">[66]</ref> , measuring the growth of colloidal particles during chemical synthesis <ref type="bibr">67</ref> and inferring the refractive index <ref type="bibr">68</ref> and rheological properties <ref type="bibr">69</ref> of the medium in which the spherical particles are embedded.</p><p>Perhaps more surprisingly, the single-sphere model is a useful approximation for non-spherical objects such as dimpled spheres <ref type="bibr">51</ref> , protein aggregates <ref type="bibr">66,</ref><ref type="bibr">70</ref> , colloidal aggregates <ref type="bibr">71,</ref><ref type="bibr">72</ref> and dimers of colloidal spheres <ref type="bibr">73</ref> . The advantage of using a single-sphere approximation to model these systems, compared with a more realistic model, is that the single-sphere model can be fit more rapidly to the data. The speed of fitting makes it particularly useful for high-throughput applications, such as industrial quality assessment and process control <ref type="bibr">70</ref> , wastewater treatment <ref type="bibr">74</ref> and slurry analysis <ref type="bibr">66,</ref><ref type="bibr">75</ref> , in which particle size and composition must be determined continuously in real time.</p><p>Where analysis speed is not the primary concern, Bayesian parameter estimation can yield more detailed information on uncertainty and can more easily incorporate prior information than non-linear least-squares fitting. A non-linear least-squares fit yields a single set of parameters that best fits the data, whereas a Bayesian analy sis yields the posterior probability density (posterior) of all possible combinations of parameters. Peaks in the posterior correspond to sets of parameters that fit the data well and are not excluded by any prior information. The prior information might include a previous calibration of the particle size distribution or the anticipated refractive index of the material. The width of a peak in the posterior characterizes the uncertainty of the parameter estimates.</p><p>The Bayesian approach can also determine marginalized uncertainties (Fig. <ref type="figure">4</ref>), which account for correlations between parameter estimates <ref type="bibr">55</ref> . For example, the best-fit particle size is typically correlated to the axial position, as both affect the fringe spacing. If one cares only about the particle size, one can marginalize -or integrate out -the axial position, effectively incorporating its correlations into the uncertainty of the size estimate. Marginalization yields realistic uncertainties. It is particularly useful for fundamental studies that test theories of dynamics or interactions, and for applications that have specified tolerances -for example, on particle size.</p><p>More complex generative models can be used for non-spherical specimens. Exact solutions to Maxwell's equations exist for spheroids, ellipsoids, sphero-cylinders, coated spheres and small collections of spheres <ref type="bibr">76</ref> . There are also numerical models for these shapes and for many others, including those with no exact solutions <ref type="bibr">23</ref> . Generative models for these specimens, such as models for single spheres, calculate the scattered field and simulate its interference with a planar reference wave. But models of non-spherical specimens have additional parameters such as shape, orientation or multiple refractive indices and radii. Consequently, it takes more time to fit such models to the data.</p><p>Generative models can also account for the effects of the microscope's optical train. The single-sphere model approximates the scattered field poorly when the particle is close to or below the focal plane. The inaccuracies of the model therefore limit the depth of field available for particle tracking. To circumvent this problem, Leahy et al. modelled the effects of an objective lens on the holo gram of a spherical particle and then fit this model to data. They found that for a 2.4-&#956;m sphere imaged with a water-immersion lens, the region of accurate tracking increased by a factor of two relative to a lens-free model <ref type="bibr">77</ref> . Martin et al. showed that extending this model to incorporate the effects of spherical aberration, a common aberration in optical microscopy, increases the accuracy of particle characterization <ref type="bibr">37</ref> . These lens models work with scattering models for either spherical or non-spherical objects. For non-spherical objects, they are slow because they must numerically integrate the scattered field to calculate the effect of the objective <ref type="bibr">78</ref> . For spheres, they are quick because the integral can be analytically simplified.</p><p>A Bayesian approach is useful for more complex models because it can account for the many ways a model might fit the data. Consider a capsule-shaped bacterium that has a small shape asymmetry between its head and tail. Even if the generative model includes this asymmetry, fitting might not unequivocally determine the bacterium's orientation from the hologram. In the presence of noise, both orientations might fit the data equally well. In this case, the posterior would show two modes, one for each orientation, accurately reflecting the uncertainty in the measurement. This uncertainty can then be propagated to other quantities. If prior informa tion excludes one orientation -for example, if the bacterium is swimming in a known directionthis information would be reflected in the posterior, which would have a single peak.</p><p>For the Bayesian approach, we use Markov-chain Monte Carlo (MCMC) methods <ref type="bibr">79</ref> to calculate the posterior probability and to obtain marginalized uncertainties. Some MCMC methods require a good initial guess, which can be obtained using algorithms such as covariance matrix adaptation evolution <ref type="bibr">80</ref> . Other methods, such as Hamiltonian Monte Carlo <ref type="bibr">81</ref> and parallel tempered MCMC sampling <ref type="bibr">82</ref> , do not require a good initial guess. We use these methods to efficiently explore the high-dimensional parameter spaces of complex models.</p><p>The choice of generative model depends on the experimental aims. When the aim is to track a spherical object in three dimensions, we recommend a generative model that includes lens effects. With such a model, one can fit holograms above and below the microscope focal plane. When the aim is to characterize the properties of spherical objects, we recommend using a generative model</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Bayesian parameter estimation</head><p>A statistical inference technique yielding the probability distribution of the parameters of a model given the data.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Marginalized uncertainties</head><p>The uncertainties in a model parameter determined by accounting for correlations with other parameters.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Markov-chain Monte Carlo</head><p>(MCMC). A numerical method that uses a biased random walk through the parameter space to both estimate a probability distribution and integrate it.</p><p>that accounts for spherical aberration. Such a model enables more accurate quantification. When the aim is high-throughput characterization, we recommend using a single-sphere approximation, which allows real-time analysis. One rarely has to write the generative model from scratch. Open-source packages such as HoloPy <ref type="bibr">83</ref> and pylorenzmie include generative models for different types of particles and lens effects. They also include non-linear least-squares and MCMC methods to fit these models to data. Tutorials are available for HoloPy and pylorenzmie.</p><p>Machine-learning analysis. Machine learning offers alternatives to conventional algorithms for feature identification <ref type="bibr">84,</ref><ref type="bibr">85</ref> , particle tracking <ref type="bibr">86</ref> and quantitative hologram analysis <ref type="bibr">13,</ref><ref type="bibr">20,</ref><ref type="bibr">21</ref> . As with the generative modelling approach, the aim is to determine an object's position and properties directly from its hologram. But instead of modelling the physics of image formation, convolutional neural networks (CNNs) or support vector machines recognize, classify or characterize objects based on training data. In general, machine-learning approaches work well on problems with many degrees of freedom; they recover low-dimensional solutions that classify or characterize the data <ref type="bibr">87</ref> . For holography in particular, machine-learning approaches are well suited to problems where generative modelling is computationally expensive, such as characterizing particles in a high-throughput experiment.</p><p>We use machine-learning approaches to tackle three types of analysis problems in holography: localizationestimating the hologram's centre and extent in the field of view <ref type="bibr">49,</ref><ref type="bibr">50,</ref><ref type="bibr">88</ref> ; property estimation -characterizing the object's refractive index, diameter and axial position <ref type="bibr">48,</ref><ref type="bibr">89</ref> ; and classification -differentiating and labelling the structure of the particle <ref type="bibr">90</ref> . Combining the modules used for each of these analysis steps results in a full end to end analytical pipeline for holograms <ref type="bibr">50</ref> .</p><p>Each of these three tasks requires training a model. Training consists of feeding holographic image data with known parameters -such as known particle size and position -to the model, which learns to recognize patterns in the data and the parameters. In many machine-learning applications, one must gather and manually annotate training data. The cost of human labour in this process limits how much training data can be produced, and thus reduces the model's accuracy. The application to holographic microscopy has an advantage because the generative models can rapidly generate large amounts of properly annotated training data.</p><p>The amount of training data needed for an analysis task depends on the size of the parameter space and the desired precision of the classification. For the training data to span the range of interest R(p j ), where p j is one parameter in a set of M coupled parameters and p &#916; j is the desired resolution of that parameter, the number of training elements must scale as</p><p>, where the upper limit corresponds to calculating every possible solution. For non-spherical objects, the training data must span all possible orientations, positions, sizes and refractive indices. Sampling approaches can reduce the number of elements below the upper bound.</p><p>To better match experimental conditions, one can intentionally degrade the simulated holograms with either uniform Gaussian noise <ref type="bibr">50</ref> or noise directly extracted from the experimental holograms, including both camera noise and time-varying fluctuations <ref type="bibr">90</ref> . Adding noise prevents the model from overfitting experimental data, thereby improving the accuracy of the results <ref type="bibr">50,</ref><ref type="bibr">90</ref> .</p><p>Training involves optimizing the parameters of the model to accurately fit the labelled training data. Various optimizers are available, including Adam <ref type="bibr">91</ref> , root mean square propagation and stochastic gradient descent <ref type="bibr">92</ref> . Activation units such as reLU enable the model to learn complicated functions and facilitate rapid training <ref type="bibr">93</ref> . In our experience, the training speed is limited by how quickly training data can be generated, although that process can easily be parallelized and is a one-time cost. With current computing clusters, we can generate data and train a model in a few hours <ref type="bibr">90</ref> .</p><p>The first step in hologram analysis is localization, which involves finding the regions of interest in a hologram that correspond to particular objects, as shown in Fig. <ref type="figure">4</ref>. CNNs are particularly well suited for object detection and localization <ref type="bibr">48,</ref><ref type="bibr">50,</ref><ref type="bibr">94</ref> . We first train the CNN on synthetic holograms with variable numbers of particles. The CNN then takes a greyscale image input and returns a set of cropped images centred on each particle, along with the estimated parameters of the hologram centre, x p and y p , and the extent of each detected feature. We can then use the number of identified features to measure particle concentrations or pass each cropped hologram to another module for further analysis.</p><p>Machine-learning algorithms are both more accurate and more robust than conventional object detection algorithms <ref type="bibr">39,</ref><ref type="bibr">85</ref> , yielding much lower rates of false positive and false negative detections. The localization algorithm used by Altman and Grier <ref type="bibr">50</ref> , for example, missed fewer than 0.1% of simulated holograms across a wide range of particle sizes, refractive indexes and positions. By contrast, conventional algorithms missed up to 40%. This ability to detect particles over wide regions of the parameter space is necessary for robust, unattended particle tracking and characterization.</p><p>After localizing and cropping the hologram, we use other machine-learning systems, such as CNNs <ref type="bibr">50,</ref><ref type="bibr">89</ref> or support vector machines <ref type="bibr">48</ref> , to estimate the properties of the objects. First, we scale the block of pixels identified in the localization stage down to a standard size, which enables the algorithm to accommodate holograms with different extents in the camera plane. The network then reduces the dimensionality of the data until it outputs values for the particle properties, including diameter d p , refractive index n p and axial position z p .</p><p>Although the generative modelling approach yields more precise and accurate property estimates, machine learning is faster and more flexible <ref type="bibr">50</ref> . End to end processing of a full-frame hologram takes 30 ms or less <ref type="bibr">50</ref> . In addition, machine-learning models require little tuning or prior knowledge of the system, and they are more resilient to artefacts that can hinder the performance of generative models <ref type="bibr">50</ref> .</p><p>Machine-learning methods can also classify the structure of a specimen. For example, CNNs can recognize</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Convolutional neural networks</head><p>(CNNs). Machine-learning algorithms that use convolution layers to process higher-dimensional image data.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Support vector machines</head><p>Machine-learning algorithms that distinguish data points using hyperplanes in a high-dimensional parameter space.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>ReLU</head><p>The rectified linear activation function, a piecewise function that returns zero for negative inputs and returns the input for positive inputs.</p><p>and differentiate clusters of colloidal particles bound by short-range attractions <ref type="bibr">95</ref> . Because the range of the attraction in such clusters is only about 10% of the particle diameter, standard optical microscopy techniques cannot easily distinguish bound and unbound particle pairs. Furthermore, the computational cost of fitting a model to the hologram is high. Klein 90 instead detected differences in cluster configurations using a standard, pre-trained CNN image classifier <ref type="bibr">96</ref> that was re-trained with simulated holograms augmented with experimentally extracted noise. The re-trained CNN extracted hierarchical features from the hologram and classified them to determine the configuration of particles. Klein found that after including experimentally extracted noise in the training data, the re-trained CNN could differentiate six different ground states of a seven-particle cluster -including two states differing by only one pair of bound particles -with 60-80% accuracy.</p><p>Free, open-source software <ref type="bibr">50</ref> -Characterizing and Tracking Colloids Holographically (CATCH) -is available for end to end analysis of holograms from spheres and other particles that can be usefully modelled as spheres. A tutorial (CATCH) is available. For other applications, models must be built and trained. However, the architecture of the neural network does not need to be rebuilt for each problem; instead, existing machine-learning frameworks for image analysis can be used <ref type="bibr">90</ref> .</p><p>Hybrid approaches. Current machine-learning methods for analysing holograms are fast and robust, but not as precise or accurate as generative modelling approaches. Conversely, generative modelling approaches are highly precise and accurate, but incur higher computational costs than machine-learning methods. A hybrid approach offers the best of both worlds: fast, automated analysis with high precision.</p><p>A hybrid analysis pipeline begins with a machinelearning stage. From a full-frame hologram, a trained network automatically localizes and crops holograms corresponding to individual objects. It then estimates their properties, which might include their refractive indices, diameters and axial positions. In a second stage, an algorithm fits a generative model to each cropped hologram, using the machine-learning estimates as initial guesses.</p><p>Machine learning eliminates the need for human input to the fitting routine. The algorithm determines the number of objects in the field of view, the extents of their holograms and the initial guesses required to fit the model to the data. This hybrid approach also enables fully parallel analysis of time-series data. In a generative modelling approach, one usually derives initial guesses for each frame in a time series from the best-fit parameters of the previous frame. Consequently, the frames must be analysed sequentially. But the machine-learning approach provides initial guesses for all frames, which one can use to fit generative models to all frames in parallel.</p><p>In principle, machine-learning approaches could also select the appropriate generative model by classifying the structure and shape of the specimen. Such an approach could automate the entire hologram analysis pipeline.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Applications</head><p>The direct analysis of holograms has enabled new, high-precision measurements of colloids, soft materials and biological systems. In this section, we highlight a few examples.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Colloidal dynamics and self-assembly.</head><p>The precision enabled by the generative modelling approach was crucial to discovering an unexpected feature of colloidal systems. Since the early twentieth century, it was known that micrometre-sized solid particles could stick irreversibly to the interface between two fluids <ref type="bibr">97</ref> . This phenomenon, driven by surface tension, is the basis for making the solid-stabilized Pickering emulsions now used in foods <ref type="bibr">98</ref> , oil recovery <ref type="bibr">99</ref> and many other applications <ref type="bibr">100,</ref><ref type="bibr">101</ref> . The interface can also serve as a scaffold that guides the self-assembly of these colloidal particles <ref type="bibr">102</ref> . Until recently, it was assumed that the particles would approach the interface, breach it and then immediately reach an equilibrium position, as shown in Fig. <ref type="figure">5a</ref>.</p><p>Holographic microscopy showed that, contrary to initial assumptions, the particles take a long time to relax to equilibrium after they breach the interface. Kaz, McGorty et al. <ref type="bibr">35</ref> used radiation pressure to push a particle upwards to a planar oil-water interface while measuring its height using a holographic microscope. By fitting a single-sphere generative model to the holograms, they were able to measure the height to nanometre-scale precision on millisecond timescales (Fig. <ref type="figure">5a</ref>). With this combination of high spatial precision and high temporal resolution, they observed the motion of the particle immediately after the breach and showed that it scales logarithmically with time (Fig. <ref type="figure">5a</ref>). The long duration of the measurement allowed them to observe this scaling over multiple decades and enabled comparison with theory. The logarithmic behaviour is a signature of pinning and depinning of the three-phase contact line on the particle, which leads to surprisingly long relaxation times -of the order of months for a micrometre-scale particle.</p><p>Later holographic microscopy experiments showed that this long-time relaxation is common to many different types of colloidal particles <ref type="bibr">59,</ref><ref type="bibr">60,</ref><ref type="bibr">103</ref> . Wang et al. <ref type="bibr">22</ref> showed that when ellipsoids breach an interface, the particles rotate far more slowly to equilibrium than previously predicted. They revealed this motion by fitting a generative model for scattering from an ellipsoidal particle as a function of orientation and position. These studies illustrate how the generative modelling approach leverages the strengths of holographic microscopy: its acquisition speed, high dynamic range and sensitivity to the 3D position and orientation of the particle.</p><p>Holographic microscopy is also well suited to answer questions about how colloidal particles interact and diffuse. The structure and dynamics of these systems are difficult to determine with standard optical microscopy because the interactions are so short ranged -a few tens of nanometres -and because the particles diffuse in three dimensions. Using holographic microscopy, Fung and co-workers imaged the 3D motion of pairs of interacting colloidal particles with high temporal resolution. They resolved the translational, rotational and vibrational motion of the particles -and their interaction potential -by fitting generative models that account for scattering from multiple spherical particles, including near-field and far-field couplings between the scattered fields <ref type="bibr">24,</ref><ref type="bibr">104</ref> . Perry et al. <ref type="bibr">105</ref> used a similar approach to infer the 3D dynamics of self-assembled colloidal clusters as they transitioned between free-energy minima (Fig. <ref type="figure">5b</ref>). The structure and dynamics of these systems can give insights into the first stages of crystal growth and the mechanisms of self-assembly in colloidal systems. The precision of this measurement was sufficient to resolve transitions between two free-energy minima for a six-particle cluster, which was not possible with wide-field or confocal optical microscopy.</p><p>Microrheology and stress measurements. Measurements of colloidal dynamics not only can reveal information about the physics of interacting systems but can also reveal information about materials in which colloidal particles are embedded. In microrheology, for example, one infers the viscoelastic properties of a material by measuring the Brownian motion of embedded tracer particles <ref type="bibr">106</ref> . In traction-force microscopy, one infers the forces exerted by living cells by measuring the motion of particles embedded in an elastic substrate that deforms as the cells move on it <ref type="bibr">107</ref> . In both cases, one needs to detect small displacements of the particles. Typically, a confocal or a standard wide-field optical microscope is used, but a holographic microscope has advantages. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Brownian motion</head><p>The random motion of particles suspended in a medium due to collisions with the surrounding molecules.</p><p>Microrheological measurements benefit from the higher precision of the holographic microscope. Modelling and fitting a time series of holograms reveals the motion of tracer particles with nanometre-scale precision. The diffusion coefficient <ref type="bibr">24,</ref><ref type="bibr">104,</ref><ref type="bibr">108</ref> of the particles and the viscoelastic properties of the medium can then be inferred from these 3D motion data. Cheong et al. <ref type="bibr">69</ref> used this approach to precisely measure the complex viscoelastic moduli of polysaccharide gels, obtaining accurate measurements in micrometre-scale samples without mechanical loading.</p><p>Traction-force measurements benefit from the depth of field of the holographic microscope. Makarchuk et al. <ref type="bibr">109</ref> obtained the full 3D displacement map of tracer particles without scanning the focus of the micro scope. They also measured the displacements to nanometrescale precision. Although their technique did not use a generative model, it did involve directly analysing the hologram fringes to measure the forces exerted by colorectal cancer cells. The application of holography to traction-force microscopy could enable both higher time resolution and characterization of forces on stiffer substrates, where the embedded particle motion is subtler.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Microorganisms and organelles.</head><p>Holographic microscopy can also measure the properties and motion of biological systems. Fluorescence microscopy is commonly used for such systems because fluorescent labelling offers excellent contrast for the object of interest. But labels can also interfere with biological systems. Furthermore, photo bleaching limits the number of detected photons and, hence, the duration of experiments <ref type="bibr">110</ref> . Because holographic microscopy is based on scattering, the number of photons that can be detected is unlimited. Instead, the precision and speed are limited by the scattering strength of the sample. Biological systems tend to scatter weakly because their refractive indices are usually close to the index of water (1.33). The refractive indices of living cells, for instance, are around 1.38 or smaller <ref type="bibr">111,</ref><ref type="bibr">112</ref> .</p><p>However, even weakly scattering microorganisms such as Escherichia coli can be seen under the holographic microscope. The small scattering cross section of an individual E. coli bacterium -which is about 2 &#956;m long and has a refractive index of 1.388 (reF. <ref type="bibr">113</ref> ) -makes it difficult to see in a bright-field optical microscope. Wang et al. <ref type="bibr">114</ref> were able to use holographic microscopy to capture the 3D swimming motion of these bacteria, including its tumbling, as shown in Fig. <ref type="figure">5c</ref>. To obtain this information, they first modelled a bacterium as a homogeneous sphero-cylinder. They then fit a generative model of scattering from a sphero-cylinder to the data. This technique allowed them to measure both the position and the orientation of individual bacteria as a function of time. Using the high acquisition speed of the microscope, they resolved even the wobble of the bacterium during its run and tumble motion, as shown in Fig. <ref type="figure">5c</ref>.</p><p>Holographic microscopes can also image vesicles, another class of weakly scattering systems that are biologically important. Vesicles are enclosed lipid bilayers that serve as models for organelles. They are used to deliver drugs <ref type="bibr">115</ref> , study the origins of life <ref type="bibr">116</ref> or create artificial cells <ref type="bibr">117,</ref><ref type="bibr">118</ref> . In these applications, the solute loading of the vesicle and its motion must be tracked over time. This is a non-trivial task because the bilayer is thin (about 5 nm). Consequently, the vesicle has a small scattering cross section <ref type="bibr">119</ref> . But when the vesicle is filled with, for example, a sugar solution, its scattering cross section increases, and interference fringes become visible under the holographic microscope, as shown in Fig. <ref type="figure">6a</ref>. One can fit a generative model for a core-shell spherical particle to holograms of such filled vesicles -where the core is the filling solution and the shell is the thin outer layer of lipids. The fit reveals the vesicle's refractive index and size, which can be used to quantify vesicle loading <ref type="bibr">120</ref> .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Detection of molecules.</head><p>Macromolecules, such as enzymes or proteins, are too small to see with a typical optical microscope because they do not scatter enough light. One can detect them by fluorescently labelling them and measuring their fluorescence when they bind to a functionalized bead. As in other fluorescent measurements, labelling adds a step to the detection process, and labels can interfere with binding <ref type="bibr">121,</ref><ref type="bibr">122</ref> .</p><p>Holographic microscopy offers an alternative approach that does not require fluorescent labelling. As in the fluorescence assay, one first functionalizes micrometre-scale probe beads with surface groups that bind specifically to targets of interest, such as virus particles, antibodies or other proteins. One then records holograms of individual particles and fits these holograms with an effective-sphere generative model. Fitting reveals binding-induced changes in the inferred parameters <ref type="bibr">123</ref> . The observed shift in effective diameter, for example, can be related to the coverage of bound targets.</p><p>This approach allows both rapid fitting and high sensitivity. When the molecules bind, they increase the effective diameter of the beads by a few nanometres, a difference that the holographic microscope can detect <ref type="bibr">124</ref> . The resulting fits are precise enough to isolate changes in population distributions as the target molecules bind, enabling applications such as fluorescence-free immunoassays <ref type="bibr">125,</ref><ref type="bibr">126</ref> , as shown in Fig. <ref type="figure">6b,</ref><ref type="figure">c</ref>.</p><p>The validity of the effective-medium approach has been assessed in simulations based on the discrete-dipole approximation <ref type="bibr">23,</ref><ref type="bibr">25,</ref><ref type="bibr">26,</ref><ref type="bibr">127</ref> . This approximation treats an inhomogeneous object as a set of point dipoles and allows computation of the scattered field of arbitrarily shaped objects. These simulations also show that one should use a low-index material for the probe bead, relative to the refractive index of the molecular coatings, to observe the greatest shift in effective diameter after binding. Future experiments might therefore employ a silica probe bead, with refractive index n &#8776; 1 4 p . , instead of polystyrene, with n p = 1.6.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Characterizing industrial dispersions.</head><p>For many applications involving industrial dispersions, evaluating the efficacy and safety of the product requires detecting and differentiating multiple species of particulate contaminates and measuring their relative concentrations in dispersion. Hologram microscopy combined with the effective-sphere analysis approach is especially well suited to such applications. This method can analyse multiple particle species in wastewater or industrial slurries with high throughput <ref type="bibr">66,</ref><ref type="bibr">70,</ref><ref type="bibr">75</ref> . In these applications, contaminants or large aggregates appear as outliers in the continuous, real-time analysis of particle size and composition.</p><p>This method also has applications in the monitoring and development of biopharmaceuticals. The active ingredients of these complex medicines are proteins that can aggregate, compromising the medicine's effectiveness and, potentially, causing harmful immune response. Winters et al. <ref type="bibr">66</ref>  fatty-acid clusters and potentially dangerous protein aggregates. Although many of these populations have a wide polydispersity in size, they can be distinguished by their common refractive index, indicating their similar composition. Characterizing the particles' size and composition differentiates the populations of these different species with high throughput and allows their concentrations to be measured accurately. Monitoring the concentration and composition of particles dispersed in biopharmaceutical products is useful for guiding product formulation, performing quality assurance during manufacturing and assessing product stability.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Reproducibility and data deposition</head><p>Reproducible, quantitative analysis with holographic microscopy requires recording and disclosing experimental metadata, storing large data sets and reporting the prior probabilities and techniques used in the analysis. The metadata are essential for interpreting recorded holograms. Metadata include both laser settings -such as wavelength, polarization and intensity -and imaging settings -such as pixel spacing, frame rate and exposure time. To determine the pixel spacing, we image a graticule, and then divide the distance between markings by the number of pixels spanning that distance. We recommend recording all metadata in the same file as the hologram and maintaining these metadata throughout hologram processing and analysis. Both HDF5 and TIFF files support storing metadata alongside data.</p><p>Some video recording formats are unsuitable for quantitative holographic imaging because they use lossy encoding to reduce file size. Lossy formats introduce artefacts into recorded images that can alter extracted results. The data should instead be saved as an uncompressed video or in a format that uses lossless compression, such as HDF5 or TIFF.</p><p>To store a time series of recorded holograms, which has a size typically in the order of gigabytes, we recommend using standard, non-proprietary formats such as HDF5. HDF5 has several advantageous features for holo graphy: it is designed for large data sets, it can store data in a compressed format and implementations such as the h5py Python package enable HDF5 files to be loaded piecewise, so that they do not consume all of the computer's RAM.</p><p>Equally important to experimental metadata are parameters associated with hologram analysis. It is essential to disclose all assumptions, including the generative model and the prior probabilities, which are probability distributions in a Bayesian analysis but could also take the form of bounds placed on parameters. Algorithmic parameters should also be disclosed, such as the convergence criteria for non-linear least-squares fitting, the number of chains for MCMC sampling or the number of temperatures for parallel tempered MCMC sampling. In a machine-learning framework, the underlying algorithm architecture and the training data should be reported. One can disclose all of this information by creating public repositories for both data and analysis code.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Limitations and optimizations</head><p>Limits on the information that can be inferred from holograms are both physical and practical. The physical limitations do not depend on the analysis technique used. They are based on how much information is present in the hologram. For example, when the particle approaches within roughly 5 &#956;m of the focal plane of the objective, the fringes in its hologram become too finely spaced for the camera to resolve <ref type="bibr">37,</ref><ref type="bibr">77</ref> . Conversely, when the particle moves too far from the focal plane, its fringes become increasingly faint and are obscured by image noise. Even under ideal imaging conditions, some combinations of particle parameters produce nearly indistinguishable holograms, which can lead to unreliable parameter estimation <ref type="bibr">128</ref> . Furthermore, weakly scattering objects introduce degeneracies in the generative model, making it difficult to determine, for example, the size and refractive index of the object independently. In these cases, a Bayesian inference approach with a generative model will report appropriately larger uncertainties. Finally, the presence of many objects in the specimen can make it more difficult to extract information from the hologram, because fringes from other objects disrupt the fringes of interest. Machine-learning methods can be used to isolate clean holograms of the object of interest <ref type="bibr">129</ref> .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Generative modelling.</head><p>The main practical limitation of the generative modelling approach is that one must know what one is looking at before modelling it, a limitation not faced by reconstruction-based analyses. More specifically, the generative model must accurately describe the shape, structure and composition of the specimen. It must also accurately describe how its hologram is formed. Ignoring physical effects, such as strong aberrations, leads to systematic characterization errors <ref type="bibr">37</ref> . Additional parameters in the model, such as the field rescaling parameter &#945;, can improve the fit but may be difficult to interpret. Furthermore, even in the most complex models, the inferred parameters can depend on the distance between the object and the focal plane. Martin et al. <ref type="bibr">37</ref> found that when the particle was closer than about 10 &#956;m to the focal plane, the inferred refractive index of the particle had a variation of 6%, whereas the inferred diameter had a variation as high as 20%. Such results may indicate that the model does not</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Polydispersity</head><p>The distribution of sizes within a sample.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Graticule</head><p>A set of parallel lines with known spacing used for measuring scale.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Lossy encoding</head><p>Methods of compressing or transferring data that approximate or down-sample the data. b | Hologram of a spherical bead that binds target molecules, alongside a best-fit hologram from an effective-sphere model, which treats the substrate bead and molecular layers as a single homogeneous sphere. The fit defines the effective diameter and effective refractive index (right). c | Results from the effective-sphere analysis for avidin binding to biotinylated polystyrene spheres. Plots show the distributions of inferred particle dia meters d p ( ) &#961; and refractive indexes n p ( ) &#961; from control beads (blue), probe beads after binding (red) and differences. Binding causes a statistically significant shift in ( ) &#961; d p in the order of a few nanometres. d | Inferred parameters for a heterogeneous, four-particle mixture from a generative modelling approach (left), a machine-learning approach (middle) and a hybrid approach (right). The results show how well each method differentiates components of the mixture, which contains two sizes each of polystyrene and silica spheres. Ovals mark 99% confidence intervals of the generative modelling results. Colour denotes the relative probability density of the parameters, ( , ) P d n p p . Part a adapted with permission from reF. <ref type="bibr">120</ref> , A. Wang. Parts b and c adapted with permission from reF. <ref type="bibr">125</ref> , Optica Publishing Group. Part d adapted with permission from reF. <ref type="bibr">50</ref> , ACS.</p><p>account for some physical effects. To overcome these limi tations, future work should focus on more descriptive and accurate generative models.</p><p>Another practical limitation is the computational cost of fitting. Fitting the more complex generative models, such as those describing the scattering from a cluster of many spherical particles, can take hours of CPU (central processing unit) time for a single hologram. By contrast, the hologram of a single sphere can be computed in under a millisecond on a desktop computer. The computational cost of detailed analysis may be prohibitive for certain experiments, such as those involving long time series or high throughput.</p><p>New developments in computing and inference could mitigate these issues. For example, algorithms such as automatic differentiation <ref type="bibr">130,</ref><ref type="bibr">131</ref> , variational inference <ref type="bibr">132</ref> and Hamiltonian Monte Carlo 81 can accelerate fitting models with large numbers of parameters. Additionally, graphics processing unit (GPU) and tensor processing unit (TPU) computing frameworks can parallelize the fitting of highly complex models to time series <ref type="bibr">133</ref> .</p><p>An alternative is to develop simpler models rather than more complex ones. The effective-sphere model is an example of a model that makes simplifying yet accurate physical approximations. This approach can reduce the burden of specifying the detailed shape and structure of the object, and can sharply reduce the computational cost. The challenge is to determine the appropriate approximation for the problem. To this end, one can test the approximations by running full scattering calculations using tools such as the discrete-dipole method <ref type="bibr">26</ref> .</p><p>Machine learning. Although machine-learning algorithms can perform more robustly over a wider parameter space than conventional algorithms, they can be inaccurate when their inputs differ too drastically from their training data. Imprecision in the localization algorithm, which estimates the position and extents of holograms, can also propagate uncertainty into parameters such as size and axial position <ref type="bibr">50</ref> .</p><p>The machine-learning approach is also limited by computational speed, although in a different way from the generative modelling approach. In particular, analysing data is fast, but training can be slow because many holograms must be generated to span the parameter space. Altman and Grier 50 achieved reliable results with a training set of 10 4 images, but in the theoretical limit 10 9 images would be required to achieve the parts per thousand precision of a generative modelling approach. Because the training data can be generated and labelled automatically, achieving high-precision classification is not an intractable problem for spherical specimens. Advances in network architecture and training protocols for high-precision tracking and characterization of spherical particles may soon be practical even with modestly sized training sets. But for non-spherical specimens, which include additional degrees of freedom such as shape and orientation, it may be impractical to generate and process enough training data for accurate characterization.</p><p>Using synthetic data to train machine-learning models has some disadvantages. Experimental artefacts, such as pattern noise in the camera, can significantly compromise accuracy. To mitigate this problem, one can either improve the experimental design or modify the models used to generate the training data. For example, one can measure the camera noise and incorporate it into the generated holograms <ref type="bibr">90</ref> , or generate the training data using models that more accurately describe the artefacts of the experimental system. Hybrid approaches. A hybrid approach can, in principle, overcome the limitations of both the generative modelling and machine-learning approach. It removes the need for human input or prior knowledge, while benefiting from the speed of machine learning and precision of fitting. Nevertheless, the hybrid approach comes with caveats. First, it remains computationally expensive because the generated training data must span the parameter space. Second, fitting the model requires calculating many holograms, although we expect fitting times to be reduced if the machine-learning stage provides a good initial guess. Third, any fundamental inaccuracies and limitations in the generative model affect the analysis in both stages. In the machine-learning stage, these inaccuracies affect the training data and, therefore, the parameter estimates. The inaccuracies in these estimates can propagate to the results of the fitting stage, as the accuracy of the fit can depend on the starting point in parameter space.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>More general limitations.</head><p>It is difficult to know whether the model-based approach and in-line experimental geometry will be effective for a specimen that differs from the previous examples, or whether a different analysis or experimental technique could reveal more information. We cannot give specific information on the ranges of specimen concentration, size, shape or structure for which the approach will yield useful results. New studies are needed to probe the physical and practical limitations of analysing more complex specimens.</p><p>For those interested in using the approach but unsure whether it will work on a particular specimen, our advice is to try it. The in-line geometry is straightforward to set up, and open-source software for generative modelling <ref type="bibr">83</ref> and machine learning <ref type="bibr">50</ref> makes it easy to apply the analysis methods.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Outlook</head><p>Since its development in the 1940s, holographic microscopy has been repeatedly revitalized by technological developments. The invention of the laser simplified implementation <ref type="bibr">134</ref> ; the development of digital cameras enabled digital reconstruction <ref type="bibr">135</ref> ; and the advent of computers powerful enough to compute scattering solutions of microscopic objects enabled direct analysis of holograms <ref type="bibr">136,</ref><ref type="bibr">137</ref> . Recent developments in statistical inference and machine learning enabled the model-based approaches and precise measurements discussed in this Primer.</p><p>The future of model-based analysis depends on continued advances in inference and computation. Removing limitations, such as the variation of parameter estimates with defocus, demands more physically accurate generative models. These models must also be more computationally efficient. Currently, it takes days of CPU time to fit a complex generative model to a hologram of a two-sphere cluster if the model includes the effects of a lens <ref type="bibr">78</ref> . Although processing power will likely increase, there is still a need for numerical and algorithmic optimization. Real-time analysis of holograms requires inference algorithms that are more efficient. These algorithms must also be resilient to the complications of real experimental systems, such as variations in brightness and loss of fringe information near the focal plane.</p><p>Machine-learning techniques are poised to meet many of these challenges. CNNs have quantified the properties of microscopic objects from real holograms taken under various experimental conditions, at speeds nearly 100 times faster than conventional inference-based techniques. However, these estimates are not as precise as those obtained with a fitting approach, and they lack the uncertainty estimates provided by MCMC sampling. Furthermore, estimating properties such as the shape, structure and orientation of more complex specimens requires algorithms trained with a large amount of data. Machine-learning approaches rely on generative models to produce these training data. The future of the field will likely depend on the development of both approaches in parallel.</p><p>We would go further; we think the future of holographic microscopy depends not only on the parallel development of generative modelling and machine learning but on their integration. We envision a microscope that would send its holograms directly to a system that could guess what kind of objects made them, analyse the holograms and report any parameters and uncertainties that the researcher specifies. The specimen might be a living eukaryotic cell, and the objects might be its organelles. Behind the scenes, a hybrid approach would be at work. A machine-learning module would determine the number, shapes and structures of objects that made the hologram; estimate the properties of these objects; and select a generative model for each. A fitting module would then report precise estimates and marginalized uncertainties on parameters of interest, using the results from the machine-learning module as initial estimates.</p><p>The development of these new algorithms could be synergistic with experimental design. In the broad field of quantitative phase microscopy <ref type="bibr">14,</ref><ref type="bibr">[138]</ref><ref type="bibr">[139]</ref><ref type="bibr">[140]</ref> , researchers leverage various experimental approaches -off-axis beam geometries, phase-shifting elements, coherence control and multi-wavelength apparatus, among others -to acquire more information and more sensitive measurements of complex specimens. Meanwhile, interferometric scattering techniques have pushed the detection limit of holographic microscopy to the single-molecule scale <ref type="bibr">141,</ref><ref type="bibr">142</ref> . Generative models are starting to appear for these techniques <ref type="bibr">143</ref> . The development of generative modelling and machine-learning approaches could drive further advances in experimental techniques, and vice versa.</p><p>This vision is not limited to holographic microscopy; it is a vision for where microscopy in general may be headed. As we noted in the Introduction, a hologram is not easy for the human eye to interpret. It is difficult to visually recognize even a specimen's shape from its hologram, let alone its size or orientation. But the interference fringes that make the hologram impenetrable to human vision contain a wealth of information about the specimen. That information is most easily extracted and quantified by an algorithm. The same principle can be applied to any microscopy technique. By removing the need for humans to directly interpret the image, we can design microscopes that maximize the amount of information contained in the image. Although the resulting images may not appeal to the eye, their true appeal lies in what they reveal about the specimen.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Published online xx xx xxxx</head></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="6" xml:id="foot_0"><p>| Article citation ID: (2022) 2:83 www.nature.com/nrmp</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="8" xml:id="foot_1"><p>| Article citation ID: (2022) 2:83 www.nature.com/nrmp</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="14" xml:id="foot_2"><p>| Article citation ID: (2022) 2:83 www.nature.com/nrmp</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_3"><p>NAture revIews | MetHoDs PriMers | Article citation ID: (2022) 2:83</p></note>
		</body>
		</text>
</TEI>
