- Research
- Open access
- Published:
ZebIAT, an image analysis tool for registering zebrafish embryos and quantifying cancer metastasis
BMC Bioinformatics volume 14, Article number: S5 (2013)
Abstract
Background
Zebrafish embryos have recently been established as a xenotransplantation model of the metastatic behaviour of primary human tumours. Current tools for automated data extraction from the microscope images are restrictive concerning the developmental stage of the embryos, usually require laborious manual image preprocessing, and, in general, cannot characterize the metastasis as a function of the internal organs.
Methods
We present a tool, ZebIAT, that allows both automatic or semi-automatic registration of the outer contour and inner organs of zebrafish embryos. ZebIAT provides a registration at different stages of development and an automatic analysis of cancer metastasis per organ, thus allowing to study cancer progression. The semi-automation relies on a graphical user interface.
Results
We quantified the performance of the registration method, and found it to be accurate, except in some of the smallest organs. Our results show that the accuracy of registering small organs can be improved by introducing few manual corrections. We also demonstrate the applicability of the tool to studies of cancer progression.
Conclusions
ZebIAT offers major improvement relative to previous tools by allowing for an analysis on a per-organ or region basis. It should be of use in high-throughput studies of cancer metastasis in zebrafish embryos.
Introduction
Zebrafish is becoming a widely used model organism in biomedical research due to a number of features that are useful in the study of cancer progression. These include rapid development and transparency of the embryos, which allows in vivo imaging of internal organs at different stages of development. Moreover, their maintenance costs are low when compared to other model organisms and there is little variability in the morphology of embryos. Finally, zebrafish reproduce at a fast rate and can be maintained in small volumes of water [1].
This organism has recently become a model organism in studies of cancer formation, cell migration and invasion, as well as metastasis formation [1–3], among other. A zebrafish model has also been validated for anti-cancer drug screening [4]. These studies rely heavily on microscope imaging and require the analysis of a large number of images. Given that manual image analysis is often cumbersome and subjective, there is a need for automating as many steps of the data analysis as possible. A particularly important and cumbersome step in such studies is registration. Its goal is to allow the use of the same coordinate system in the analysis of all images, which is necessary for combining and comparing measurements in many individuals.
Recent studies addressed the problem of zebrafish registration (for a review, see [5]). In [6], a novel embryo's detection, registration and segmentation tool was proposed to study gene expression at an early development stage. This method is applicable to prim-20 and long-pec stages alone as the shape model of the segmentation relies on features of the embryos' outline that exist only in these stages. Recently, an assay for analyzing human cancer dissemination within zebrafish was proposed [7]. The fish were aligned horizontally and cancer spots were segmented. Their dissemination was quantified by measuring distances of cancer cells to the injection site. Unfortunately, it cannot be used to segment internal organs. Another automatic segmentation and registration tool was proposed in [8], which focuses solely on the segmentation and registration of the caudal vasculature.
Here, we propose a novel tool, ZebIAT, that automatically aligns the organs of zebrafish embryos and other regions of interest with a landmark-based thin plate splines (TPS) registration method. Its main application is the automated analysis of cancer cells migration and invasion to the organs of the embryos. In contrast to previous methods, ZebIAT works with zebrafish embryos with development stages between 2 and 5 days post fertilization (dpf) and registers all major organs. The registration can be performed using images from either a fluorescence or a differential interference contrast (DIC) microscope. Finally, we show how the manual adjustment assists the registration of the inner organs.
ZebIAT is implemented in MATLAB and is available at http://www.cs.tut.fi/%7Eannilat/zebratool/. A User's manual is also available online.
Material and methods
In this section, we describe the methods employed by ZebIAT. A detailed description of how to use ZebIAT is provided in the User's Manual (supplementary material).
Imaging of zebrafish embryos
We use images partially used in [1]. The experiments conducted to obtain them are described in [1]. Here, we describe briefly the steps most relevant to the present study.
Pancreatic human tumor cells were stained with CM-Dil (red fluorescence, Vybrant, Invitrogen) and injected in larvae of Tg(fli1:GFP) zebrafish embryos whose vasculature expresses green fluorescent protein (GFP) throughout development, until adulthood. Tumor cells were injected at 2 dpf in the yolk of zebrafish embryos and fluorescence stereomicroscope images were taken at 0, 1, 2 and 3 days post-injection (dpi) with either a Leica DFC 420C camera attached to a Leica MZ16FA microscope or a Carl Zeiss confocal microscope. Altogether, we use 24 fluorescence images and 14 differential interference contrast (DIC) images. The former are from the maximum projection images of z-stacks obtained with the confocal microscope.
Additionally to these images, we also use of a set of DIC images acquired for, and partially used in [4], where the experiments conducted to obtain them, protocols and regulations are described.
Zebrafish embryo registration
In general, a registration process transfers a set of data into the same coordinate system, via a transformation model [9, 10]. A common transformation model is thin plate splines (TPS) [11], which has been successfully applied to remote sensing and medical images [12, 13]. This model is landmark-based, i.e., it requires fixed landmark points from the target image and from the reference image, whose correspondence is established a priori. Given these, it interpolates to find a smooth mapping between the two coordinate systems [14].
At this stage, one image has to be selected as the 'reference embryo'. In this image, the user manually marks the organs or other areas of interest (see User's Manual). We advise the use of different reference images for each stage of development given the rapid morphological changes. As an example, we show in (Figure 1) an example mask with several organs and areas of interest selected. ZebIAT already contains a predefined mask for each of four development stages (days 1 to 4). If the ventral and dorsal caudal regions are marked, ZebIAT has an additional option of dividing them into smaller regions. Once this procedure is complete, other fish can be automatically registered to the reference fish, and the inner organs located.
To perform the registration, landmarks are extracted from the images. These are obtained from the outline of the fish, since, in zebrafish, different embryos have similar shapes and outlines when at the same developmental stage. For that, the outlines of the embryo are extracted by segmentation of the image obtained from either DIC or green fluorescence channel. This segmentation is performed in several steps. First, we threshold the image using Otsu's method [15]. Since weak edges are often mapped to zero by this method, in the next step, edge detection is used. For that, we find the zero-crossings of the image filtered by a Laplacian of Gaussian (LoG) with a standard deviation of 2 and a size of 13x13, as these settings were found to suppress noise while detecting edges in fine structures such as vasculature. The result is then combined with the result from Otsu's method by a binary OR-operation. We observed that, after this step, there may still exist small gaps and holes, due to low levels of fluorescence in some areas of the vasculature. Thus, morphological closing is applied. We use a disk-shaped structuring element with a radius of 25, which was found to be large enough to fill the gaps in the vasculature. Since the mask obtained likely contains small connected components resulting from noise, we find the fish by selecting the largest connected component in the mask. Finally, the outline of the fish is obtained by a boundary tracing algorithm [16]. The segmentation steps are exemplified in Figure 2 for fluorescence images, and in Figure 3 for DIC. In the latter, the colors are inverted.
Following the segmentation, ZebIAT performs the alignment of the reference fish. This facilitates visualization and minimizes the size of stored images. To align, we seek the pairs of points in the segmented fish separated by the longest distance. These are at the head and tail. According to these, reference images are rotated so that the fish are oriented horizontally.
Next, we use the outline to obtain landmarks automatically for both reference and non-reference fish. Once the head and tail are located, we generate new landmarks by moving along the contour and placing landmarks between them. These are introduced as follows. In general, they are equally spaced. However, in two regions, the tail and the yolk, they are not added, as these regions differ significantly in shape from one embryo to the next. The direct correspondence between landmarks of reference and non-reference fish is obtained by generating an equal amount of landmarks for both fish. The result of placing landmarks and the correspondence between reference and non-reference fish is illustrated in Figure 4. To support this process, ZebIAT has a user interface to add, remove or modify landmarks. This can be of use particularly in registering internal organs or regions of interest.
Once the landmarks are set, to find a smooth transformation, parameters of the TPS model could be fitted, for each developmental stage of the embryo, by finding the transformation f that minimizes the energy functional
while requiring that f(p i ) = q i for all i, where p i , are the landmarks of the target and reference images, respectively. However, in practice it is useful to allow some degree of error in the landmark correspondences. Thus, instead of this interpolating scheme, we minimize the following functional, proposed in [13]:
where are the weights for landmark errors and λ is a regularization term controlling the smoothness of the transformation. Equation 2 has a closed-form solution and can be solved in a matrix form [13]. For the regularization parameter, as in [13], we use λ=300. Further, we use equal scalar weights σ i = 1 to approximate the landmark errors.
Images of the reference fish, followed by the target fish, before and after the registration are shown in Figure 5. Also visible is the mask of the reference fish over the target fish, before and after registration. We used 20 landmarks, 17 selected automatically and 3 added manually.
Spot detection
We detect fluorescently labeled cancer cells using a method of multiscale product of wavelets [17], based on the assumption that spots will be present at each level of wavelet decomposition. At the first level of decomposition, the convolution between the original image A0(x, y) and the kernel [1/16, 1/4, 3/8, 1/4, 1/16] is computed, first row-wise and then columnwise, resulting in a smoothed image A1(x, y). This procedure can be repeated recursively J times from smoothed approximation images. At each step i, the kernel is extended by padding 2i−1 − 1 zeros between kernel coefficients. The decomposition can be formulated as
and the multiscale product of wavelets is then
We use default parameter values proposed in [17], following the implementation in [18].
If a spot is present at each level of decomposition, it results in a significant value of P J (x, y), which can be thresholded. If no spot is present at some level of decomposition, P J (x, y) will decrease significantly. One example of spot detection is shown in Figure 6 (bottom), which also shows the original image. As seen, the green channel leaks into red channel to some extent, but red spots are still detectable.
We found this leakage common in the fluorescence images used here. Therefore, for this specific set of images, we first removed this effect from subsequent analysis. We explain this extra procedure, as it is not included in ZebIAT but it may be of use, depending on the quality of the source images. We used an ad-hoc method that assumes a linear relationship between the 'green' image G and the 'red' image I:
where R is the true red signal to be recovered, and is unknown. Assuming that R is a random variable with zero mean and constant variance, we find an estimate for β using Linear Least Squares. We then approximate the true red signal as . Since is not necessarily nonnegative, we additionally set all negative values to zero.
Results
To validate ZebIAT and assess its performance, we analyzed images of three fish at four stages of development (day 1 to 4). For each non-reference fish, we marked seven organs or areas (Figure 1). We registered these twelve images to the reference images of the corresponding developmental stages, and assessed how well the registered masks matched the masks of the reference images.
To quantify the overlap between masks, we calculated the Simpson coefficient [19], defined as the ratio between the area of the intersection of the masks and the area of the smaller mask. To capture each organ, the reference masks were drawn slightly bigger than the organ (less than 5% larger). This allows the overlap coefficient to be a measure of the percentage of the area of the registered organ that is properly masked. If the validation mask is a subset of the reference mask, the overlap coefficient equals the unity. If equal to zero, it implies that the mask does not intersect the organ in any point.
The results in Table 1 indicate that, in general, the automatic registration procedure is efficient, especially near the contour where landmarks were chosen automatically. The ventral and dorsal somites, the yolk and the brain regions are more accurately registered. However, in a few areas, such as the eye, otic vesicle and pec fin, the accuracy is lower as the automatically selected landmarks are not sufficient for ZebIAT to account for the differences between reference and non-reference fish.
To improve the registration accuracy in these areas, we next manually added three landmarks: one in the eye, one in the otic vesicle and one in the pec fin. These were added approximately in the center of each of these organs. Results with the 17 automatically chosen landmarks and the 3 manually added landmarks are shown in Table 2.
From Table 2 one observes a mean accuracy of 90% or higher given the manually added landmarks. These, in general, not only improved significantly the accuracy in those areas where it was lower, but also slightly improved the accuracy in other areas (except in rare cases, where a small decrease was observed). Additional manual landmarks would further improve the results, with decreasing significance. We note that, in some cases, the brain region was susceptible to error due to the angle of rotation of the fish relative to its major axis, which rendered areas of the brain invisible.
Finally, to demonstrate the utility of ZebIAT in extracting biologically relevant information from the images, we show in Figure 7, for the two first days post-injection, the mean fraction of the area of each organ that exhibited cancer spots in the embryos examined. Note that we sub-divided the ventral and dorsal regions into smaller sub-regions. By comparing the top and bottom images, it is possible to see the utility of ZebIAT in studying cancer progression, both in individuals, as well as when averaged over many individuals. For example, from this particular comparison we observe an increase of the areas with cancer cells with time in both the ventral region and yolk. It is also visible a decrease of these cells in, e.g., the otic vesicle, which demonstrates that they migrate throughout the body [1]. Using ZebIAT, not only could one obtain a quantified assessment of this process, but one could also execute a comparative analysis of this process, e.g., for different cancer cells.
Conclusions
ZebIAT is useful in segmenting and registering embryos of zebrafish at several stages of development, including the internal organs and/or areas of interest selected by a user. ZebIAT performs a temporal, quantitative analysis of the migration of cancer cells in individual fish, and can then produce average results from the analysis of multiple fish. This allows for a comparative analysis between individual fish, or between measurements in different or identical conditions. Its major improvement relative to previous tools, such as [7], is that it allows for an analysis on a per-organ or region basis. This is of significant relevance when using zebrafish as a model of cancer progression as it allows understanding how cancer cells migrate over time.
The automatic landmark extraction was implemented to reduce to a minimum the necessary number of manual landmarks. Since the automatic extraction of landmarks is executed along the contour of each fish, the best accuracy is achieved near the outline of the fish. To register internal organs that may pose particular difficulties, a user interface was created to allow users to add or remove landmarks, following the introduction of the automatically extracted landmarks. Smaller organs are the most prone to errors using automatic landmarks alone, as they may not be fully visible in all frames, which makes it more difficult to find the correspondence between images.
In this study, we did not perform a detailed quantitative analysis of the effects of noise in the land-mark extraction process, since all images had relatively low noise and were obtained following the same methodology. However, we observed that if the fluorescence signal is weak, noise may become problematic. Thus, while the Gaussian filter (in LoG) should suppress the noise to some degree, we recommend that the fluorescence images have sufficient exposure time to reduce noise.
In the future it should be possible to further reduce the need for manual landmarks, particularly, in the organs. We attempted to add automatic landmarks within the fish internal structure, based on feature matching between embryos. However, we failed to find landmarks as robust as those in the outline, due to a higher degree of morphologic variability of the organs between embryos. In any case, provided the identification of more reliable features in the inner organs, this should be feasible. On the other hand, fully automated methods will likely require setting stricter rules on how images should be acquired. In that sense, we believe that ZebIAT has, at the present stage, a good compromise between automated methods and user intervention. Another future improvement that would be of use is to extent the registration methods to 3D-images. The methods used here were selected with this aim in mind. Such extension should help in detecting cancer metastases that extravasate from blood vessels. Moreover, it should prevent some registration errors that may arise from having different angles of rotation along the major axis in each fish.
Abbreviations
- TPS:
-
thin plate splines, dpf: days post fertilization, DIC: differential interference contrast, GFP: green fluorescent protein, dpi: days post injection, LoG: Laplace of Gaussian
References
Marques IJ, Weiss FU, Vlecken DH, Nitsche C, Bakkers J, Lagendijk AK, Partecke LI, Heidecke CD, Lerch MM, Bagowski CP: Metastatic behaviour of primary human tumours in a zebrafish xenotransplantation model. BMC Cancer. 2009, 9: 128-10.1186/1471-2407-9-128.
Goessling W, North TE, Zon LI: New waves of discovery: modeling cancer in zebrafish. J Clin Oncol. 2007, 25 (17): 2473-9. 10.1200/JCO.2006.08.9821.
Stoletov K, Montel V, Lester RD, Gonias SL, Klemke R: High-resolution imaging of the dynamic tumor cell vascular interface in transparent zebrafish. Proc Natl Acad Sci USA. 2007, 104 (44): 17406-11. 10.1073/pnas.0703446104.
Jung DW, Oh ES, Park SH, Chang YT, Kim CH, Choi SY, Williams DR: A novel zebrafish human tumor xenograft model validated for anti-cancer drug screening. Mol Biosyst. 2012, 8 (7): 1930-9. 10.1039/c2mb05501e.
Xia S, Zhu Y, Xu X, Xia W: Computational techniques in zebrafish image processing and analysis. J Neurosci Methods. 2013, 213: 6-13. 10.1016/j.jneumeth.2012.11.009.
Gehrig J, Reischl M, Kalmár E, Ferg M, Hadzhiev Y, Zaucker A, Song C, Schindler S, Liebel U, Müller F: Automated high-throughput mapping of promoter-enhancer interactions in zebrafish embryos. Nat Methods. 2009, 6 (12): 911-6. 10.1038/nmeth.1396.
Ghotra VPS, He S, de Bont H, van der Ent W, Spaink HP, van de Water B, Snaar-Jagalska BE, Danen EHJ: Automated whole animal bio-imaging assay for human cancer dissemination. PloS One. 2012, 7 (2):
Feng J, Cheng SH, Chan PK, Ip HHS: Reconstruction and representation of caudal vasculature of zebrafish embryo from confocal scanning laser fluorescence microscopic images. Comput Biol Med. 2005, 35 (10): 915-31. 10.1016/j.compbiomed.2004.05.003.
Zitová B, Flusser J: Image registration methods: a survey. Image Vis Comput. 2003, 21 (11): 977-1000. 10.1016/S0262-8856(03)00137-9.
Crum WR, Hartkends T, Hill DLG: Non-rigid image registration: theory and practice. Br J Radiol. 2004, 77: 140-153. 10.1259/bjr/25329214.
Duchon J: Interpolation des fonctions de deux variables suivant le principe de la flexion des plaques minces. RAIRO Analyse numêrique. 1976, 10 (12): 5-12.
Goshtasby A: Registration of images with geometric distortions. IEEE Trans Geosci Remote Sens. 1988, 26: 60-64. 10.1109/36.3000.
Rohr K, Stiehl HS, Sprengel R, Buzug TM, Weese J, Kuhn MH: Landmark-based elastic registration using approximating thin-plate splines. IEEE Trans Med Imaging. 2001, 20 (6): 526-34. 10.1109/42.929618.
Bookstein FL: Principal Warps: Thin-Plate Splines and the Decomposition of Deformations. IEEE Trans Pattern Anal. 1989, 11 (6): 567-85. 10.1109/34.24792.
Otsu N: A Threshold Selection Method from Gray-Level Histograms. IEEE Trans Syst Man Cybern. 1979, 9: 62-66.
Gonzales RC, Woods RE: Digital Image Processing. 2002, New Jersey: Prentice Hall, 2
Olivo-Marin JC: Extraction of spots in biological images using multiscale products. Pattern Recognit. 2002, 35 (9): 1989-1996. 10.1016/S0031-3203(01)00127-3.
Ruusuvuori P, Äijö T, Chowdhury S, Garmendia-Torres C, Selinummi J, Birbaumer M, Dudley AM, Pelkmans L, Yli-Harja O: Evaluation of methods for detection of fluorescence labeled subcellular objects in microscope images. BMC Bioinformatics. 2010, 11: 248-10.1186/1471-2105-11-248.
Cheetham AH, Hazel JE: Binary (Presence-Absence) Similarity Coefficients. J Paleontol. 1969, 43 (5): 1130-1136.
Acknowledgements
Work supported by the Academy of Finland (ASR), Emil Aaltonen Foundation (EL), and the Finnish Funding Agency for Technology and Innovation (ASR,TA). The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.
Declarations
The publication costs for this article were funded by the Finnish Funding Agency for Technology and Innovation (grant no. 40226/12).
This article has been published as part of BMC Bioinformatics Volume 14 Supplement 10, 2013: Selected articles from the 10th International Workshop on Computational Systems Biology (WCSB) 2013: Bioinformatics. The full contents of the supplement are available online at http://www.biomedcentral.com/bmcbioinformatics/supplements/14/S10
Author information
Authors and Affiliations
Corresponding author
Additional information
Competing interests
The authors declare that they have no competing interests.
Authors' contributions
AR conceived the study. TA and EL designed and implemented the software code, AR, TA and EL wrote the manuscript. IM and DW acquired the data. All authors performed research, and read and approved the final manuscript.
Teppo Annila, Eero Lihavainen contributed equally to this work.
Rights and permissions
Open Access This article is published under license to BioMed Central Ltd. This is an Open Access article is distributed under the terms of the Creative Commons Attribution License ( https://creativecommons.org/licenses/by/2.0 ), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
About this article
Cite this article
Annila, T., Lihavainen, E., Marques, I.J. et al. ZebIAT, an image analysis tool for registering zebrafish embryos and quantifying cancer metastasis. BMC Bioinformatics 14 (Suppl 10), S5 (2013). https://doi.org/10.1186/1471-2105-14-S10-S5
Published:
DOI: https://doi.org/10.1186/1471-2105-14-S10-S5