- Research article
- Open Access
An automatic method for robust and fast cell detection in bright field images from high-throughput microscopy
BMC Bioinformatics volume 14, Article number: 297 (2013)
In recent years, high-throughput microscopy has emerged as a powerful tool to analyze cellular dynamics in an unprecedentedly high resolved manner. The amount of data that is generated, for example in long-term time-lapse microscopy experiments, requires automated methods for processing and analysis. Available software frameworks are well suited for high-throughput processing of fluorescence images, but they often do not perform well on bright field image data that varies considerably between laboratories, setups, and even single experiments.
In this contribution, we present a fully automated image processing pipeline that is able to robustly segment and analyze cells with ellipsoid morphology from bright field microscopy in a high-throughput, yet time efficient manner. The pipeline comprises two steps: (i) Image acquisition is adjusted to obtain optimal bright field image quality for automatic processing. (ii) A concatenation of fast performing image processing algorithms robustly identifies single cells in each image. We applied the method to a time-lapse movie consisting of ∼315,000 images of differentiating hematopoietic stem cells over 6 days. We evaluated the accuracy of our method by comparing the number of identified cells with manual counts. Our method is able to segment images with varying cell density and different cell types without parameter adjustment and clearly outperforms a standard approach. By computing population doubling times, we were able to identify three growth phases in the stem cell population throughout the whole movie, and validated our result with cell cycle times from single cell tracking.
Our method allows fully automated processing and analysis of high-throughput bright field microscopy data. The robustness of cell detection and fast computation time will support the analysis of high-content screening experiments, on-line analysis of time-lapse experiments as well as development of methods to automatically track single-cell genealogies.
Advances in high-throughput microscopy
In the last decade, improvements in automated microscopy have enabled researchers to conduct two new types of experiments. On the one hand, high-content screening approaches allow to automatically quantify phenotypic changes of cells under a large range of different environmental conditions . This technique is extensively used in pharmaceutics, for example in drug development and evaluation . On the other hand, high-throughput time-lapse microscopy is a powerful tool to follow hundreds of single cells over many days and has been successfully applied in the field of hematopoietic research [3-5]. Equipped with appropriate cell tracking and image processing capabilities, this approach allows to analyze single cell dynamics in a quantitative and time-resolved manner [6, 7].
A bottleneck in the analysis of high-throughput microscopy is the availability of suitable automatic processing tools that make the huge amount of information that is hidden in the data accessible . Most experimental setups are highly specialized for the study of a single process of interest. Thus, different combinations of objectives, cameras or cell culture plates are used for different experiments, leading to great variability of images even for similar experimental setups. In addition, the large amount of images that is taken in high-throughput microscopy, either of many different cell culture plates or over a long time range adds to this variability. Since no standardized methods for the acquisition of long-term single cell microscopy exist, bioimage informatics methods have to be adapted for each setup. However, even in a single long-term experiment, images can vary to a degree that makes a unique parameterization for the whole movie challenging. In order to receive robust results from automated image processing it is advantageous to develop the methodology in close collaboration with experimentalists, resulting in an approach that performs best on the given data set.
Fluorescence-based high-throughput image processing
Several computational methods for automatic processing of high-throughput microscopy experiments have been proposed. For example, Fenistein and colleagues  developed an automatic method for the segmentation of cell nuclei in fluorescence images for different cell lines in dilution experiments and report an average cell recognition rate of 95%. Knapp et al.  employed a method to identify single cells in two-channel RNAi screens and used this information to improve the statistical power of the analysis. Both applications demonstrated the feasibility of automatic high-throughput image processing methods on large amounts of fluorescent images.
The framework CellProfiler is a great example of how automated image analysis can be made accessible for a broad range of users, not only specialists. The intuitive GUI and wealth of different implemented methods has led to frequent usage (601 citations, as of January 2013), where most applications relate to the analysis of fluorescence images.
Analysis of bright field images in the context of high-throughput experiments
In general, analyzing cells in the bright field channel holds several benefits: (i) Since acquisition of fluorescent images over longer time spans (days) and with short intervals (minutes) is difficult due to photo toxicity, in long-term time-lapse experiments it is useful to employ bright field images to track cell genealogies . (ii) Quantifying cell morphology in bright field images yields the possibility to measure more descriptive features such as texture and shape simultaneously. In addition, the fluorescence staining of e.g. the cytoplasm could be incomplete or less reliable on a special cell type, which would introduce bias in the later analysis. (iii) Due to the limited number of different fluorescent dyes that can be detected simultaneously, it is desirable to use as many channels as possible for fluorescence detection. Instead of losing a channel for nuclear staining to identify cells, one could observe expression of several fluorescent proteins or lineage markers and detect cell outlines in the bright field channel .
A few publications have already shown that incorporating data from bright field microscopy can yield interesting results. By quantifying the morphological behavior of tracked neural progenitors over time, Cohen et al.  could predict the most likely lineage decision of those cells. Scherf et al.  recently published a method to quantify changes in morphology of colonies of embryonic stem cells under different environmental conditions. In the field of high-content screening, Waehlby et al.  developed a toolbox based on CellProfiler to automatically quantify effects of different treatments to C. elegans populations. Adiga and colleagues  classified the infection state of macrophages by segmentation and morphological quantification in amplitude contrast bright field images.
Challenges in high-throughput processing of bright field images
However, the development of an automated processing method for high-throughput bright field experiments is more demanding than in the fluorescence case and holds several challenges. Cells imaged by bright field microscopy exhibit heterogeneous intensity levels and are often badly contrasted. In addition, differences in illumination over time and across the cell culture plate hamper the ability to specify a global set of parameters for cell detection algorithms over the whole experiment. This prevents the application of available automatic image processing frameworks, which are mostly developed to perform well on fluorescent images. Despite the large amount of methods that are implemented in frameworks like CellProfiler, the available algorithms for illumination correction and segmentation do not perform well enough to achieve satisfying results on many high-throughput bright field microscopy experiments.
By employing active contour and level set methods, many issues of cell segmentation in bright field or phase contrast images have already been solved [16, 17]. For example, Ambuehl et al.  demonstrated the very accurate tracking of a single cell in phase-contrast microscopy images. Ali et al.  developed a method that combined out of focus image acquisition and segmentation by level sets to identify outlines of adherent cells. However, these approaches are computationally expensive and often highly parameter-depended, which prevents the application in high-throughput image processing, where millions of objects have to be processed in reasonable time and without user interaction.
In this contribution, we describe the development and application of a fully automatic image acquisition and processing pipeline. Initialized with a set of 10 intuitively interpretable parameters, the method performs robustly on long-term high-throughput experiments which exhibit a variety of cell shapes (e.g. due to differentiation), numerous cell densities (e.g. due to cell proliferation), and changing image qualities (due to different fields of view and technical alterations during long-term imaging). The strength of this protocol is the combination of changes in image acquisition that are optimal for automatic computation and a set of robust yet fast methods, which allow the processing of hundreds of thousands of images with high accuracy without changing the parameter settings. The protocol has been optimized for parallelized computing of single images. We demonstrate the robustness in cell detection and computational efficiency of our method by processing and analyzing a 6 day high-throughput time-lapse experiment of differentiating hematopoietic stem cells. Using 150 nodes of a computation cluster, we were able to process ∼315,000 images in ∼72 hours, resulting in identification of ∼270,000,000 cells. We evaluate the method on a manually inspected test set of bright field images as well as statistically on the full time lapse experiment. Compared to a pipeline of algorithms available in CellProfiler, our method outperforms the standard approach with an overall cell detection accuracy of at least 82%. To demonstrate the predictive power of our approach, we derive population doubling times directly from the computed cell numbers over the whole experiment, which are in accordance to previously reported cycle times for these cell types . In addition, we show that the computed doubling times match up with cell cycle times of 1600 manually tracked cells.
Results and discussion
Image acquisition and processing steps
For the development of a method to analyze high-throughput microscopy data, it is especially important to incorporate algorithms that are (i) robust against heterogeneities between images that are processed and (ii) able to process single images in the range of seconds up to a few minutes at maximum in order to finish a full experiment in reasonable time. In this work, we chose the algorithms used in every step according to these requirements. The complete pipeline is visualized in Figure 1.
The first step in our method concerns image acquisition. Adapted from Selinummi et al. , we recorded every image with the microscope’s auto focus set 18μm below the optimal focal plane. In the case of bright field image acquisition with a 10x fluar objective (Zeiss), the change of the focal plane resulted in enhanced contrast of single cells, yet with a loss of textural complexity (see Figure 1A). The cell body was evenly illuminated and much darker than the background. In addition, every cell exhibited a bright halo that is supporting the identification of touching cells.
After all images were acquired in the proposed manner, differences in illumination across the images had to be resolved. We used an adapted version of the method proposed by Schwarzfischer et al. . This machine learning based algorithm estimates the background for every image, using a grid of image patches that are classified as showing only background or a mixture of background and foreground pixels. In comparison to standard correction methods like Gaussian filtering that is parametrized on the average foreground object size, the machine learning based method is able to estimate the background more robustly. As shown in Figure 1B, every cell body was clearly separated from the background. The halo surrounding each cell was corrected, yet clumped cells still exhibited a change in illumination at their touching edges. Due to the time-consuming feature calculation during machine learning, this algorithm was occupying nearly 50% of total computing time for a single image, which was in our case 30 to 50 seconds on a standard laptop (Intel Core i7 dual-core, 2.8GHz, 8GB RAM, Windows 7 64bit).
In the next step, all foreground objects had to be separated from the background. In our method, we used the maximally stable extremal regions (MSER) algorithm . An advantage compared to thresholding methods such as Otsu’s method is its robustness in segmentation when there are inhomogeneities in object illumination or huge differences of cell densities between different images. As shown in Figure 1C, MSER correctly identifies nearly all cell bodies. The used implementation of MSER has linear time complexity, thus it is able to process a single image (i.e. 1000x1000 pixels) in milliseconds .
Eventually it was necessary to split clusters of multiple cells that were segmented as a single foreground object (i.e. under-segmentation). We used a two-step approach consisting of an initial marker-based watershedding, followed by merging of cells that were erroneously split into fragments (i.e. over-segmentation). In this step (see Figure 1D), the earlier conducted out of focus acquisition was very advantageous: the homogeneous illumination of cell bodies and the slightly brighter interfaces of touching cells simplified the task to find cell centers by ultimate erosion, which then served as seed points for the watershed algorithm. Depending on the number of cells in an image this step occupies 10 to 50 seconds of processing time.
We applied our method on a time-lapse experiment of hematopoietic stem cells (HSCs) under conditions that promote differentiation towards myeloid cells. For a review of blood cell differentiation see for example Orkin et al. . Two wells of a plastic slide were imaged in intervals of ∼2.3 minutes for 6 days. The wells were sparsely covered with cells at the beginning, yet at the end of the experiment all wells were densely populated by hematopoietic progenitors and differentiated cells (see Figure 2C). To cover the full area of interest in high resolution, each well was divided into a grid of 33 overlapping fields of view (i.e. images covering different areas of a well). Each field of view was recorded once in a time interval. Details regarding experimental conditions and the parametrization of our method to process this experiment are described in the methods section.
Complete processing of the full data set occupied 72 hours, using 150 cores of a computer cluster. The average node architecture was equal to an Intel Xeon 2GHz, 4GB RAM running a 64bit linux-based operating system. Complete processing of a single image with average cell density (see Figure 2) lasted 100 seconds. To account for small debris or fragments of dead cells that were erroneously segmented by our method, we discarded all foreground objects with a size < 50 pixels and an eccentricity > 0.99. The final test set comprised ∼315,000 raw images with the according object masks and computed background corrections, covering ∼270,000,000 identified objects.
The performance of a segmentation approach can be measured in different ways depending on the analyses that are intended after processing. For the development of automatic tracking approaches it is necessary to identify single cells with high accuracy. Especially cells that stick together shortly after division or clusters of multiple cells need to be split correctly. For population analysis or simple cell counting it suffices to detect the number of cells in each image with high accuracy. Here, we manually determined the total number of cells after 12 hours, 2 days, 4.5 days and 5.5 days at two randomly chosen fields of view per well. We evaluated if a cell was (i) correctly segmented, (ii) missed, (iii) over-segmented or (iv) under-segmented. Next, we computed the average accuracy, specificity and sensitivity of cell detection based on the number of true positives (complete cell bodies, the largest fragment of over-segmented cells and one cell per under-segmented object), false positives (dirt and cell fragments) and false negatives (missed cells, remaining cells in under-segmented objects). In addition, we calculated the mean and the according standard deviation of cell densities (cells per m m2) over all fields of view at the given time point.
After 12 hours (Figure 2A), all fields of view were sparsely covered with cells (cell density 5.6±2.4 1/m m2). Despite the high fraction of correctly segmented cells (92%), debris in the examined fields of view that was falsely identified as a cell by our method lead to a decrease in accuracy (83±11%). The low number of cells at this early time point resulted in a high variability (11%) between the fields of view.
At day 2 (Figure 2B), the number of cells increased to a density of 16.2±7.1 1/m m2. Pairs of clumped cells appeared. 82% of all cells were correctly segmented, only very few cells were missed or over-segmented (11%) and under-segmentation was not detected. The cell detection accuracy was 82±3%.
At day 4.5 (Figure 2C), the number of cells across the examined fields of view was significantly larger (741.6±250.6 1/m m2). We observed cells that were clumped together in large clusters and first differentiated cells with more complex morphology were found. Cells with round shapes were correctly identified in most cases (92%), especially round clusters of cells were under-segmented (1%) and cells with elongated shape were over-segmented (4%). Most over-segmented cells were still only counted once since smaller fragments were discarded by the filtering step (see methods). 1% of the cells were missed, mostly because of bad contrast or direct contact to the image border. Due to the large increase in cell number, debris did not significantly contribute to a drop in cell recognition accuracy anymore. The accuracy at this time point was 95±1%.
At day 5.5 (Figure 2D), fields of view of both wells were very densely populated by cells (1.2∗103±0.22∗103 1/m m2) that were exhibiting a variety of shapes. With 1.2%, the fraction of missed cells was even reduced compared to the time point examined before. Over- and under-segmented cells were observed more frequently (6% and 1%, respectively), yet most cells were correctly segmented (90%). The amount of debris was increased, mostly due to clumps of fragments of dead cells. Yet, the cell detection accuracy was very high (92±3%).
To demonstrate the superior robustness of our method, we conducted the same manual evaluation with the results from a pipeline of methods available in CellProfiler. For details of the pipeline and the parameter settings, see the Methods section. We applied the CellProfiler pipeline on the identical set of out-of-focus images and optimized the parameters of each module based on a single image of day 4.5. For a graphical comparison of the cell detection accuracy of our method against the CellProfiler pipeline, see Figure 3.
At 12 hours, the CellProfiler pipeline produced highly heterogeneous results. The used thresholding algorithm performed well on images of 2 fields of view but produced completely mis-segmented images on the others, leading to a low cell detection accuracy (24±31%). This was most likely due to errors in the clumped cell splitting step.
For images taken at day 2, the CellProfiler pipeline performance increased (45±25%). Yet the accuracy was rather low and less robust across different fields of view (25%).
At 4.5 days, the increased cell density lead to an improvement in the cell detection accuracy (84±2%), with a huge decrease of standard deviation. Still, 3% of the cells were missed completely and 9% were under-segmented.
At the last manually evaluated time point of 5.5 days, cell detection accuracy of the CellProfiler pipeline decreased to 71±9%. This was mainly because of the high fraction of missed (20%) and under-segmented (6%) cells.
Taken together, our method showed high robustness in cell detection and low over- and under-segmentation over the full experiment range. Even at very late time points where the wells were very densely covered, the cell detection accuracy was satisfying (∼92%). The out-of-focus acquisition improves the overall segmentation accuracy of our pipeline: Applied to a comparable in-focus movie, the segmentation accuracy dropped to 70% due to over-segmentation of badly contrasted cells and complex cell texture.
As shown in Figure 3, our method clearly outperformed the standard CellProfiler pipeline. Note that the low cell detection accuracy in the early time points does not necessarily mean that CellProfiler in general is not able to segment this type of images (i.e. very few cells). Still, the combination of algorithms performed less robustly on images with different cell densities, given the parameter set that we optimized for images with medium cell density (i.e. day 4.5).
Finally, we would like to note that our pipeline achieved similar robust results (segmentation accuracy ∼85%) in a second long-term high-throughput experiment.
Population doubling time derived from cell counts
A possible use-case in the analysis of high-throughput time-lapse experiments is the control of cell proliferation. Due to photo toxicity or different medium conditions, cells could die early or exhibit deviating proliferation rates , which would introduce errors in later analyses that are conducted on the data set.
Here, we first analyzed the mean cell density over 66 fields of view over the full experiment time span (blue line in Figure 4A). We found that the number of cells increased monotonously until a plateau roughly at day 5. We compared the results with the manually quantified numbers of cells as shown in Table 1 and found them to reside within the standard deviation of the number of objects. From our accuracy estimation in Table 1, we conclude that the plateau is not due to a failure of our method, but resulted from biological or experimental reasons. One explanation could be the differentiation and thus post-mitotic state of the hematopoietic cells, but also a depletion of the medium. In addition, the high density of cells could lead to an arrest in population growth.
Plotting the growth curves in log scale (see Figure 4B) revealed three different phases of population dynamics. At the beginning of the experiment, the number of cells increased sub-exponentially. Between approximately 2 and 4.5 days a clearly exponential increase with an average doubling time of 10-12 hours was observed. The population stops to grow exponentially and reaches a plateau after ∼4.5 days.
Based on the cell counts resulting from our image processing method, we derived the population doubling time. Due to the high temporal resolution of ∼2.3 minutes between measurements, the population doubling time could be estimated by computing the difference of each time point and the time point where the cell number had doubled, respectively (see blue line in Figure 4C). The doubling time decreased from ∼40 hours and stabilized after day 2 until day 4 at around 10 to 12 hours.
To validate the estimated doubling times, we tracked 1600 cells manually using our in-house developed software TTT . As shown in Figure 4C, the cell cycle times of tracked cells that were born between 0 and 4.5 days (gray circles) show the same trend, decreasing from ∼20 hours to 9-11 hours in the exponential growth phase.
In this contribution, we described a fully automated method for processing of high-throughput bright field microscopy experiments, that relies on the combination of optimized image acquisition and a concatenation of image processing algorithms that identify cells in in a robust yet time efficient manner. Using the same parameter set for all images, we applied the method on a 6 day time-lapse movie of differentiating hematopoietic stem cells and achieved a cell detection accuracy of at least 82%, which outperformed a pipeline of algorithms available in CellProfiler. We demonstrated the application of the results generated by our method by computing population doubling times based on the increasing number of cells over the whole experiment in time and space. We compared the results to the cell cycle times of 1600 manually tracked cells and showed that the automatically derived doubling times coincided with the manually tracked cell cycle times.
The full data set of ∼315,000 images was processed within ∼72 hours. Note that this value was achieved by parallel computing on 150 cores of a computation grid. However, the code used in this work was not optimized for speed. Using implementations in C++ or Java that are optimized for fast computation, the processing time could be further improved. This would allow on-line processing of a time-lapse or high-content experiment during acquisition, which offers powerful options. For example, a researcher could check population doubling times, and thus cell health during a time-lapse experiment, or acquisition could be stopped automatically when a certain number of cells is reached in the experiment.
The robustness of our method relies on the out of focus acquisition of bright field images, which results in very well defined cell outlines but also in the loss of textural complexity for single cells. However, by acquiring an additional image with an optimally set focus in every interval, the quantification of morphological features such as shape and texture becomes feasible. Together with the high accuracy in cell detection of our method, this will support the development of automatic tracking approaches in time-lapse microscopy. For both time-lapse and high-content screening experiments, morphological quantification of millions of cells in one experiment allows the application of machine learning methods to classify, e.g., dying and surviving cells after drug treatment or the fate of differentiating stem cells.
Our pipeline will be improved and adapted in the future. A promising avenue is the extension of the MSER segmentation algorithm to include more cellular features, like eccentricity or size.
Another possible improvement in our pipeline is the splitting of clumped cells. Many methods have been developed in the past, e.g. ellipse fitting that is well suited to split nuclei or cells with round morphology . Unfortunately, the restrictive assumptions in this method do not allow more complex cell shapes that may emerge during a long-term movie of differentiating cells. We showed that our method performs well at the segmentation of hematopoietic stem and progenitor cells, which show round morphology. Still, the marker based watershedding we used is flexible enough to also cover more complex cell shapes that are appearing later in the differentiation process. Li et al. proposed a method based on gradient flow tracking and showed that it performs well on fluorescent images with hundreds of stained nuclei that are densely packed and are thus exhibiting different morphologies . Another approach could include the development of a robust and fast performing level set evolution method. This class of algorithms has already been shown to perform very well on complex cell shapes , however the computional complexity hinders an application in a high-throughput context. An approach that was already applied on high-throughput screens is to iteratively learn the different cell shapes of a given cell type or system in an experiment . Due to the modular structure of our method, the extension with algorithms that are able to split cells with a more complex morphology is easily possible. In the time-lapse experiment that was used in this work, these improvements could specifically enhance the cell detection accuracy for differentiated blood cells at the end of the experiment.
In summary, we believe that the high overall robustness in cell detection as well as the fast processing speed of our method will be of great service for the analysis of high-throughput microscopy experiments.
Femurs, tibiae and ilia of a healthy mouse strain on C57Bl/6 background with no discernible phenotype were removed from 14 weeks old mice and bone marrow was extracted. Cells were isolated by fluorescence activated cell sorting. According to the original publications, the fraction of true HSCs that are purified by this method is between 40%-60% [29, 30]. Directly after sorting, the cells were plated out on a plastic slide (μ-slide VI coated with Fibronectin, Integrated BioDiagnostics GmbH, Munich, Germany) with two physically separated wells in serum-free medium (StemSpan SFEM, StemCell Technologies) supplied with cytokines that only promote differentiation towards myeloid cells. All animal experiments were performed in compliance with the institutional guidelines of the Helmholtz Center Munich and the regulations of the State of Bavaria.
Due to the cameras limited field of view, both wells were subdivided into 33 overlapping tiles (fields of view). Each field of view corresponds to an image of 1388x1040 pixels that was saved in 8-bit png format. Imaging was conducted using a Cell Observer microscope (Zeiss) surrounded by an incubator to maintain a constant temperature of 37°C. Images were obtained using a 0.63x TV-adapter (Zeiss) and an AxioCam HRm camera (Zeiss), with a 10x fluar objective (Zeiss). Each field of view was imaged in intervals of ∼2.3 minutes for 6 days. Automatic focusing was achieved using a hardware autofocus (Zeiss) which was set to 18 μ m below the optimal focal plane to acquire slightly blurred images. The complete data set comprised a total of 315,942 images (4787 time points * 66 fields of view) and occupied ∼500 gigabytes of hard drive space.
To resolve differences in illumination across different fields of view and over time, all images were background corrected using an adapted version of the machine-learning based method developed by Schwarzfischer et al. . The method subdivides a given image I(x,t) with space coordinates x=(x1,x2) at time point t into overlapping tiles of equal dimensions (here: 30 x 30 pixels). For each tile the statistical moments of the intensity distribution are calculated. The tiles are then split into two groups by density-based clustering [31, 32]. The mean intensity of tiles classified as belonging to background are used as seed-points to inter- and extrapolate the full background image B(x,t). The corrected image was derived by dividing the raw image I(x,t) by B(x,t). Halos were corrected by setting all pixels that were brighter than the background to the background intensity.
Foreground objects were identified by Maximally Stable Extremal Regions (MSER) [23, 24]. The algorithm is a feature detector, originally designed to find informative regions in two images of the same scene which were taken under different conditions or arbitrary viewpoints. MSER achieves segmentation by thresholding, i.e. given a threshold τ, the method classifies each pixel in an image to belong to the foreground or background. By iterating over every possible discrete value for τ, a set of connected components is generated. Given that τ=0 would result in all pixels being regarded as background, the foreground regions will grow bigger the higher τ is set. The components that do not change over an interval Δ of different values for τ are regarded as stable extremal regions. An implementation with linear complexity is used that requires 4 parameters: minSize, the minimal size in pixels of a region to be regarded as foreground; maxSize, the maximal size in pixels of a region to be regarded as foreground; maxVariation, the maximal Variation inside a region according to the value of Δ. If the algorithm reported nested regions in an image, these regions were merged, resulting in a binary mask B W(x,t). Holes in foreground regions, i.e. background pixels with no connection to an image border, were filled. Note that in the used formulation, the MSER algorithm is only applicable for 8-bit images.
In a last processing step, foreground objects that were likely to represent mitotic cells or cell clumps were separated using a modified version of of marker based watershedding.
First, the raw input image I(x,t) was inverted resulting in local intensity maxima residing at cell centers. All local maxima were extracted to a binary mask BW max (x,t), which was done calculating the regional maxima of the Euclidean distance transform of the cell mask B W(x,t) (i.e. ultimate erosion as implemented in the MATLAB image processing toolbox). In a next step, the distance transform I dist (x,t) of the foreground mask B W(x,t) was computed. The final transformed image I transformed was derived by imposing BW max on I dist . Watershedding  was applied on I transformed , resulting in the mask of identified and split objects BW watershed .
To reduce over-segmentation, a rule-based split & merge procedure of small regions from CellProfiler 1.0 was applied . A list of adjacent neighbors for all objects in BW watershed that are likely to be over-segmented (i.e. very small objects with high eccentricity) was computed. For each neighbor the following criteria were evaluated: (i) For the pixels residing on the interface of the evaluated object and its neighbor, the likelihood to belong to the background or to the foreground was computed. Foreground and background were represented as Gaussian distributions, where mean and variance are derived from the image (i.e. pixels that were classified as foreground and background by the thresholding step). (ii) The eccentricity for the merged object was calculated. The evaluated object and its neighbor were merged if the interface pixels were more likely to belong to the foreground and if the merged object’s eccentricity was lower than an empirically determined value (here: 0.7).
For each identified object in BW split , its area in pixels and eccentricity were quantified. To clean the data set from objects that were unlikely to represent cells, foreground regions with size <50 pixels or eccentricity >0.99 were discarded. Both values were empirically determined based on randomly drawn images of the data set. In addition, all objects that were touching an image border were removed. The final mask of identified cells BW cells is the output of this method.
For the dataset that was used in this work, the method was initialized using the following parameter set (one setting for all images of the data set): background correction: t i l e d i m e n s i o n s = 30x30 px, overlap = 15 px, eps = 0.1, MinPts = 6; MSER thresholding: λ = 5, minSize = 30 px, maxSize = 4000 px, maxVariation = 1; clumped cell splitting: MaxEccentricity = 0.7, minSize = 30 px, maxSize = 1000. The data set was split into junks of 150*2489 images. All junks were processed in parallel on a node of a computation cluster.
We used CellProfiler version 2.0 (r11710)  and created a pipeline for automatic processing of the bright field images that we used in the manual evaluation. The following modules were sequentially called for each image: Correct Illumination (Gaussian filter, Average object size: 60 px), Apply threshold (Otsu global), Identify primary objects (Typical diameter of cells: 5 to 50, splitting method: Intensity, method to draw dividing lines: Shape), Convert objects to image (saved binary mask). Parameters were optimized according to a single image of the evaluation set of day 4.5. In the case of long-term time-lapse experiments the constant change of cell density and illumination, as well as the acquisition of different fields of view makes Otsu’s method the best choice out of the algorithms that are available in CellProfiler.
Manual quantification of segmentation results was done using the java based image processing tool ImageJ 1.47K with the plugin CellCounter .
Implementation and parallelization
All methods were implemented using MATLAB version 18.104.22.1683 (R2012b) with the additional packages image processing toolbox 8.1 and statistics toolbox 8.1. If MATLAB code was available for the cited methods, this code was used. For MSER thresholding, a C++ implementation with linear time complexity was used. To speed up computation times, the data set was split into junks of images and processed on a computation cluster (sun grid engine version 6.2u5). The average node architecture was equal to an Intel Xeon 2GHz, 4GB RAM running a 64bit linux-based operating system.
The code of our pipeline is available as Additional file 1.
Zanella F, Lorens JB, Link W: High content screening: seeing is believing. Trends Biotechnol. 2010, 28 (5): 237-45. 10.1016/j.tibtech.2010.02.005. [http://dx.doi.org/10.1016/j.tibtech.2010.02.005]
Bickle M: The beautiful cell: high-content screening in drug discovery. Anal Bioanal Chem. 2010, 398: 219-26. 10.1007/s00216-010-3788-3. [http://www.ncbi.nlm.nih.gov/pubmed/20577725]
Eilken HM, Nishikawa S, Schroeder T: Continuous single-cell imaging of blood generation from haemogenic endothelium. Nature. 2009, 457 (7231): 896-900. 10.1038/nature07760. [http://dx.doi.org/10.1038/nature07760]
Schroeder T: Hematopoietic stem cell heterogeneity: subtypes, not unpredictable behavior. Cell Stem Cell. 2010, 6 (3): 203-207. 10.1016/j.stem.2010.02.006. [http://www.sciencedirect.com/science/article/pii/S1934590910000500]
Schroeder T: Long-term single-cell imaging of mammalian stem cells. Nat Methods. 2011, 8 (4 Suppl): S30-S35. [http://dx.doi.org/10.1038/nmeth.1577]
Costa MR, Ortega F, Brill MS, Beckervordersandforth R, Petrone C, Schroeder T, Götz M, Berninger B: Continuous live imaging of adult neural stem cell division and lineage progression in vitro. Dev (Cambridge, England). 2011, 138 (6): 1057-68. 10.1242/dev.061663. [http://dev.biologists.org/cgi/content/abstract/138/6/1057]
Rieger MA, Hoppe PS, Smejkal BM, Eitelhuber AC, Schroeder T: Hematopoietic cytokines can instruct lineage choice. Science. 2009, 325 (5937): 217-218. 10.1126/science.1171461. [http://dx.doi.org/10.1126/science.1171461]
Schroeder T: Imaging stem-cell-driven regeneration in mammals. Nature. 2008, 453 (7193): 345-351. 10.1038/nature07043. [http://dx.doi.org/10.1038/nature07043]
Fenistein D, Lenseigne B, Christophe T, Brodin P, Genovesio A: A fast, fully automated cell segmentation algorithm for high-throughput and high-content screening. Cytom Part A : J Int Soc Anal Cytol. 2008, 73 (10): 958-64. [http://www.ncbi.nlm.nih.gov/pubmed/18752283]
Knapp B, Rebhan I, Kumar A, Matula P, Kiani NA, Binder M, Erfle H, Rohr K, Eils R, Bartenschlager R, Kaderali L: Normalizing for individual cell population context in the analysis of high-content cellular screens. BMC Bioinformatics. 2011, 12: 485-10.1186/1471-2105-12-485. [http://www.biomedcentral.com/1471-2105/12/485]
Carpenter AE, Jones TR, Lamprecht MR, Clarke C, Kang IH, Friman O, Guertin DA, Chang JH, Lindquist RA, Moffat J, Golland P, Sabatini DM: CellProfiler: image analysis software for identifying and quantifying cell phenotypes. Genome Biol. 2006, 7 (10): R100-10.1186/gb-2006-7-10-r100. [http://dx.doi.org/10.1186/gb-2006-7-10-r100]
Cohen AR, Gomes FLAF, Roysam B, Cayouette M: Computational prediction of neural progenitor cell fates. Nat Methods. 2010, 7 (3): 213-218. 10.1038/nmeth.1424. [http://dx.doi.org/10.1038/nmeth.1424]
Scherf N, Herberg M, Thierbach K, Zerjatke T, Kalkan T, Humphreys P, Smith A, Glauche I, Roeder I: Imaging, quantification and visualization of spatio-temporal patterning in mESC colonies under different culture conditions. Bioinformatics (Oxford, England). 2012, 28 (18): i556-i561. 10.1093/bioinformatics/bts404. [http://bioinformatics.oxfordjournals.org/content/28/18/i556.full]
Wählby C, Kamentsky L, Liu ZH, Riklin-Raviv T, Conery AL, O’Rourke EJ, Sokolnicki KL, Visvikis O, Ljosa V, Irazoqui JE, Golland P, Ruvkun G, Ausubel FM, Carpenter AE: An image analysis toolbox for high-throughput C elegans assays. Nature Methods. 2012, 9 (7): 714-716. 10.1038/nmeth.1984. [http://dx.doi.org/10.1038/nmeth.1984]
Adiga U, Taylor D, Bell B, Ponomareva L, Kanzlemar S, Kramer R, Saldanha R, Nelson S, Lamkin TJ: Automated analysis and classification of infected macrophages using bright-field amplitude contrast data. J Biomol Screen. 2012, 17 (3): 401-408. 10.1177/1087057111426902. [http://www.ncbi.nlm.nih.gov/pubmed/22058111]
Tse S, Bradbury L, Wan JW, Djambazian H, Sladek R, Hudson T: A combined watershed and level set method for segmentation of brightfield cell images. Proceedings of SPIE, Volume. 7259, SPIE; 2009:72593G-72593G-10, [http://adsabs.harvard.edu/abs/2009SPIE.7259E.117T], ,
Li C, Xu C, Gui C, Fox MD: Distance regularized level set evolution and its application to image segmentation. IEEE Trans Image Process: Publication of the IEEE Signal Processing Soc. 2010, 19 (12): 3243-3254. [http://ieeexplore.ieee.org/xpl/freeabs_all.jsp?arnumber=5557813]
Ambühl ME, Brepsant C, Meister JJ, Verkhovsky AB, Sbalzarini IF: High-resolution cell outline segmentation and tracking from phase-contrast microscopy images. J Microsc. 2011, [http://www.ncbi.nlm.nih.gov/pubmed/21999192]
Ali R, Gooding M, Szilágyi T, Vojnovic B, Christlieb M, Brady M: Automatic segmentation of adherent biological cell boundaries and nuclei from brightfield microscopy images. Mach Vision and Appl. 2011, 23 (4): 607-621. [http://www.springerlink.com/index/10.1007/s00138-011-0337-9]
Reddy GPV, Tiarks CY, Pang L, Wuu J, Hsieh CC, Quesenberry PJ: Cell cycle analysis and synchronization of pluripotent hematopoietic progenitor stem cells. Blood. 1997, 90 (6): 2293-2299. [http://bloodjournal.hematologylibrary.org/content/90/6/2293.long]
Selinummi J, Ruusuvuori P, Podolsky I, Ozinsky A, Gold E, Yli-Harja O, Aderem A, Shmulevich I: Bright field microscopy as an alternative to whole cell fluorescence in automated analysis of macrophage images. PloS one. 2009, 4 (10): e7497-10.1371/journal.pone.0007497. [http://www.pubmedcentral.nih.gov/articlerender.fcgi?artid=2760782&tool=pmcentrez&rendertype=abstract]
Schwarzfischer M, Marr C, Krumsiek J, Hoppe P, Schroeder T, Theis F: Efficient fluorescence image normalization for time lapse movies. Proc. Microscopic Image Analysis with Applications in Biology,. 2011, Heidelberg, Germany, 5-5. [http://www.miaab.org/miaab-2011-heidelberg-papers.html]
Matas J, Chum O, Urban M, Pajdla T: Robust wide-baseline stereo from maximally stable extremal regions. Image and Vision Comput. 2004, 22 (10): 761-767. 10.1016/j.imavis.2004.02.006. [http://www.sciencedirect.com/science/article/pii/S0262885604000435]
Nistér D Stewénius: Linear Time Maximally Stable Extremal Regions. 08 Proceedings of the 10th European Conference on Computer Vision: Part II, Volume. Edited by: Zisserman A, Torr P, Forsyth D, Forsyth D, Torr P, Zisserman A. 5303, Berlin, Heidelberg: Springer Berlin Heidelberg; 2008:183-196, [http://dl.acm.org/citation.cfm?id=1479250.1479267], of Lecture Notes in Computer Science
Orkin SH, Zon LI: Hematopoiesis: an evolving paradigm for stem cell biology. Cell. 2008, 132 (4): 631-644. 10.1016/j.cell.2008.01.025. [http://dx.doi.org/10.1016/j.cell.2008.01.025]
Bai X, Sun C, Zhou F: Splitting touching cells based on concave points and ellipse fitting. Pattern Recognit. 2009, 42 (11): 2434-2446. 10.1016/j.patcog.2009.04.003. [http://dx.doi.org/10.1016/j.patcog.2009.04.003]
Li G, Liu T, Nie J, Guo L, Chen J, Zhu J, Xia W, Mara A, Holley S, Wong STC: Segmentation of touching cell nuclei using gradient flow tracking. J Microsc. 2008, 231 (Pt 1): 47-58. [http://www.ncbi.nlm.nih.gov/pubmed/18638189]
Jones TR, Carpenter AE, Lamprecht MR, Moffat J, Silver SJ, Grenier JK, Castoreno AB, Eggert US, Root DE, Golland P, Sabatini DM: Scoring diverse cellular morphologies in image-based screens with iterative feedback and machine learning. Proc Nat Acad Sci USA. 2009, 106 (6): 1826-1831. 10.1073/pnas.0808843106. [http://www.pnas.org/content/106/6/1826.long]
Kiel MJ, Yilmaz OH, Iwashita T, Yilmaz OH, Terhorst C, Morrison SJ: SLAM family receptors distinguish hematopoietic stem and progenitor cells and reveal endothelial niches for stem cells. Cell. 2005, 121 (7):
Osawa M, Hamada H, Nakauchi H, Hanada Ki: Long-term lymphohematopoietic reconstitution by a single CD34-Low/Negative hematopoietic stem cell. Science. 1996, 273 (5272): 242-245. 10.1126/science.273.5272.242. [http://www.sciencemag.org/cgi/doi/10.1126/science.273.5272.242]
Ester M, Kriegel HP, Sander J, Xu X: A density-based algorithm for discovering clusters in large spatial databases with noise. Proceedings of the Second International Conference on Knowledge Discovery and Data Mining (KDD-96), Volume 1996. 1996, Portland, Oregon, USA: AAAI Press, 226-231.
Daszykowski M, Walczak B, Massart D: Looking for natural patterns in data. Chemometrics and Intell Lab Syst. 2001, 56 (2): 83-92. 10.1016/S0169-7439(01)00111-3. [http://www.sciencedirect.com/science/article/pii/S0169743901001113]
Meyer F: Topographic distance and watershed lines. Signal Process. 1994, 38: 113-125. 10.1016/0165-1684(94)90060-4. [http://dx.doi.org/10.1016/0165-1684(94)90060-4]
Abramoff MD, Magalhaes PJ, Ram SJ: Image processing with ImageJ. Biophotonics Int. 2004, 11 (7): 36-43.
This work was supported by the Helmholtz Alliance on Systems Biology (project 'CoReNe’), the European Research Council (starting grant 'LatentCauses’), the German Research Foundation DFG (SPP 1356 'Pluripotency and Cellular Reprogramming’ and SPP 1395 'InKoMBio’) and the Bavarian Research Network for Molecular Biosystems (BioSysNet). The authors would like to thank Max Endele for the help in image acquisition. Michael Strasser, Florian Buettner, Jan Hasenauer, Diana Mateus and Sebastian Poelsterl gave useful advices during the preparation of this manuscript.
The authors declare that they have no competing interests.
FB developed the method and conducted the analyses. FB and CM wrote the manuscript. PH conducted the time-lapse experiment and manual tracking. MS contributed the implementation for background correction. OH contributed the MSER implementation. CM, TS and FT designed and supervised the study. All authors read and approved the final manuscript.
Electronic supplementary material
Authors’ original submitted files for images
Below are the links to the authors’ original submitted files for images.
About this article
Cite this article
Buggenthin, F., Marr, C., Schwarzfischer, M. et al. An automatic method for robust and fast cell detection in bright field images from high-throughput microscopy. BMC Bioinformatics 14, 297 (2013). https://doi.org/10.1186/1471-2105-14-297
- Bright Field
- Bright Field Image
- Cell Detection
- Foreground Object
- Population Doubling Time