Skip to main content
Bioinformatics logoLink to Bioinformatics
. 2019 Aug 29;36(3):910–917. doi: 10.1093/bioinformatics/btz674

Semi-blind sparse affine spectral unmixing of autofluorescence-contaminated micrographs

Blair J Rossetti 1,, Steven A Wilbert 2, Jessica L Mark Welch 3, Gary G Borisy 2, James G Nagy 4
Editor: Robert Murphy
PMCID: PMC7523684  PMID: 31504202

Abstract

Motivation

Spectral unmixing methods attempt to determine the concentrations of different fluorophores present at each pixel location in an image by analyzing a set of measured emission spectra. Unmixing algorithms have shown great promise for applications where samples contain many fluorescent labels; however, existing methods perform poorly when confronted with autofluorescence-contaminated images.

Results

We propose an unmixing algorithm designed to separate fluorophores with overlapping emission spectra from contamination by autofluorescence and background fluorescence. First, we formally define a generalization of the linear mixing model, called the affine mixture model (AMM), that specifically accounts for background fluorescence. Second, we use the AMM to derive an affine nonnegative matrix factorization method for estimating fluorophore endmember spectra from reference images. Lastly, we propose a semi-blind sparse affine spectral unmixing (SSASU) algorithm that uses knowledge of the estimated endmembers to learn the autofluorescence and background fluorescence spectra on a per-image basis. When unmixing real-world spectral images contaminated by autofluorescence, SSASU greatly improved proportion indeterminacy as compared to existing methods for a given relative reconstruction error.

Availability and implementation

The source code used for this paper was written in Julia and is available with the test data at https://github.com/brossetti/ssasu.

1 Introduction

Most conventional fluorescence microscopes use a series of mirrors and optical filters to separate the emission light of different fluorophores. The characteristics of these filters (i.e. what wavelengths of light they let pass) dictate what types of fluorophores and, more importantly, how many fluorophores can be used in an experiment. There exist a number of tools to help optimize the choice of fluorophores based on the configuration of a given microscope, such as the recently released SPEKcheck by Phillips et al. (2018). These tools attempt to reveal the set of fluorophores that minimize spectral cross talk, a problem where the filter used for one fluorophore does not adequately exclude the fluorescent emission of other fluorophores (see Waters (2009) and references therein). Yet, even with such optimization, most experiments are still limited to three or four fluorescent labels. To make matters worse, many biological samples contain a variety of autofluorescent molecules that emit light at wavelengths that overlap and obscure the desired signal.

Spectral microscopy has become the method of choice when needing to avoid cross talk, mitigate autofluorescence and simultaneously visualize many biological objects (Harmany et al., 2017; Jonkman et al., 2014; Levenson et al., 2008; Valm et al., 2011, 2016). Instead of relying on filters, spectral microscopes use specialized optics and computational analysis to measure and separate the light emitted by different fluorophores. A spectral image is a three-dimensional data structure that holds a discrete spectral emission profile for each (x, y) pixel location. The range of detectable wavelengths and the number and width of the spectral bands varies by system and application. However, most commercial spectral microscopes are capable of measuring tens (multispectral) or even hundreds (hyperspectral) of spectral bands at resolutions of 1–15 nm/band (Cole et al., 2013; Gao and Smith, 2015). For an in-depth treatment of spectral microscopy and its applications, we refer the reader to the ‘Spectral Imaging’ special issue of Cytometry Part A (Lerner et al., 2006) and the reviews by Garini and Tauber (2013) and Li et al. (2013).

Since a spectral microscope simply records the spectrum at each pixel, the ability to separate fluorophores with overlapping emission spectra depends on the choice of spectral unmixing algorithm. Spectral unmixing refers to a group of techniques that attempt to determine how much of each fluorophore was present in some observed spectrum. Nearly all of these methods assume that light emitted by different fluorophores mix linearly, and are rightly called linear mixing models (LMM) (Zimmermann et al., 2014). In the deterministic case, fluorophores are assumed to have one canonical emission spectrum called a reference spectrum or endmember (a term borrowed from mineralogy that refers to the purest form of an element that exists in a mixture). We can represent the set of N endmembers, each with M spectral bands, as the columns, denoted sn for n=1,,N, of the endmember matrix SR+M×N. If we denote the endmember concentrations, or weights, as wR+N, then we can write the LMM as

y=n=1Nsnwn+e, (1)

where yR+M is the observed spectrum, wn is the nth entry of w, and e is i.i.d. noise (typically assumed to be Gaussian or Poisson distributed). When considering an entire spectral image with P pixels, denoted YR+M×P, we can rewrite the LMM in matrix form as

Y=SW+E, (2)

where ERM×P is noise and WR+N×P is the set of weights for each endmember in each pixel. It is important to highlight that the entries of W must be nonnegative (i.e. in R+) since negative combinations of endmembers are not physically meaningful. The endmember weights are visualized by reorganizing the columns of W to produce a three-dimensional (Py×Px×N) unmixed image, where Py and Px are the number of vertical and horizontal pixels, respectively.

When the number and spectra of endmembers in an image are known in advance, spectral unmixing under the LMM is equivalent to the problem of Nonnegative Least Squares (NLS), and it can be written as

WNLS=argminWYSWF2, subject to W0, (3)

