When Deep Learning Meets Cell Image Synthesis.
Deep learning methods developed by the computer vision community are successfully being adapted for use in biomedical image analysis and synthesis applications with some delay. Also in cell image synthesis, we can observe significant improvements in the quality of generated results brought about by deep learning. The typical task is to generate isolated cell images based on training image examples with cropped, centered, and aligned individual cells. While the first trials to use generative adversarial networks (GANs) without any object detection or segmentation had limited capabilities, the recent article by Scalbert et al. 1 has shown that significant improvement can be obtained by splitting the task into (1) learning and generating object (cell and/or nuclei) shapes based on image segmentation, and (2) learning and generating the texture separately for each segment type including the background using so-called style transfer. The first attempts to generate synthetic cell images date back to the late 1990s and the quality of the artificially created image data has been improving ever since 2. Initially, simple shapes like spheres, ellipsoids, curved discs, or bananas were used in combination with simple textures like homogenous color or Perlin noise. Later on, more realistic shapes and textures appeared that were hard to distinguish from real ones not only visually but also based on their mathematical characteristics such as histogram properties, entropy, or central moments. The basic problem that researchers have been trying to tackle has remained the same—they have been mostly developing methods to generate an artificial cropped image of just one static isolated cell centered in the field of view, often also aligned in some way with one of the axes. The focus has initially been on single-channel gray-scale 2D cell images while, later on, extensions to more dimensions have been added, namely support for multiple channels, 3D or even time-lapse virtual cell imaging. Some authors have also tried to work at different scales modeling either individual cell components (organelles) in more detail or, vice versa, generating whole cell populations or tissues at low resolution 2. The development of cell image synthesis methods has been driven by two main application areas: benchmarking (i.e., testing) cell image analysis algorithms and data augmentation for training machine learning methods. For both purposes, synthetic data are easy to obtain in any quantities and are accompanied by inherent ground truth, which is in contrast to real data sets, for which acquisition is expensive and each expert produces a different annotation. Moreover, for benchmarking image restoration methods, synthetic data are the only option because no expert can create the original image from a blurred and noisy one. However, in spite of all the progress that has been made in the past two decades, not all properties of synthetic data match the real world. Consequently, benchmarking results differ between real and synthetic data, which is usually solved by using both these data types in cell image analysis benchmarks and competitions 3. In principle, there are two approaches to cell image synthesis: “handcrafted” parametric models and learning-based generative models 2. The former ones use the human mind to convert available knowledge on cell morphology into a plausible model while the latter let the computer learn how cells of certain type should look like. In both cases, we can distinguish different depth of modeling corresponding to different levels of detail (see Table 1). For parametric models (Table 1, first column), it is naturally not possible to generate the whole image without thinking about objects. Hence, at least cell or nucleus shapes are modeled using smooth surfaces obtained, for example, by random deformations of basic shapes like circles, ellipses, or smoothed polygons in 2D and spheres or ellipsoids in 3D 6, 7. The most common texture applied inside these shapes has probably been the Perlin noise 6, 7 but also, for instance, wavelet-based textures have been tried out 11. Attempts have been made to go into finer details by generating, for example, individual chromosomes within cell nucleus 13. For learning-based models (Table 1, second and third column), synthetic images are generated from real image data. The simplest way is to generate the synthetic image data from the real one using some type of geometrical transform (linear or nonlinear), which is often used in data augmentation techniques. Furthermore, it is possible to generate the whole synthetic image after training without distinguishing any regions using generative adversarial networks (GANs) 4, 5 but this approach requires a large amount of training data, works slowly even in 2D (no paper in 3D so far) and does not offer inherent ground truth, which makes it impractical for both benchmarking and data augmentation purposes. Hence, cell or nucleus (or both) regions are usually distinguished in the training as well as the generated image data and the model tries to learn the cell or nucleus shapes. To this end, each possible shape is represented in a multidimensional latent space (i.e., shape space) where each dimension represents certain important learned shape attribute that might be interpretable (e.g., elongatedness in a certain direction) but not always. Each shape corresponds to a point in this shape space and new shapes can be obtained by simply moving within this space, that is, actually interpolating existing shapes. There are plenty of methods capable of shape learning and synthesis ranging from traditional ones like component analysis or diffeomorphic modeling to deep autoencoders 8. Recently, also GANs have been used for this purpose even in 3D 10. In contrary to shape learning, much less attention has been paid to the texture learning and synthesis. Cells, nuclei, and background have often been just filled with homogenous color or with suitably interleaved patches of texture copied from the respective regions of training images 12. This gap has been filled by Scalbert et al. in their recent paper 1 where the authors have used deep learning to generate texture similar to given examples (see the next section). Finally, learning sizes or distributions of cell components have also been tried out for some object types like mitochondria 9 but this research direction is still waiting for proper exploration. The recent paper by Scalbert et al. 1 proposes to generate cell and nucleus textures using so-called style transfer, which is a term used in the computer vision community to denote generating texture for a particular image region based on example textures from some semantically segmented training images. One of the methods for style transfer based on so-called neural patches was published by Champandard 14 who demonstrated a very realistic transfer of texture from semantically segmented source image to the destination doodle image (see Fig. 1). This method was adapted by Scalbert et al. to cell image synthesis. The authors use the Fourier shape descriptors method formerly utilized by Malm et al. 12 for learning cell and nucleus shapes and then apply the Champandard method of style transfer separately for the regions of nuclei, cytoplasm, and background (see Table 1, last column, third row). The training images (subimage, Column 1) were semantically segmented into background, cytoplasm, and nuclei (subimage, Column 2). The shapes of cells and nuclei were learned and new shapes generated (subimage, Column 3). Finally, textures were learned and transferred for each region type separately (subimage, Column 4). Different cell types and imaging modes have been tried out (subimage, different rows). The cell generation based on the described approach has been tested for 2D isolated cells cropped and centered within the field of view. The plausibility of the results has been checked visually as well as using selected geometrical, color, and texture descriptors. The Python code for the cell segmentation mask generator and the doodle-style transfer method are available at gitlab.com 1. The scripts are easy to launch and they work also on any other single 2D input cell image, for which a mask with nuclear and cellular regions is prepared. The main limitation of the scripts is runtime; the example images supplied by the authors are approximately 100 × 100 pixels large and it takes several minutes on a common computer to generate one synthetic image of the same size. Another limitation is that the method works well for blurred (low optical resolution) textures, like those used by the authors, but is not applicable to textures containing high spatial frequency information like fibers—it produces blurred output with the repetition of certain artificial patterns not present in the input. In spite of these limitations, the pioneering work on using deep learning in cell texture synthesis has demonstrated the feasibility of style transfers for cells and nuclei. The obtained synthetic data look realistic, at least for low-resolution textures. Nevertheless, the usefulness of such data for benchmarking or data augmentation purposes is still to be shown. Also, the extension of the approach from 2D into 3D would be desirable but would require a substantial speed-up. If finer details need to be simulated, then the modeling of specific cell components could be used together with the texture transfer separately for these specific components and cellular space in between them. In addition to the static isolated cell synthesis, there is still a lot of room for the exploration of approaches to learning and generation of temporal patterns of cell changes as well as spatial patterns of multiple cell arrangement. Both these patterns have already been tackled using parametric models 2, 13 but remain too complex for learning-based models, which might, however, change soon. The author would like to thank David Svoboda for the helpful feedback on the first draft of this manuscript and Cem Emre Akbaş for the technical help while testing the software.
Read more