Artificial neural network approaches for fluorescence lifetime imaging techniques

GANG WU, THOMAS NOWOTNY, YONGLIANG ZHANG, HONG-QI YU, AND DAVID DAY-UEI LI* Centre for Biophotonics, University of Strathclyde, Glasgow G4 ORE, UK School of Engineering and Informatics, University of Sussex, Brighton BN1 9QJ, UK College of Information Science & Electronic Engineering, Zhejiang University, Hangzhou 310007, China School of Electronic Science and Engineering, National University of Defense Technology, Changsha 410073, China *Corresponding author: David. Li@strath.ac.uk

Fluorescence lifetime imaging microscopy (FLIM) is a powerful imaging technique that not only detects fluorescence intensity but also probes the local environment of the fluorophores.For example, FLIM can monitor physiological parameters such as pH, O 2 , Ca 2 , NAD(P)H, temperature, or live cellular processes (e.g., protein-protein interactions).This helps scientists to understand diseases or develop therapies [1][2][3][4].There are time-domain (TD) and frequency-domain (FD) FLIM solutions.Fast FD FLIM systems have been commercially available, but time-correlated single-photon counting (TCSPC) approaches, which have superior timing resolution, remain the gold standard within the FLIM community.
Recent developments in large single-photon avalanche diode (SPAD) arrays and multi-channel systems have significantly boosted the acquisition speed, making TCSPC approaches promising for real-time applications.These advanced systems, however, create massive data throughput making FLIM analysis even more challenging [5][6][7].Taking a 512 × 512 FLIM image as an example, if each pixel contains a fluorescence histogram generated from an 8-bit TCSPC module (256 time bins, and assume that each time bin has a capacity of 10-bit), then the data throughput would be 512 × 512 × 2560 6.7 Gbits.Some novel data compression techniques have been introduced to reduce the data throughput [7,8], but they are based on single-exponential models and might neglect important biological information.On the other hand, traditional gating approaches have been reported to be able to provide a frame rate higher than 5 fps using only two-time gates, but only producing single-exponential approximations.Or for laboratory FLIM experiments a much larger number of gates (>10) are usually used to cover a wider range of lifetime variations within the field of view [9].For a gate number larger than 5, FLIM data analysis usually use iterative least square methods (LSM).The analysis hence becomes much slower, as the amount of data increases.
High-speed FLIM is key to unveiling dynamic cellular processes, but emerging rapid systems make image analysis increasingly challenging.Almost all commercial FLIM analysis tools are LSM based [10,11], and the general belief of users that they are the gold standard has probably deterred applications of non-LSM approaches.However, LSM approaches usually require experienced users to supervise and provide proper initial conditions or manual interventions, and they usually need iterative curve-fitting computations, making real-time analysis impossible.In this Letter, we propose an artificial neural network (ANN) approach to tackle this problem.As we will demonstrate below, ANN does not need specific initial conditions, holding the promise for automated applications.
ANNs were first inspired by biological neural networks and have been widely used in a variety of areas, such as systems identification and control, classification, time series forecasting, robotics, and medical image analysis [12][13][14][15][16]. Similar to Google's famous artificial intelligence computer program AlphaGo [17], an ANN needs to be trained before it can be employed.ANNs have the ability to perform regression (also known as function approximation) [15,16], and for FLIM analysis, they can be used to approximate the function that maps histogram data as input values onto the unknown lifetime parameters.To seek faster analysis, we will apply feed-forward ANN topologies [12,16] to avoid iterative computations.To demonstrate the potential of ANN-FLIM, we will compare its precision and accuracy performances with LSM.
An ANN mimics how interconnected neurons in a human brain make sense of new external stimuli by comparing them with previous experiences [12].Figure 1 shows a trained ANN interpreting a fluorescence histogram.The connections between neurons determine how the ANN reacts to input stimuli and are determined through supervised learning, i.e., through training on example data with known lifetime properties.Unlike LSM, which treats each image as a new problem and analyzes it from scratch, a trained ANN can directly calculate FLIM images based on the experience accumulated during training without iterations.To demonstrate how the ANN approach performs, we used a biexponential model and compared it against LSM [9,18].We will also apply it to analyzing lifetime images of daisy pollens later.We assume the fluorescence decay is where, τ F , τ D are the lifetimes, K the pre-scalar, f D the proportion, and ut the step function, as in Ref. [3]. Background correction can be easily carried out [19,20] before the ANN-FLIM analysis; it only adds minor extra efforts.The instrument response function (IRF) usually plays a crucial role, especially when the full-width half-maximum of the IRF is large.However, to quickly demonstrate the ANN approach, we will leave it to future reports.
For this study we use the simple ANN structure shown in Fig. 2. It contains one input layer, one output layer, and two hidden layers.The neurons of the output layer have linear transfer functions, whereas the other neurons in the input and hidden layers are configured with sigmoid transfer functions [14], as demonstrated in Eq. 1: where y k_l and y k_s represent the output of k-th neuron with either the linear or sigmoid transfer function, respectively, w kj is the weight of j-th input of k-th neuron (see Fig. 2).
As one of the most common architectures, the feed-forward network only allows the neurons in each layer to transfer information to neurons in the next layer (from the input layer to the hidden layers, and then ultimately to the output layer).The number of neurons in the input layer depends on the number of time bins in the histogram (57 time bins in this study).As for the output layer, four neurons are used (more neurons can be used in the future) to generate K , f D , τ F , and τ D , respectively.The two hidden layers implement the transformation from 57 inputs to the four outputs, which include implicitly the underlying relationship among the four outputs.
The weights w kj encode the mapping of histograms to outputs and are initially unknown.They can be deduced (or trained) from a large number of synthesized sample sets, i.e., synthesized histograms and matching vectors α K ; f D ; τ F ; τ D .Ideally, one would like to recover the true underlying α based on a noisy histogram generated based on this α, and we originally have tried to do this.However, the fully trained ANNs failed to recover the true α in the majority of cases (data not shown).This is compatible with the observation that other leading FLIM algorithms are in many circumstances also unable to recover the true α due to ambiguities caused by noise.As the next best goal to recovering the true parameters, we now train the ANN to recover the results of a maximum likelihood estimation (MLE) of the parameters obtained from the same histogram.Figure 3 illustrates the corresponding process for preparing training samples.First, we choose a set of α vectors from within the working range (the range of each parameter is usually known in advance; this is not strictly necessary, but it helps speed up the training).In order to create an ANN that is suitable for the whole working range of possible output values, we suggest to control the distributions of parameters using low-discrepancy sampling [21].Second, photon count histograms are generated for each α vector, by adding Poisson noise [22,23], as illustrated by the green curve in the histogram block of Fig. 3. Third, and this is the core innovation in this method, the valid training targets α are obtained using MLE [24,25], which is known as one of the best FLIM analysis algorithms, on the generated synthetic histograms.In brief, to perform MLE, the definite integral of fluorescence decay Λt is given by Eq. ( 2), and the expected value EN i of each time bin can be obtained as in Eq. ( 3).Therefore, the likelihood of the observed histogram decay is given by Eq. ( 4), and the preferable targets of the training samples can be acquired based on minimizing this likelihood function: where N i is the photon count of the ith TCSPC time bin, m is the number of time bins, and h is the bin width.
The ANN is then trained by iteratively updating the weights to minimize the error between the outputs of the ANN and the target parameters α .Weight updates can be accomplished with the supervised backpropagation learning method [16].The normalized mean squared error is used as the error function: where N is the number of total observations, and α Ti and α Oi represent target output and network output, respectively.The weights w i can be used to emphasize one or some of the parameters in different circumstances.To train the ANN, the MATLAB neural network toolbox was used, which provides flexible and sufficient algorithms such as conjugate gradient methods that deliver faster training progress with fewer resources required, or the Levenberg-Marquardt algorithm (LM), which provides higher precision but needs more memory and takes more time.Once the ANN is trained, it is straightforward to use it to obtain lifetime estimates from input photon count histograms by applying the photon counts as inputs and propagating the activity through the network (Fig. 2) according to the learned weights.The outputs of the network are the estimated lifetime parameters.
We compared ANN-FLIM with the widely used LSM method (MATLAB nonlinear least square routine [26] with the "trust-region-reflective" option) using Monte-Carlo simulations.In the simulations, each synthesized histogram has less than 900 total photon counts, with m 57, and h 333 ps.In this case, 210,000 samples were used to train the network, and the training procedure took about 4 h.Figures 4(a Based on our previous experience in parallel FLIM analysis, using the state-of-the-art GPUs [27] may boost calculation speed an additional 30-fold (this is due to the fact that ANN mapping mainly contains matrix multiplications, suitable for parallel computing), showing that an ANN-based analysis tool has great potential to enable real-time or even video-rate FLIM imaging.
The potential of ANN-FLIM was also demonstrated by testing it on experimental data against LSM.FLIM experiments were performed on daisy pollens using the MicroTime 200 time-resolved confocal fluorescence microscope (PicoQuant, Germany).The MicroTime 200 was equipped with the standard piezo scanner (Physik Instrumente; 100 × 100 μm scan range) and a SPAD (SPCM-AQRH from Excelitas).The excitation source was a ps-pulsed diode laser (LDH-D-C-485) operating at 485 nm with the pulse frequency of 20 MHz (50 ns for the TCSPC dynamic range), which was controlled by the PDL 828 "Sepia II" laser driver.The data was acquired by the HydraHarp 400 (bin width set to 8 ps), and the image size was 400 × 400.For FLIM analysis the bin width was 0.32 ns.The intensity image of daisy pollens is shown in Fig. 5(a).From these images, it is easy to see that ANN is capable of extracting the features of the sample, and it shows similar results to those of LSM, especially for the images of average lifetime.On the other hand, comparing Figs.5(b) and 5(c) shows that in some pixels LSM failed to converge to correct estimations (dark red spots), which is due to its high sensitivity to initial conditions (to improve it might require quick estimations on f D , τ F , and τ D taking more analysis time), whereas ANN provides a superior success rate.To be specific, the success rate is 99.93%, for ANN and 95.93% for LSM.Figures 5(d  A more convincing feature is that ANN (1.8 s) is 566 times faster than LSM (1019.5 s).Together with the observation from the previous analysis on synthesized data, the speed of LSM analysis is subject to the choice of initial conditions, whereas ANN does not require any initial conditions.This Letter gives a quick demonstration on the potential of ANN approaches in FLIM analysis.To provide thorough assessments, more detailed analyses considering the IRF, multi-exponential decays, or complex neuron models will be included soon.
To summarize, we have proposed an ANN-based highspeed FLIM analysis method.To our knowledge, this is the first time that a machine learning algorithm has been successfully introduced into FLIM analysis.Compared with LSM, the results reveal that ANN not only provides comparable or even better performances, but also offers much faster high-throughput data analysis.Thanks to recent advances in parallel computing technologies, it promises real-time or video-rate FLIM analysis if combined with the latest GPU devices.

Fig. 2 .
Fig. 2. Architecture of the ANN used in this Letter.Inputs are the photon counts and outputs are the parameters K , f D , τ F , and τ D .

Λt
), 4(c), and 4(e) show the precision (F -value [7], F N 0.5 C σg∕g, N c is the photon counts of each pixel, g f D , τ F , or τ D ) plots, whereas Figs.4(b), 4(d), and 4(f ) show the bias plots, for τ F , f D and τ D , respectively.For Figs. 4(a)-4(d), τ D 2.5 ns, and for Figs.4(e) and 4(f ), τ F 0.58 ns.The optimized regions (for the F -value and the bias) of LSM are different from those of ANN.Figs.4(a), 4(c), and 4(e) show that ANN can provide a wider optimized area for the F -value for all τ F , τ D , and f D .Figs. 4(b), 4(d), and 4(f ) show that LSM produces slightly less biased τ F , whereas ANN offers wider optimized areas for both τ D , and f D .Although there are differences between them, their estimations are in the same order.Using MATLAB computation on a Windows PC [Intel(R) Xeon(R) E31245 processor with 16 GB memory] on 256 x 256 images, the proposed ANN-FLIM (0.9 s) is a staggering 180-fold faster than LSM (166s).

Figures 5 (
b)-5(g) compare the τ F and average lifetime τ Average τ Average f D • τ F 1 − f D • τ D maps for ANN and LSM.
) and 5(e) show similar merged images (intensity and τ Average ) for ANN and LSM, respectively.Figures6(a) and 6(b) also shows that ANN produces similar τ F , τ Average and f D histograms with LSM, except that LSM has more invalid pixels around τ F ∼0 ns and there is a slight difference in τ D .The difference in τ D is likely due to the different

Fig. 6 .
Fig. 6.(a) Lifetime and (b) f D histograms of the experimental data.