where ||·||F is the Frobenius norm, is element-wise and 0 is an appropriately sized matrix of zeros. Conveniently, NLS is a strictly convex optimization problem with a unique solution when the endmembers are linearly independent. Many unmixing algorithms that come packaged with commercial microscopes rely on some variant of the NLS active-set algorithm by Lawson and Hanson (1995). While NLS is sufficient for some applications, it is not always possible to know which endmembers exist in an image. In particular, there are many different types of autofluorescent molecules, and knowing which autofluorescence endmembers are present is often impractical. In addition, endmembers are typically estimated from a reference sample. A poorly prepared reference sample or improper estimation method will lead to undesired unmixing results (Zimmermann et al., 2014). As such, NLS lacks the flexibility to adequately handle many of the unmixing problems that arise in realistic applications.

Spectral unmixing methods have been used extensively by the remote sensing community for the analysis of hyperspectral geospatial data, and there exists a rich literature on advanced hyperspectral unmixing algorithms (Bioucas-Dias et al., 2012; Drumetz et al., 2016; Heylen et al., 2014; Keshava and Mustard, 2002; Keshava, 2003; Ma et al., 2014). Although some methods from remote sensing have been directly applied to spectral micrographs (Harris, 2006; Lu and Fei, 2014), there are several key differences between the problem conditions that render many unmixing algorithms for geospatial data unsuitable for spectral microscopy. As compared to remote sensing data,

  • spectral micrographs contain fewer spectral bands and, therefore, suffer less from the curse of dimensionality;

  • spectral micrographs have significantly higher spatial resolution relative to the size of the target objects, meaning that individual pixels contain fewer endmembers and neighboring pixels have similar compositions;

  • the number of fluorophores used for labeling is known a priori;

  • it is possible to estimate endmembers from reference images;

  • and spectral micrographs are often heavily contaminated by background fluorescence and autofluorescent organic molecules.

As a result of these differences, there is an existing and ongoing need to develop spectral unmixing methods specifically tailored towards spectral microscopy applications (Arena et al., 2017).

Several notable algorithms have been recently introduced with the aim of unmixing images contaminated by autofluorescence. Fereidouni et al. (2012, 2014) developed a fast unmixing algorithm (along with an ImageJ plugin) inspired by the phasor methods used in lifetime imaging. Unfortunately, spectral phasor analysis is a geometric approach that is computationally expensive when unmixing more than three endmembers. A highly optimized phasor approach was proposed by Cutrale et al. (2017) for classifying autofluorescence-contaminated spectral images. Their Hyper-Spectral Phasors (HySP) software was able to differentiate four fluorophores and three autofluorescent sources in a single volumetric time-lapse dataset. Unlike unmixing methods, however, HySP assigns each pixel to an endmember class and does not determine the relative proportions of each endmember. As a result, HySP is not suitable for experiments where fluorophores or autofluorescent molecules spatially overlap. Megjhani et al. (2017) proposed a powerful morphologically constrained spectral unmixing (MCSU) algorithm using dictionary learning. In addition to learning the endmember spectra from reference images, MCSU builds a dictionary of morphological motifs (e.g. cell or organelle shapes) unique to each fluorophore. Although MCSU shows impressive results for up to eight fluorophores, it requires that the reference images share the same morphologies found in the test images and that these morphologies differ between fluorophores.

The sparse unmixing by variable splitting and augmented Lagrangian (SUnSAL) algorithm by Bioucas-Dias and Figueiredo (2010) and its spatially regularized variant SUnSAL-TV by Iordache et al. (2012) are two useful methods for images containing endmembers that may not be linearly independent (recall that S must have full column rank for NLS to have a unique solution). The imposed sparsity and total variation (TV) regularizers help guide the optimization towards sparse solutions in which fewer endmembers are used to explain the observed spectral signatures. As with NLS, however, both SUnSAL and SUnSAL-TV are unable to learn or adjust endmembers on a per-image basis.

Perhaps the most popular open source unmixing tool is the PoissonNMF plugin for ImageJ by Neher et al. (2009). PoissonNMF is based on the nonnegative matrix factorization (NMF) methods popularized by Lee and Seung (2001). In the context of unmixing, NMF is a blind source separation algorithm that aims to learn the endmembers and their weights by solving

minS,WYSW, subject to S0,W0, (4)

for an appropriate distance metric. As its name suggests, PoissonNMF is intended for use with images affected primarily by Poisson distributed noise (i.e. shot-noise). The PoissonNMF ImageJ plugin can operate in a blind or semi-blind manner where known endmembers can be fixed when solving Eq. 4. However, Neher et al. (2009) report that PoissonNMF yields unsatisfactory results when unmixing more than four endmembers due to the heavily overlapping emission profiles.

Similar semi-blind NMF approaches using the Gaussian noise model for read-noise-limited data have been suggested by Huang et al. (2015), Tong et al. (2016) and Qin et al. (2016). These methods rely on sparsity regularization to help with linearly dependent endmembers, and they have been shown to work well on images with three to five endmembers. However, none of these methods separately and explicitly model contamination by autofluorescence from organic molecules and background fluorescence from ambient and stray light.

Global background fluorescence originates from a variety of sources in the sample and optical path (Waters, 2009). When neglecting this source of light, the weight matrix becomes dense and sparsity constraints are ineffective. This occurs because the offset intensity stemming from background fluorescence violates the assumed zero-mean Gaussian noise model. Laurberg and Hansen (2007) introduced a sparse affine NMF method aimed at handling the offset components found in a variety of data types. Woolfe et al. (2011) used a similar affine model (incorrectly called a linear model) to address autofluorescence in spectral images; however, this model did not impose constraints on sparsity.

