Drosophila melanogaster serves as a powerful model organism for aging research. This protocol details the steps required to generate a reproducible, population-based measurement of both lifespan and functional healthspan.
Method Article
* These authors contributed equally
Drosophila melanogaster serves as a powerful model organism for aging research. This protocol details the steps required to generate a reproducible, population-based measurement of both lifespan and functional healthspan.
Aging is characterized by progressive functional decline and reduced lifespan; these two parameters are often evaluated independently in experimental studies. In Drosophila melanogaster, lifespan assays and negative geotaxis–based locomotor measurements are commonly used to study aging and neurodegeneration. However, there is a lack of standardized frameworks that quantitatively integrate early motor performance with long-term survival. Here, we describe a reproducible, semi-automated workflow that combines lifespan analysis with objective quantification of motor healthspan in aging flies.
The protocol integrates controlled fly rearing conditions, mortality accounting, and video-based negative geotaxis assays using standardized MP4 recordings (minimum 1280 × 720 resolution, 30 frames/s). Locomotor performance is quantified using a custom Python-based pipeline implemented in Python 3.12.1 with OpenCV 4.9.0, NumPy 1.26.4, Pandas 2.2.0, and Matplotlib 3.5.2. The workflow performs frame-by-frame centroid detection and extracts active climbing slope (pixels/s) as a continuous metric of motor function. Survival trajectories are analyzed by calculating the survival fraction and performing trapezoidal numerical integration to obtain the survival area under the curve (AUC). Normalization of early motor performance enables direct comparison between functional decline and overall longevity.
The workflow was evaluated by comparing semi-automated climbing slope measurements with conventional manual endpoint scoring in control and amyloid-β–expressing flies, with both methods detecting age-dependent motor decline. Representative datasets demonstrated reproducible lifespan trajectories in Canton S controls and measurable early motor impairment in the neurodegenerative model. This method minimizes observer bias, enhances reproducibility, and remains compatible with low-cost video acquisition systems. The workflow can be readily adapted to genetic models, pharmacological interventions, and neurodegenerative paradigms, providing a scalable platform for integrated aging phenotyping in Drosophila.
Aging is characterized not only by reduced lifespan but also by progressive decline in physiological and behavioral function1. In neurodegenerative conditions, early impairments in motor coordination often occur before notable mortality and reflect underlying neuronal dysfunction2,3. The fruit fly Drosophila melanogaster has emerged as a powerful model system for studying aging and neurodegeneration due to its short lifespan, genetic tractability, and well-established behavioral assays4. Lifespan analysis in Drosophila provides a robust measure of organismal survival, while negative geotaxis assays are widely used to assess locomotor function and age-dependent motor decline5,6. However, these two readouts are frequently analyzed independently, limiting the ability to quantitatively relate early functional impairment to long-term survival trajectories. Integrated analysis of motor healthspan and lifespan may provide mechanistic insight into whether interventions influence aging rate, disease progression, or specific physiological systems. This approach is particularly suitable for genetic, pharmacological, and neurodegenerative models in which early locomotor deficits precede notable mortality, enabling sensitive detection of functional decline before observable survival differences emerge.
Traditional negative geotaxis assays rely on endpoint-based scoring, such as the proportion of flies reaching a defined height within a fixed time interval. Although straightforward and inexpensive, manual scoring can introduce observer bias and may overlook subtle differences in motor kinetics. Continuous trajectory-derived measurements may improve sensitivity for detecting subtle locomotor impairments relative to conventional endpoint-based scoring approaches. Similarly, lifespan assays require rigorous mortality accounting and environmental standardization to ensure reproducibility7. There remains a need for accessible, reproducible approaches that integrate functional healthspan metrics with survival data within the same cohort.
Here, we describe a semi-automated workflow that combines standardized lifespan analysis with video-based quantification of motor performance in aging Drosophila. Using open-source computational tools, frame-by-frame centroid detection is performed to extract climbing slope (pixels/s) as a continuous metric of motor function. Survival data are processed by calculating the survival fraction and performing trapezoidal numerical integration to obtain the survival area under the curve (AUC). By normalizing early motor performance and integrating it with survival AUC, this protocol enables direct comparison between functional decline and overall longevity. This approach provides an objective, cost-effective framework for linking motor healthspan to lifespan outcomes and enables comprehensive phenotyping of aging trajectories in Drosophila (Figure 1).
All experiments were performed using Drosophila melanogaster and conducted in accordance with institutional laboratory guidelines. Ethical approval was not required because the study involved invertebrate organisms. Maintain all procedures following institutional animal care guidelines for invertebrate research.
NOTE: Store experimental foods at 4 °C and use them within 1 week, provided they remain dry. Maintain standard environmental conditions by incubating flies at 25 °C under a 12:12 h light–dark cycle and approximately 60% relative humidity.
1. Preparation of standard fly food
2. Generation of amyloid-β–expressing D. melanogaster
3. Fly collection
4. Longevity experiment
5. Negative geotaxis experiment
6. Integration of early motor health and survival analysis
7. Statistical analysis
Reproducible lifespan profiles under standardized rearing conditions
When flies were maintained under controlled environmental conditions (25 °C, 60% humidity, 12 h:12 h light–dark cycle) using freshly prepared standardized food, control cohorts exhibited consistent survival trajectories across independent experiments. Canton S control flies demonstrated a median lifespan of approximately 65–72 days, with maximum survival extending to 75 days (Figure 2). Lifespan experiments were performed with 2 biological replicates per condition, each containing 20 flies. Representative survival trajectories obtained under standardized environmental and food conditions demonstrated reproducible lifespan profiles in control cohorts.
In contrast, pan-neuronal amyloid-β–expressing flies exhibited reduced survival relative to Canton S controls, consistent with previously reported neurodegenerative phenotypes in Drosophila Alzheimer’s disease models4,5,6.
Suboptimal lifespan outcomes may occur when food quality deteriorates or when handling conditions are inconsistent. Under these conditions, early mortality spikes within the first 7–10 days and increased inter-vial variability (>25%) were detected, indicating compromised experimental reproducibility and reduced consistency across biological replicates.
Age-Dependent Motor Decline Detected by Semi-Automated Climbing Analysis
Conventional manual negative geotaxis scoring detected age-dependent locomotor decline in amyloid-β–expressing flies relative to Canton S controls (Figure 3). At Day 7, climbing performance remained broadly comparable between groups, whereas by Day 28, amyloid-β-expressing flies exhibited reduced climbing activity relative to control flies. Control cohorts maintained relatively stable climbing performance across aging time points. These manually scored behavioral trends corresponded with reductions in climbing slope values from the semi-automated FlyTrDT pipeline, showing age-dependent trends similar to those of conventional endpoint scoring and the computational tracking workflow (Figure 4). The observed locomotor decline in amyloid-β–expressing flies is consistent with established age-dependent behavioral impairment reported in Drosophila neurodegeneration models using conventional negative geotaxis assays6,7.
Semi-automated climbing analysis using FlyTrDT revealed preserved early motor function in control flies. At Day 7, control flies exhibited a mean climbing slope of 86.64 pixels/s, reflecting sustained upward displacement during the active climbing phase (Figure 4). By Day 28, the slope approached zero (−1.50 pixels/s), consistent with age-associated slowing.
In contrast, amyloid-β–expressing flies exhibited early motor impairment. At Day 7, climbing slope was reduced to 34.25 pixels/s, representing approximately 39% of control performance after normalization. By Day 28, the climbing slope declined substantially to −72.25 pixels/s, indicating impaired upward locomotor performance.
The slope-based metric captures the active climbing segment and reduces contributions from initial startle latency, plateau phases, and stochastic movement artifacts. Positive slopes indicate net upward locomotion, near-zero slopes indicate limited vertical displacement, and negative slopes indicate net downward displacement. These representative trajectories illustrate progressive motor decline in amyloid-β–expressing flies relative to age-matched controls.
Under optimal recording conditions, the FlyTrDT pipeline generated continuous centroid trajectories with stable contour segmentation and consistent vertical displacement profiles (Figure 4A). Reduced locomotor performance in amyloid-β–expressing flies was reflected by less sustained upward trajectories and lower slope values (Figure 4B–D). Videos recorded with excessive glare, unstable tube positioning, inconsistent illumination, or inadequate background contrast produced discontinuous centroid trajectories and intermittent tracking artifacts and were excluded during quality-control assessment.
Association between early motor performance and survival outcomes
To examine the associations between early motor performance and survival outcomes, normalized Day 7 climbing slope values were compared with survival AUC (area under the curve) across genotypes (Figure 5). Control flies with preserved early motor performance (normalized motor index = 1.0) exhibited higher survival AUC values (48.2), whereas amyloid-β–expressing flies with reduced early motor performance (normalized motor index = 0.395) displayed lower survival AUC values (24.65). Representative locomotor datasets were generated from 2 biological replicate vials per condition. These representative datasets suggest an association between reduced early motor performance and shortened survival in the amyloid-β disease model. Because only two representative genotypes were analyzed, these findings are presented descriptively rather than as a statistically powered predictive correlation.

