Abstract
Three-dimensional fluorescence time-lapse imaging of structural, cellular and sub-cellular processes in the beating heart is an increasingly achievable goal using the latest imaging and computational techniques. However, previous approaches have had significant limitations. Temporarily arresting the heart using drugs disrupts the heart’s physiological state, and the use of ultra-high frame-rates for fluorescence image acquisition causes phototoxic cell damage. Real-time triggered imaging, synchronized to a specific phase in the cardiac-cycle, can computationally “freeze” the heart to acquire the minimal number of fluorescence images required for 3D time-lapse imaging. However, until now no solution has been able to maintain phase-lock to the same point in the cardiac cycle for more than about one hour. Our new hybrid optical gating system maintains phase-lock for up to 24 h, acquiring synchronized 3D+time video stacks of the unperturbed heart in vivo. This approach has enabled us to observe detailed developmental, structural, cellular and subcellular processes, including live cell division and cell fate tracking, in the embryonic zebrafish heart using transgenic fish lines expressing cell-specific fluorophores. We show that our approach not only provides high spatial and temporal resolution 3D-imaging, but also avoids phototoxic injury, where alternative approaches induce measurable harm. This provides superb cellular and subcellular imaging of the heart while it is beating in its normal physiological state, and opens up new and exciting opportunities for further study in the heart and other moving cellular and subcellular structures in vivo.
1 Introduction
The ability to image an embryo at a cellular and subcellular level is crucial for understanding the dynamic processes and interactions underpinning development [1–6]. The ideal imaging system would acquire high resolution 3D images of specific organs and structures continuously over relevant time-periods, typically hours or days, without causing tissue damage or interfering with the anatomical or physiological state of the organism. While light sheet microscopy has emerged as a valuable in vivo imaging solution to this challenge [7, 8], imaging the complex 3D structure of the beating heart has additional challenges due to its constant cyclic motion at rates of 120-180 beats per minute. This problem can in principle be overcome by using synchronization techniques to acquire 3D images free from motion artefacts [9–11]. However, to date, only some aspects of this problem have been solved at any one time. Imaging of the developing fish and chick heart has been previously reported for: single 3D snapshots at selected intervals[11], 3D images of a single cardiac cycle [12, 13], sampling of a limited number of time points during development [9, 14], and 2D time-lapse video [15]. Temporarily stopping the heart using high dose anaesthetic has also been used to acquire 3D image sets of the heart [16] but such approaches may significantly alter the physiological state of the heart [17]and the wider embryo [18], particularly when performed repeatedly in the same embryo at multiple timepoints.
The challenges of time-lapse 3D cardiac imaging can be understood on three key timescales. Within one cardiac cycle there are rapid changes in shape and size of the heart over less than a second. From one cardiac cycle to the next the heart adopts a highly repeatable sequence of shapes, although there can be subtle changes in rhythm from one beat to the next. However, on longer timescales dramatic structural and functional changes occur at a cellular and whole-organ level, especially during development where the heart undergoes significant morphological changes. It is important to be able to maintain stable imaging over all of these timescales in order to fully understand the biological processes of interest. For example, cell shape changes and cell migration take place over minutes, while cell division and acute inflammatory responses occur over hours. At a whole-heart level, developmental processes such as cardiac morphogenesis take 2-3 days to complete, and injury-associated inflammation also takes several days to resolve.
We have previously demonstrated prospective optical gating in the beating zebrafish heart [10, 11], stroboscopically building up a synchronized 3D z-stack of the heart without motion artefacts (i.e. the imaging is “phase-locked”) such that the heart is at exactly the same phase in the cardiac cycle when every plane is imaged. In contrast to alternative “retrospective” optical gating approaches [9], we only needed to acquire one single fluorescence image per z plane per timepoint. Thus, in the same way that light sheet microscopy eliminates redundant excitation of fluorescence in the spatial domain, the philosophy of our prospective approach is to eliminate redundant excitation in the time domain. This orders-of-magnitude reduction in phototoxic laser dose is a crucial starting point for viable time-lapse imaging. Our previous algorithm assumed quasi-periodic, stereotypical motion from one cardiac cycle to the next and, specifically, in relation to a reference heartbeat. However, on developmental timescales this assumption no longer holds as the heart changes in position, size and shape and correct phase-lock is lost within approximately one hour.
To overcome this limitation we have now developed a new method to maintain day-long, synchronized 3D time-lapse imaging in the beating heart. This has enabled us, for the first time, to track developmental morphogenesis and patterning in the heart with a high degree of temporal and spatial resolution in 3D, and track individual motile cells, including cardiomyocytes and inflammatory cells, associated with the developing and injured heart.
2 Results
Our new “hybrid” optical gating algorithm combines prospective optical gating (for synchronized 3D fluorescent stack collection) with retrospective optical gating applied to brightfield images as part of our strategy to maintain phase-lock by adapting to the changing appearance of the heart on developmental timescales. We describe the algorithm as “hybrid” since it combines the strengths of both of these synchronization philosophies. Thus for individual z stacks we continue to use our previous prospective gating algorithms [10] to generate the synchronization triggers for image acquisition on every cardiac cycle, based on realtime comparison of brightfield images against an initial reference brightfield image-set representing one cardiac cycle (Figure 1, Supplementary Video 1). However, at regular intervals (typically, after a complete z stack has been acquired for the current timepoint) our new algorithm refreshes this reference image-set so that our system can adapt to the changing appearance of the heart (Figure 2) without losing synchronization (Supplementary Figure 1; Supplementary Video 2).
The key technical advance of our new algorithm is the ability to ensure that the same target phase of the cardiac cycle is maintained over long periods of time (phase-lock), in spite of these regular refreshes of the reference image-set. This is achieved by a suitable cross-correlation between the old and new reference image-sets in the phase domain, taking account of sample movement due to growth (Figure 2c-d; Supplementary Video 3; full algorithm details in Methods). Thus we can optically freeze the heart for however long a specimen can remain biologically viable in the imaging chamber. By ensuring that phototoxicity is minimized and dataset sizes are kept manageable, we are able to perform detailed assessment of structural changes in the developing heart, and visualise cellular and subcellular behaviour, near to continuously, over the course of hours and days.
2.1 Hybrid Optical Gating Allows the Capture of Developmental Changes in the Living Zebrafish Heart Despite Changes in Shape, Size and Rhythm
The zebrafish heart tube forms and begins contracting rhythmically by 24 hpf. This linear tube elongates asymmetrically and by 36 hpf the future ventricle migrates ventrally in relation to the atrium, a process termed cardiac looping [19, 20]. By 48 hpf, the looped zebrafish heart appears S-shaped and undergoes more subtle changes until both chambers are morphologically distinguishable [19, 21]. Using our hybrid optical gating software, we have observed these changes in the heart, and associated developmental changes in the nearby vasculature from 48 hpf-72 hpf. By acquiring a z-stack every 5 mins, we observed the pinching of the atrioventricular canal region, followed by expansion of the outer curvature of the atrium and finally the ventricle (Figure 3a; Supplementary Videos 4-5). This enlargement is associated with a 300% increase in endocardial chamber volume between 48 hpf and 72 hpf. To our knowledge, this is the first reported 3D time-lapse movie detailing cardiac morphogenesis of a live beating zebrafish embryonic heart.
To explore the accuracy of our hybrid optical gating software we compared the software-based frame selection of a specific phase in the cardiac cycle with a human-based manual selection during a 24 hour time-lapse experiment (Figure 3b). We found strong agreement between the target frame chosen manually by five human experts (searching for a fixed target frame in the cardiac cycle - see Methods) and that chosen by our fully automated software algorithms: our algorithms maintain a locked target phase with similar variance to human experts (σ2 = 0.022 vs 0.037 radians for human experts) despite significant developmental changes in cardiac shape and size. We note that neither the human experts nor fully automated algorithms can be considered a “ground truth”, and often human experts disagreed among themselves in identifying the best-matching target frame, by several frames.
2.2 Hybrid Optical Gating Allows 3D Time-lapse Imaging at a Rate Fast Enough to Track and Assess Inflammatory Cell Behaviour
We have also studied the migration of neutrophils and macrophages onto and into the beating heart following targeted laser-injury to the apex region of the ventricle [23]. Our phase-lock imaging capabilities permit high spatial resolution while imaging inflammatory cells in contact with the heart. We observed minute-by-minute changes in inflammatory cell shape, size, velocity and behaviour as they migrate to and from the injury site on the beating heart (Figure 4a-c; Supplementary Video 6, 7). From datasets such as these we can accurately quantify inflammatory cell behaviour in 3D, tracking individual neutrophils migrating to and from the injury site (Figure 4d, Supplementary Figure 2b).
The short interval of 150s between each complete 3D stack, made possible by our hybrid imaging system, allows detailed tracking of highly motile neutrophils (Figure 4e-f) without risk of photo-toxicity or bleaching. Figure 4f illustrates how neutrophil migratory behavioural information could be readily lost by using longer time intervals between z-stacks as shown by changes in meandering index [22] as the 3D image acquisition rate falls. The meandering index quantifies the tortuosity of a neutrophil track, i.e. whether the motion of a neutrophil is highly directed (which could for example represent fast movement through an adjacent blood vessel) or more tortuous (a potential signature of cell-cell interaction at the wound site). For the purpose of this demonstration we draw the reader’s attention to two features of this plot: 1) As the sampling interval is increased, both curves show considerable changes in the number of tracks and value of meandering index; this is mostly due to very fast neutrophils having transited the field of view between frames. In this situation a large sampling interval is leading to an unrecoverable loss of information. 2) At longer sampling intervals the two curves differ; this is mostly due to erroneous automatic track recovery in longer sampling intervals of subsampled 3D videos compared to the “ground truth” of decimated tracks. Here a large sampling interval prevents or hinders automatic image analysis, making quantification difficult and possibly inaccurate.
The inflammatory cell response following heart injury, involving both neutrophils and macrophages, typically takes more than 24 hours to fully resolve. Our hybrid optical gating approach is essential to provide the spatial and temporal resolution needed to understand this dynamic process over this time course.
2.3 Hybrid Optical Gating Reduces Photo-injury and Photobleaching Compared to Retrospective Optical Gating Approaches
A key advantage of our hybrid optical gating approach is that it minimises the number of fluorescence images acquired, and hence minimises the deleterious effects of laser exposure on the tissue (see [24, 25] for recent discussions). Light sheet fluorescence microscopy is well known for its ability to reduce photobleaching and photodamage by limiting fluorescence excitation to only the spatial plane(s) of interest [26]; hybrid optical gating further limits fluorescence excitation to only the times (i.e. cardiac phase) of interest. In addition, this reduction in laser dose minimises the risk of photodamage-induced changes in heart rate and rhythm, which would present additional challenges for high-quality phase-locking.
To quantify the physiological impact of established retrospective gating strategies in comparison to our hybrid optical gating, we used heart rate as a measure of photo-injury using these two different imaging protocols (see Methods). For embryos exposed to two hours of retrospectively-gated imaging at 5 minute intervals, we observed an initial increase followed by a significant reduction in heart rate. We speculate that this is due to an initial heating, causing an increase in heart rate, followed by a patho-physiological response, resulting in bradycardia, due to photodamage and phototoxicity to the heart. We also observed changes in heart rhythm (n=5 of 6 fish) and reduction in ventricle ejection fraction (Supplementary Video 8). In contrast, time-lapse imaging using our hybrid optical gating at 5 minute intervals caused no significant change in heart rate over a similar time period (Figure 5a).
The reduced laser dose with hybrid optical gating also has an important impact on the rate of photobleaching. We demonstrated this by acquiring 3D time-lapse fluorescence images using two alternative imaging protocols (Figure 5b, Supplementary Video 9). The first protocol, adopting a retrospective optical gating approach, causes rapid and marked bleaching of mKate emission from cardiomyocyte cell membranes and the signal soon becomes indistinguishable from background. In contrast, our hybrid optical gating protocol causes only mild and gradual photobleaching, and can continue to capture 3D images for over 24 hours. Direct reduction in bleaching rate is due to a combination of the stroboscopic nature of imaging [27] and the reduced total laser dose [28]. Additionally, a reduction in photoinjury in the tissue may minimise the oxidative rate of fluorescent molecules, as previously seen in in vitro samples [29], thus indirectly reducing photobleaching still further.
2.4 Hybrid Optical Gating allows live observation of cardiomyocyte cell division and provides novel insights into myocardial trabeculation
To demonstrate the advantages of our new platform for addressing complex biological questions, we studied the process of cardiac trabeculation through time-lapse imaging of car-diomyocyte migration and cell division events in the beating heart (Figure 6a,b; Supplementary Video 10). Trabeculation is the developmental process whereby multicellular luminal projections of cardiomyocytes are formed. Studying trabeculation in vivo has thus far been limited by imaging techniques that risk perturbing the heart if applied at the temporal resolution and duration required to understand this 3D cellular patterning [5, 30]. Using our approach, we were able to monitor trabeculation at the tissue level in the same embryonic heart during three consecutive days. A luminal view of the surface-rendered myocardium shows, in detail, the development of trabecular patterns as the heart matures (Supplementary Figure 4a).
Two principal mechanisms have been proposed for initiation of trabeculation [30]. The first is “delamination”, where cardiomyocytes are physically squeezed-out luminally from the cortical myocardium layer without a cell division event. The second is “orientated cell division”, where cortical cardiomyocytes divide perpendicular to the ventricular myocardium. Currently, delamination is suggested to be the sole mechanism of trabeculation initiation in zebrafish [30]. Using our imaging system we were able to assess whether orientated cell division could also contribute to trabeculation, using the Tg(myl7:h2b-GFP; myl7:mKate-CAAX) zebrafish line, which fluorescently reports both cardiomyocyte chromatin and cell membrane. We acquired phase-locked time-lapse z stacks at 10-minute intervals from 72-96 hpf, allowing us to observe the archetypal stages of mitotic cell division at both the sub-cellular and cellular level (Figure 6c). During cardiomyocyte cell division chromatin can be seen to condense, align on the metaphase plate and is then pulled to opposite poles to form two daughter cells which finally become separated by plasma membrane.
We observed migratory patterns of ventricular cardiomyocytes and cell division events occurring both parallel and perpendicular to the abluminal-lumen axis (Supplementary Figure 4b). Interestingly, tracking the migration of one such cardiomyocyte in the original plane of acquisition (Figure 6d(i)) initially indicated that it delaminates from the cortical layer without dividing (iso-slice, Figure 6d(ii)). We undertook further analysis by re-slicing the full z-stack along additional planes (Figure 6d(i) - blue dashed line) which revealed that this cardiomyocyte actually undergoes cell division, parallel to the abluminal-lumen axis, whilst also delaminating perpendicularly (oblique-slice, Figure 6d(ii)) creating a trabecular projection into the lumen. These observations potentially suggest a “mixed model” for trabeculae formation in the ventricle, whereby cardiomyocytes divide and then migrate luminally (Figure 6e). The frequency and extent of such cardiomyocyte behaviour clearly requires further study but it highlights the critical importance of examining myocardial growth patterning in an imaging system capable of high resolution 4D imaging.
3 Discussion
The key advance that distinguishes our approach from retrospective synchronization strategies is that we actively trigger image acquisition based on decisions made in real-time, thus eliminating all unnecessary acquisitions of fluorescence images [31]. Retrospective strategies typically require several hundred fluorescence images at every z-plane [13], but if the aim is to “freeze” the heart at a desired phase in its cycle then only one of these images is finally selected. All other images represent unnecessary exposure of the sample to laser excitation light, thus accelerating harmful phototoxicity and photobleaching. Light sheet microscopy reduces the damaging laser exposure by orders of magnitude compared to confocal imaging, but this benefit is lost when large numbers of fluorescence images must be acquired in each plane prior to retrospective synchronization. Similarly, pharmacological arrest of the heart using high dose anaesthetic permits artefact-free imaging, but at the cost of exposure of the heart and the whole organism to repeated exposure to anaesthetic agent.
Retrospective strategies do have the advantage of allowing freedom to make post hoc decisions to reconstruct images from all phases of the cardiac cycle, which is advantageous for studies of cardiac dynamics [32]. However, for developmental and cell migration studies, as presented here, only images at a single phase need be acquired. We note that if additional phases in the cardiac cycle are required, for example for ejection fraction measurement, blood flow mapping [33], or studies of heart wall dynamics, then our approach is readily adapted to generate images at multiple precise phases throughout the cardiac cycle. Recent advances in fast volume imaging using custom-built adaptations of light sheet microscopes [34–36] may soon permit direct, synchronization-free “snapshot” 3D imaging of the heart. Even as these techniques mature, for time-lapse imaging our real-time triggering capability will still remain essential for triggering repeated time-lapse 3D image acquisitions at a fixed phase in the cardiac cycle.
A further important advantage of our method is that it substantially reduces data file size and thus facilitates data handling, particularly for time-lapse imaging. For example, if a retrospective gating approach had been used for the experiments in Figure 3 and Supplementary Video 4, the raw data would have occupied at least 16 TB (assuming 200 video frames per slice [13]), and would have required many hours of post-processing time. In contrast, our approach requires only 80 GB of storage space (24 z-stacks per hour for 24 hours), thus significantly reducing the challenges of storage and processing of large datasets typically acquired in time-lapse 3D imaging. These modestly-sized z-stack files can also be accessed and reviewed by the user through the course of the experiment, paving the way for future developments such as user-initiated or automated responses to unexpected or atypical biological observations during imaging experiments.
We have demonstrated that our optical-gating system can be used to clarify complex biological events such as the cellular processes underlying myocardial trabeculation. Two previous studies have used genetic tools to stochastically label cardiomyocytes with different fluorophores prior to trabeculation [30, 37]. These studies reported that adjacent cortical-trabecular cardiomyocytes rarely share the same fluorophore, implying that orientated cell division does not contribute to trabeculation. However, these studies relied on analysis of single optical and histological slices of the heart and so may have missed daughter cells that have migrated away from each other out of plane. Our own observations have shown that in a number of instances cardiomyocyte cell division was followed by immediate perpendicular migration of a daughter cardiomyocyte. Furthermore, coupling delamination to proliferation is a plausible strategy for trabeculation. Not only would this maintain cortical cardiomyocyte number, the disassembly of sarcomeres (known to occur prior to proliferation) might also liberate the cell for delamination. Our findings suggest that such events could have been missed in studies where time-lapse imaging was acquired only in a single plane, potentially underestimating the contribution of dividing cortical cardiomyocytes to pioneer trabecular cardiomyocytes [5, 6, 30, 37]. This insight was only possible due to the high spatial and temporal resolution of our optically-gated imaging system.
The inflammatory cell behaviour we observed following heart laser injury also highlights the value of our method for 3D time-lapse imaging. The ability to track individual, rapidly moving inflammatory cells on the injured heart provided novel insights into neutrophil migratory behaviour on the beating heart. There is a clear potential to study pharmacological and genetic manipulation of these aspects of neutrophil migratory behaviour at the cardiac injury site. Similarly, changes in macrophage cell morphology were observed using our system, highlighting the potential to study morphological changes in heart-associated macrophages in vivo. Linking these shape changes with specific molecular phenotypes could provide new insights into macrophage subsets in the injured heart.
Our multi-modality approach, using brightfield images to trigger synchronized acquisition of the fluorescence image, is not only useful for real-time synchronization but also separates the conflicting requirements for fluorescence imaging (tissue-specific labelling, which may be highly sparse; z-scanning; z-sectioning while minimising photodamage) and heart-synchronization (phase-diverse periodic signal; invariance during z-scan), offering additional flexibility to optimize future microscope designs for cardiac imaging. This is illustrated by our ability to conduct high-precision flow mapping by fusing information across multiple cardiac cycles in a statistically-rigorous manner [33]. In these experiments the periodic nature of the flow is less directly discernible from the raw fluorescence data, but easily obtained from the accompanying brightfield channel. Using a brightfield synchronization source also has other potential uses such as fusing and phase-registering multiple fluorescence channels acquired sequentially in the case of a microscope with a limited number of fluorescence imaging ports for example or acquiring synchronized images in multi-acquisition modalities such as structured illumination microscopy.
Our hybrid gating approach is equally applicable to embryos of other species such as fly, chick or mouse. Transferring this technology to another microscope system, such as 2-photon or confocal microscopes, is also possible and would simply require access to a brightfield image channel with the ability to trigger image acquisition. Our synchronization software can run independently of the existing microscope control software, avoiding any need for complex integration at software level. Thus, with a small degree of cooperation from manufacturers over hardware integration, our system can be integrated with commercial two-photon systems (demonstrated in Supplementary Figure 5) and light sheet microscopes, as well as custom-built microscope platforms, to equip them with real-time synchronization capabilities.
In conclusion, we have shown that our hybrid optically-gated imaging system can provide high spatial and temporal resolution time-lapse 3D images of the beating heart, as demonstrated here for embryonic zebrafish. 3D images can be readily obtained throughout 24 hour time-lapse studies, allowing us to observe cardiac morphogenesis, inflammatory cell migration and cardiomyocyte cell division. This approach has the potential to provide further novel insights into morphological, cellular and subcellular processes in the beating embryonic heart in the zebrafish and other species.
5 Author contributions
JMT and CJN developed the synchronization algorithms, software, electronics and optics. CJN, FB, AB and CB performed the experiments and quantitative analysis. CJN, FB, AB and CB conceived individual experiments and developed the protocols. JMT, MAD and JM conceived the study and supervised the research. The manuscript was written with input from all authors.
6 Competing financial interests
The authors declare no competing financial interests.
Methods
1 Fish husbandry and embryo preparation for imaging
All experiments were performed in accordance with the Animals (Scientific Procedures) Act 1986 in a UK Home Office-approved establishment. Zebrafish husbandry, embryo collection and maintenance were performed according to accepted standard operating procedures [38]. Briefly, embryos were maintained in embryo medium (1 ×conditioned water (CW) containing 0.1% (w/v) methylene blue) at 28.5 °C on a 14 h light/10 h dark cycle and all experimental procedures were performed at room temperature (23 °C). Transgenic zebrafish lines used for imaging are as follows; Tg(myl7:eGFPtwu26) [39], Tg(kdrl:mCherryci5) [40], Tg(mpx:mCherryuwm7) [41], Tg(mpeg1:mCherry) [42], Tg(myl7:h2b-GFPzf52) [13], Tg(myl7:mKate-CAAXsd11) [43]. Adults were day-crossed as appropriate to yield desired combinations of transgenes in embryos. Embryos were treated with phenylthiourea (Fisher Scientific) at 7 hpf to inhibit pigment formation and enhance image clarity. Embryos were embedded in 0.5% low-melting-point agarose inside FEP tubes (Adtech Polymer Engineering) to prevent drift whilst still allowing growth during long term imaging. Fish were used only once for a timelapse imaging experiment, and any repeats shown come from distinct individuals.
2 Light sheet microscope set-up
Our custom-built selective plane illumination microscope (SPIM) is optimized for simultaneous multi-channel light sheet fluorescence imaging of zebrafish (Supplementary Figure 6). The detection arm is based around a Nikon Plan Fluorite 16x/0.8 N.A. objective lens with ultra-flat dichroic mirrors (Chroma T495lpxr-UF2, T550lpxr-UF2, T700spxr-UF2) separating red/green/blue fluorescence channels, and a near-IR, non-visible brightfield channel (which is not routinely used - see below). Fluorescence images are acquired using QIClick CCD cameras (QImaging) and fluorescence emission filters (Thorlabs MF479-40, MF525-39, MF630-69). Brightfield images are normally acquired by imaging through the light sheet launch objective (for reasons discussed in Supplementary Note 1), with a 650nm shortpass dichroic mirror (Edmund Optics) serving to pick off the collected brightfield light, which is imaged onto a Prosilica GS650 CCD camera (Allied Vision).
Laser excitation is at 488 nm and 561 nm, using a Versalase laser system (Vortran) with single-mode fiber delivery. Brightfield illumination is via a light emitting diode at 750 nm (near infrared, non-visible). The light sheet (measured full-width-at-half-maximum 2.4 μm) is formed using a cylindrical lens and a 10x/0.3NA objective lens (Nikon). Shadow effects are minimized using an mSPIM configuration [44] using a 4 KHz resonant scan mirror (SC-30, Electro-optical Products Corporation). Laser pulsing and camera triggering is coordinated using a custom-built electronic system based around a StartKit microcontroller board (XMOS; software and hardware details in Supplementary Note 2) which also serves to define a universal timebase for our synchronization analysis. The sample is positioned and scanned using a combination of manual micrometer stages and motor-driven stages (M-111.1DG, Physik Instrumente).
Imaging parameters used for all experiments can be found in Supplementary Table 3.
3 Real-time, prospective optical gating
Real-time, prospective optical gating [10, 11] is used to trigger capture of fluorescence images at a user-selected target phase in the heart’s natural cycle. This approach allows us to computationally freeze the heart without any invasive approaches such as pharmaceuticals or pacing. Real-time, prospective optical gating relies on information captured in the brightfield channel (for which even continuous illumination is not sufficiently intense to cause harm to the specimen). First, a set of reference brightfield images is collected, lasting precisely one natural heart cycle. Subsequent brightfield images are correlated against this to assign them a phase. A target phase in the heartbeat is selected by the user, and all subsequent fluorescence images will be triggered at this target phase in the heartbeat.
For each brightfield image It (composed of pixels It(x,y)) received at the current time t, the following steps [10, 11] are taken to phase-match the heart images and forward-predict the next fluorescence trigger time:
The new brightfield image is windowed to correct for any in-plane (xy) sample motion Δx, Δy, as calculated from the previous-received frame (see below).
The windowed brightfield image is compared against the one-heartbeat reference image sequence Rϕ to identify the current phase ϕt of the heart using a sum of absolute differences metric (this metric was chosen to maximise realtime processing speed):
The phase ϕt is refined to sub-frame precision using V-fitting as described in [10].
To accommodate unavoidable latencies in the system, linear forward-prediction of the phase evolution is used to calculate the required triggering time for the next acquisition, i.e. the precise time at which the heart will next be at the desired target phase of its heartbeat.
A decision is made whether to commit to the calculated trigger time or to await a refined prediction from the next incoming brightfield image. This decision is made based upon the known processing latency (~12ms from brightfield image exposure to programming of a trigger).
The measure of uniform drift Δx, Δy in the xy plane of the brightfield images (as used in step 1) is updated as described in [11], ready for the next incoming brightfield image.
If the system decides to send a trigger, the timing details are transmitted to the timing controller over a USB/serial link. Once the timing controller has been informed of the required trigger time, it will electrically trigger the next, synchronised fluorescence image. Following this, the sample is moved to the next z-position in preparation for the next synchronised trigger.
When assigning a phase to the current brightfield image, by comparing it to the reference image-set, nonperiodic variations (such as the locations of blood cells) may result in a situation where the best match is with the very first (or last) frame in the reference image-set. This may lead to erroneous phase values being computed. We mitigate against this by “padding” our reference image-set with two extra frames at either end; these extra frames are not used for the initial minimum-finding, but are available in the case where the initial minimum lies at an extremum of the reference image-set.
Forward prediction is achieved by extrapolating a linear fit of the recent measured phase history as a function of time [10]. In principle the number of datapoints used for this linear fit will affect the accuracy of the synchronization, and we hypothesize that limiting the fit to phase values obtained from the current heart contraction only may result in less variability – however in practice our latencies are low enough that neither the precision nor accuracy of the synchronization are seriously affected by the use of different fitting strategies.
4 Hybrid optical gating for long-term, time lapse imaging
Our described prospective optical gating approach is based around image similarity metrics (step 2 above). This has the benefit of not making any assumptions about the shape, orientation or appearance of the heart (in contrast to methods in other fields that are based on, for example, edge detection and tracking). However, gradual development or growth of the embryo will lead to changes in the appearance of these images - thus compromising the effectiveness of the synchronisation over time and limiting the utility of a given reference heartbeat to a maximum of around 60 min of synchronisation (Supplementary Figure 1, Supplementary Video 2). To extend this and allow ‘phase-locked’ time-lapse imaging over tens of hours we have used concepts from post-acquisition, retrospective optical gating [12] to update the brightfield reference heartbeats at regular intervals [45] (Supplementary Video 3). Updating the reference heartbeat allows the system to cope with changes in heart size and morphology that occur throughout development and growth.
First, a new set of brightfield reference images must be selected as previously described [10]. We then determine the equivalent target frame in this new reference heartbeat that matches the original, user-defined, target heart phase. This is done by cross-correlating between the original and new reference heartbeat image image-sets as follows:
Each reference heartbeat (Ru,ϕ(x,y) for timepoint u) is re-sampled to contain a fixed, integer number of frames.
The relative phase shift Δϕab is computed between this new reference heartbeat and each of several (typically three) recent past reference heartbeats. This shift is computed by minimising a least-squares criterion representing the similarity between mutually-shifted image-set, as follows:
In fact this can be shown to be equivalent to the following criterion, based on crosscorrelation along the phase axis, which we compute in Fourier space for speed:
Each Δϕab is refined to sub-frame precision using V-fitting as described in [10].
All the computed Δϕab are incorporated, along with relative phase shifts between historical pairs of past reference frames, into a weighted, linear least-squares regression to determine a global phase shift that corrects for small and accumulated errors in the determination of relative phase shifts between individual pairs of reference heartbeats.
We note the importance of accounting for motion (Δx, Δy) of the sample in the xy plane of the brightfield channel. This may be due to growth or movement of the fish within the sample holder. Without correction for this drift, the cross correlation will lose effectiveness due to a reduction in pixel-wise similarity. This will lead to errors in the relative phase shift that would accumulate in the global phase shift over time. Since we already track the drift during the real-time phase matching process (see above, and as introduced in [11]), we are easily able to correct for this drift when comparing pairs of reference heartbeats.
This hybrid of prospective optical gating for real-time phase matching, and retrospective optical gating for long-term phase-locking, allows us to capture 3D time-lapse data at a fixed, specific target phase over extended time periods of 24 h or more.
5 Manual Comparison of Long Term Phase-Locking
To verify that hybrid optical gating maintains a consistent phase-lock throughout longterm time-lapse imaging, we asked experts in zebrafish heart imaging (n = 5) to manually identify the same phase in a heartbeat across all the reference heartbeats used to capture the heart looping dataset in Figure 3. Stacks were captured every 150 s using the real-time, prospective optical gating technique described above; automated long-term updating of the reference heartbeat, also described above, was carried out after every third stack. Experts were provided with reference image-sets in a random order, and the sequences began at different phases of the heartbeat. Each individual reference heartbeat was assigned a target frame by n = 3 experts. These manual targets, Th, were then used to compare the fully automated, hybrid optical gating results. Figure 3 shows these manual targets on a stack-by-stack basis (blue area) as a difference from the human mean (blue line). The fully automated, hybrid optical gating results are also shown on this scale (orange points). In this comparison, neither the human nor the automated updates should be considered as the “gold standard”, but the close agreement between the two is further evidence that a consistent phase-lock has been maintained throughout the 18 h experiment.
6 Assessment of photo-injury during imaging
To assess the effect of retrospective optical gating and hybrid optical gating on the physiology of the fish we compared the heart rate of fish in two different scenarios:
for fish undergoing two hours of fully automated, hybrid optically-gated time-lapse acquisition (gated stacks acquired every 5 minutes), and
for fish undergoing two hours of retrospective optically-gated time-lapse acquisition, acquired in a similar manner to that described in [13]. We used our existing light sheet set-up, but with the laser turned on continuously, to provide illumination equivalent to the acquisition of 600 video frames (each 2.5ms exposure) per z plane (full details in Supplementary Table 1).
Heart rate was calculated every 5 minutes using the period-determination codes described in [11]. Any heart rate determined that varied by more than ±25 % from the previous heart rate value was discounted and a new period determined, which always varied by less than this amount. Such events occurred infrequently and were due to changes in heart rhythm causing erroneous period determination; 8 of these events occurred, all during the retrospective optical gating protocol.
For each protocol (hybrid optical gating and retrospective optical gating) fish were randomly selected from a full clutch of eggs. All fish were given 30 min to acclimatise, from which a resting heart rate was determined. Fish were then imaged for two hours and the heart rate measured at the start of each new stack.
For the hybrid optical gating protocol, fish were mounted in the microscope and, after acclimatisation, were exposed to pulsed laser illumination to accompany triggered (synchronized) fluorescence image acquisition. For retrospective gating experiments, fish were mounted in the microscope and, after acclimatisation, were exposed to constant laser illumination as required for retrospective optical gating (see above). In all cases the fish were also exposed to the infrared illumination needed for brightfield imaging (required for heart rate determination as well as for synchronization analysis).
We note that control fish exposed to no laser light at all show no change in heart rate, similar to the results seen in Figure 5a for hybrid optical gating experiments. We observed no developmental abnormalities in samples imaged in our hybrid optical gating microscope and fish appear to undergo normal development with no obvious delay for fish developing at 23° C.
7 Assessment of photobleaching during imaging
For retrospective gating, the same method was followed as above. For convenience and consistency, rather than performing an actual retrospective gating analysis on a high-speed recording of fluorescence images, we used prospective optical gating to trigger synchronized acquisition of the images that were subsequently analyzed and compared against results from hybrid optical gating. However, throughout the z scan the laser was turned on continuously, exactly as it would be for retrospective gating acquisition.
To quantify the fluorescence signal level in the z stack, an estimate of the global background signal level was made and subtracted from all pixels. The values of all voxels v(x, y, t) within a volume-of-interest around the heart was summed for each timepoint t:
The resultant time-sequence was fitted with a double-exponential I(t) = a + bexp(−ct) + dexp(−et). The constant term a compensates primarily for faint autofluorescence of red blood cells within the heart: due to the constant turnover of blood cells within the light sheet, this signal is not significantly bleached even at extremely high laser doses. We found that the double-exponential provided a good description of the complex dynamics involved in photobleaching, for the time-sequence from the retrospective gating protocol. A singleexponential was fitted in the case of the hybrid gating protocol, since we found that the time constant of any second exponential term was too long to be reliably determined.
8 Cardiac laser-injury
A Zeiss Photo Activated Laser Microdissection microscope system was used to induce a localised laser injury to the ventricular apex of anaesthetised 72 hpf embryos. Embryos were laterally mounted on a glass slide in 20 μl of conditioned water and the laser was fired through a 20× objective. Embryos were deemed injured when ventricular contractility considerably decreased and the ventricular apex reduced in size without rupturing the myocardial wall. Uninjured (control) embryos were treated in the same manner up to the point of laser injury, when they were separated and maintained in the same conditions as injured embryos.
9 Neutrophil Tracking in Time-lapse Experiments
Neutrophil tracking was performed using the automated algorithms available in FIJI [46] via the TrackMate plug-in [47]. Neutrophils were detected with an expected diameter of 12 microns and with a “Quality” threshold of 20.0; approximately the same number of neutrophils per frame were detected for all time intervals (Supplementary Figure 2c). Tracks were then recovered with the Simple Linear Assignment Problem algorithms. At three minute time-lapse intervals, a maximum linking distance of 30 microns was used, and a gap-closing maximum distance of 60 microns and 2 frames was used. These settings accommodate a maximum neutrophil velocity of 10 microns/minute. Detections for all time intervals (see below) and tracks at 3 minute time intervals were manually inspected to check there were no obvious errors.
To demonstrate the need for time-lapse intervals as short as 3 minutes, we examined how track features change with increasing time-lapse intervals. First we created two track sets:
“Subsampled” virtual experiments were performed by starting with 3 minute time-lapse dataset but retaining only every second stack for a 6 minute interval, every third stack for a 9 minute interval, etc. Tracks were recovered for these subsampled experiments as above, except the linking maximum distance and gap-closing maximum distance were scaled to allow the same maximum neutrophil velocity to be captured (Supplementary Figure 2b shows an example at 30 minute intervals). This track set represents our own best attempt at recovering tracks from data taken at longer time intervals, using off-the-shelf analysis tools.
Starting from tracks recovered from the 3 minute time-lapse dataset, “decimated” tracks were created by only keeping track points associated with even-numbered stacks for a 6 minute interval, and so on. Note that these decimated tracks are the closest to a “ground truth” dataset that can be recovered; it is intuitively apparent that the tracks captured at 3 minute will have the fewest accidental track breakages or incorrect linkages (see Figure 4f for an example at 30 minute intervals). This track set therefore represents an upper bound on achievable performance, in which the track analysis was actually performed with additional information (3 minute interval image stacks) available to ensure correct track linking, which would not in reality be available in an experiment using longer time-lapse intervals.
From these two track sets we measured the number of neutrophils per frame as a control (Supplementary Figure 2c), the number of tracks, and the number of tracks that pass through the wound area (Figure 4e). We also measured the average absolute velocity and the meandering index [22] for each individual track (Figure 4f, Supplementary Figure 2c).
10 Image acquisition, processing and analysis
Imaging parameters used for all experiments can be found in Supplementary Table 3.
Volume datasets are presented as maximum intensity projections (MIPs) unless otherwise stated. A trivial linear colour mapping, starting at zero, was used in all cases. For the local detail presented in Figures 4 and 6, MIPs were computed over a cropped z range to exclude background clutter. For time series movies (apart from Supplementary Video 9), a small exponential correction was applied as a function of time, to compensate for gradual photobleaching.
Surface rendering was performed using the Imaris software (Bitplane AG). Percentage increase in endothelial chamber volume was calculated by manually cropping the rendered atrium and ventricle and exporting the volume at 48hpf and 72hpf.
11 Software and Data handling
The computer code for real-time synchronization, long-term updating and image acquisition is implemented on a unix-like platform (iMac 2015, Apple Inc.) to ensure consistent real-time performance and to benefit from high quality performance diagnostic tools. The real-time computational demands of the analysis allow it to be run on a standard desktop computer, and we have even achieved good results using low-end portable computers (iBook 2008, Apple Inc.). The computer code implements the algorithms described above, and presents a graphical user interface for imaging, microscope control and initial post-experiment visualization and processing (Supplementary Figure 7). In future we intend to migrate our now-mature synchronization system to a cross-platform framework such as Micromanager.
Data is streamed to the computer’s hard disk in real-time. The storage requirements are comparatively modest (approx 100 MB/channel/3D timepoint) since the only fluorescence images acquired and stored are from the desired phase in the heartbeat. This contrasts with alternative post-acquisition approaches [12, 13] that typically require several hundred times this number of images to be recorded for subsequent postprocessing. Maximum intensity projection images of the z-stacks are available for monitoring during acquisition, and on experiment completion data is prepared in a format suitable for importing into visualization software such as Imaris (Bitplane AG).
12 Code Availability
The graphical user interface and all codes required to run hybrid optical gating live have been deposited in the University of Glasgow data repository at http://dx.doi.org/10.5525/gla.researchdata.729. This includes codes for prospective optical gating, updating reference frames and the codes needed for hardware interactions. Also available are Python/Jupyter notebooks for recreating the plots in Figures 3–5 and Supplementary Figures 1–2, and also for generating Supplementary Video 2.
13 Data Availability
The data used to produce all results in this paper have been deposited in the University of Glasgow data repository at http://dx.doi.org/10.5525/gla.researchdata.729. This repository contains maximum intensity projections of the fluorescence data shown in: Figures 3–6; Supplementary Figures 2 and 4; and Supplementary Videos 4–7 and 9–10. Brightfield reference heartbeats used in Figures 3 and 5, and Supplementary Videos 2 and 8, are also available in this repository. Raw datasets for the experiments in this paper are very large, even with hybrid optical gating, and so most of these are not included in the repository but are available on reasonable request from the corresponding author. However, the full raw data for a small illustrative time range from Figure 6 have been included in this repository. The repository also includes some processed data for the Jupyter Notebooks provided; this has been described in these Notebooks.
Supplementary Note 1: invariant brightfield source images
Any image-based heart synchronization strategy performs best when the appearance of the heart is invariant over time (aside from periodic changes over the heartbeat). In synchronized 3D imaging this gives rise to a conflict between the need to scan the fluorescence image plane through the sample (or vice-versa) for 3D imaging, and the desire to image a fixed plane in order to obtain a consistent phase reference for synchronization. Various strategies for dealing with this issue can be found in the literature:
Attempting to maintain phase-lock despite gradual changes in appearance from one slice to the next [12] (but this approach suffers from accumulated systematic error in z [13, 48])
Refocusing the brightfield images using a motorized mobile tube lens [11] (but this is cumbersome and in practice limits acquisition to a z range of 120 μm).
Use of a rotational imaging strategy, with synchronization being based on a line of pixels along the axis of rotation [48].
In our present work we instead acquire our phase-reference images via brightfield imaging through the light sheet launch objective. Consequently, during a z scan the brightfield images remain focused on the same plane in the sample, but the image translates within the focal plane of the brightfield camera. Our heart synchronisation algorithms are already tolerant of such in-plane motion (to accommodate possible sample drift), and thus we are able to maintain a high-quality phase-lock throughout a whole z scan.
When imaging on a commercial microscope (for example the two-photon imaging in Supplementary Figure 5) it is not always possible to use side view imaging or focus correction. Under those circumstances it is necessary to fall back on strategies where the reference frames are intermittently updated as the appearance of the heart in the brightfield channel changes during a z scan (a strategy originally presented in [12] for retrospective synchronization). In our case we apply exactly the same reference-frame-refresh strategy that we use for longterm time-lapse imaging, but here we force a refresh after every third two-photon image acquisition over the course of a z scan.
Supplementary Note 2: hardware interfacing
Timing hardware
Typical desktop computers do not have a standardised interface for simple digital input/output, suitable for communicating with hardwares such as cameras. Furthermore, it is not trivial to write code with guaranteed predictability to enable millisecond-resolution accuracy in hardware interactions. For these reasons, our platform is design to interface over an RS-232 serial link to a custom-built microcontroller system that generates the actual electrical trigger signals at the times determined by our synchronization software. In practice, this timing hardware fulfils other roles as well, pulsing lasers in time with camera exposures, generating custom digital waveforms for particle image velocimetry, etc. A simple text-based communications protocol is defined (see document “communications protocol.rtf” in supplementary source code) for communication between the main computer software and the timing hardware.
Source code and schematics for our custom timing hardware have been made available, but any hardware conforming to the specified communications protocol could be used. Other hardware with compatible capabilities could be used by adapting our source code (new subclass of TimingBoxBase, modelling code on existing subclasses TimingBoxXMOS and TimingBoxFPGA) to support a different communications protocol.
Camera support
Currently our user interface supports the following camera models:
Prosilica (recommended as brightfield source for heart synchronization) via PvAPI driver for GigE cameras
Ximea (XiD, XiQ) via xiAPI
QImaging via deprecated QCam API
Other camera hardware and drivers can be supported by subclassing CameraBase/FrameBase classes, modelling code on the existing camera support classes.
Translation stage support
Currently our user interface supports the following translation stage models:
Physik Instrumente via the Mercury native command interface
Newport via SMC100 command set
Other stage hardware can be supported by subclassing the StageCommandInterface class, modelling code on existing stage support classes.
Supplementary Video Captions
The following Supplementary Videos are available alongside this preprint.
Supplementary Video 1: Optical gating concept. The constant motion of the beating heart presents a challenge for imaging (grey representation of part of the heart ventricle). Light sheet fluorescence microscopy provides optical sectioning to image a single plane of the heart at a time (depicted in green), without any superfluous illumination in other spatial locations. However, retrospective optical gating techniques require many raw fluorescence video images to be acquired at every z plane in the heart; a consistent z stack at a fixed cardiac phase is reconstructed following subsequent computer analysis. In contrast, prospective optical gating ensures that the heart is only exposed to potentially-harmful laser light at the required time in the cardiac cycle.
Supplementary Video 2: Prospective optical gating fails to maintain phase-lock over extend periods. Due to changes in brightfield features, prospective optical gating loses phase-lock with time (left) whilst hybrid optical gating is able to maintain a lock (right) over many hours. The colours indicate the difference in phase between the frame shown and the mean human-scored target frame (c.f. Figure 3).
Supplementary Video 3: Diagrammatic representation of hybrid optical gating for time-lapse 3D imaging of the beating zebrafish. For each time-lapse point, a new reference heartbeat is determined in the brightfield images. This new reference heartbeat could be used to create a 3D stack using prospective optical gating; however, the new reference heartbeat is not aligned with previous reference sets (blue). By incorporating retrospective optical gating on these brightfield reference heart beats, including motion correction and a weighted regression with historical reference sets, the previous target can be identified in each new reference set. This allows phase-locking between stacks throughout a time-lapse experiment (right).
Supplementary Video 4: Hybrid optical gating allows phase-locked, longterm, time-lapse imaging and quantification of developmental cardiac morphogenesis. Phase-locked, live time lapse imaging of heart development (48 to 72 hours post-fertilization (hpf), at 300s intervals) showing endothelium lining blood vessels and heart chambers (transgene flk1:mCherry). Movie shows maximum intensity projections of z-stacks. Scale bar: 30μm.
Supplementary Video 5: Hybrid optical gating allows phase-locked, longterm, time-lapse imaging and quantification of developmental cardiac morphogenesis. Phase-locked, live time lapse imaging of heart development (48 to 72 hours post-fertilization (hpf), at 300s intervals) showing endothelium lining blood vessels and heart chambers (transgene flk1:mCherry). Movie shows 3D rendering of heart chambers. Scale bar: 30μm.
Supplementary Video 6: Hybrid optical gating allows phase-locked time-lapse imaging at the rate required for investigating cell activity during injury response. Synchronized time-lapse 3D imaging of immune cells migrating to the site of laser-injury in a zebrafish heart. Maximum intensity projection of z-stacks, showing macrophages (magenta - transgene mpeg:mCherry) at the injury site on cardiomyocytes (green - transgene myl7:GFP). Injury occurred at 74 hpf, with imaging commencing at approx 83.5 hpf; note that the effect of laser injury on heart rhythm posed challenges for the synchronization, resulting in some planes and/or timepoints with poor synchronization. Scale bar: 30μm.
Supplementary Video 7: Hybrid optical gating allows phase-locked time-lapse imaging at the rate required for investigating cell activity during injury response. Synchronized time-lapse 3D imaging of neutrophil immune cells migrating to the site of laser-injury in a zebrafish heart. Maximum intensity projection of z-stacks, showing neutrophils (cyan - transgene mpx:mCherry) at the injury site on the apex of the ventricle (green - transgene myl7:GFP). Injury was induced at 72 hpf, with imaging commencing at approx 74 hpf. Scale bar: 30μm.
Supplementary Video 8: Retrospective gating affects heart function. We have observed changes in heart function when using retrospective gating protocols to acquire timelapse datasets. Video shows visible deterioration of ejection fraction, heart rate and rhythm.
Supplementary Video 9: Hybrid optical gating substantially reduces bleaching rate in sensitive samples. When fluorophores are particularly light-sensitive, or labelling is highly specific and therefore sparse (e.g. myl7:mKate-CAAX transgenic line), we observe that specimens are easily bleached, even using light sheet fluorescence microscopy. When exposed to light levels required for retrospective gating (using typical parameters reported in the literature), the signal from a specimen labelled with membrane-specific mKate fluorophore is halved after only 3 timepoints, whereas with hybrid optical gating over 150 timepoints are recorded before the signal level drops by the same amount.
Supplementary Video 10: 3D time-lapse imaging of cardiomyocyte migration and cell division during cardiac trabeculation. 24 hour timelapse (shown here as a Maximum Intensity Projection) of a 72-96hpf embryo, showing cardiomyocyte nuclei (green - transgene myl7:h2b-gfp) and cardiomyocyte membranes (magenta - transgene myl7:mKate-CAAX). Nuclei of cardiomyocytes which are about to divide are marked by white arrowheads, or open-arrowheads (less-obvious divisions near the posterior wall of the heart).
4 Acknowledgements
This work was funded by the British Heart Foundation (BHF) (NH/14/2/31074), with additional support from the BHF (RE/08/001), EPSRC (EP/M028135/1) and the Royal Society (RG130249). Individual support: FB & CB (BHF CoRE award RE/13/3/30183), AB (Medical Research Scotland project ID 3376798), CJN (EPSRC Doctoral Prize Research Fellowship EP/N509668/1), JMT (Royal Society of Edinburgh Sabbatical Research Grant RSE58915). We thank Dr Thai Truong (University of Southern California) for proposing the side-view geometry used for brightfield imaging.
Footnotes
↵* jonathan.taylor{at}glasgow.ac.uk