In this paper, we formally define an affine mixing model (AMM) that generalizes the LMM by including a term to absorb any background fluorescence. From this model, we derive an affine nonnegative matrix factorization (ANMF) method for estimating endmembers from reference images. We then propose a semi-blind sparse affine spectral unmixing (SSASU) method for images contaminated with both autofluorescence and background fluorescence.

We test the proposed methods on the study of complex bacterial biofilms. As shown by Valm et al. (2011) and Mark Welch et al. (2016), multiplexed labeling and spectral microscopy can be used to explore the spatial relationships within biofilms. In these experiments, fluorophores conjugated to oligonucleotide probes were used to label and differentiate tens of bacterial taxa. Until now, the presence of autofluorescence and background has made separating these overlapping fluorophores difficult for certain biofilm samples. We show that our SSASU approach is able to successfully reduce the impact of autofluorescence and background and unmix seven fluorophores.

2 Materials and methods

2.1 Sample preparation

To evaluate the proposed method, a set of seven reference samples, ten test samples and one no-probe control was prepared. The bacteria Leptotrichia buccalis was used as the biological target for generating reference samples for each of the seven fluorophores: DY-415, DY-490, ATTO 520, ATTO 550, Texas Red-X, ATTO 620 and ATTO 655 (Dyomics GmbH; ATTO-TEC GmbH; Thermo Fisher Scientific Inc.). L. buccalis cells were cultured, fixed, and then separately hybridized using custom fluorophore-conjugated oligonucleotide probes (biomers.net GmbH) as described by Mark Welch et al. (2016). For practical considerations concerning probe set design, we refer the reader to work by Cohen et al. (2018).

Test samples consisted of biofilms that were collected from the dorsum of the tongue. Samples were collected by gently scraping with a ridged plastic strip along the surface of the tongue of healthy human volunteers recruited and sampled according to a study protocol and informed consent document approved by the Institutional Review Board of the Forsyth Institute, Cambridge, MA. Samples were fixed in 50% ethanol and hybridized using a set of probes specific to different taxa of bacteria (see Table 1). Two samples were taken from each of five human subjects (A-E). An additional biofilm sample was collected from subject D, chemically fixed and hybridized without a fluorophore to generate a no-probe control sample (used to measure autofluorescence). After hybridization, the reference samples, test samples and no-probe control were mounted on slides as described by Mark Welch et al. (2016).

Table 1.

Oligonucleotide probes and their taxonomic targets

Probe ID Taxon Target Fluorophore
Smit651-DY415-2 Species Streptococcus mitis DY-415
Ssal372-DY490-2 Species Streptococcus salivarius DY-490
Prv392-AT520-2 Genus Prevotella ATTO 520
Vei488-AT550-1 Genus Veillonella ATTO 550
Act118-TRX-1 Genus Actinomyces Texas Red-X
Nei1030-AT620-2 Family Neisseriaceae ATTO 620
Rot491-AT655-2 Genus Rothia ATTO 655

2.2 Imaging and preprocessing

All spectral micrographs were acquired on a Zeiss LSM 880 using a 63×/1.4 NA Plan-Apochromat objective lens. Point scanning was performed simultaneously with the 405, 488, 561 and 633 nm lasers using the 405 and 488/561/633 dichroic mirrors. Spectral data was collected from a range of 410 to 696 nm using 8.6 nm steps. Each reference image was acquired using dimensions of 512 × 512 pixels at 0.263 μm/pixel resolution. Test images were acquired at 2048 × 2048 pixels and down-sampled to 1024 × 1024 pixels at a resolution of 0.220 μm/pixel.

The use of dichroic mirrors blocked the detection of emitted light near the excitation wavelengths. Since these dark bands contained little information, they were removed from the reference and test images prior to any analysis. In total, 6 of the 32 spectral bands were removed.

2.3 Affine mixing model

The vast majority of spectral unmixing methods assume that the emitted light from different fluorophores combines according to the linear mixing model (LMM) described in Eq. 2. The LMM is so widely used that the phrase ‘linear unmixing’ is regularly used interchangeable with ‘spectral unmixing.’ As point scanning confocal microscopy data is predominately read-noise-limited (Lambert and Waters, 2014), the noise component is expected to follow a Gaussian distribution with zero mean. In reality, nearly all microscopy images are contaminated by background fluorescence that offsets the noise profile (Waters, 2009; Waters and Wittmann, 2014) and breaks the assumption of zero-centered noise. To explicitly accommodate for the presence of background fluorescence, we define an affine mixing model (AMM) as

Y=SW+b1T+E, (5)

where bR+M is the nonnegative background spectrum and 1 is a vector of ones. Conveniently, the AMM becomes equivalent to the LMM when no background fluorescence exists (i.e. b=0).

2.4 Estimating endmembers

Spectral unmixing by NLS carries the assumption that the endmember spectra of both the fluorophores and the autofluorescence are known in advance. Our proposed unmixing method relaxes this assumption by only requiring that the endmember spectra of the K fluorophores be known. This claim is valid because one can control which fluorophores are used to label the sample, and endmember spectra can be estimated from reference images. But how to estimate endmembers from their corresponding reference images is not widely discussed in the literature. This open problem is important to emphasize because even slight inaccuracies in endmember estimates are known to dramatically affect the determination of the endmember weights—a problem called proportion indeterminacy (Zare and Ho, 2014). We address this open question by proposing an affine nonnegative matrix factorization (ANMF) method for estimating endmembers.

For the following discussion of endmember estimation, we will denote the set of reference images as {R1,,RK} with RkR+M×Q, where Q is the number of pixels in the reference image. The corresponding endmembers, denoted sk for k=1,,K, make up the columns of the fluorophore endmember matrix.