Figure 1: Workflow overview of the semi-automated FlyTrDT pipeline integrating locomotor healthspan metrics with survival analysis. The workflow includes standardized fly rearing and lifespan analysis, manual and semi-automated negative geotaxis assessment, frame-wise centroid extraction from climbing videos, calculation of climbing slope (pixels/s), survival area under the curve (AUC) analysis, and integration of motor performance with survival outcomes. Please click here to view a larger version of this figure.

Figure 2: Kaplan–Meier survival analysis of Canton S control and amyloid-β–expressing flies. Survival curves illustrate lifespan trajectories under standardized environmental and dietary conditions. Canton S control flies exhibited prolonged survival relative to pan-neuronal amyloid-β–expressing flies, which demonstrated reduced lifespan across aging time points. Data represent representative survival trajectories obtained from 2 biological replicate vials per condition. Please click here to view a larger version of this figure.

Figure 3: Manual negative geotaxis performance in control and amyloid-β–expressing flies at Day 7 and Day 28. Box plots show representative climbing activity measurements expressed as the percentage of flies crossing the 10 cm threshold within 10 s. Canton S (CS) control flies maintained relatively stable climbing activity across aging time points, whereas amyloid-β–expressing flies exhibited reduced climbing performance by Day 28. Each point represents an individual vial measurement. Representative datasets were generated from 2 biological replicate vials per condition. Please click here to view a larger version of this figure.

