The nematode Caenorhabditis elegans is a well-known model organism used to investigate fundamental questions in biology. Motility assays of this small roundworm are designed to study the relationships between genes and behavior. Commonly, motility analysis is used to classify nematode movements and characterize them quantitatively. Over the past years, C. elegans’ motility has been studied across a wide range of environments, including crawling on substrates, swimming in fluids, and locomoting through microfluidic substrates. However, each environment often requires customized image processing tools relying on heuristic parameter tuning. In the present study, we propose a novel Multi-Environment Model Estimation (MEME) framework for automated image segmentation that is versatile across various environments. The MEME platform is constructed around the concept of Mixture of Gaussian (MOG) models, where statistical models for both the background environment and the nematode appearance are explicitly learned and used to accurately segment a target nematode. Our method is designed to simplify the burden often imposed on users; here, only a single image which includes a nematode in its environment must be provided for model learning. In addition, our platform enables the extraction of nematode ‘skeletons’ for straightforward motility quantification. We test our algorithm on various locomotive environments and compare performances with an intensity-based thresholding method. Overall, MEME outperforms the threshold-based approach for the overwhelming majority of cases examined. Ultimately, MEME provides researchers with an attractive platform for C. elegans’ segmentation and ‘skeletonizing’ across a wide range of motility assays.
Since its introduction in the laboratory over thirty years ago , the nematode Caenorhabditis elegans has become a ubiquitous model organism to study fundamental questions in biology . In particular, C. elegans is now widely used as a platform for drug screening and development [31, 25], as well as for modeling various aspects of human diseases [8, 43]. In the quest to understand the relationships between genes and behavior, this small, approximately 1 mm long roundworm offers a number of advantages for laboratory applications. These include a short life cycle, the availability of many mutants to explore gene functions, knowledge of its complete cell lineage [45, 46], simplicity of the nervous system and its wiring , and a fully sequenced genome .
A widespread strategy to investigate the genetic basis of behavior is to classify nematode movements and characterize them quantitatively. Traditionally, motility quantification has been based on crawling assays [27, 36, 35, 51], where C. elegans is observed to crawl on a substrate (e.g. agar plate). This is shown for example in Fig. 1(a). In the recent past, however, the number of environments used for nematode motility assays has vastly expanded. Studies of C. elegans’ motility behavior now include various swimming assays [3, 28, 19, 35, 47, 48], as shown in Fig. 1(b)-(d) and (g). In parallel, with the widespread availability of microfabrication techniques, nematode motility assays are increasingly conducted in microfluidic environments [9, 32, 33, 37]. An example of such environments is shown in Fig. 1(e) and (f). This latter platform has become particularly attractive for high-throughput drug screening applications [40, 42]. Overall, with the growing variations in environments used for nematode behavioral assays, users are in need of reliable image analysis tools capable of extracting quantitative data across a wide spectrum of experimental mediums.
The analysis of motility behavior has traditionally relied on qualitative observations to describe C. elegans’ locomotion and discriminate between wild-type and mutant nematodes. In many instances, however, qualitative variations between strains are not apparent to the trained eye (as in ). Such limitations have sprouted the development of automated image analysis systems in an effort to deliver relevant phenotypic differences between nematode strains [1, 6, 7, 11, 14, 18, 21, 22, 20, 53]
. While the bulk of the research effort has been directed at analyzing locomotive traits of individual nematodes, some multi-worm tracking and feature extraction systems have also been developed[38, 41, 52]. Yet, the majority of state-of-the-art image analysis systems are designed for a specific environment, most commonly crawling [1, 11, 18, 14, 21, 22, 38] or swimming assays [7, 52]. These systems induce a tradeoff between either limiting the range of possible assays a researcher will investigate for motility analysis or customizing segmentation parameter selection across varying environments. However, an optimal system for the user is one which ideally bypasses such compromise.
Current image analysis systems provide users with morphological and locomotion features to quantify behavioral phenotypes of C. elegans. Such features include amongst other nematode speed [38, 53], wavelength and frequency of body undulations [7, 11], body curvature [1, 14], and omega bends ; several of which make use of nematode centerline data, also known as ‘skeletons’. In practice, features are extracted from binary images, or segmentations, separating the nematode from its environment, or background. Several analysis systems compute binary images by applying a simple intensity-based threshold at each pixel location [17, 14, 11, 20, 53, 23]. Most commonly, this involves having the user manually select an appropriate range of intensities which characterizes the nematode. A variation to this approach has been the use of an adaptive threshold where nematode intensities, or appearance, are assumed to significantly differ from the average background intensities [22, 21, 1]. While these methods have shown promising capabilities, the range of environments for which they can be used for is in fact limited. This limitation is illustrated in Fig. 2 where the pixel intensity distributions of the nematode and background are respectively plotted for the environments shown in Fig. 1
. Here, distributions are assumed to be Gaussian and parametrized with the mean and standard deviation of pixel intensities. In none of the cases shown can a single threshold separate any pair of distributions without causing significant errors (Fig.2). While threshold-based techniques can still be used to compute accurate segmentations, this requires significant effort on the user-end to adjust appropriate threshold values along with other noise canceling schemes (e.g. median filters, morphological operators, background subtraction, etc.). Altogether, this tedious process makes thresholding ill-suited for applications in complex background environments.
More recently, alternative approaches to thresholding techniques have been pursued. For example, the work of Stauffer and Grimson  has been applied to the problem of nematode segmentation [41, 52]. Here, the idea is to systematically learn how background pixels are individually distributed and use this information to segment the nematode. The learning process is done using a set of training images to statistically model the appearance of the background. Namely, each pixel is modeled by means of a Mixture of Gaussians (MOG), where the parameters of the model are learned from the training image set. This approach has been recently shown to provide excellent results for nematode segmentation [41, 52] as well as for other applications [44, 34, 50]. A major drawback, however, of modeling pixels with MOGs is that many parameters must be learned; this requires a large set of nematode-free training images. This condition largely prohibits extracting nematode segmentations from arbitrary sequences (e.g. open-access material).
In the present study, we propose a novel framework for image analysis of C. elegans that is versatile across a wide range of environments. Moreover, our system is designed to greatly simplify the burden imposed on the user end; only a single image from a sequence which includes a nematode in its environment must be provided. From this input, models for both the background and the nematode appearance are individually learned using MOGs (see Methods). These models are then applied to segment the nematode in subsequent images. Next, we provide an original algorithm for extracting nematode skeletons for applications to C. elegans’ behavioral assays. Nematode segmentation and skeletonizing algorithms have been packaged together in a software for straightforward use by a broad range of researchers. We test our image analysis system on representative locomotive environments (Fig. 1) and compare performances with a state-of-the-art thresholding method (see Results). Finally, we illustrate some examples of motility metrics (e.g. body curvature) which are commonly sought from nematode skeleton data (see Discussion). We discuss future directions for algorithmic improvement (e.g. multi-worm tracking) as well as new directions for potential applications (e.g. cell tracking).
The Multi-Environment Model Estimation (MEME) framework consists of two sequential stages. As a first step, (i) the user provides information, allowing a model for the nematode and the background environment to be learned. In the second stage, (ii) the nematode and background models are used to segment the nematode and then extract its skeleton for a sequence of images. In stage (i), the user is required to input a hand-segmentation of the nematode and its corresponding width for a single image (see Supplementary Video S1). This approach can be viewed as a form of “One Shot Learning” [15, 13], where model learning occurs only once, from a single labeled example. A flowchart of the MEME framework is schematically shown in Fig. 3.
We briefly introduce the notation used throughout the article. We define the sequence of images provided by the user as for discrete time steps, where at each time step , ; and are the width and height of each image, respectively. We denote the user provided data () as a triple , where is an image from , is the nematode body segmentation and is the nematode width (Fig. 3). We specify the intensity models derived from as for the worm and for the background. For any given image included in , we define the computed segmentation of the nematode as and the list of ordered pixel coordinates describing the nematode skeleton as .
Our first step is to provide an automatic mechanism to compute accurate nematode segmentations for a single target using a static camera (as in [41, 52]). To do this, we build on the idea of using Mixtures of Gaussians (MOG) [44, 34, 50]
to construct accurate and robust appearance models for the background and the nematode. As it is often the case for MOG methods, each pixel in an image is treated as a random variable which can be modeled by summing
weighted Gaussian distributions. This can be formally written as
where is a pixel intensity value, and are respectively the weight, mean and covariance of the th Gaussian distribution
. These parameters are usually estimated by means of an Expectation-Maximization (EM) algorithm. The intuition behind this model is that each individual Gaussian represents the appearance a particular pixel may take. Therefore, combining each Gaussian provides a way to model complex pixel observations. Typically, doing this over all pixels in an image is an effective way to model background scenes [44, 34, 50].
A consequence of this approach is that the number of MOGs used is considerable (i.e. the total number of pixels in an image) and the number of parameters required is very large . In turn, a substantial number of images is needed to estimate the MOG parameters accurately as each image only provides a single sample for each MOG (see  for more details). Moreover, the entire background scene must be visible when attempting to estimate these parameters, since each image is used to model the background and not the nematode. This latter condition becomes problematic when image sequences always contain a nematode in the field of view (e.g. Supplementary Videos available in references [3, 32, 35]).
To avoid such drawbacks, we choose instead to model the nematode appearance () in addition to the background model () by means of MOGs. To learn the parameters of , we use the information gathered from the user. Namely, provides the pixel region of containing the nematode as delineated by the user (Fig. 4a). From this region, we randomly select pixel locations and extract image patches from
around each location. These patches are then vectorized and treated as independent samples. We denote this feature extract process as, where we select a patch around pixels for any given image . Notice that when , this reduces to sampling the selected pixels only; Fig. 4(b) shows the histogram of intensities for the case . In general, applying this transformation allows for modeling intensities with respect to image patches, as this approach carries more information than individual and independent pixels. Computing an appropriate value for is done by using a linear model (i.e. , where and are constants). The samples extracted are then used to estimate the parameters of by using the EM algorithm. Figure 4(d) illustrates a visual representation of the estimated MOGs of for and .
Next, modeling of the background () is done by partitioning the image () into distinct and non-overlapping cells, , as shown in Fig. 4(c). Each cell () is then treated as a random variable and modeled with its own independent MOG. Hence, , where each pixel in is associated with a unique ; in our implementation, we choose . The parameters of each are computed from extracted samples in the partition . Similarly to building the nematode model, samples are pixel patches from , which have been vectorized. Examples of intensity distributions for two arbitrary cells (Fig. 4c) are displayed in Fig. 4(b) along with their corresponding MOG representations in Fig. 4(d). Two consequences arise from such partitioning. First, only a total of parameters need to be estimated, as opposed to . Secondly, a single image is sufficient to estimate these parameters, as background regions covered by the nematode can still be modeled by neighboring pixels in a cell. This reduces the number of training images required and relaxes the constraint that training images must only contain background pixels. Note that when a cell is reduced to a single pixel (), is similar to the model described in [41, 52]. Alternatively, when a cell corresponds to the entire image (), is similar to models typically used by thresholding techniques [22, 21, 1].
Nematode segmentation for image can then be computed at each pixel , belonging to cell , as
The procedure above allows one to compute the nematode segmentation for a given image , where in our system. Notice that using the ratio of MOGs (see Eq. (3)) is an effective way to avoid any form of thresholding. This is due to the fact that both and are explicitly modeled. Finally, opening and closing morphological operations are used to smooth nematode segmentations.
Over the years, a large number of methods have been used to extract skeletons from segmented nematodes. Methods have ranged from using specific nematode models [41, 22], to heuristically constructing the nematode’s medial axis [41, 20, 1, 23, 21]. While these various methods have shown success, they are generally influenced by the quality of the segmentation. In an attempt to reduce sensitivity to segmentation noise, we propose an original algorithm which balances geometric features (i.e. nematode boundary) and global shape (i.e. nematode undulating posture) in a seamless framework. The proposed method has the advantage of being intuitive and simple to implement.
We cast our problem once again in a probabilistic manner such that the nematode skeleton () is considered to be a sequence of discrete unknown skeleton pixel locations (), where each location is a point on the skeleton and must be determined. It is assumed here that either the head or tail pixel location () is initially known; determining is then viewed as a sequential Bayesian estimation problem [26, 24, 49]. Given the initial position , we infer the location of the next point () by observing the likelihood of potential locations (e.g. the likelihood of a pixel being ) as well as the history of directions between subsequent pairs of points (e.g. from to ). The ‘skeleton’ algorithm is iterative such that a new location along is inferred at each iteration step (). To infer all points in , this process is simply repeated.
First, the input of our algorithm is the segmentation of the nematode for a given image (). A skeleton pixel location is defined as , where and are pixel locations in . Let be a discrete random vector describing the direction from to , such that . This corresponds to being one pixel away from . Let
be the corresponding probability distribution ofat iteration step . As more skeleton pixels are inferred, the distribution will evolve. Initially this distribution is uniform, as no prior information between and is known. The initial position () is found by using maximal response locations when running a coarse corner detector on . Selecting the following point on the skeleton can then be computed by maximizing the Maximum a Posteriori (MAP) estimator,
where is the likelihood that direction leads to the next skeleton point and is modeled by
Here, is the distance computed when applying the Chamfer distance transform [2, 16] to . This transformation computes the Euclidean distance of each pixel in to its closest nematode boundary pixel. An example of this distance transform is shown in the contour plot of Fig. 5. Here, the boundary of the nematode has a distance of zero, while values of increase steadily for pixels approaching the medial axis of the nematode. Equation (4) then implies that skeleton locations are picked by (i) weighing how likely pixels are to be at the center of the segmented nematode, combined with (ii) the history of the chosen vector directions. This strategy is particularly useful in cases where the segmentation is noisy, as the history of vector directions guides where the following pixel location should be located. In order to remove the possibility of selecting the same pixel several times, is removed from possible future locations by setting .
Once is determined, the distribution must be updated for the following iteration. Using Bayes rules, is computed for by
where is a normalization constant.
Inferring for a given image then consists in the following algorithm. First, is given at iteration step . Three steps are then repeated: (i) compute the next skeleton location from Eq. (4); (ii) update the distribution of from Eq. (6); and finally (iii) increment the iteration step. These operations are repeated until a point on the boundary is encountered (i.e. ). An example of the resulting (skeleton) is shown in the inset of Fig. 5.
We aim at providing a versatile nematode segmentation framework with performances comparable to, or better than, state-of-the-art image analysis systems [17, 14, 11, 20, 53, 23, 22, 21, 1]. To compare the MEME framework against such systems, we evaluate our algorithm quantitatively for a series of image sequences obtained for various C. elegans locomotive environments. The sequences include one or more data sets for behavioral assays such as (i) crawling on substrates (Supplementary Video S2 and S3), (ii) swimming in a drop (Supplementary Video S4), (iii) swimming in shallow acrylic channels (Supplementary Video S5), (iv) locomotion in a gelatin-based solution (Supplementary Video S6), and (v) locomotion in a microfluidic substrate (Supplementary Video S7). A total of 13 image sequences are investigated (see Supplementary Table S1 for complete listing and data source). In each sequence, the target nematode is present in all images. The MEME framework is implemented using Matlab; computing the nematode segmentation and skeleton for a pixel size image requires approximately 1 second on a standard PC (i.e. 2.0 Ghz).
The state-of-the-art method of choice for comparison with MEME is an in-house developed thresholding algorithm [47, 48], similar to standard intensity-based threshold approaches [17, 14, 11, 20, 53]. To perform a fair comparison between MEME and the thresholding framework, both methods are initially provided with a single image to tune their respective parameters. As described for MEME (see Methods), the user selects from the initial image (i) the nematode region and (ii) the nematode width (Supplementary Video S1). For the threshold-based method, all images of a sequence are first used to compute a background image of the environment by pixel averaging. Background subtraction is then applied to each image. Next, several thresholds are used to prune the remaining background pixels. These are manually selected by optimizing segmentation results on the initial image (Supplementary Table S1). Finally, opening and closing morphological operators are used to smooth and discard final background regions. Note that in the case where the number of images in the sequence is small, background subtraction is omitted and only threshold intensities are used.
In order to quantitatively evaluate any segmentation algorithm, results must be compared to a ground truth . For the present purpose, the ground truth is set as the true, or optimal, nematode segmentation provided by an expert. Hence, we manually segment a small set of images ( - 40) from each sequence (e.g. Fig. 6, second row) and compare the performance of each algorithm to this image sub-set. Determining such ground truth allows for a precise definition of correct and incorrect pixel classification.
The performance of a segmentation algorithm can be evaluated by measuring two distinct metrics : (i) the surface error and (ii) the nematode yield. The former quantity computes the proportion of pixels which are misclassified by the algorithm over the entire image. This metric is mathematically defined as
where is a pixel location and is the ground truth image for . Hence, attributes equivalent weight to errors on the background and the nematode regions. The nematode yield, however, only computes the proportion of the nematode region which is correctly segmented. Consequently, misclassified pixels belonging to the background have no impact on the nematode yield. This metric is defined as
where is the set of pixels which satisfy . Together, and provide a quantitative and reliable measure of segmentation performance .
Qualitative segmentation results are shown for a selection of motility environments in Fig. 6 as well as in the Supplementary Videos S2 to S7. In general, the MEME method is capable of segmenting nematodes at least as well as the thresholding method. For the “Crawl”, “Drop”, and “Channel” environments (first three columns, Fig. 6), both methods yield qualitatively similar results. Here, the environments illustrate a relatively homogenous background. However, in the complex “Microfluidic” environments (Fig. 6), results contrast more sharply between the two approaches; MEME provides cleaner segmentations which capture more closely the original shape of the nematodes.
Figure 7 shows the results from the computation of the surface error (Fig. 7a) and the nematode yield (Fig. 7b) for the environments of Fig. 6. Data for and is reported in the Supplementary Table S1 for the complete 13 image sequences. In general, computations of surface error () illustrate comparable performances between MEME and the threshold-based approach (Fig. 7a). Yet, in two complex “Microfluidic” environments, MEME does significantly better. Note that for all environments investigated here (Fig. 7a and Supplementary Table S1), remains below . In fact, for homogeneous background environments such as “Crawl”, “Drop”, and “Channel”, , emphasizing the good results obtained both by MEME and the threshold-based approach.
We observe, in contrast, significant improvements in nematode yield () when using MEME compared to the thresholding method (Fig. 7b). From the set of 13 assays tested here, 10 cases show examples of MEME significantly outperforming the threshold-based method (Supplementary Table S1); in some cases, with margins greater than 20 percentage points (e.g. “Microfluidic” and “Microfluidic II”, Fig. 7b). In the remaining environments where the thresholding method performs relatively better (e.g. “Microfluidic III”, Fig. 7b), the differences in remain however small, i.e. between 1.79 and 4.71 percentage points. Overall, our MEME algorithm outperforms the threshold-based approach for the overwhelming majority of cases examined.
Our experiments show that MEME provides a reliable framework to obtain nematode segmentations of C. elegans across various locomotive environments. In addition, MEME offers significant improvements over alternative image analysis systems available; these include (i) better, or similar, performances compared to state-of-the-art thresholding approaches [47, 48], (ii) no nematode-free image sequence required for learning background appearances [41, 52]; and (iii) a small amount of user input needed, i.e. a single hand-segmentation of the nematode and a marking of its width (Supplementary Video S1). This last improvement is particularly attractive from a user point of view as substantial effort may be needed with thresholding techniques to obtain similar results. Overall, these attributes make the MEME framework both attractive and straightforward to use for a broad range of researchers.
While computing good nematode segmentations with threshold-based methods is possible (Fig. 7), this process can quickly become laborious. Indeed, several iterations are required by the user to find optimal thresholds for a given environment (Supplementary Table S1). The main complication arises from the non-uniform backgrounds and appearance (i.e. pixel intensities) which characterize many environments. For example, a single threshold is incapable of distinguishing between the nematode and the background in the presence of pillars in microfluidic substrates (e.g. Fig. 6, last column). Similarly, single thresholds cannot adapt to specific locations in an image. This becomes crucial for accurate segmentation of nematodes in environments where lighting conditions may not be uniform (e.g. Supplementary Video S5).
In general, the improvement observed with MEME can be attributed to two main reasons: (1) the nematode appearance model is explicitly learned and used to help decide whether pixels belong to the nematode. In practice, when using threshold-based methods, many of the regions which are considered “not background” after applying a threshold do not resemble the nematode at all (e.g. pillars in “artificial dirt” assays of Lockery et al. , Fig. 1f and Supplementary Video S7). Using both the nematode and background appearance models significantly reduces the need of using intense pruning schemes to reject such regions. (2) The background scene is partitioned into a grid of sub-regions (Fig. 4c), where each cell is explicitly modeled. This allows for local variations in intensities to be grouped by region, providing a localized statistical model for each area of the background scene. This strategy has the advantage of appropriately modeling backgrounds where large variations in lighting occur (e.g. Fig. 1g).
In cases where the nematode appearance differs significantly from the background, such as in crawling and swimming assays (e.g. Fig. 1a and b), we observe nematode yields () beyond (Fig. 7 and Supplementary Table S1). In contrast, more complex environments can substantially reduce this performance (e.g. microfluidic substrates). The main difficulty therein lies in that only pixel intensities are modeled; this represents an important limitation when pixel intensities of the nematode and the background are too similar. A typical illustration of this problem occurs at the head and tail of C. elegans, where the nematode extremities are often transparent against the background. For example, this problem is observed in microfluidic substrates (e.g. Fig. 1e and f) where the ends of the nematode are lost during the segmentation process. A direct consequence of this is the truncated length of nematode skeletons (e.g. inset of Fig 5 and Supplementary Videos S7).
Our MEME framework is currently optimized for segmenting a single target nematode within an image sequence. Nevertheless, scenarios where multiple nematodes enter the scene in subsequent images are still supported by our algorithm as long as only one nematode is present in the input image. That is, an arbitrary number of nematodes may be segmented for a given image sequence. Note, however, that cases where the appearance of either the nematode or the background changes significantly over the length of an image sequence will cause improper segmentations. Furthermore, extracting skeletons remains a challenge in some scenarios. For example, cases where the nematode coils on itself, or when its head and tail touch (e.g. omega bend), are currently not supported with the implemented skeleton algorithm. In the former case, the segmentation simply does not provide a correct shape representation of the nematode (i.e. a closed circle as opposed to a ‘snake’). The problem lies in the fact that estimating the medial axis of the nematode with the Chamfer distance transform is ill-suited. In principle, the latter scenario (i.e. omega bend) is not problematic. In practice, however, initializing the skeleton algorithm is ill-posed; there is no a priori knowledge as to where the head or tail lie.
We briefly discuss the feasibility of using nematode skeletons obtained with MEME (Supplementary Videos S2 to S7). Skeleton data often provides the building blocks to quantify locomotive traits of C. elegans [27, 28, 35, 47, 48]. Here, we illustrate some of these motility metrics across sample environments. In Fig. 8 (top row), nematode tracking data is shown over multiple body bending cycles for crawling on a substrate (left column), swimming in a drop (middle column), and locomotion in so-called “artificial dirt” (right column), i.e. a microfluidic substrate (Supplemental Videos in Lockery et al. ). Trajectories swept by the nematode tail (or head) are labeled, illustrating striking differences in the travel paths adopted by C. elegans as a function of the surrounding environment. Snapshots of nematode skeletons over one beating cycle are shown in Fig. 8 (middle row); the time evolution of skeletons is color-coded as a function of the corresponding beating period (
). Plots reveal the existence of well-confined envelopes of body postures which vary dramatically with motility assay. Here, envelopes of postures are constructed using a principal component analysis (PCA) to find the skeleton’s principal axis and orientation at each instant in time. Further metrics including the nematode wavelength as well as the amplitude of body undulations can be obtained in a straightforward manner from the construction of such envelopes.
Next, we illustrate measures of body curvature () along the nematode’s length (Fig. 8, bottom row); such plots have been shown to characterize swimming and crawling gaits [28, 35, 47]. Curvature is defined as , where is the angle made by the tangent to the -axis at each point along the nematode skeleton; is the arc-length coordinate spanning the nematode’s head () to its tail (). The spatio-temporal evolution of is shown over several beating cycles for each environment. Here, curvature values are color-coded; red and blue represent positive and negative values of , respectively. Note that the vertical axis in each contour plot corresponds to the non-dimensional body position (), where is the nematode length. Each contour plot shows the existence of highly periodic, well-defined diagonally oriented lines. These diagonal lines are characteristic of bending waves of motion which propagate in time along the nematode body length (i.e. traveling waves).
In Fig. 8, forward motion displays curvature lines with a positive slope (left and middle column); waves are initiated at the nematode head [35, 47]. Conversely, backward motion displays lines with a negative slope, where bending motion is initiated at the tail (right column). In general, a number of motility metrics may be directly extracted from such curvature contour plots. For example, the body bending frequency (
) may be obtained by applying a one-dimensional (1D) Fast Fourier Transform (FFT) to the curvature fieldat multiple body positions . Similarly, the wave speed () may be directly extracted from the slope of the curvature propagating along the nematode’s body; the wavelength is then computed in a straightforward manner. With our MEME platform, nematode skeleton data is made ready available for use for motility analysis of C. elegans.
The proposed MEME framework provides researchers with an attractive and reliable platform for nematode segmentation and ‘skeletonizing’ across a large spectrum of C. elegans motility assays. The MEME software is freely available upon request (contact person: J. Sznitman; website for download will be provided). Improving our system to further assist researchers conduct quantitative analysis of C. elegans is of course desired. In the near future, one immediate goal is to provide segmentations and skeletons simultaneously for multiple nematodes. This ‘upgrade’ would be of great interest for high-throughput drug screening applications [40, 42]. From a performance point of view, combining larger sets of image features (e.g. edges, texture, etc.) with MOG models may provide better appearance models for difficult environments. This may yield better segmentation results, in particular at the nematode extremities (i.e. head and tail). Finally, our MEME platform is not restricted to image analysis of C. elegans only. For instance, MOG methods may be used for applications relating cell tracking and motility [12, 30, 55]. We illustrate here an example of such possible application with Albino Swiss mouse embryo fibroblast cells (Supplementary Video S8).
Table S1: Compiled data on segmentation results for the Multi-Environment Model Estimation (MEME) and threshold-based algorithms. Performances of each algorithm (i.e. surface error and nematode yield) are evaluated for 13 different image sequences representative of various locomotive environments (e.g. crawling on agar plate, swimming in a channel or a drop, locomotion in microfluidic substrates).
Video S1: MEME software tutorial shown for a sample image sequence (source: berrigel2.0perc.mov, Supplementary Material in Berri et al. ).
Video S2: Example of crawling assay. From left to right: (i) raw image, (ii) binary segmentation from MEME, and (iii) resulting skeleton superimposed on raw image. Here, a young adult, wild-type (N2) C. elegans is seen crawling on an agar plate. Nematode is approximately 1 mm long (image resolution: mm/pix; image acquisition rate: 28 frames per second).
Video S3: Example of crawling on a substrate. From left to right: (i) raw image, (ii) binary segmentation from MEME, and (iii) resulting skeleton superimposed on raw image. The original data is obtained from the Supplementary Information (Movie 1) in Pierce-Shimomura et al. .
Video S4: Example of swimming assay in a liquid drop. From left to right: (i) raw image, (ii) binary segmentation from MEME, and (iii) resulting skeleton superimposed on raw image. Here, a young adult, wild-type (N2) C. elegans is seen swimming in a 5 ml drop of M9 buffer solution. Nematode is approximately 1 mm long (image resolution: mm/pix; image acquisition rate: 28 frames per second).
Video S5: Example of swimming assay in a shallow channel. From left to right: (i) raw image, (ii) binary segmentation from MEME, and (iii) resulting skeleton superimposed on raw image. Here, a young adult, wild-type (N2) C. elegans is seen swimming in a narrow acrylic channel filled with M9 buffer solution. Details are given in Sznitman et al. . Nematode is approximately 1 mm long (image resolution: mm/pix; image acquisition rate: 125 frames per second).
Video S6: Example of nematode locomotion in a gelatin-based solution. From left to right: (i) raw image, (ii) binary segmentation from MEME, and (iii) resulting skeleton superimposed on raw image. The original data is obtained from the Supplementary Information (berrigel2.0perc.mov) in Berri et al. .
Video S7: Example of nematode locomotion in “artificial dirt”, i.e. a microfluidic substrate. From left to right: (i) raw image, (ii) binary segmentation from MEME, and (iii) resulting skeleton superimposed on raw image. The original data is obtained from the Supplementary Information (Video 2) in Lockery et al. .
Video S8: Application of the MEME software to segmentation of Albino Swiss Mouse Embryo Fibroblast cells (3T3 Line). The original video (Video 2) is extracted from live-cell imaging videos available at Nikon Microscopy U (http://www.microscopyu.com/moviegallery/livecellimaging/3t3/index.html), as obtained with Differential Interference Contrast (DIC) microscopy.
Strains of C. elegans were obtained from the Caenorhabditis elegans Genetic Stock Center (University of Minnesota), supported by the National Institutes of Health (Bethesda MD, USA). The authors would like to thank Dr. R. Ghosh (Lewis-Sigler Institute for Integrative Genomics, Princeton U.), X. Shen (Department of Mechanical Engineering and Applied Mechanics, U. of Penn), and Dr. A.E.X. Brown (MRC Lab of Molecular Biology, Cambridge U.) for their support and helpful discussions.
Conceived and designed the experiments: RS JS. Performed the experiments: RS MG. Analyzed the data: RS MG. Contributed reagents/materials/analysis tools: RS MG GDH PEA JS. Wrote the paper: RS JS.
- 1. J.-H. Baek, P. C., Z. F., J. Silver, and W. R. Schafer. Using machine vision to analyze and classify Caenorhabditis elegans behavioral phenotypes quantitatively. J. Neurosci Meth, 118(1):9–21, 2002.
H. G. Barrow, J. M. Tenenbaum, R. C. Bolles, and H. C. Wolf.
Parametric correspondence and chamfer matching: Two new techniques
for image matching.
Proceedings of the 5th International Joint Conference on Artificial Intelligence, pages 659–663, 1977.
- 3. S. Berri, J. H. Boyle, M. Tassieri, I. A. Hope, and N. Cohen. Forward locomotion of the nematode C. elegans is achieved through modulation of a single gait. HFSP J., 3:186–193, 2009.
- 4. C. Bessou, J.-B. Giugia, C. J. Franks, L. Holden-Dye, and L. Segalat. Mutations in the Caenorhabditis elegans dystrophin-like gene dys-1 lead to hyperactivity and suggest a link with cholinergic transmission. Neurogenetics, 2:61–72, 1998.
- 5. S. Brenner. The genetics of Caenorhabditis elegans. Genetics, 77:71–94, 1974.
- 6. S. D. Buckingham and D. B. Sattelle. Strategies for automated analysis of C. elegans locomotion. Invert. Neurosci., 8:121–131, 2008.
- 7. S. D. Buckingham and D. B. Sattelle. Fast, automated measurement of nematode swimming (thrashing) without morphometry. BMC Neuroscience, 10:84, 2009.
- 8. J. S. Chamberlain and G. M. Benian. Muscular dystrophy: the worm turns to genetic disease. Curr. Biol., 10:795–797, 2000.
N. Chronis, M. Zimmer, and C. I. Bargmann.
Microfluidics for in vivo imaging of neuronal and behavioral activity inCaenorhabditis elegans. Nature Methods, 4:727–731, 2007.
- 10. C. Elegans Sequencing Consortium. Genome sequence of the nematode C. elegans: a platform for investigating biolog. Science, 282:2012–2018, 1998.
- 11. C. J. Cronin, J. E. Mendel, S. Mukhtar, Y.-M. Kim, R. C. Stirb, J. Bruck, and P. W. Sternberg. An automated system for measuring parameters of nematode sinusoidal movement. BMC Genetics, 6:5, 2005.
- 12. B. J. Dublin-Thaler, J. M. Hofman, Y. Cai, H. Xenias, I. Spielman, A. V. Shneidman, L. A. David, H.-G. Doebereiner, C. H. Wiggins, and M. P. Sheetz. Quantification of cell edge velocities and traction forces reveals distinct motility modules during cell spreading. PLOS One, 3:e3735, 2008.
- 13. L. Fei-Fei, R. Fergus, and P. Perona. One-shot learning of object categories. IEEE Trans. Pattern Analysis and Machine Intelligence, 28(4):594–611, 2006.
- 14. Z. Feng, C. J. Cronin, J. H. Wittig, and P. W. Sternberg annd W. R. Schafer. An imaging system for standardized quantitative analysis of C. elegans behavior. BMC Bioinformatics, 5:115, 2004.
- 15. F. Fleuret and G. Blanchard. Pattern recognition from one example by chopping. In Proceedings of the Neural Information Processing Systems conference (NIPS), pages 371–378, 2005.
- 16. D. M. Gavrila. A bayesian, exemplar-based approach to hierarchical shape matching. IEEE Trans. on Pattern Analysis and Machine Intelligence, 29(8):1408–1421, 2007.
- 17. W. Geng, P. Cosman, J.-H. Baek, C. C. Berry, and W. R. Schafer. Quantitative classification and natural clustering of Caenorhabditis elegans behavioral phenotypes. Genetics, 165(3):1117–1126, 2003.
- 18. W. Geng, P. Cosman, C. C. Berry, Z. Feng, and W. R. Schafer. Automatic tracking, feature extraction and classification of C. elegans phenotypes. IEEE Trans. Biomed. Eng., 51:18111820, 2004.
- 19. Rajarshi Ghosh and Scott W. Emmons. Episodic swimming behavior in the nematode C. elegans. J. Exp. Biol., 211:3703–3711, 2008.
- 20. K. Hoshi and R. Shingai. Computer-driven automatic identification of locomotion states in Caenorhabditis elegans. J. Neuro. Meth., 157:355–363, 2006.
- 21. K.-M. Huang, P. Cosman, and W. R. Schafer. Machine vision based detection of omega bends and reversals in C. elegans. J. Neurosc. Meth., 158:323–336, 2006.
- 22. K.-M. Huang, P. Cosman, and W. R. Schafer. Automated detection and analysis of foraging behavior in Caenorhabditis elegans. J. Neurosc. Meth., 171:153–164, 2008.
- 23. K.-M. Huang, P. Cosman, and W. R. Schafer. Using articulated models for tracking multiple C. elegans in physical contact. J. Sign. Process Syst., 55:113–126, 2009.
- 24. M. Isard and A. Blake. CONDENSATION-conditional density propagation for visual tracking. Int. J. Comp. Vis., 29(1):5–28, 1998.
- 25. E. M. Jorgensen and S. E. Mango. The art and design of genetic screens: Caenorhabditis elegans. Nature Rev. Genetics, 3:356–369, 2002.
- 26. Rudolph Emil Kalman. A new approach to linear filtering and prediction problems. ASME J. Basic Eng., 82(Series D):35–45, 1960.
- 27. J. Karbowski, C. J. Cronin, A. Seah, J. E. Mendel, D. Cleary, and P. W. Sternberg. Conservation rules, their breakdown, and optimality in Caenorhabditis sinusoidal locomotion. J. Theor. Biol., 242:652–669, 2006.
- 28. J. Korta, D. A. Clark, C. V. Gabel, L. Mahadevan, and A. D. T. Samuel. Mechanosensation and mechanical load modulate the locomotory gait of swimming C. elegans. J. Exp. Biol., 210:2383–2389, 2007.
- 29. N. M. Laird, D. B. Rubin, and A. P. Dempster. Maximum likelihood from incomplete data via the em algorithm. J. Roy. Stat. Soc. B, 39(1):1–38, 1997.
- 30. K. Li, M. Chen, T. Kanade, E. D. Miller, L. E. Weiss, and P. G. Campbell. Cell population tracking and lineage construction with spatiotemporal context. Med. Image Anal., 12:546–566, 2008.
- 31. E. M. Link, G. Hardiman, A. E. Sluder, C. D. Johnson, and L. X. Liu. Therapeutic target discovery using Caenorhabditis elegans. Pharmacogenomics, 1:203–217, 2000.
- 32. S. R. Lockery, K. J. Lawton, J. C. Doll, S. Faumont, S. M. Couthard, T. R. Thiele, N. Chronis, K. E. McCormick, M. B. Goodman, and B. L. Pruitt. Artificial dirt: microfluidic substrates for nematode neurobiology. J. Neurophysiol., 99:3136–3143, 2008.
- 33. S. Park, H. Hwang, S.-W. Nam, F. Martinez, R. H. Austin, and W. S. Ryu. Enhanced Caenorhabditis elegans locomotion in a structured microfluidic environment. PLOS One, 3:e2550, 2008.
- 34. M. Piccardi. Background subtraction techniques: a review. In IEEE International Conference on Systems, Man and Cybernetics, pages 3099–3104, 2004.
- 35. J. T. Pierce-Shimomura, B. L. Chen, J. J. Mun, R. Ho, R. Sarkis, and S. L. McIntire. Genetic analysis of crawling and swimming locomotory patterns in C. elegans. Proc. Natl. Acad. Sci. USA, 105:20982 20987, 2008.
- 36. J. T. Pierce-Shimomura, T. M. Morse, and S. R. Lockery. The fundamental role of pirouettes in Caenorhabditis elegans chemotaxis. J. Neurosci., 19:9557–9569, 1999.
- 37. J. Qin and A. R. Wheeler. Maze exploration and learning in C. elegans. Lab Chip, 7:186–192, 2007.
- 38. D. Ramot, B. E. Johnson, T. L. Berry, L. Carnell, and M. B. Goodman. The parallel worm tracker: a platform for measuring average speed and drug-induced paralysis in nematodes. PLOS One, 3:e2208, 2008.
- 39. C. H. Rankin. From gene to indentified neuron to behaviour in Caenorhabditis elegans. Nature Rev. Genetics, 3:622–630, 2002.
- 40. C. B. Rhode, F. Zeng, R. Gonzalesz-Rubio, M. Angel, and M. Fatih Yanik. Microfluidic system for on-chip high-throughput whole-animal sorting and screening at subcellular resolution. Proc. Natl. Acad. Sci. USA, 104:13891–13895, 2007.
- 41. N. Roussel, C. A. Morton, F. P. Finger, and B. Roysam. A computational model for C. elegans locomotory behavior: application to multiworm tracking. IEEE Trans. Biomed. Eng., 54:1786–1797, 2007.
- 42. W. Shi, J. Qin, N. Ye, and B. Lin. Droplet-based microfluidic system for individual Caenorhabditis elegans assay. Lab Chip, 8:1432–1435, 2008.
- 43. G. A. Silverman, C. J. Luke, S. R. Bhatia, O. S. Long, A. C. Vetica, D. H. Perlmutter, and S. C. Pak. Modeling molecular and cellular aspects of human disease using the nematode Caenorhabditis elegans. Pediatr. Res., 65:10–18, 2009.
C. Stauffer and W.E.L. Grimson.
Adaptive background mixture models for real-time tracking.
IEEE Conference on Computer Vision and Pattern Recognition, pages 246–252, 1999.
- 45. J. E. Sulston and H. R. Horvitz. Post-embryonic cell lineages of the nematode Caenorhabditis elegans. Dev. Biol., 56:110–156, 1977.
- 46. J. E. Sulston, E. Schierenberg, J. G. White, and J. N. Thomson. The embryonic cell lineage of the nematode Caenorhabditis elegans. Dev. Biol., 100:64–119, 1983.
- 47. J. Sznitman, P. K. Purohit, P. Krajacic, T. Lamitina, and P. E. Arratia. Material properties of Caenorhabditis elegans swimming at low Reynolds number. Biophys. J., 98:617–626, 2010.
- 48. J. Sznitman, X. Shen, P. K.. Purohit, and P. E. Arratia. The effects of fluid viscosity on the kinematics and material properties of C. elegans swimming at low Reynolds number. Exp. Mech., DOI 10.1007/s11340-010-9339-1, 2010.
R. Sznitman and B. Jedynak.
Active testing for face detection and localization.IEEE Transactions on Pattern Analysis and Machine Intelligence, 99:in press, 2010.
- 50. Raphael Sznitman, Henry Lin, Manaswi Gupta, and Gregory Hager. Active background modeling: Actors on a stage. In IEEE International Conference on Computer Vision, Workshop on Visual Surveillance, pages 1222–1228, 2009.
- 51. N. Tavernarakis, W. Shreffler, S. Wang, and M. Driscoll. unc-8, a deg/enac family member, encodes a subunit of a candidate mechanically gated channel that modulates C. elegans locomotion. Neuron., 18:107–119, 1997.
- 52. G. Tsechpenakis, L. Bianchi, D. N. Metaxas, and M. Driscoll. A novel computational approach for simultaneous tracking and feature extraction of C. elegans populations in fluid environments. IEEE Trans. Biomed. Eng., 55:1539–1549, 2008.
- 53. G. D. Tsibidis and N. Tavernarakis. Nemo: a computational tool for anayzing nematode locomotion. BMC Neuroscience, 8:86, 2007.
- 54. J. G. White, E. Southgate, J. N. Thomson, and S. Brenner. The structure of the nervous system of the nematode C. elegans. Phil. Trans. R. Soc. Lond. B Biol. Sci., 314:1–340, 1986.
G. Xiong, C. Feng, and L. Ji.
Dynamical Gaussian mixture model for tracking elliptical living objects.Patt. Rec. Lett., 27:838–842, 2006.