2.4.1 Mean estimated endmember

Spectral microscopy practitioners estimate endmembers from reference images using a variety of methods based on the arithmetic mean. In general, endmembers are determined by the average spectral signature over all foreground pixels or some user-defined region of interest within the reference image. Since the illumination conditions can vary between reference and test images, it is common to normalize the mean endmembers by their - or 1-norm. We can write this estimation procedure in matrix form as

s¯k=1hk1Rkhksk=1s¯ks¯k for k=1,,K, (6)

where hkRQ is a binary vector with 1 indicating the foreground and 0 indicating the background of the kth reference image. Foreground/background thresholding can be performed using any number of different thresholding algorithms. The Triangle algorithm is used in this work for its robustness to different illumination conditions (Zack et al., 1977).

2.4.2 ANMF estimated endmember

Using the arithmetic mean of foreground pixels assumes that the noise is Gaussian distributed with zero mean. Yet, even reference images contain some level of background fluorescence. We, therefore, define an affine model similar to Eq. 5 for reference images as

Rk=skw¨kT+b¨k1T+Ek, (7)

where w¨kR+Q and b¨nR+M are the weights and background spectrum for the kth reference image, respectively. From Eq. 7, we can formulate an endmember estimation method based on ANMF. For each fluorophore endmember spectrum skR+M from k=1,,K we solve the constrained optimization problem

minsk,w¨k,b¨kRkskw¨kTb¨k1TF2,subject to sk,w¨k,b¨k0. (8)

Since sk,w¨k and b¨k are all unknown, Eq. 8 is a nonconvex optimization problem. We also note that the solutions for sk and w¨k are non-unique as they may be scaled by a nonzero constant (i.e. skw¨kT=(csk)(c1w¨kT)). To control the uniqueness of the solution, we normalize sk to the -norm at each iteration of the optimization scheme. This normalization is also required later to properly scale the unmixed image to the bit-depth of the observed image.

Since ANMF operates on the entire image, there is no need to threshold foreground from background or define a region of interest as with the Mean method. This is important to emphasize because a Mean estimated spectrum can change dramatically from one thresholding method to another.

2.5 Semi-blind sparse affine spectral unmixing

Although it is possible to accurately characterize endmembers for each fluorophore, estimating autofluorescence endmembers is difficult for several reasons. First, it may not always be possible to create a reference sample for each type of autofluorescence that occurs in the test samples. Second, the structure of the autofluorescent tissue may influence its spectrum (i.e. thicker samples may induce more light scattering). Therefore, we believe it is better to learn the L distinct autofluorescence endmembers directly from the test images. This approach provides the flexibility necessary to adjust to varying numbers and types of autofluorescence spectra on an image-by-image basis.

Since we are confident in the estimation of our K fluorophore endmembers, it would not make sense to impose the same flexibility on them. In fact, this flexibility can cause problems during unmixing. Although a sample can be labeled with a set of fluorophores, there is no guarantee that all K fluorophores will exist in every field-of-view. In this rank-deficient case (i.e. rank(Y)<rank(S)), the columns of S that are associated with the missing fluorophores will learn some other signal from the image that may not be physically meaningful. Therefore, we propose a semi-blind unmixing that separates the endmember matrix S into two pieces: one for the K fluorophore endmembers, denoted SFR+M×K and the other for the L autofluorescence endmembers, denoted SAR+M×L. Note that the total number of endmembers is equal to the number of fluorophore and autofluorescent endmembers (i.e. N=K+L). To further reduce overfitting and protect against linearly dependent endmembers, we include a term to enforce sparsity of the weight matrix. We define our semi-blind sparse affine spectral unmixing (SSASU) method as

minSA,W,bY[SF,SA]Wb1TF2+γW1,subject to SA,W,b0 (9)

where [SF,SA]=S is the partitioned endmember matrix, ||·||1 is the sum over all matrix entries and γ is the parameter controlling sparsity.

As with our ANMF method for estimating endmembers, SSASU is a nonconvex optimization problem. However, we note that SSASU is convex in SA when W and b are fixed, convex in W when SA and b are fixed, and convex in b when SA and W are fixed. Therefore, SSASU can be solved using a block coordinate descent algorithm similar to that suggested by Cichocki et al. (2009). Algorithm 1 describes the multiplicative update method used to solve Eq. 9. Note that element-wise multiplication and division are denoted by and , respectively. As with all multiplicative update algorithms, SSASU is sensitive to values becoming zero during the optimization. Therefore, we set all non-positive entries to some small value before each iteration. These small values were removed by thresholding after reaching a stopping condition.

Algorithm 1.

: SSASU

Algorithm 1

3 Results

We assessed the robustness of endmember estimation by ANMF and arithmetic mean across seven different reference images: DY-415, DY-490, ATTO 520, ATTO 550, Texas Red-X, ATTO 620 and ATTO 655. Each endmember estimate was compared against a ground truth endmember by measuring the spectral angle.

We evaluated our SSASU method by unmixing a set of ten real-world spectral images each of which were labeled with seven fluorophores (see Table 1) and contaminated by background and autofluorescence. For comparison, we performed the same evaluation with the four most commonly used unmixing methods—NLS, PoissonNMF, SUnSAL and SUnSAL-TV. The success of each method was measured by its ability to reduce proportion indeterminacy for each test image.

3.1 Endmember estimation performance

