A subscription to JoVE is required to view this content. Sign in or start your free trial.
Method Article
This article describes a simple, low-cost method of recording the lawn avoidance behavior of Caenorhabditis elegans, using readily available items such as a smartphone and a light emitting diode (LED) light box. We also provide a Python script to process the video file into a format more amenable for counting.
When exposed to toxic or pathogenic bacteria, the nematode Caenorhabditis elegans displays a learned lawn avoidance behavior, in which the worms gradually leave their food source and prefer to remain outside the bacterial lawn. The assay is an easy way to test the worms' ability to sense external or internal cues to properly respond to harmful conditions. Though a simple assay, counting is time consuming, particularly with multiple samples, and assay durations that span overnight are inconvenient for researchers. An imaging system that can image many plates over a long period is useful but costly. Here, we describe a smartphone-based imaging method to record lawn avoidance in C. elegans. The method requires only a smartphone and a light emitting diode (LED) light box, to serve as a transmitted light source. Using free time-lapse camera applications, each phone can image up to six plates, with sufficient sharpness and contrast to manually count worms outside the lawn. The resulting movies are processed into 10 s audio video interleave (AVI) files for every hourly time point, then cropped to show each single plate to make them more amenable for counting. This method is a cost-effective way for those looking to examine avoidance defects and can potentially be extended to other C. elegans assays.
Among the many advantages of studying C. elegans, its simple nervous system offers the opportunity to study how changes at the genetic and cellular level impact network function and behavioral output. Despite having a limited number of neurons, C. elegans display a wide range of complex behaviors. One of these is lawn avoidance, in which the bacterivorous nematode responds to a harmful food source by leaving the bacterial lawn. C. elegans avoid lawns of pathogenic bacteria1,2,3, lawns of bacteria that produce toxins or are spiked with toxins1,4, and even RNAi-expressing bacteria whose target gene knockdown is detrimental to the health of the worms4,5. Studies have shown that worms respond to external cues such as metabolites produced by the pathogenic bacteria1,6, or internal cues that indicate that the food is making them sick4,7. These cues are processed through conserved signaling pathways, such as the mitogen-activated protein kinase (MAPK) pathway and the transforming growth factor beta (TGFβ) pathway, and require communication between the gut and the nervous system4,6,7,8.
Although the assay is simple, the learned behavior develops over many hours, often overnight. While there are mutants that are incapable of leaving, in which case scoring avoidance at just one time point is sufficient to demonstrate the defect, many mutants do leave eventually but are slower to come out. For these, the movement of the worms needs to be tracked every few hours, which can be difficult to do overnight. Counting itself also takes time, creating a lag time between the plates, and thus limits the number of plates that can be tested at the same time. Using an imaging setup to record many plates simultaneously for the whole duration of the assay would be very useful, but the cost of setup can be prohibitive, depending on the funding situation of the research lab.
To address this, we devised a very simple method that uses smartphones to record avoidance assays. Each phone can record time-lapse videos of up to six assay plates. To provide transmitted light, we use a light emitting diode (LED) light box that can be easily purchased online. Assay plates are placed on an elevated platform, supported by hollow rectangular tunnels, that focus the incoming light, creating contrast. We also provide a Python script that converts the videos into audio video interleave (AVI) files showing 10 s clips of each hourly time point. The videos are then cropped to individual plates and saved in separate files to use for manual counting.
The method provides a low-cost procedure that is also extremely easy to use, using items that are readily available to most people. Here, we describe the method using the well-established lawn avoidance assay against the human pathogen Pseudomonas aeruginosa (PA14), whose protocol has been previously described2,9. Finally, we also review the considerations and limitations of the imaging method for those that want to apply it to other C. elegans behavior experiments.
1. Setting up the imaging apparatus (Figure 1A-E)
2. Preparation of buffers and media
3. Preparation of high-peptone NGM plates (for PA14)
NOTE: These plates should be made at least 5 days before the assay.
4. Synchronizing worms by bleaching
NOTE: Start this step 3 days before the assay.
5. Preparation of bacteria ( Pseudomonas aeruginosa, PA14)
NOTE: Start this step 4 days before the assay.
6. Preparing to record
NOTE: Do this right before the assay.
7. Lawn avoidance assay
8. Processing of video using Python script
9. Manual counting using ImageJ
The first video produced by the script is 1 h from the start of the assay. The video for 0 h is not saved, as worms start the assay inside the lawn, so the occupancy rate is always 100%.
Wild-type N2 worms are compared against npr-1 mutants, whose lawn avoidance defect is well-established in the literature6,10 (Figure 3A-E). As can be seen in the wild type, worms ...
Imaging animal behavior, rather than relying on direct observation, is not only convenient but also has the advantage of leaving visual documentation. This allows for blind analysis by an objective third person, or could even be used for automated analysis using image recognition techniques. Despite the advantages, the standard equipment usually offered is high in cost, so one is committed to the setup once purchased.
Using smartphones to collect video recordings of simple C. elegans ...
No conflicts of interest declared.
We thank Deok Joong Lee for critical reading of the manuscript and testing the Python code. This research was sponsored by the National Research Foundation of Korea 2017R1A5A2015369 (K.-h.Y.) and 2019R1C1C1008708 (K.-h.Y.).
Name | Company | Catalog Number | Comments |
35 mm Petri dish | SPL | #10035 | |
Bacto agar | BD | #214010 | |
Bacto Peptone | BD | #211677 | |
CaCl2 | DAEJUNG | 2507-1400 | |
Cholesterol | BioBasic | CD0122 | |
Dipotassium hydrogen phosphate (K2HPO4) | JUNSEI | 84120-0350 | |
Glycerol | BioBasic | GB0232 | |
King B Broth | MB cell | MB-K0827 | |
LED light box multi-pad | Artmate | N/A | This is a USB powered, LED light pad for tracing and drawing purposes. Artmate is a Korean brand, but searching for "LED light box for tracing" in any search engine should yield numerous options from other brands. Overall dimension is around 9" x 12" (A4 size). For example, from amazon US: https://www.amazon.com/LITENERGY-Ultra-Thin-Adjustable-Streaming-Stenciling/dp/B07H7FLJX1/ref=sr_1_5?crid=YMYU0VYY226R&keywords= LED%2Blight%2Bbox&qid=1674183224&sprefix =led%2Blight%2Bbo%2Caps%2C270&sr=8-5&th=1 |
MgSO4 | DAEJUNG | 5514-4400 | |
Plastic paper sleeve (clear) | Smead | #85753 | Any clear plastic sheet with a bit of stiffness can be used as stage. For example, from Amazon US: https://www.amazon.com/Smead-Organized-Translucent-Project-85753/dp/B07HJTRCT7/ref=psdc_1069554_t3_B09J48GXQ 8 |
Potassium dihydrogen phosphate (KH2PO4) | JUNSEI | 84185-0350 | |
Power strip | To accommodate 3 phones and one LED box, you need at least 4 outlets. | ||
Smartphone | N/A | N/A | Minimum requirement: 12MP wide camera, 1080p HD video recording at 30fps |
Sodium chloride(NaCl) | DAEJUNG | #7548-4100 | |
Sodium phosphate dibasic anhydrous (Na2HPO4) | YAKURI | #31727 |
Request permission to reuse the text or figures of this JoVE article
Request PermissionThis article has been published
Video Coming Soon
Copyright © 2025 MyJoVE Corporation. All rights reserved