Figure 4: Semi-automated extraction of climbing trajectories and active climbing slope in control and amyloid-β–expressing flies. Representative mean vertical position trajectories were extracted from negative geotaxis videos using the FlyTrDT tracking pipeline. Blue traces represent the frame-by-frame mean vertical centroid position of detected flies over time, and red segments indicate a representative active climbing segment identified using a rolling linear regression window. Slope values are expressed in pixels/s. (A) Day 7 Canton S control flies. (B) Day 7 amyloid-β–expressing flies. (C) Day 28 Canton S control flies. (D) Day 28 amyloid-β–expressing flies. Representative trajectories were generated from 2 biological replicate vials per condition. Please click here to view a larger version of this figure.

Figure 5: Association between early motor performance and survival outcomes in a Drosophila model of amyloid-β toxicity. Normalized Day 7 climbing slope values were plotted against survival area under the curve (AUC) for Canton S (CS) control flies and amyloid-β–expressing (AD) flies (n = 2). Control flies exhibited higher early motor performance and increased survival AUC values relative to amyloid-β–expressing flies. These representative datasets illustrate an association between early locomotor performance and survival outcomes. Please click here to view a larger version of this figure.
Supplementary File 1: Python-based FlyTrDT climbing-analysis script used for semi-automated locomotor quantification from negative geotaxis videos. The script performs frame-by-frame image processing, centroid detection, trajectory extraction, and calculation of climbing metrics, including climbing slope, velocity, trajectory length, trajectory area, stop count, and turn count.Please click here to download this file.
Supplementary File 2: Python script for integration of motor healthspan and lifespan data. The script performs survival fraction calculation, trapezoidal area-under-the-curve (AUC) analysis, normalization of Day 7 climbing slope values, dataset merging, and graphical visualization of motor performance and survival outcomes.Please click here to download this file.
Here we present a protocol integrating lifespan analysis with semi-automated motor healthspan quantification in Drosophila melanogaster. Reliable integration of lifespan and locomotor measurements depends strongly on environmental consistency, food quality, and standardized handling procedures across biological replicates7. Variability in food dryness, delayed transfers, or inconsistent mortality accounting may introduce early mortality spikes and increased inter-vial variation, thereby affecting the reconstruction of survival curves and the downstream interpretation of aging phenotypes.
During the negative geotaxis assay, consistent lighting conditions, camera positioning, and tube alignment are required to ensure reliable centroid detection during video processing. Excessive CO₂ exposure during sorting should be minimized, as anesthesia can affect both lifespan and locomotor performance. When performing repeated behavioral measurements from the same cohort, assays should be conducted at the same time of day to reduce circadian variability. Inadequate background contrast or inconsistent illumination may impair thresholding and contour detection during automated analysis. If contour fragmentation or unstable centroid trajectories are observed during video processing, improve background contrast, reduce glare, stabilize camera positioning, and maintain uniform illumination across recordings. Persistent thresholding artifacts can be minimized by adjusting the recording angle, reducing shadows, or ensuring that the entire climbing tube remains continuously visible within the frame. Excessive fly clustering within the tube may impair accurate centroid estimation and should be minimized by maintaining consistent cohort sizes across experiments.
Traditional negative geotaxis assays typically quantify the proportion of flies reaching a predefined height within a fixed time interval and are widely used to assess locomotor decline during aging and neurodegeneration5,6. In contrast, the present semi-automated workflow extracts an active climbing phase of upward movement and calculates active climbing slope (pixels/s) from frame-wise centroid trajectories. Because centroid positions are averaged across all detected flies within each frame, individual locomotor trajectories and fly-to-fly behavioral heterogeneity are not resolved. This approach reduces contributions from startle latency, transient pauses, and clustering behavior that influence endpoint-based manual scoring. Unlike conventional endpoint-based scoring, the present workflow also provides continuous, rising-slope (pixels/s) measurements that enable quantitative comparison of motor decline across age and genotype. Similar computational tracking approaches have been increasingly applied to improve objectivity and consistency in Drosophila behavioral analysis using automated locomotor quantification platforms8,9,10,11,12.
Several additional limitations should be considered. Pixel-based measurements of climbing slope (pixels/s) depend on consistent camera calibration and recording geometry across experiments. Differences in camera distance or resolution may affect absolute slope values, necessitating normalization to internal controls. Moreover, while early motor decline was qualitatively associated with reduced survival in the amyloid-β model presented here, broader validation across additional genotypes, interventions, or pharmacological treatments would strengthen interpretation of the relationship between motor performance and survival outcomes. The representative datasets presented here are intended to demonstrate workflow implementation and interpretation rather than establish a generalized predictive model across disease contexts.
Despite these limitations, this protocol provides a reproducible, cost-effective framework for linking functional healthspan metrics to survival outcomes in aging studies. The method is readily adaptable to genetic manipulations, drug screening paradigms, and neurodegeneration models in which functional decline precedes mortality. By integrating objective quantification of climbing slope (pixels/s) with standardized survival analysis, this approach facilitates comprehensive phenotyping of aging trajectories in Drosophila. Future studies incorporating additional neurodegenerative genotypes, pharmacological interventions, and longitudinal behavioral datasets may further strengthen the utility of the workflow for integrated healthspan analysis13,14.
The authors have nothing to disclose.
This work was supported with funds from the Amrita School of Biotechnology, Amrita Vishwa Vidyapeetham, Amritapuri.
| Name | Company | Catalog Number | Comments |
|---|---|---|---|
| Agar | Himedia | GRM666 | Solidifying agent |
| Benzoic acid | Himedia | GRM488 | Antimicrobial preservative |
| Canton-S | Bloomington Drosophila Stock Center | BDSC #1 | Wild-type reference strain |
| Climbing tube | Custom-built | N/A | Transparent cylindrical tube, 12 cm height × 2 cm diameter, transparent plastic or glass |
| Corn flour | Local supplier | N/A | Fly food preparation |
| Desktop/Laptop computer | Any manufacturer | User-defined | Minimum dual-core processor, ≥8 GB RAM, Python 3.x compatible operating system |
| D-glucose | Himedia | MB037 | Fly food component |
| elav-GAL4 | Bloomington Drosophila Stock Center | BDSC #458 | Pan-neuronal GAL4 driver |
| Matplotlib | Open-source library | Version 3.5.2 | Plotting and visualization |
| NumPy | Open-source library | Version 1.26.4 | Numerical calculations |
| OpenCV | Open-source library | Version 4.9.0 | Video processing |
| Pandas | Open-source library | Version 2.2.0 | Data handling |
| Propionic acid | Himedia | GRM3658 | Antifungal preservative |
| Python | Python Software Foundation | Version 3.12.1 | Analysis environment |
| Scikit-learn | Open-source library | Version 1.4.2 | Linear regression analysis |
| Smartphone camera / Digital camera | Any manufacturer | User-defined | Minimum 30 frames/s recording, stable focus, perpendicular positioning, minimum 1280 × 720 resolution |
| Sucrose | Himedia | GRM601 | Fly food component |
| UAS-APP.Aβ.E693G | Bloomington Drosophila Stock Center | BDSC #33774 | Human APP Arctic mutation model |
| Yeast | Himedia | RM027 | Nutritional supplement |
This article has been published
Video Coming Soon