Since poorly estimated endmembers can degrade the overall performance of unmixing, it remains important to evaluate the accuracy of the estimates. Yet, defining a ground truth set of endmembers is difficult because all images contain some level of background fluorescence. Instead, we compared the endmember estimates to fluorometer data reported in the literature (McNamara et al., 2006). Although the fluorometer data was measured under different optical and environmental conditions, these data still provided a useful baseline to check estimates made from reference images.

While neither the Mean nor the ANMF estimation method perfectly matched the fluorometer data due to differing environmental conditions, excitation wavelengths, presence of dark bands and spectral accuracy (Cole et al., 2013), Figure 1 shows that ANMF endmembers were less contaminated by background fluorescence than Mean endmembers. We evaluated this quantitatively by calculating the spectral angle between each Mean and ANMF endmember and its corresponding fluorometer-measured spectrum. The spectral angle, which is related to cosine similarity, was calculated as θ(s,s^)=arccos(s·s^||s||2||s^||2), where s was the fluorometer spectrum and s^ was the estimated spectrum. As reported in Table 2, ANMF endmembers were as good or better at approximating the true endmember spectra than estimation by arithmetic mean.

Fig. 1.

Fig. 1.

Comparison of seven Mean and ANMF estimated endmember spectra with fluorometer measurements. The shaded regions represent the fluorometer data, the dotted lines represent the Mean estimates and the dashed lines represent the ANMF estimates. The gray vertical lines show the wavelength where dichroic mirrors blocked the measurement of emitted light (i.e. locations of missing spectral data). Note that the missing spectral data caused some endmember estimates to deviate from the fluorometer measurements (e.g. ATTO 620)

Table 2.

Spectral angle between estimated endmembers and their corresponding fluorometer spectra

Method DY-415 DY-490 ATTO 520 ATTO 550 TRX ATTO 620 ATTO 655
Mean 0.484 0.324 0.455 0.088 0.065 0.203 0.053
ANMF 0.421 0.293 0.455 0.087 0.052 0.203 0.024

3.2 Parameters

SSASU, PoissonNMF, SUnSAL and SUnSAL-TV required regularization parameters to be set prior to unmixing. Proper selection of these parameters was critical to ensuring a fair comparison of proportion indeterminacy. Therefore, parameters for SSASU, PoissonNMF, SUnSAL and SUnSAL-TV were determined such that their unmixing solutions produced relative reconstruction errors similar to NLS (i.e. ±0.05). Parameters were kept constant across all test images to show the flexibility of each algorithm. Both SSASU and PoissonNMF required two parameters: one controlling the sparsity of the weight matrix and the other estimating the rank of the autofluorescence endmember matrix (i.e. Lrank(SA)). In practice, L is determined by manually examining the spectra of contaminated image regions. SUnSAL only needed a sparsity parameter; whereas, SUnSAL-TV required a sparsity parameter and a spatial TV parameter. The empirically determined regularization parameters used for all test images are listed in Table 3. The fluorophore endmembers (i.e. SF) used for SSASU, NLS, PoissonNMF, SUnSAL and SUnSAL-TV were set to the values estimated by the ANMF method. The autofluorescence endmember for NLS, SUnSAL and SUnSAL-TV were estimated by ANMF from a no-probe control sample (i.e. an unlabeled sample taken from the dorsum of the tongue).

Table 3.

Empirically determined regularization parameters for each unmixing algorithm

Parameter SSASU Poisson NMF SUnSAL SUnSAL-TV
No. Autofluor. Endmembers 1 1
Sparsity 0.009 6 0.005 0.005
Total variation 0.005

3.3 Unmixing performance

The unmixing performance of SSASU, NLS, PoissonNMF, SUnSAL and SUnSAL-TV was evaluated on the basis of two relative error metrics that ranged from zero (better) to one (worse). The ability to reconstruct the observed signal was determined by the relative reconstruction error (RRE), and was defined by

RRE(Y,Y^)=YY^FYF, (10)

where Y was the observed image and Y^ was the reconstructed image. The RRE was used to determine the parameters for each algorithm and ensure that each method properly accounted for the observed signal. It is worth noting that the RRE provides a measure of underfitting/overfitting and does not indicate the quality of a solution. For example, an algorithm can produce a physically meaningless solution to the unmixing problem with a near-zero RRE by fitting the noise in addition to the signal. Therefore, we use the RRE in conjunction with a metric that evaluates the ability of the unmixing algorithm to separate autofluorescence from the fluorophore endmembers.

Since the fluorophores used to label the test images were known to bind to distinct bacteria, each pixel in the test images contained at most one fluorophore (with the rare exception of areas where different bacteria overlap). In this case, a poor solution for an observed spectrum would produce positive weights for more than one fluorophore endmember. This is a type of overfitting known as proportion indeterminacy (PI). We measured PI by checking the non-orthogonality of the weight matrix. Since each pixel should contain only one endmember, the property WWT=D holds, where D=diag(||w1||22,,||wN||22) and wn is the nth row of W. From this property, we defined a measure of PI as

PI(W)=DWWTFDF. (11)

Since PI measures the intensity overlap between channels of an unmixed image, this metric would not be appropriate for ratiometric applications (e.g. FRET). For the present application, however, RRE and PI effectively indicate the fit and quality of each unmixing solution.

SSASU, NLS, PoissonNMF, SUnSAL and SUnSAL-TV were each able to effectively reconstruct the test images with RREs below 0.15 and within 0.05 of each other (see top of Fig. 2). Across all test images, SUnSAL-TV had the highest RRE. This was expected because SUnSAL-TV is the only algorithm with both a sparsity and a spatial regularizer. The consistent RREs across all images suggests that none of the methods significantly overfit or underfit the observed data.

