Food ingestion is one of the defining behaviours of all animals, but its quantification and analysis remain challenging. This is especially the case for feeding behaviour in small, genetically tractable animals such as Drosophila melanogaster. Here, we present a method based on capacitive measurements, which allows the detailed, automated and high-throughput quantification of feeding behaviour. Using this method, we were able to measure the volume ingested in single sips of an individual, and monitor the absorption of food with high temporal resolution. We demonstrate that flies ingest food by rhythmically extending their proboscis with a frequency that is not modulated by the internal state of the animal. Instead, hunger and satiety homeostatically modulate the microstructure of feeding. These results highlight similarities of food intake regulation between insects, rodents, and humans, pointing to a common strategy in how the nervous systems of different animals control food intake.
Feeding is an essential component of an animal’s behavioural repertoire and forms a mechanistic link between physiology and behaviour1. Fruit flies (Drosophila melanogaster) have emerged as a powerful model to study the neuronal and molecular mechanisms underlying feeding behaviour2,3,4,5,6,7,8, but it remains challenging to quantify feeding in these tiny insects, due to the minute quantities of food they ingest. Most current methods rely either on manual scoring of proboscis extensions9, post hoc quantification of the ingested food using colourants10 or radioactive substances11 or measurement of the volumetric change of food ingested from a capillary5. Although widely employed, these methods have several limitations. For example, they do not provide the sensitivity to monitor food intake by individual animals over time, they force the animals to feed from specialized devices in restricted positions, or they require the addition of dyes or radioactive labels. These drawbacks limit the feasibility of high throughput, unbiased studies of feeding as well as the identification of important behavioural parameters controlling food selection and intake. In rodents12,13, humans14 and insects15, the microstructure of ‘meals’ has been very valuable in providing insights into how hunger and satiation regulate homeostasis. Advancing our understanding of homeostasis in flies would benefit from a method that provides sufficient sensitivity and temporal resolution to quantify each ingestion event.
In recent years, several automated and quantitative approaches have emerged to monitor and analyse behaviour based on machine vision16,17. Because of the limitations of digital cameras, it is difficult to resolve the fine details of an animal’s physical interactions with small objects, such as morsels of food, especially if the system is optimized to track the animal over many body lengths. An alternative strategy for detecting fine-scale interactions between an animal and other objects is to measure changes in capacitance or resistance. Such methods have been used previously to quantify feeding behaviour in immobilized aphids18,19 and larger insects20, but advances in digital electronics now permit this approach to be modified in a way that is compatible with greater temporal resolution, higher throughput and freely behaving animals, thereby leveraging the advantages of a genetic model organisms.
We have developed an automated, high-resolution behavioural monitoring system called flyPAD (fly Proboscis and Activity Detector), that uses capacitive-based measurements to detect the physical interaction of individual Drosophila with food. To validate the accuracy of the flyPAD system, we adapted bioluminescent techniques to measure the intake of very small amounts of food as well as the dynamics of food absorption in single flies. We show that feeding from a non-liquid food induces a pattern of highly stereotyped rhythmic proboscis extensions and retractions that is suggestive of an underlying central pattern generator (CPG) controlling the feeding motor programme. The analysis of ingestion dynamics and the microstructure of meals allowed us to dissect the behavioural elements mediating the homeostatic response of the fly to starvation and satiation. These results uncover several similarities with rodents and humans, highlighting a potential conservation of strategies that regulate food intake across phyla.
To overcome the challenge of reliably detecting and measuring physical interactions of Drosophila with substrates such as food, we developed a method based on capacitive proximity sensors. Such sensors are based on the principle of measuring the capacitance across two electrodes. We designed a sensor so that an animal standing on one electrode (electrode 1) would be in close proximity to food placed on the other electrode (electrode 2; Fig. 1a). Whenever a fly touches the food with its proboscis or leg, it alters the dielectric constant between the two electrodes creating a change in capacitance that is large enough to be detected. We designed our system using the AD7150 (Analog Devices) ultra-low power capacitance-to-digital converter. This device allows two-channel recording at 100 Hz with a sensitivity of 1 fF. To make the measurement system compact, reproducible and scalable, we designed a printed circuit board (PCB) containing the capacitance-to-digital converter and a connector that carries the digitized capacitance signal via an I2C interface (Fig. 1b). Both the arena enclosing the fly as well as a lid were fabricated from acrylic sheets using a laser cutter and fixed on the PCB. The result is a modular arena equipped with two touch sensors, permitting experiments using a single fly with two different food sources. To allow for high-throughput recordings, we implemented an I2C multiplexing board on a Field Programmable Gate Array (FPGA). The resulting system can simultaneously acquire the data from 32 independent behavioural arenas and stream the data to a computer via USB interface (Fig. 1c). Multiple systems can be connected to a single computer, further increasing the throughput of the system.
To ground truth, the electrical signals from our device, we simultaneously monitored the behaviour of flies in the arena using a digital video camera in a series of preliminary experiments (for an example, see Supplementary Video 1). The contact of the fly with the food elicited an immediate increase in the capacitance signal, several orders of magnitude above the background noise of the sensor (Fig. 1d). The signal displayed multiple features such as rhythmic changes that appeared to be related to the interaction of the fly with the food.
Automatic annotation of feeding behaviour
Direct comparisons with videos suggested that whenever a fly came into contact with the food we could detect rapid changes in the amplitude of the signal for as long as the fly was active (Figs 1d and 2a, top graph). To extract these periods of activity, we calculated the root mean square (RMS) of the signal in consecutive 500 ms windows (Fig. 2a, middle graph). By simply thresholding this signal, it was possible to reliably extract the bouts of activity, during which the fly was interacting with the food (Fig. 2a, grey shading in bottom graph).
Furthermore, on closer inspection of the videos, we noticed that flies rhythmically extended and retracted their proboscis on the food. This behaviour was reflected in a highly rhythmic, square wave-like pattern in the capacitance signal (Figs 1d and 2b and Supplementary Video 1). On the basis of the hypothesis that this motor pattern might correspond to rhythmic feeding, we designed an algorithm to extract putative ‘sips’ based on the shape of the signal (Fig. 2b, for further details see Methods). The algorithm identifies the exact moments when a sip begins (contact of the proboscis with the food) and ends (detachment of the proboscis from the food), as well as inter-sip intervals (ISIs; Fig. 2b, lower graph).
To validate the accuracy of our feeding detection algorithm, we captured and manually annotated high-resolution videos from flies interacting with the food on the capacitance sensor. The number of proboscis contacts detected by manual annotation was significantly correlated with the number of sips detected by our algorithm (Fig. 2c). A comparison of the ethograms generated by manual annotation with the results of our automated method further confirmed the accuracy of our approach. The algorithm detected 92.5% of the sips tabulated via manual scoring, while missing 7.5% and generating 7.5% false sips (Fig. 2d). These data demonstrate that our method for detecting sips is sufficiently accurate to be used for automatic monitoring of feeding behaviour.
Sips mediate food ingestion
Although our method can reliably detect individual proboscis interactions with food (sips), it may not accurately report the actual volume that flies consume, because some proboscis extension events might represent non-ingestive sampling of the food. To test whether the automatically detected sips were correlated with actual ingestion, we developed a method for monitoring food intake in individual flies while they fed on the flyPAD. Because existing methods do not have the sensitivity required to measure food intake in real time in individual flies4, we exploited the capacity of the firefly enzyme luciferase to emit photons (bioluminescence) on its reconstitution with its cofactor D-luciferin21. It has been previously demonstrated that D-luciferin can be fed to flies and is subsequently absorbed by the nervous system22. Thus, photon counts generated by neuronally expressed luciferase should be temporally correlated with the intake of food mixed with D-luciferin (Fig. 3a).
To be able to detect photons in intact flies, we used the strong pan-neuronal Gal4 line nSyb-Gal4 to drive high levels of luciferase expression in the nervous system. On each bout of sips, we observed an increase in photon counts suggestive of food intake (Fig. 3b,c). Furthermore, we observed that the photon count starts increasing as quickly as 10–20 s after the first sip (Fig. 3c). This short delay might underlie the brief latencies previously reported for the action of metabolically active sugars in flies in appetitive conditioning23 as well as classic flight studies24. This method, therefore, offers new opportunities for measuring the dynamics of nutrient absorption and nutrient availability in various tissues or cell types in the fly.
Despite the advantages provided by this luciferase method, we found it difficult to quantify the exact volume of food consumed by the fly during each sip. Hence, we developed an additional assay to measure small volumes of food ingested by single flies feeding on the flyPAD. In this protocol, single flies are allowed to feed in the flyPAD from food containing D-luciferin. After the flyPAD measurement, flies are homogenized and, on addition of recombinant luciferase, the amount of light emitted is measured using a luminometer (Fig. 3d). The advantages of this method are that it does not require the use of luciferase-expressing transgenic animals and that the high signal-to-noise ratio of the bioluminescent signal permits the detection of very small quantities of ingested food. Comparing three different features of the capacitive signal extracted using the flyPAD (number of activity bouts, total duration of activity bouts, and number of sips) with the measured food intake allowed us to define the extent to which they correlate (Fig. 3e). All three behavioural metrics were correlated with ingestion; however, the degree of correlation varied. Whereas the number of activity bouts, which represent how often an animal approaches the food (Fig. 2a), has a significant but weak correlation with the ingested volume (Fig. 3e, left graph), the total duration of all activity bouts (Fig. 3e, middle graph) correlates much more strongly with food intake, as does the number of sips (Fig. 3e, right graph). The sensitivity of this method allowed us to estimate the median volume of food that flies consume per sip to be 1.05 nl (0.72 to 1.35, 95% confidence interval). These results validate the use of the flyPAD to extract the dynamics of feeding and food intake in single flies. To demonstrate the potential applications of the flyPAD device, we next provide several examples of its use to analyse food choice, feeding motor programs and nutritional homeostasis.
flyPAD allows the study of the dynamics of food choice
The ability of flies to choose among foods of different qualities underlies nutrient balancing2 and is an important experimental paradigm for uncovering the molecular and neuronal basis of gustation in Drosophila10,25,26,27. When given the choice between 1 and 5 mM sucrose in the flyPAD arena, flies strongly preferred to feed from the 5 mM sucrose source (Fig. 4a), as had been observed previously using the colour assay25. The ability to calculate the preference index for individual flies (Fig. 4a, right side) permits the use of clonal genetic manipulations to study food choice28. Another parameter that strongly affects the throughput of behavioural assays is the length of each trial. Standard food choice assays are normally performed over 2 h (ref. 2). The cumulative plot of the preference index shows that after 10 min, the preference index plateaus at the level observed at the end of a 50 min assay (Fig. 4b). This suggests that using flyPAD makes it possible to drastically shorten the trial length required to make meaningful measurement of food preference. In addition, the dynamic readout of feeding provided by flyPAD permits investigation of the behavioural mechanisms underlying feeding decisions. In the case of the high- versus low-sucrose paradigm, flies continued visiting the food with the lower sucrose concentration, as visualized by a steady increase in the sip count (Fig. 4c). This indicates that flies did not focus exclusively on one resource, but rather continued to sample from both. The flyPAD is therefore well suited to study food choice, opening new possibilities for studying feeding decisions at a mechanistic level in Drosophila.
Feeding is mediated by a stable, rhythmic motor programme
In humans and rodents, motor programmes underlying food ingestion such as licking, mastication and swallowing are highly rhythmic and are controlled by CPGs located in the brainstem29,30,31. The high temporal resolution of our system allowed us to closely analyse the structure of feeding motor patterns in flies. Similar to rodents and humans, feeding flies exhibited a highly rhythmic motor pattern, with most sips having a length of 0.13 s and an ISI of 0.08 s when eating yeast (Fig. 5a,b). We then tested whether either the pattern or durations of sips were modulated by the content of the food or by the internal metabolic state of the animal. We starved flies for different periods of time (0, 4 and 8 h) and then tested them on the flyPAD with a 10% sucrose gel. The durations of sips were slightly, but significantly, longer on sucrose when compared with yeast (0.16 versus 0.13 s, P=0.019, Wilcoxon Rank-Sum test) (Fig. 5a,c). Furthermore, the sip durations on sucrose were more variable than on yeast as evidenced by the broader distribution of the histogram. ISIs, however, were not significantly altered by the content of the food (0.07 versus 0.08 s, P=0.18, Wilcoxon Rank-Sum test) (Fig. 5b,d).
Animals homeostatically compensate for a lack of energy by increasing their food intake following starvation. However, flies might alter their feeding motor programme in two basic ways to increase food consumption: they could increase the duration of sips (corresponding to an increase in food intake per sip) or shorten the ISIs (corresponding to an increase in the feeding rate or vigour of eating). Similar to licks in rodents32, we found that flies maintain both the duration of sips (Fig. 5c) and the ISIs (Fig. 5d) constant on deprivation (P=0.078 for sip duration and P=0.35 for ISI, Kruskal–Wallis one way analysis of variance). Therefore, the feeding motor programme of Drosophila consists of a highly rhythmic proboscis extension and retraction cycle suggestive of an underlying CPG. This pattern is not altered substantially by changes in the internal hunger state of the animal, but does partially adapt to the nature of the food.
The microstructure of feeding reveals homeostatic strategies
If the motor programme underlying feeding is not modified following starvation, how does a hungry fly modify feeding to achieve homeostasis? In rodents, meals are organized in ‘bursts’ of licking13, and an increase in feeding following starvation is achieved mainly by reducing the interval between bursts33,34. To dissect the behavioural strategies leading to increases in food intake following starvation in Drosophila, we analysed changes in the microstructure of meals.
On the basis of criteria established for rat licking behaviour13, we defined a feeding burst as three or more consecutive sips separated by inter-burst intervals (IBIs) smaller than double the median ISI (Fig. 6a). In fully fed flies, sips were organized into bursts consisting of an average of 5.8 sips (Fig. 6b). Whereas the length of the feeding bursts was not significantly altered after 4 h of starvation, 8 h of starvation led to a significant increase in the number of sips per feeding burst (average of 8.3 sips). In contrast to feeding bursts, just 4 h of starvation led to a significant shortening of the IBI from 78 to 29 s (Fig. 6c). Additional starvation (8 h) did not cause a further decrease in IBI. The dissociable effects of starvation time on the duration of feeding bursts and IBI suggest that flies use distinct strategies to adapt to short and medium lengths of starvation. After a short period of starvation, the fly is active on the food for longer periods (Fig. 6d) and shortens the intervals between feeding bursts (Fig. 6c). On longer starvation times, the fly also increases the length of the feeding bursts (Fig. 6b,k).
Whereas hunger increases food intake to compensate for the lack of nutrients, satiation regulates the length of a meal by inducing its termination. The effect of satiation is reflected in the reduction of the slope in the cumulative number of sips (Fig. 6e). To quantify how the three microstructure parameters change as the animal becomes satiated, we calculated how each changed during a meal (Fig. 6f–h). We performed these calculations for the flies starved for 8 h, because the satiation effect is the strongest (Fig. 6e). As expected, over the duration of the meal all parameters reverted to values approximating the situation in fully fed flies. The number of sips per burst only significantly changed at the end of the meal, from 8.5 sips per burst at the beginning to 5.2 sips per burst at the end of the experiment (Fig. 6f). A significant change in the length of the IBI and the duration of activity bouts is already detected within about 10 min after the start of a trial (Fig. 6g,h). The modulation of these feeding parameters during the meal ultimately leads to its termination (Fig. 6e).
The initial rate of feeding can be used as a bona fide measurement of the motivation to feed. The deceleration of food intake, on the other hand, can be used as readout for the strength of the satiation signal leading to the termination of a meal14,35. Satiation is difficult to measure in Drosophila, so we used an approach employed in human feeding research and fitted a quadratic equation35 to the cumulative feeding curves of every individual fly and extracted the linear and the quadratic coefficients from the fitted curves (Supplementary Fig. 1). As expected, the linear coefficients (which in vertebrates is a proxy for the motivation to feed) increases following starvation (Fig. 6i)14. Likewise, the quadratic coefficient (which is thought to represent the strength of the satiation signal) decreases significantly following starvation (Fig. 6j)14. These results indicate that in flies, as in humans, the linear and the quadratic coefficients are good readouts for the drive-to-eat and the satiation signals.
We use a new device based on capacitive sensing to study the interaction of Drosophila melanogaster with food. This has allowed us to study feeding behaviour at a temporal resolution of 100 samples per second and with <nl sensitivity in individual flies. Our design allows the flies direct access to the food in an unrestricted way, eliminating possible confounds created by the use of capillaries. Although flyPAD is very sensitive, it is easy to implement and operate and automatically generates critical feeding metrics related to total food intake, hunger and satiation. The technology provides a powerful method for studying feeding phenotypes related to nutritional homeostasis1,2, aging36, diabetes37,38 and obesity38,39. The technology should also lend itself to study other types of behaviour in which a fly interacts with a substrate, such as egg laying40,41, by correlating behavioural features with the capacitance signal. Monitoring feeding over the whole life time of flies would be valuable for specific fields such as aging. While the current version of the flyPAD does not lend itself to this timescale, it should be possible to adapt it in the future. One possibility would be to use liquid food that could be stored in containers that automatically refill the wells.
By combining the flyPAD approach with tissue-specific bioluminescence, we were able to estimate the timescale from the intake of a substance to its incorporation within the nervous system. The fact that D-luciferin is an amphipathic molecule at physiological pH and that it therefore relies on active transport to enter tissues, makes it a suitable proxy to monitor nutrient uptake42,43. Interestingly, the timescale we measured is on the order of 10–20 s. Our direct measurements support the notion that the nervous system of flies has very fast access to the nutrient content in food, and that the animal can use this post-ingestive information to control behaviour23. Using cell-specific drivers, one should be able to measure the timescale of nutrient availability in different tissues including individual classes of neurons. The latter experiments should be able to clarify whether nutrient-sensitive neurons in Drosophila6,7 have privileged access to the nutrient content of food, as it is the case in vertebrates44.
The high temporal resolution of our method allowed us to identify motor patterns as well as behavioural strategies used by the fly to homeostatically control food intake. Feeding in flies consists of a sequence of proboscis extensions and retractions8,45. We show that this motor pattern is rhythmic and is likely controlled by a CPG. A pair of interneurons was recently described to control the initiation of the feeding programme in Drosophila8. It is conceivable that these neurons could be connected to the CPG network, a hypothesis that could be tested in future studies. We have found that the frequency of the motor rhythm is affected by the physical properties of the food. This result is in agreement with earlier findings in other insects that the CPGs controlling chewing are modulated by sensory feedback46,47.
We measured the proboscis extension and retraction cycle and found that, similar to the motor programme controlling pumping of liquid foods, the pattern is not modified by the internal state of the animal but can be altered by the content of the food48. Despite this similarity, the motor programs for feeding from liquid and gelatinous food differ in an important way. When a fly ingests a liquid, its proboscis remains in contact with the food for sustained pumping48, whereas feeding on gelatinous food involves an additional motor behaviour consisting of rhythmic extensions and retractions of the proboscis. This more complex motor programme for gelatinous food could have evolved to either deposit salivary gland extracts, to mechanically scrape off ingestible quantities of food, or to support the local probing of the nutrient content on heterogeneous substances such as fruits.
The microstructure of feeding behaviour has been used in different organisms to obtain mechanistic insights into the behavioural underpinnings of homeostasis12,13,14,15. More precise, time-resolved measures of behaviour permit the differentiation of specific aspects of feeding regulation such as the drive to initiate and terminate a meal12,33. We have shown that Drosophila organizes sips into feeding bursts that cluster together to form a meal. On a short period of starvation (4 h), the spacing between bursts shortens significantly. On longer starvation periods (8 h), the burst length increases leading to a progressive increase in the total number of sips and therefore an increase in food intake. This increase in burst length is anticipated by an increase in the time a fly interacts with the food after 4 h of starvation. Therefore, flies appear to deploy different behavioural strategies to compensate for the lack of food in a hierarchical sequence rather than a graded fashion. It is important to note that by the end of the feeding assay, the total number of sips was not significantly different between fully fed and 4-h starved animals, suggesting that these two groups cannot be differentiated by considering only total feeding. Satiation seems to act inversely on these feeding parameters, reverting them to values similar to the fully fed situation and thus leading to termination of the meal. In flies, dopamine has been shown to mediate the effect of starvation on gustatory sensitivity49,50; however, the effect of longer starvation periods on the gustatory neurons does not seem to depend on this neuromodulatory pathway49. These data suggest that the fly might use separate molecular and behavioural mechanisms to control homeostasis of food intake depending on the severity of the hunger state. Approaches allowing detailed characterization of feeding and further improvements in behavioural analysis such as unbiased segmentation of behaviour into bouts51,52 will aid in obtaining a more complete picture of the mechanisms underlying homeostasis.
The molecular mechanisms controlling metabolism and physiology in Drosophila appear to be largely conserved with other organisms38. However, it is not clear whether the behavioural strategies controlling food intake are conserved to the same extent across phyla. We show that several features of feeding behaviour in flies appear to be similar to the ones described in vertebrates. The proboscis extension and retraction cycle in flies and licking in rodents are rhythmic motor patterns that are neither modulated by the sensory properties of the food nor the internal state of the animal32. Furthermore, licking in rodents13 and the proboscis extension cycle in flies are organized in bursts and one of the key parameters modulated by hunger is the spacing between these bursts33. Finally, the regulation of the cumulative intake curve by the internal state of the animal also appears to be similar in flies, rodents and humans14. The aforementioned parallels between the different animal models suggest that the organization of motor patterns regulating food intake and their homeostatic control share striking similarities across phyla.
Our work opens up new avenues for studying the neuronal basis of feeding behaviour and food intake at different time scales in an automated and high-throughput manner. The ability to subdivide homeostatic changes in feeding into specific changes in feeding strategies opens up new opportunities to explore how molecular mechanisms, neuronal circuits and metabolic processes interact to control food intake and nutrient homeostasis to optimize life history traits such as reproduction and aging.
Fly stocks and rearing conditions
w1118 flies were used for all experiments except for the real-time bioluminescence experiments. For the real-time bioluminescence experiments, a third chromosomal nSyb-Gal4 (generated by Julie Simpson) strain was used to drive the expression of a UAS-luciferase transgene (generated by Georg Dietzl and Barry J. Dickson). Flies were reared at 25 °C, 60% humidity using a 12-h light–dark cycle. The medium contained, per liter, 80 g cane molasses, 22 g beetroot syrup, 8 g agar, 80 g corn flour, 10 g soya flour, 18 g yeast extract, 8 ml propionic acid and 12 ml nipagin (15% in ethanol).
For yeast feeding experiments, 5–7-day old female flies were wet starved for 12 h. Flies were then transferred into a behavioural arena by mouth aspiration and left to feed on a 10% yeast solution (SAF instant yeast) in 1% agarose. For the choice experiments, 5–7-day old male flies were wet starved for 24 h before testing. Flies were then transferred into a behavioural arena by mouth aspiration and allowed to choose between 1 mM sucrose and 5 mM sucrose solutions dissolved in 1% agarose. For the experiments testing the effect of starvation on sucrose feeding, 5–7-day old male flies were wet starved for 0, 4 and 8 h, respectively, before testing. Flies were then transferred into a behavioural arena by mouth aspiration and left to feed on a 10% sucrose solution dissolved in 1% agarose. All the food solutions used in the experiments were prepared by dissolving 1% agarose at 70 °C in a water bath, adding the relative nutrient, dividing the solution into 2 ml aliquots and freezing them at −20 °C. For each experiment, the aliquots were melted again at 70 °C in a heat block immediately before the experiment. For some experiments, each arena was placed into a small Faraday cage made of aluminium foil and connected to the ground of the power supply to remove potential noise.
Hardware design, FPGA code and data acquisition
PCBs were designed in Eagle CAD software (CadSoft). The PCB production was done by Eurocircuits ( http://www.eurocircuits.com/). Fly arenas were designed in Inkscape ( www.inkscape.org) and cut on a laser cutter (Epilog) from transparent 3 mm acrylic. FPGA code was written in VHDL using Quartus 2 web edition software (Altera Corporation).
The feeding sensor uses the principle of capacitive proximity sensing, and is based on the AD7150 integrated circuit, with a resolution of 1.0 fF. There are two electrodes per sensor, the outer ‘fly’ electrode 1 and the inner ‘food’ electrode 2. The electrode assembly is constructed as a two-sided PCB, where the outer electrode is a foil trace and the inner electrode is a through-plated via. The outer electrode consists of an annular trace with an outer diameter of 10 mm and an inner diameter of 3 mm. The inner electrode has a diameter of 1.75 mm, and is accessed using a trace on the bottom side of the PCB. The AD7150 uses two sense signals per channel, an excitation output and a capacitive input. The excitation output connects to the outer electrode, and the capacitance input connects to the inner electrode. Each integrated circuit contains two sensing channels. We use both to monitor two neighbouring feeding sensors per chip in each arena.
To increase experimental throughput, thirty-two dual-channel behavioural arenas are connected via I2C serial interface to a multiplexer based on the Altera Cyclone IV EP4CE22F17C6N FPGA (as part of a Terasic DE0-Nano board). The multiplexer communicates with each AD7150 in a round-robin fashion, and makes the readings available through a FTDI serial USB interface. To acquire the streamed capacitance data, we developed a package for the Bonsai data stream processing framework53 (available at https://bitbucket.org/horizongir/bonsai.neuro). We also used Bonsai to simultaneously acquire data from video capture devices. For all the analyses, we used a capacitance signal acquired at 100 Hz.
All subsequent signal processing and data analysis steps were done in Matlab (Mathworks).
Hardware designs and software are available at http://www.flypad.pt.
Activity bout detection
To remove slow fluctuations in capacitance that are likely to occur in some cases due to subtle changes in food distribution on the electrodes caused by fly feeding as well as by the evaporation of food from the electrode, we detrended the signal by subtracting the low-passed version of the signal from the original capacitive trace. The low-passed version of the signal was obtained by convolving the signal with a 500-ms square wave. The resulting trace kept all the fine features of the original trace but did not drift over time and had a mean of zero.
To estimate when the fly was actively exploring/eating the food, we calculated the RMS of the signal in consecutive 500 ms windows (Fig. 2a, middle panel). The high signal-to-noise ratio and low variability of the background signal allowed us to use a fixed threshold of 10 RMS units for all our traces to select epochs of increased fly activity. Activity bouts were defined as epochs of the RMS that surpassed the threshold. To compensate for the delay introduced by the windowed RMS calculation, we subtracted 400 ms from the beginning and the end of each of the activity bouts. For each of the activity bout, we extracted a set of parameters which were later used in the analysis, namely the time of the initiation and the termination of the sip, sip duration and ISI.
The signal was processed the same way as for the activity bout detection.
To detect putative sips, we differentiated the signal (Fig. 2b, second panel from the top). The derivative revealed periodic positive and negative peaks. To extract these peaks, we calculated a positive threshold and a negative threshold separately using the method proposed by Rodrigo Quian Quiroga54 for unbiased detection of action potentials.
Positive and negative thresholds (T) were calculated as follows:
Where σ is an estimate of the s.d. of the noise and x are all non-zero positive and negative values of the derivative of the signal. To account for the non-stationary nature of the signal we divided the data into 3-s intervals and calculated the thresholds separately for each of them. Positive values of derivative that exceeded the positive threshold were considered putative attachments of the proboscis and the negative values exceeding the negative threshold were considered as putative detachments of the proboscis. Out of these putative events, we further selected only the local absolute maxima within 70 ms. To remove the events with a shape different from the square wave, we assigned putative attachments and detachments of the proboscis to pairs and removed the events with a duration shorter than 40 ms and longer than 3 s as well as events with amplitude of the detachment signal with a value less than 50% of the attachment (Fig. 2b, arrowheads in bottom panel).
Validation of the sip detection algorithm and food intake
We placed a flyPAD behavioural arena under a SteREO Discovery.V12 (Carl Zeiss) stereo microscope equipped with a Flea 3 (Point grey) USB 3.0 camera. Flies were allowed to feed on yeast in the flyPAD while being recorded on video at 50 f.p.s. The synchronization between the flyPAD capacitance signal and the video was implemented in Bonsai. Only video segments in which all the proboscis contacts could be seen (no obstructions by other body parts of the fly) were included in the analysis. Selected videos were annotated by inspecting the videos frame by frame and manually annotating the time of contact of the proboscis with the food. To compare the performance of the algorithm with the manual annotation we compared both the extracted timepoint of attachment of the proboscis to the food and the number of proboscis extensions (sips) in 10 s video segments.
To validate food intake, we used a real-time bioluminescence method: a photo multiplier tube (H7360-02, Hamamatsu) was placed immediately above the flyPAD behavioural arena and connected to a photon counting unit (C8855-01, Hamamatsu). The whole setup was placed in a light tight environment. Female flies expressing luciferase in their nervous system were left to feed in a behavioural arena containing luciferin-laced food prepared by mixing 10% sucrose with 10 mM firefly D-luciferin Na+ salt (D-luciferin sodium salt ref L3708 from Melford Biolaboratories) in 1% agarose55.
To validate the food intake, we also used a volumetric bioluminescence method: the luciferase-containing food was prepared the same way as described in the section above, except that we used 10% yeast instead of 10% sucrose. Flies were allowed to feed on the flyPAD for 1 h. Immediately afterwards, flies were individually collected from the flyPAD and homogenized in 50 μl 1 × Glo Lysis buffer (Promega), briefly spinned using a table top centrifuge (to remove air bubbles), resuspended and 20 μl of the resulting solution was added to 100μl of QuantiLum Recombinant Luciferase diluted in 900 μl 1X Glo Lysis buffer. The photon counts were measured twice for 20 s per well in a 96-well plate using a MicroLumat Plus LB96V microplate reader (Berthold Technologies). The average of the two reads was used for further analysis. The calibration curve was generated by serially diluting luciferase-containing food. The resulting data points were fit to a power law function (R2=0.997) and the resulting equation was used to translate the photon counts into the consumed volume of food. To avoid a distortion by the dark counts produced by the photomultiplier, data points that corresponded to less than 20 sips were not used for the calculation of the ingested volume per sip.
Preference index (Fig. 4a) was calculated as follows: PI=(n5−n1)/(n5+n1), where n1 and n5 are the number of sips on 1 and 5 mM sucrose, respectively. The cumulative preference index plot (Fig. 4b) was calculated using the same formula where n1 and n5 are the number of sips at consecutive 10 s moments in time (Fig. 4c). Motor behaviours (sip durations and inter-sip intervals) were analysed by calculating the histogram for each individual fly using 30 ms bins. For the comparison of motor patterns across different conditions, we used the modes (corresponding to the peak in the histogram) of the sip duration and the ISI. Feeding bursts were defined as three or more consecutive sips with an ISI of less than two median ISIs of each fly. Cumulative number of sips was calculated in 10 s bins.
How to cite this article: Itskov, P. M. et al. Automated monitoring and quantitative analysis of feeding behaviour in Drosophila. Nat. Commun. 5:4560 doi: 10.1038/ncomms5560 (2014).
Simpson, S. J. & Raubenheimer, D. The Nature of Nutrition: A Unifying Framework From Animal Adaptation To Human Obesity Princeton University Press (2012).
Ribeiro, C. & Dickson, B. J. Sex peptide receptor and neuronal TOR/S6K signaling modulate nutrient balancing in Drosophila. Curr. Biol. 20, 1000–1005 (2010).
Zinke, I., Kirchner, C., Chao, L. C., Tetzlaff, M. T. & Pankratz, M. J. Suppression of food intake and growth by amino acids in Drosophila: the role of pumpless, a fat body expressed gene with homology to vertebrate glycine cleavage system. Development 126, 5275–5284 (1999).
Itskov, P. M. & Ribeiro, C. The dilemmas of the gourmet fly: the molecular and neuronal mechanisms of feeding and nutrient decision making in Drosophila. Front Neurosci 7, 12 (2013).
Ja, W. W. et al. Prandiology of Drosophila and the CAFE assay. Proc. Natl Acad. Sci. USA 104, 8253–8256 (2007).
Dus, M., Ai, M. & Suh, G. S. Taste-independent nutrient selection is mediated by a brain-specific Na+/solute co-transporter in Drosophila. Nat. Neurosci. 16, 526–528 (2013).
Miyamoto, T., Slone, J., Song, X. & Amrein, H. A fructose receptor functions as a nutrient sensor in the Drosophila brain. Cell 151, 1113–1125 (2012).
Flood, T. F. et al. A single pair of interneurons commands the Drosophila feeding motor program. Nature 499, 83–87 (2013).
Wong, R., Piper, M. D., Wertheim, B. & Partridge, L. Quantification of food intake in Drosophila. PLoS ONE 4, e6063 (2009).
Tanimura, T., Isono, K., Takamura, T. & Shimada, I. Genetic dimorphism in the taste sensitivity to trehalose in Drosophila melanogaster. J. Comp. Physiol. 147, 433–437 (1982).
Carvalho, G. B., Kapahi, P., Anderson, D. J. & Benzer, S. Allocrine modulation of feeding behaviour by the sex peptide of Drosophila. Curr. Biol. 16, 692–696 (2006).
Davis, J. D. & Levine, M. W. A model for the control of ingestion. Psychol. Rev. 84, 379–412 (1977).
Davis, J. D. & Smith, G. P. Analysis of the microstructure of the rhythmic tongue movements of rats ingesting maltose and sucrose solutions. Behav. Neurosci. 106, 217–228 (1992).
Guss, J. L. & Kissileff, H. R. Microstructural analyses of human ingestive patterns: from description to mechanistic hypotheses. Neurosci. Biobehav. Rev. 24, 261–268 (2000).
Simpson, S. J. inRegulatory Mechanisms in Insect Feeding eds Chapman R. F., Boer G. Springer (1995).
Branson, K., Robie, A. A., Bender, J., Perona, P. & Dickinson, M. H. High-throughput ethomics in large groups of Drosophila. Nat. Methods 6, 451–457 (2009).
Dankert, H., Wang, L., Hoopfer, E. D., Anderson, D. J. & Perona, P. Automated monitoring and analysis of social behaviour in Drosophila. Nat. Methods 6, 297–303 (2009).
Mclean, D. L. & Kinsey, M. G. Technique for electronically recording aphid feeding and salivation. Nature 202, 1358–1359 (1964).
Tjallingii, W. F. Electronic recording of penetration behaviour by aphids. Entomol. Exp. Appl. 24, 721–730 (1978).
Starre, H. v. d. On the mechanism of proboscis extension in the blowfly Calliphora vicina. Neth. J. Zool. 27, 292–298 (1977).
Harvey, E. N. Studies on bioluminescence: Ix. chemical nature of cypridina luciferin and cypridina luciferase. J. Gen. Physiol. 1, 269–293 (1919).
Brandes, C. et al. Novel features of Drosophila period Transcription revealed by real-time luciferase reporting. Neuron 16, 687–692 (1996).
Burke, C. J. & Waddell, S. Remembering nutrient quality of sugar in Drosophila. Curr. Biol. 21, 746–750 (2011).
Wigglesworth, V. B. The utilization of reserve substances in Drosophila during flight. J. Exp. Biol. 26, 150–163 illust (1949).
Dahanukar, A., Foster, K., van der Goes van Naters, W. M. & Carlson, J. R. A Gr receptor is required for response to the sugar trehalose in taste neurons of Drosophila. Nat. Neurosci. 4, 1182–1186 (2001).
Thorne, N., Chromey, C., Bray, S. & Amrein, H. Taste perception and coding in Drosophila. Curr. Biol. 14, 1065–1079 (2004).
Masek, P. & Scott, K. Limited taste discrimination in Drosophila. Proc. Natl Acad. Sci. USA 107, 14833–14838 (2010).
Gordon, M. D. & Scott, K. Motor control in a Drosophila taste circuit. Neuron 61, 373–384 (2009).
Marder, E., Bucher, D., Schulz, D. J. & Taylor, A. L. Invertebrate central pattern generation moves along. Curr. Biol. 15, R685–R699 (2005).
Nakamura, Y. & Katakura, N. Generation of masticatory rhythm in the brainstem. Neurosci. Res. 23, 1–19 (1995).
Dellow, P. G. & Lund, J. P. Evidence for central timing of rhythmical mastication. J. Physiol. 215, 1–13 (1971).
Davis, J. D. & Keehn, J. D. Magnitude of reinforcement and consummatory behavior. Science 130, 269–271 (1959).
Davis, J. D. & Perez, M. C. Food deprivation- and palatability-induced microstructural changes in ingestive behavior. Am. J. Physiol. 264, R97–R103 (1993).
Spector, A. C., Klumpp, P. A. & Kaplan, J. M. Analytical issues in the evaluation of food deprivation and sucrose concentration effects on the microstructure of licking behavior in the rat. Behav. Neurosci. 112, 678–694 (1998).
Kissileff, H. R., Thornton, J. & Becker, E. A quadratic equation adequately describes the cumulative food intake curve in man. Appetite 3, 255–272 (1982).
Piper, M. D. et al. A holidic medium for Drosophila melanogaster. Nat. Methods 11, 100–105 (2014).
Baker, K. D. & Thummel, C. S. Diabetic larvae and obese flies-emerging studies of metabolism in Drosophila. Cell Metab. 6, 257–266 (2007).
Leopold, P. & Perrimon, N. Drosophila and the genetics of the internal milieu. Nature 450, 186–188 (2007).
Pospisilik, J. A. et al. Drosophila genome-wide obesity screen reveals hedgehog as a determinant of brown versus white adipose cell fate. Cell 140, 148–160 (2010).
Joseph, R. M. & Heberlein, U. Tissue-specific activation of a single gustatory receptor produces opposing behavioral responses in Drosophila. Genetics 192, 521–532 (2012).
Yang, C. H., Belawat, P., Hafen, E., Jan, L. Y. & Jan, Y. N. Drosophila egg-laying site selection as a system to study simple decision-making processes. Science 319, 1679–1683 (2008).
Craig, F. F., Simmonds, A. C., Watmore, D., McCapra, F. & White, M. R. Membrane-permeable luciferin esters for assay of firefly luciferase in live intact cells. Biochem. J. 276, (Pt 3): 637–641 (1991).
Lee, K. H. et al. Cell uptake and tissue distribution of radioiodine labelled D-luciferin: implications for luciferase based gene imaging. Nucl. Med. Commun. 24, 1003–1009 (2003).
Levin, B. E., Routh, V. H., Kang, L., Sanders, N. M. & Dunn-Meynell, A. A. Neuronal glucosensing: what do we know after 50 years? Diabetes 53, 2521–2528 (2004).
Dethier, V. G. The Hungry Fly: A Physiological Study of the Behavior Associated With Feeding Harvard University Press (1976).
Griss, C., Simpson, S. J., Rohrbacher, J. & Rowell, C. H. F. Localization in the central-nervous-system of larval manduca-sexta (Lepidoptera, Sphingidae) of areas responsible for aspects of feeding-behavior. J. Insect. Physiol. 37, 477–482 (1991).
Rowell, C. H. F. & Simpson, S. J. A peripheral input of thoracic origin inhibits chewing movements in the larvae of manduca-sexta. J. Insect. Physiol. 38, 475–483 (1992).
Manzo, A., Silies, M., Gohl, D. M. & Scott, K. Motor neurons controlling fluid ingestion in Drosophila. Proc. Natl Acad. Sci. USA 109, 6307–6312 (2012).
Inagaki, H. K. et al. Visualizing neuromodulation in vivo: TANGO-mapping of dopamine signaling reveals appetite control of sugar sensing. Cell 148, 583–595 (2012).
Marella, S., Mann, K. & Scott, K. Dopaminergic modulation of sucrose acceptance behavior in Drosophila. Neuron 73, 941–950 (2012).
Tolkamp, B. J. & Kyriazakis, I. I. To split behaviour into bouts, log-transform the intervals. Anim. Behav. 57, 807–817 (1999).
Tolkamp, B. J., Allcroft, D. J., Austin, E. J. & Nielsen, B. L. Kyriazakis II. Satiety splits feeding behaviour into bouts. J. Theor. Biol. 194, 235–250 (1998).
Lopes, G. et al. Bonsai: An event-based framework for processing and controlling data streams. bioRxiv DOI: 10.1101/006791 (2014).
Quiroga, R. Q., Nadasdy, Z. & Ben-Shaul, Y. Unsupervised spike detection and sorting with wavelets and superparamagnetic clustering. Neural Comput. 16, 1661–1687 (2004).
Yu, W. & Hardin, P. E. Use of firefly luciferase activity assays to monitor circadian molecular rhythms in vivo and in vitro. Methods Mol. Biol. 362, 465–480 (2007).
We thank Thomas R. Clandinin, Jürgen Knoblich, Kristin Scott and and Bruno Lemaitre for sharing fly stocks. We thank Célia Baltazar, Ana Paula Elias and Ana Sofia Valente for technical assistance in running experiments, Matthieu Pasquet and Ricardo Ribeiro for assistance in hardware and acquisition software development and the Instituto Gulbenkian de Ciência for providing us access to experimental setups. Thomas R. Clandinin, Rui Costa, Samuel Walker and all the members of the Behavior and Metabolism Laboratory for helpful discussions and comments on the manuscript. This project was supported by a Human Frontiers Program Project Grant RGP0022/2012 to M.H.D. and C.R., an Allen Distinguished Investigator award to M.H.D. and the BIAL Foundation grant #167/10 and the Portuguese Foundation for Science and Technology (FCT) grant PTDC/BIA-BCM/118684/2010 to CR. P.M.I. is supported by the postdoctoral fellowship SFRH/BPD/79325/2011 from the Foundation for Science and Technology, E.V. by the fellowship 193-2012 from the BIAL Foundation and G.L. by the PhD Studentship SFRH/BD/51714/2011 from the Foundation for Science and Technology. The Champalimaud Neuroscience Programme is supported by the Champalimaud Foundation.
The authors declare no competing financial interests.
Supplementary Figure 1 (PDF 102 kb)
Supplementary Movie 1
Simultaneous capacitance and video recording of a fly feeding on the flyPAD. Video showing a starved female fly feeding on a 10% yeast solution in 1% agarose. The video is slowed down four-fold. The white trace in the upper part of the video shows the capacitance signal in real time (on the right axis) and a history of the trace runs towards the left axis. The amplitude of the signal is dynamically rescaled to fill the y-axis. Note that each touch of the proboscis is registered in the capacitance trace as a square shaped signal. (MOV 534 kb)
Rights and permissions
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. The images or other third party material in this article are included in the article’s Creative Commons license, unless indicated otherwise in the credit line; if the material is not included under the Creative Commons license, users will need to obtain permission from the license holder to reproduce the material. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/
About this article
Cite this article
Itskov, P., Moreira, JM., Vinnik, E. et al. Automated monitoring and quantitative analysis of feeding behaviour in Drosophila. Nat Commun 5, 4560 (2014). https://doi.org/10.1038/ncomms5560
This article is cited by
A gut-derived hormone suppresses sugar appetite and regulates food choice in Drosophila
Nature Metabolism (2022)
A nutrient-specific gut hormone arbitrates between courtship and feeding
The neuronal logic of how internal states control food choice
The fly liquid-food electroshock assay (FLEA) suggests opposite roles for neuropeptide F in avoidance of bitterness and shock
BMC Biology (2021)
Optogenetic approaches for understanding homeostatic and degenerative processes in Drosophila
Cellular and Molecular Life Sciences (2021)
By submitting a comment you agree to abide by our Terms and Community Guidelines. If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.