We have developed a video-rate tracking microscope system that can record and quantify C. elegans behavior at high resolution and high speeds. We have also developed computational methods to reduce the dimensionality of the worm images to a fundamental set of measurements that completely describe the shape of the worm.
We have developed instrumentation, image processing, and data analysis techniques to quantify the locomotory behavior of C. elegans as it crawls on the surface of an agar plate. For the study of the genetic, biochemical, and neuronal basis of behavior, C. elegans is an ideal organism because it is genetically tractable, amenable to microscopy, and shows a number of complex behaviors, including taxis, learning, and social interaction1,2. Behavioral analysis based on tracking the movements of worms as they crawl on agar plates have been particularly useful in the study of sensory behavior3, locomotion4, and general mutational phenotyping5. Our system works by moving the camera and illumination system as the worms crawls on a stationary agar plate, which ensures no mechanical stimulus is transmitted to the worm. Our tracking system is easy to use and includes a semi-automatic calibration feature. A challenge of all video tracking systems is that it generates an enormous amount of data that is intrinsically high dimensional. Our image processing and data analysis programs deal with this challenge by reducing the worms shape into a set of independent components, which comprehensively reconstruct the worms behavior as a function of only 3-4 dimensions6,7. As an example of the process we show that the worm enters and exits its reversal state in a phase specific manner.
1. Description of Tracking Microscope
2. Preparing Tracking Plates and C. elegans for Tracking
3. Worm Tracking
4. Data Analysis
Example: When foraging, C. elegans transitions from forward to reverse motion, often performing a reorientation (omega turn) before returning to the forward motion state. Quantifying this transition is important in understanding the foraging patterns of movement and also in the worm’s motor control. The power to reveal subtle details of locomotion behavior can be seen using our tracker device.
As an example we look at the forward to reverse and reverse to forward transition by capturing high resolution images of worms crawling freely on the agar plate for ~30 min. runs. The eigenmode analysis (Figure 3) allows us to measure the phase of the undulatory movements of the worm. The phase measurement in turn allows us to calculate the velocity of the worm and the forward to reverse transition (Figure 4). By plotting the joint probability of the worm’s velocity and phase, we can see that the transition between forward and reverse happen probabilistically with a preferential phase (Figure 5a). If we separate forward to reverse and reverse to forward transitions and look at the conditional probability of the phase of the worm when it enters and exits a reversal event, we see that they have distinct phase distributions (Figure 5b,c).
Figure 1. Tracking microscope. The sample of a worm crawling on an agar plate remains stationary while the imaging system moves to keep the worm in the center of view. The imaging system is built on a 2D translation stage driven by stepper motors (3). A CCD camera (Basler A601f) and lens (25mm focal length) images the worm from below (1) and a fiber light (Edmunds optics; model) illuminates it from above (2). A homemade stepper motor controller utilizing a SimpleStep controller board (SimpleStep; SSXYZ) controls the movement of the imaging system. A custom LabVIEW program (National Instruments, Austin, TX, USA) acquires and processes images of the worms, while simultaneously communicating with the motor controller to keep the worm in the center of the field.
Figure 2. Image processing. (a) Worms move by changing their curvature in time and so we processed the worm images by parameterizing their center line. The images were made binary by thesholding the raw gray scale image (b), and individual worms were identified by filtering objects by size (c). The distance between the center of the mass of the worm and the center of the image was calculated and then the stage was moved the appropriate distances to re-center the worm. These correction distances were used to calculate the trajectory of the worm. The curvature of the worm perimeter was used to identify the tail (maximum curvature) and head (secondary maximum). (d) The images were then skeletonized to locate the center line. (e) The resulting curve was then then interpolated into 101 segments and the calculated angle between segments was used to parameterize the curve. Click here to view larger figure.
Figure 3. Eigenmode calculation. Fundamental curves of the worm shape have been calculated using Principle Component Analysis5. Each worm curve is represented by a linear sum of the eigenvectors (or eigenworms), where the amplitude of each components is known as the eigenmode (mode). We can quantify the behavior of the worm by measuring the first 3 eigenmodes of the worm shape over time.
Figure 4. Phase and velocity. (a) The joint distribution of the first two modes for a limit cycle. (b) The phase or position on this limit cycle correlates with the phase of the worm’s undulatory position. (c) Using the phase velocity the worms forward and backward movements can be quantified. (d) The speed and direction along this limit cycles indicates the worm’s velocity. Click here to view larger figure.
Figure 5. Phase dependent velocity switching. The transitions between forward and reverse states do not happen randomly along the oscillatory cycle. They (but still stochastically) happen at specific phases. (a) The joint distribution of the phase velocity and speed clearly indicates that worms leave and enter the forward state preferentially at specific phases. (b) shows a plot of the phase conditioned on the entrance to a reversal event. (c) shows the phase conditioned on the exit of a reversal event. The black line is the distribution of phase angles without conditioning on an exit or entrance.
The study of locomotion and natural behavior requires non-invasive tracking techniques in partner with data reduction techniques. Here we have demonstrated an easy to use tracking system that records detailed images of C. elegans behavior as it crawls on the surface of an agar plate. The amount of information contained in these images is vast and high-dimensional, and so we have also developed methods to reduce the dimensionality of the data into only four fundamental measures. These measures are comprehensive and are easy to interpret with respect to worm behavior. For this work we show that worms transition between forward and backward states preferentially at different points in its undulatory cycle, a measure that is difficult to do by eye. This work is complementary to tracking systems that have been developed to measure behavior of worms at lower magnification8,9,10, and also to systems that are able to measure or modulate neuronal activity using genetically encoded reagents11,12.
While single organism tracking is a powerful method for quantification of behavior there are some limitations to the technique. The first is the fact that the system tracks only single organisms at a time. In comparison to fixed camera trackers which are able to track multiple organisms9,10, the throughput of our tracker is low. However, we are able to measure behavior of single organism for far longer periods of time than the multi-worm trackers, which is important for quantify long time scale behaviors such as hunger, egg-laying, and foraging. Also the tracker requires images which clearly identify the worm from the background. This precludes us from studying worm movements in environments that are visually cluttered or otherwise too complex for the image processing system to filter out the worm.
This system is flexible and can be used for other types of behavioral tracking. Instead of a homogenous environment, the worm can be tracked while submitted to spatial and temporal sensory information, similar to other tracking systems. For example, thermal stimulus can be applied via laser stimulus7,14, or chemical information can be applied via spatial gradients through the agar3. The system as a whole is flexible in design and can be used with other crawling systems such as Drosophila larvae.
The authors have nothing to disclose.
Name of the part | Company | Catalogue number | Comments (optional) |
CCD camera | Basler | A601f | |
Lens | Edmund Optics | MMS series | |
Fiber Illumination | Dolan Jenner | DC-950H | |
Translation stage | Deltron | LS3-4 | |
Stepper Motor | US digital | MS23C | |
Stepper motor drive | Gecko | G201 | |
Stepper motor control | SimpleStep | SSXYZ | |
All programming code is available. Please send a request email to the corresponding author. |