Fig. 2.

Fig. 2.

Comparison of unmixing performance for SSASU, NLS and PoissonNMF across ten test images taken from five samples. The relative reconstruction error (top) evaluates each method’s ability to reconstruct the observed spectral image. The proportion indeterminacy (bottom) measures the non-orthogonality of the weight matrices and illustrates how well each method separates the fluorophore endmembers in the presence of autofluorescence. Both metrics range from zero (better) to one (worse)

Despite having similar RRE across all test images, the quality of the solutions varied dramatically between the different methods. SSASU outperformed NLS, PoissonNMF, SUnSAL and SUnSAL-TV in all but two test cases at reducing PI (see bottom of Fig. 2). SSASU performed second best in PI for the remaining two test images. For eight of the ten test images, PoissonNMF was least able to cleanly separate the fluorophores. Although there was no noticeable difference in PI between SUnSAL and SUnSAL-TV, they both consistently produced better quality solutions than NLS. When comparing the worst PI for each method, SSASU showed a clear improvement over NLS, PoissonNMF, SUnSAL and SUnSAL-TV at 0.55, 0.89, 0.90, 0.83 and 0.82, respectively.

The performance illustrated by these metrics can be observed qualitatively in the unmixing results for test image E2 (see Fig. 3). In the results for NLS (Fig. 3A–H), autofluorescence has contaminated nearly all of the unmixed channels. This same autofluorescence light was efficiently captured in the autofluorescence channel of the SSASU unmixed image (Fig. 3I). We also note that Prevotella (ATTO 520) was not present in image E2, yet the ATTO 520 channel of the NLS unmixed image contained a significant amount of intensity (Fig. 3D). Using the parameter settings described in Table 3, we note that SSASU was unable to remove all proportion indeterminacy found in the DY-415 and DY-490 channels as indicated by the repeated structures (Fig. 3J and K). Nevertheless, the composite view of all unmixed fluorophore channels (i.e. all channels excluding autofluorescence) clearly illustrates the ability of SSASU to efficiently separate both the autofluorescence and the fluorophores (Fig. 3Q and R).

Fig. 3.

Fig. 3.

Montage of unmixed images for NLS (top) and SSASU (bottom). Panels (A–P) show the unmixed channels for autofluorescence (A, I); S. mitis/DY-415 (B, J); S. salivarius/DY-490 (C, K); Prevotella/ATTO 520 (D, L); Veillonella/ATTO 550 (E, M); Actinomyces/Texas Red-X (F, N); Neisseriaceae/ATTO 620 (G, O); and Rothia/ATTO 655 (H, P). A larger composite view of the non-autofluorescence unmixed channels is shown for NLS in panel (Q) and for SSASU in panel (R). The scale bar in panel R indicates 10 μm. (Color version of this figure is available at Bioinformatics online.)

3.4 Characterizing autofluorescence

Samples can contain many different types of autofluorescent molecules, and exactly which autofluorescence endmembers exist in an image is difficult to ascertain in advance. For applications using NLS, SUnSAL, or SUnSAL-TV, it is common to estimate the autofluorescence endmember from a no-probe control. Figure 4 shows how the autofluorescence endmember estimated from the no-probe control image compared to those learned by SSASU. It is clear that the no-probe control endmember poorly characterized the autofluorescence encountered in the test images. The learned autofluorescence signatures are consistent with the spectra of lipids, collagen and other common fibrous proteins (Croce and Bottiroli, 2014). The ability to learn the autofluorescence spectrum directly from an image allows SSASU to adapt to highly varied samples. This flexibility lets SSASU fit the observed data with a sparse set of endmember weight, thereby reducing proportion indeterminacy as compared to NLS, SUnSAL and SUnSAL-TV.

Fig. 4.

Fig. 4.

Comparison of the autofluorescence endmember estimated from the no-probe control reference image (gray region) to the autofluorescence endmembers learned by SSASU from each of the ten test images (colored lines). Note that none of the learned autofluorescence endmembers match the no-probe control endmember estimate. (Color version of this figure is available at Bioinformatics online.)

4 Conclusion

Spectral microscopy and unmixing make it possible to visualize biological samples labeled with a large set of fluorophores. However, the choice of unmixing algorithm is important for achieving the desired results. In this paper, we proposed and evaluated a semi-blind sparse affine spectral unmixing (SSASU) algorithm aimed at separating fluorescence endmembers in the presence of autofluorescence and background fluorescence. In all but two test cases, SSASU was able to outperform NLS, PoissonNMF, SUnSAL and SUnSAL-TV in mitigating autofluorescence. While our method is more flexible than NLS, we note that, like other NMF methods, SSASU is more computationally expensive and does not guarantee a unique solution. Therefore, we recommend SSASU for situations where spectral micrographs are contaminated with one or many sources of autofluorescence.

In addition, we described an affine nonnegative matrix factorization (ANMF) method for estimating endmembers from reference images. We showed that ANMF estimation was as good or better than the Mean method across all test cases. In addition, ANMF does not depend on a thresholding of foreground and background. This makes ANMF more robust to images with uneven illumination profiles.

There are several obvious extensions of this work. First, formulating a version of SSASU for tensors would allow for the unmixing of spectral images that use sequential excitation. Second, allowing minor adjustments to fluorophore endmember spectra on an image-by-image basis would allow the algorithm to accommodate endmember variability (i.e. changes in the endmember spectra as a result of the microenvironment).

Acknowledgements

The authors would like to thank Andrew Kempchinsky for his help with sample preparation; Dr. Lars Ruthotto, Dr. Yuanzhe Xi, Yunyi Hu and Kelvin Kan for their thoughtful advice and guidance; and Louis Kerr for his microscopy support.

Funding

This material is based upon work supported by the National Science Foundation (NSF) Graduate Research Fellowship Program under Grant No. DGE-1444932, NSF Grant No. DMS-1819042 and the National Institutes of Health (NIH) National Institute of Dental and Craniofacial Research (NIDCR) under Grant No. DE022586. Any opinions, findings and conclusions or recommendations expressed in this material are those of the author and do not necessarily reflect the views of the NSF or NIH.

Conflict of Interest: none declared.

References

  1. Arena E.T. et al. (2017) Quantitating the cell: turning images into numbers with Imagej. Wiley Interdiscipl. Rev. Dev. Biol., 6, e260. [DOI] [PubMed] [Google Scholar]
  2. Bioucas-Dias J.M., Figueiredo M.A. (2010) Alternating direction algorithms for constrained sparse regression: application to hyperspectral unmixing In: 2010 2nd Workshop on Hyperspectral Image and Signal Processing: Evolution in Remote Sensing. IEEE, pp. 1–4. [Google Scholar]
  3. Bioucas-Dias J.M. et al. (2012) Hyperspectral unmixing overview: geometrical, statistical, and sparse regression-based approaches. IEEE J. Select. Top. Appl. Earth Observ. Remote Sensing, 5, 354–379. [Google Scholar]
  4. Cichocki A. et al. (2009) Nonnegative Matrix and Tensor Factorizations: Applications to Exploratory Multi-Way Data Analysis and Blind Source Separation. John Wiley & Sons, Hoboken, NJ. [Google Scholar]
  5. Cohen S. et al. (2018) Multispectral live-cell imaging. Curr. Protoc. Cell Biol., 79, e46.. [DOI] [PMC free article] [PubMed] [Google Scholar]
  6. Cole R.W. et al. (2013) International test results for objective lens quality, resolution, spectral accuracy and spectral separation for confocal laser scanning microscopes. Microscopy Microanal., 19, 1653–1668. [DOI] [PubMed] [Google Scholar]
  7. Croce A.C., Bottiroli G. (2014) Autofluorescence spectroscopy and imaging: a tool for biomedical research and diagnosis. Eur. J. Histochem., 58, [DOI] [PMC free article] [PubMed] [Google Scholar]
  8. Cutrale F. et al. (2017) Hyperspectral phasor analysis enables multiplexed 5d in vivo imaging. Nat. Methods, 14, 149–152. [DOI] [PubMed] [Google Scholar]
  9. Drumetz L. et al. (2016) Variability of the endmembers in spectral unmixing: recent advances In: 2016 8th Workshop on Hyperspectral Image and Signal Processing: Evolution in Remote Sensing. IEEE, pp. 1–5. [Google Scholar]
  10. Fereidouni F. et al. (2012) Spectral phasor analysis allows rapid and reliable unmixing of fluorescence microscopy spectral images. Optics Express, 20, 12729–12741. [DOI] [PubMed] [Google Scholar]
  11. Fereidouni F. et al. (2014) Phasor analysis of multiphoton spectral images distinguishes autofluorescence components of in vivo human skin. J. Biophotonics, 7, 589–596. [DOI] [PubMed] [Google Scholar]
  12. Gao L., Smith R.T. (2015) Optical hyperspectral imaging in microscopy and spectroscopy–a review of data acquisition. J. Biophotonics, 8, 441–456. [DOI] [PMC free article] [PubMed] [Google Scholar]
  13. Garini Y., Tauber E. (2013) Spectral imaging: methods, design, and applications In: Liang,R. (ed.) Biomedical Optical Imaging Technologies. Springer, Heidelberg, Germany, pp. 111–161. [Google Scholar]
  14. Harmany Z.T. et al. (2017) Spectral unmixing methods and tools for the detection and quantitation of collagen and other macromolecules in tissue specimens In: Rittié,L. (ed.) Fibrosis. Springer, New York, NY, pp. 491–509. [DOI] [PubMed] [Google Scholar]
  15. Harris A.T. (2006) Spectral mapping tools from the earth sciences applied to spectral microscopy data. Cytometry A, 69, 872–879. [DOI] [PubMed] [Google Scholar]
  16. Heylen R. et al. (2014) A review of nonlinear hyperspectral unmixing methods. IEEE J. Select. Top. Appl. Earth Observ. Remote Sensing, 7, 1844–1868. [Google Scholar]
  17. Huang S. et al. (2015) Two-hierarchical nonnegative matrix factorization distinguishing the fluorescent targets from autofluorescence for fluorescence imaging. Biomed. Eng. Online, 14, 116. [DOI] [PMC free article] [PubMed] [Google Scholar]
  18. Iordache M.-D. et al. (2012) Total variation spatial regularization for sparse hyperspectral unmixing. IEEE Trans. Geosci. Remote Sensing, 50, 4484–4502. [Google Scholar]
  19. Jonkman J. et al. (2014) Quantitative confocal microscopy: beyond a pretty picture In: Waters,J.C. and Wittman,T. (eds) Methods in Cell Biology, Vol. 123. Elsevier, Amsterdam, Netherlands, pp. 113–134. [DOI] [PubMed] [Google Scholar]
  20. Keshava N. (2003) A survey of spectral unmixing algorithms. Lincoln Lab. J., 14, 55–78. [Google Scholar]
  21. Keshava N., Mustard J.F. (2002) Spectral unmixing. IEEE Signal Process. Mag., 19, 44–57. [Google Scholar]
  22. Lambert T.J., Waters J.C. (2014) Assessing camera performance for quantitative microscopy In: Waters,J.C. and Wittman,T. (eds) Methods in Cell Biology, Vol. 123. Elsevier, Amsterdam, Netherlands, pp. 35–53. [DOI] [PubMed] [Google Scholar]
  23. Laurberg H., Hansen L.K. (2007) On affine non-negative matrix factorization In: 2007 IEEE International Conference on Acoustics, Speech and Signal Processing, vol. 2. IEEE, pp. 653–656. [Google Scholar]
  24. Lawson C.L., Hanson R.J. (1995) Solving Least Squares Problems, Vol. 15. SIAM, Philadelphia, PA. [Google Scholar]
  25. Lee D.D., Seung H.S. (2001) Algorithms for non-negative matrix factorization In: Leen,T.K. et al. (eds) Advances in Neural Information Processing Systems, Vol. 13. NIPS Foundation, Cambridge, MA, pp. 556–562. [Google Scholar]
  26. Lerner J. et al. (2006) Spectral imaging. Cytometry A, 69A, 711–946. [Google Scholar]
  27. Levenson R.M. et al. (2008) Multispectral imaging and pathology: seeing and doing more. Expert Opin. Med. Diagn., 2, 1067–1081. [DOI] [PubMed] [Google Scholar]
  28. Li Q. et al. (2013) Review of spectral imaging technology in biomedical engineering: achievements and challenges. J. Biomed. Opt., 18, 100901.. [DOI] [PubMed] [Google Scholar]
  29. Lu G., Fei B. (2014) Medical hyperspectral imaging: a review. J. Biomed. Opt., 19, 010901.. [DOI] [PMC free article] [PubMed] [Google Scholar]
  30. Ma W.-K. et al. (2014) A signal processing perspective on hyperspectral unmixing: insights from remote sensing. IEEE Signal Process. Mag., 31, 67–81. [Google Scholar]
  31. Mark Welch J.L. et al. (2016) Biogeography of a human oral microbiome at the micron scale. Proc. Natl. Acad. Sci. USA, 113, E791–E800. [DOI] [PMC free article] [PubMed] [Google Scholar]
  32. McNamara G. et al. (2006) Spectral imaging microscopy web sites and data. Cytometry A, 69, 863–871. [DOI] [PubMed] [Google Scholar]
  33. Megjhani M. et al. (2017) Morphologically constrained spectral unmixing by dictionary learning for multiplex fluorescence microscopy. Bioinformatics, 33, 2182–2190. [DOI] [PMC free article] [PubMed] [Google Scholar]
  34. Neher R.A. et al. (2009) Blind source separation techniques for the decomposition of multiply labeled fluorescence images. Biophys. J., 96, 3791–3800. [DOI] [PMC free article] [PubMed] [Google Scholar]
  35. Phillips M.A. et al. (2018) Spekcheck-fluorescence microscopy spectral visualisation and optimisation: a web application, javascript library, and data resource. Wellcome Open Res., 3, 92.. [DOI] [PMC free article] [PubMed] [Google Scholar]
  36. Qin B. et al. (2016) Target/background classification regularized nonnegative matrix factorization for fluorescence unmixing. IEEE Trans. Instrum. Measur., 65, 874–889. [Google Scholar]
  37. Tong L. et al. (2016) Nonnegative-matrix-factorization-based hyperspectral unmixing with partially known endmembers. IEEE Trans. Geosci. Remote Sensing, 54, 6531–6544. [Google Scholar]
  38. Valm A.M. et al. (2011) Systems-level analysis of microbial community organization through combinatorial labeling and spectral imaging. Proc. Natl. Acad. Sci. USA, 108, 4152–4157. [DOI] [PMC free article] [PubMed] [Google Scholar]
  39. Valm A.M. et al. (2016) Multiplexed spectral imaging of 120 different fluorescent labels. PLoS One, 11, e0158495.. [DOI] [PMC free article] [PubMed] [Google Scholar]
  40. Waters J.C. (2009) Accuracy and precision in quantitative fluorescence microscopy. J. Cell Biol., 185, 1135–1148. [DOI] [PMC free article] [PubMed] [Google Scholar]
  41. Waters J.C., Wittmann T. (2014) Concepts in quantitative fluorescence microscopy In: Waters,J.C. and Wittman,T. (eds) Methods in Cell Biology, Vol. 123. Elsevier, Amsterdam, Netherlands, pp. 1–18. [DOI] [PubMed] [Google Scholar]
  42. Woolfe F. et al. (2011) Autofluorescence removal by non-negative matrix factorization. IEEE Trans. Image Process., 20, 1085–1093. [DOI] [PubMed] [Google Scholar]
  43. Zack G.W. et al. (1977) Automatic measurement of sister chromatid exchange frequency. J. Histochem. Cytochem., 25, 741–753. [DOI] [PubMed] [Google Scholar]
  44. Zare A., Ho D.K. (2014) Endmember variability in hyperspectral analysis: addressing spectral variability during spectral unmixing. IEEE Signal Process. Mag., 31, 95–104. [Google Scholar]
  45. Zimmermann T. et al. (2014) Clearing up the signal: spectral imaging and linear unmixing in fluorescence microscopy In: Paddock,S.W. (ed.) Confocal Microscopy. Springer, New York, NY, pp. 129–148. [DOI] [PubMed] [Google Scholar]

Articles from Bioinformatics are provided here courtesy of Oxford University Press

RESOURCES