Previous Article in Journal
Eliminating Aedes aegypti from Its Southern Margin in Australia: Insights from Genomic Data and Simulation Modeling
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Analysis of Fall and Jump Behaviors in Freely Moving Drosophila melanogaster Using 58 fps Video

Molecular and Cellular Biosciences Department, University of Southern California, Los Angeles, CA 90089, USA
*
Author to whom correspondence should be addressed.
Insects 2026, 17(6), 624; https://doi.org/10.3390/insects17060624 (registering DOI)
Submission received: 23 April 2026 / Revised: 24 May 2026 / Accepted: 10 June 2026 / Published: 13 June 2026
(This article belongs to the Section Insect Behavior and Pathology)

Simple Summary

Falls are a major source of human disability and death, with interventions currently limited to exercise. Drosophila is a powerful model system for the analysis of movement disorders and possible interventions, both during normal aging and in Drosophila models of human neurodegenerative disease. However, previous Drosophila experiments have been limited by the inability to distinguish between falls and downward jumps (downjumps). Here, individual flies moving freely in a culture vial were analyzed using a single 58 fps video camera. Upward jumps were readily identified by positive movement in the vertical direction. Advanced statistical and machine learning tools were used to distinguish between falls and downjumps. Falls were characterized by an initial velocity consistent with simple acceleration due to gravity. By contrast, downjumps were characterized by a greater initial velocity, consistent with active propulsion by the fly. In agreement with previous studies, aged flies moved less and explored a smaller region of the vial. In addition, aged flies took longer to resume movement after a fall, suggesting possible negative effects of falls. These methods should facilitate future studies of the effects of aging and neurodegeneration models on locomotor behaviors and falls, including the testing of potential interventions.

Abstract

Analysis of freely moving Drosophila captures complex movement behaviors. However, previous experiments have been limited by the inability to distinguish between falls and downward jumps (downjumps). Here, individual flies moving freely in a culture vial were recorded using a single 58 fps video camera. Upward jumps were readily identified by positive movement in the vertical direction. Several statistical and machine learning methods were used to distinguish between falls and downjumps, including Principal Component Analysis (PCA), K-Means Clustering, Uniform Manifold Approximation and Projection (UMAP), Hierarchical Density-Based Spatial Clustering with Applications to Noise (HDBSCAN) and Shapley Additive Explanations (SHAP). Falls were abundant and characterized by an initial velocity consistent with simple acceleration due to gravity. Downjumps were more rare, and were characterized by a greater initial velocity, indicating active propulsion by the fly. Aged flies took longer to resume movement after a fall, suggesting possible negative effects of falls. Falls in young w[1118]-strain flies exhibited mid-event velocities that were lower than expected, indicating some compensatory behavior that was reduced in aged flies. These methods should facilitate future studies of the effects of aging and neurodegenerative disease models on locomotor behaviors and falls, including the testing of potential interventions.

Graphical Abstract

1. Introduction

In humans, both normal aging and neurodegenerative disease (ND) are associated with locomotor impairments, including increased falls. Falls are a significant cause of disability and death, and there are currently no effective interventions known other than exercise [1,2,3,4]. It is therefore of interest to leverage the Drosophila model system to study the etiology of locomotor impairments, including falls, with the ultimate goal of identifying environmental or small-molecule interventions that might be relevant to human health.
Drosophila is a leading model system for the study of nervous system function and animal behavior. The neuronal wiring diagram and cell connectome have been mapped for the entire Drosophila brain [5,6], and powerful transgenic tools enable modulation of the activity of specific neuronal subsets, including individual neurons [7]. Video analysis has been used to analyze several complex Drosophila behaviors including flight, grooming, mating and aggression [8,9,10,11].
Drosophila is also a leading model for the study of aging [12,13,14] and for modeling human ND, including Alzheimer’s disease (AD) and Parkinson’s disease (PD) [15]. Several methods have been used to study how normal aging and the ND models affect Drosophila locomotor behaviors. Drosophila activity monitors (DAMs) and locomotor activity monitors (LAMs) employ infrared beams in the fly container, and record each time the beam is disrupted by a moving fly. These assays provide quantification of total fly movement activity, which is observed to be reduced with age and in the ND models. The negative geotaxis assay specifically measures upward climbing speed after the fly is knocked to the bottom of a cylinder, a behavior generally interpreted as an induced escape response [16]. Negative geotaxis behavior is also reduced with age and in Drosophila ND models [17,18,19]. Drosophila have also been assayed for 2D locomotor behaviors while moving freely in a Petri dish-shaped arena [20], and for 3D locomotor behaviors while moving freely in a culture vial [18,21], including assays of 3D movement trajectories using synchronized video cameras [22]. These studies have revealed locomotor behaviors associated with imminent mortality, including bouts of erratic movement (as indicated by increased frequency of directional heading changes), and supine behavior (fly lying on its back) [21,22,23,24,25].
Several previous studies of Drosophila have described events where the fly drops rapidly through space from a higher position in the observation chamber to a lower position, and these drops have sometimes been referred to as “falls” depending on the context in which they were observed. For example, Lobato et al. [26] used 30 fps video to analyze flies as they climbed upwards in a negative geotaxis assay. Flies were observed to occasionally drop during climbing, and they defined drops of greater than 11.7 mm as “falls”. Similarly, Canic et al. [27] used 30 fps video to analyze flies as they climbed upwards in the negative geotaxis assay, and defined drops of greater than 12 mm as “falls”. Finally, in our recent study, YOLOv4 machine learning software was trained to recognize drops in 30 fps videos of freely moving flies [28]. In that study, the frequency of drops was found to peak proximal to death associated with normal aging or as produced by dehydration/starvation stress. Those events were interpreted to most likely represent “falls”, because they increased in the hours before death when total movement activity had significantly decreased. One limitation of the previous studies is that 30 fps video analysis cannot unambiguously distinguish between a true fall, where the downwards velocity results only from acceleration due to gravity, and a downjump, where the downwards velocity will include additional acceleration produced by the fly.
Analysis of falls and downjumps is of particular interest, because the inability of aged flies to right themselves after a fall is implicated as one cause of death [22,23,24,25]. Here a single 58 fps camera was used to record individual flies moving freely in a culture vial. Custom software (MotionDetection version 2.1, MDv2.1) was developed to track fly movement trajectories, and analysis of drop velocities and other metrics revealed distinct behaviors, including falls, downjumps, upward jumps (upjumps) and arced jumps (arcjumps).

2. Materials and Methods

2.1. Drosophila Culture and Strains

Drosophila melanogaster flies were cultured at 25 °C and 65–80% humidity under a 12 h:12 h light–dark cycle using standard agar/dextrose/corn meal/yeast media [29]. Several strains were obtained from the Bloomington Drosophila Stock Center (BDSC, Bloomington, IN, USA). Strain y[1] w[1118]; P[w[+mC] = UAS-APP.Abeta42.E693G.VTR]4 (BDSC #33773, abbreviated here as “UAS-Abeta42”, is a UAS-controlled transgene containing the human amyloid β42 protein with the E693G mutation [18]. Strain w[*]; P[w[+mC] = UAS-Hsap\SNCA.A30P]40.1 (BDSC #8147, abbreviated here as “UAS-SNCA”) is a UAS-controlled transgene encoding the A30P mutant of human α-synuclein [30]. Strain P[w[+mW.hs] = GawB]elav[C155] (BDSC #458, abbreviated here as “elav-GAL4”) yields neuronal GAL4 expression driven by the elav gene promoter [31]. The w[1118] reference strain (w[1118]-iso; 2-iso; 3-iso) has been previously described and sequenced [32,33]. This strain was previously cleared of Wolbachia by three generations culture on doxycycline followed by confirmation using PCR as described [34]. Each transgenic strain was backcrossed nine generations to the w[1118] reference strain. To generate flies with pan-neuronal expression of human α-synuclein or amyloid-β42, virgin females from the elav-GAL4 strain were crossed to UAS-SNCA males or UAS-Abeta42 males, respectively, to generate hybrid progeny. Control flies were produced by crossing elav-GAL4 virgin females to males from the w[1118] reference strain. Dehydration/starvation stress was produced by putting young (2-day-old) w[1118] male flies in an empty vial for 24 h; control flies were maintained on normal media.

2.2. Hardware Implementation

2.2.1. Cameras and Lens

Videos were captured using a FLIR Blackfly S BFS-U3-63S4M-C camera (6.3 megapixels, Sony IMX178 sensor; FLIR Systems, Wilsonville, OR, USA) attached to an 8 mm megapixel fixed-focal-length lens (Edmund Optics, Barrington, NJ, USA). The camera lens was positioned 14.4 cm from the center of the assay vial and aligned directly towards the center of the vial.

2.2.2. Lights and Organization

Illumination was supplied by three external dimmable white LED light sources (power: 1–1.5 W; luminosity: 90–120 lm; color temperature: 3000 K; beam angle: 30°; housing: aluminum, YaeCCC Company, Shanghai, China, Amazon.com). One light source was positioned 10.8 cm directly above the center of the vial. The second light source was located 10.6 cm to the left and 4.4 cm above the center of the camera lens, and 11.8 cm from the vial. The third light source, located to the right of the camera, was placed 12.7 cm to the right and 3.7 cm above the center of the camera lens, and 12.2 cm from the vial.
The light sources were connected via a junction box and simultaneously controlled through a single-channel pulse-width modulation controller. The cameras were connected to computers via USB 3.1 (USB-A to USB Micro-B cable). Video acquisition was performed on HP desktop computers running Windows 10 Enterprise LTSC with dual Intel Xeon E5-2630 processors (2.30 GHz/Core) and 12 GB of RAM.

2.2.3. Video Recording

Fly locomotion assays were conducted in a dark box housing the fixed-camera, fixed-lighting recording setup outlined above. Flies were randomly selected from their respective cohorts, anesthetized through minimal CO2 gas exposure, and placed into individual vials with media the day before recording. For assay, flies were transferred without anesthesia from their culture vials into unthreaded 4-dram (~15 mL) glass assay vials containing a black foam plug at the bottom of the vial. The vial is 2 cm inner diameter and 6 cm in height. The top of the foam plug was 2.3 cm from the base of the vial, producing a height of 3.7 cm available to the fly. A 30 mm diameter round glass coverslip (#1.5 thickness, Bioptech, Butler, PA, USA) was placed on top of the assay vial to enclose the fly. The assay vial with coverslip and fly were placed into the recording chamber, and video was recorded for 30 min at 58 frames per second (fps) using SpinView software (version 4.2.0.88, FLIR Systems) for camera control and data acquisition. All videos were recorded between 10:00 AM and 2:00 PM. Videos were analyzed for movement and event detection using custom software Motion DetectionV2.1 (MDv2.1), using HP desktop computers running Windows 10 Enterprise LTSC with dual Intel Xeon W-2245 processors (3.90 GHz/Core) and 64 GB of RAM.

2.3. Motion Detection Software and Data Analysis

2.3.1. Object Detection

Video metadata was extracted using OpenCV VideoCapture class properties [35]. Background subtraction utilized the Mixture of Gaussian (MOG2) algorithm, which dynamically updates its background representation to adapt to gradual lighting changes [36]. Background subtraction generates a foreground mask, where a change in pixel values between frames indicates motion.
Contours were passed through a minimum area filter with a floor of 20 pixels to prevent filtering of hidden flies. When multiple contours were detected, each contour was compared with the previous frame’s detections using a weighted distance metric, where distance is calculated as follows:
d i s t a n c e =   2   × ( Δ x   +   Δ y )   +   0.3 × ( Δ w   +   Δ h )   +   0.05 × Δ a r e a 1000
Δx is the absolute difference in x-coordinate, Δy is the absolute difference in y-coordinate, Δw is the absolute difference in width, Δh is the absolute height difference, and Δarea is the absolute difference in area. The difference in area is divided by 1000 to reduce area differences to similar magnitudes to position differences.
The software processes the video at two different sensitivity thresholds for changes in pixel intensity. The low sensitivity threshold analysis is conducted first to identify fly movement and reduce false positives. The high sensitivity threshold analysis is then conducted to capture fast movements missed in the initial pass. Any missing values in the lower-sensitivity detections that were detected by the higher-sensitivity analysis were added to the detection file.
All detections are recorded in a CSV file with columns for frame number, timestamp(s), bounding box coordinates (x, y, width, height), and pixel area. If no valid detection occurs in a frame, that frame is omitted from the file. For each video, an annotated video with bounding boxes for each frame area is also optionally generated.

2.3.2. Calibration of Pixels to Mm

Pixels were converted to millimeters by utilizing the vial dimensions as a reference. The software prompts the user to draw horizontal and vertical calibration lines on a single video frame. The vial height (37 mm) and the vial width (20 mm) are divided by the length of the vertical line and the length of the horizontal line, respectively, to generate millimeter-to-pixel ratios. These ratios are then used by the software to convert velocities, displacements, and accelerations into SI units.

2.3.3. Displacement and Kinematic Metrics

Vertical and horizontal displacements are calculated as framewise differences. Velocity is computed by dividing the Euclidean distance by the time difference between frames. The equation is as follows:
v e l o c i t y   =   Δ x 2 + Δ y 2 Δ t
Event-level and frame-by-frame kinematic metrics derived from these calculations are summarized in Table S1. Pixels were converted to millimeters using the calibration method outlined above to convert kinematic metrics into SI units. All velocities and horizontal displacements are expressed as absolute values in figures and tables.

2.3.4. Event Detection, Classification, and Filtering

Candidate events are initially identified by vertical displacement thresholds. Downward events (referred to as drops) were identified by vertical displacements exceeding 60 pixels from frame n to frame n + 2 in the downward direction. Upjumps were identified by vertical displacements exceeding 50 pixels from frame n to frame n + 1 in the upward direction. Upjumps followed by a drop within a predefined refractory period of 15 frames (0.26 s) are classified as arcjumps and the drop within the refractory period is not counted.
To account for errors in object tracking introduced by any glare at the top of the vial, events occurring entirely within the upper 25% of the vial were censored. Consecutive events within a predefined refractory period of 15 frames are merged to avoid double-counting.

2.3.5. Defining the Temporal Bounds of Events

Event triggers are the metrics by which the software identifies an event, and are calculated by the first instance the vertical displacement exceeds an event’s displacement threshold (Table S1). The event start is estimated by taking the time at event trigger (Table S1), and adjusting back to frame n − 1 if frame n − 1 is consecutive and the vertical displacement from frame n to frame n − 1 is greater than 20 pixels. Event ends are determined by subsequent vertical movement stability, defined either by less than 5 pixels of vertical movement from frame n to frame n + 1, or less than 10 pixels of vertical movement from frame n to frame n + 3.

2.4. Statistical Analyses

All data processing, statistical analyses, and dimensionality reduction were conducted using Python (Version 3.12.12). Analyses were conducted using custom Python scripts. Data organization, data manipulation, and numerical operations were performed using the Python libraries pandas (Version 2.2.2) and NumPy (Version 2.0.2) [37]. Group comparisons were conducted using the SciPy library (Version 1.16.3). To compare between two independent groups in event count and drop metric assays, two-tailed Student’s t-tests were performed. Welch’s correction was applied when assumptions of equal variance were violated, and the Mann–Whitney U test was used when normality assumptions were not met. To compare drop metrics between clusters, the nonparametric Kruskal–Wallis test was used. Post hoc pairwise comparisons were conducted using Dunn’s test using the scikit-posthocs package (Version 0.12.0) to determine significant differences between clusters [38]. Bonferroni correction using the statsmodels package (Version 0.14.6) was used to correct for multiple testing wherever applicable [39]. Statistical significance was defined as p < 0.05.
Principal Component Analysis (PCA) was performed through the scikit-learn library (Version 1.6.1) [40]. Numerical data were standardized by centering variables to a zero mean and scaling to unit variance. Centroid-based partitional clustering was performed using the K-Means Clustering algorithm [41] implemented by the scikit-learn Python package. The number of clusters (k) was predefined as three. Uniform Manifold Approximation and Projection (UMAP) was performed using the umap-learn package (Version 0.5.11) with default parameters [42]. Student’s t-test comparisons, PCA data, and UMAP data were visualized using the libraries Matplotlib (Version 3.10.0) [43] and seaborn (Version 0.13.2) [44]. Density-based clustering was performed using the Hierarchical Density-Based Spatial Clustering of Applications with Noise (HDBSCAN) algorithm [45], implemented by the hdbscan Python package (Version 0.8.41) [46]. The hyperparameter min_cluster_size was optimized by computing the total stability of clusters at each possible min_cluster_size value, closely following the proposed optimization algorithm described by Campello et al. [45]. Candidate min_cluster_size values that produced a noise fraction exceeding 20% of the dataset were excluded from consideration. The optimal value for min_cluster_size was then selected as the value that maximized the total stability of all the clusters. This yielded four individual clusters. All other parameters were kept at their default values. Cluster quality and cohesiveness were examined using the silhouette score, Davies–Bouldin index, and the Calinski–Harabasz index [47,48,49].
To examine the kinematic differences between HDBSCAN-defined clusters, a Random Forest Classifier from the scikit-learn library was trained to predict cluster membership using the entire dataset. Model explanations were generated using Shapley Additive Explanations (SHAP), a method to estimate the contribution of each feature to each prediction. Feature importance was computed using the mean absolute SHAP value across samples in each cluster (Tables S2–S5). The direction of feature importance was quantified using Spearman rank correlation. SHAP analysis was conducted using the SHAP library (Version 0.50.0) [50,51]. One limitation of the SHAP analysis is several of the features were not independent. To address this limitation, an additional SHAP analysis was conducted on a reduced feature set. A representative feature was kept for each of three feature pairs that had a Pearson correlation greater than 0.8. For a group of 4 non-independent features that included maximum velocity, maximum acceleration, maximum jerk and average velocity, a standardized mean was used as a single feature. In addition, two features that did not significantly differ between the HDBSCAN-defined clusters based on the Kruskal–Wallis test were omitted. This reduced the number of features from 18 to 7. This modified SHAP analysis resulted in essentially identical cluster definitions.

2.5. Post Hoc Filtration of Event Dataset

Events that were scored as drops but that displayed upward movement were interpreted to result from inaccuracies in fly tracking and were excluded from further analysis, reducing the dataset by 83 drops, or 3.5% of drops. To filter events resulting from non-fly detections (e.g., glare), upjumps with negative vertical displacement were excluded. Arcjumps were modeled using quadratic regression of vertical displacement as a function of time. Arcjumps were excluded if their quadratic correlation coefficient (R2) was less than 0.85, the quadratic coefficient was positive, or if the trajectory of the event did not include both positive and negative vertical displacements. These measures further filtered the dataset by 7.32%, reducing the total number of events to 2367. The final dataset consists of 232 videos with 2299 drops, 43 arcjumps, and 25 upjumps.

2.6. Velocity Calculations

2.6.1. Expected Initial Velocity for a Fall

The expected initial velocity of resulting from acceleration due to gravity can be calculated using the Newtonian free-fall equation with drag:
v t =   v t t a n h (   g t v t +   t a n h 1 v 0 v t )
where v t is the terminal velocity, g is Earth’s gravitational acceleration ( g 9.81   m / s 2 ) , t is the time of interest, and v 0 is the initial velocity. Assuming that a fall starts from rest, the equation simplifies to:
v t =   v t t a n h ( g t v t )
MDv2.1 software defines initial velocity as the median of the first two non-zero velocity measurements, which occur between frames 0 and 1, and between frames 1 and 2, in >95% of events. At a video recording speed of 58 frames per second, this time can be represented by the fraction tMD which is defined as the time at which MDv2.1 calculates initial velocity.
t M D = m e d i a n ( 1,2 ) 58 = 3 116
Terminal velocity is calculated as:
v t =   2 W ρ A C D
where W is the weight of the fly, ρ is the density of air, A is the cross-sectional surface area of the fly, and C D is the drag coefficient. The drag coefficient of a de-winged fly was previously estimated as C D = 1 [52]. The density of air was assumed ρ = 1.2   k g / m 3 , consistent with the air density at sea level. The weight of the fly can be assumed as 10 μΝ [53]. The cross-sectional surface area of the fly can be approximated as an ellipse, with length ( l ) = 3 mm and an estimated width ( w ) = 2 mm. Therefore:
A =   π 4 l w =   4.71 × 10 6   m 2
Substituting these values into the equation above provides a terminal velocity of:
v t 1.88   m / s
Revisiting the original equation provides the expected initial velocity:
v t = v 0 = v t tanh g t M D v t
v 0 = 0.252   m m / s 250   m m / s
Therefore, the expected initial velocity resulting from acceleration due to gravity is approximately 250 mm/s.

2.6.2. Expected Initial Velocities for a Downjump Based on Published Values

Previous studies have reported a range of initial take-off velocities for Drosophila melanogaster upjumps beginning from a stationary position on a horizontal surface. Assuming that the fly generates the same forces when jumping downward, these values can be utilized to calculate the range of expected initial velocities for a downjump at t M D , as described above. Zumstein et al. [54] reported an initial take-off velocity of 0.61 m/s. To calculate the initial velocity, the same equation is utilized as was described above.
v ( t ) = v t t a n h (   g t M D v t + t a n h 1 v 0 v t )
v = 0.826   m / s   830   m m / s
Card and Dickinson [55] reported initial velocities for two distinct jump behaviors they described as a “voluntary take-off” (0.28 m/s) and “escape take-off” (0.48 m/s). Their measurements were taken at t   =   0.002   s , and thus the time term must be corrected to match the time at which measurements are calculated by the MDv2.1 software:
t M D   =   3 116 s     2 1000 s .
The expected initial velocities of downjumps using the two distinct initial velocities reported by Card and Dickinson are as follows:
“Voluntary take-off”
v t M D = v t tanh   g t M D v t + t a n h 1 v 0 ,     v o l u n t a r y v t
v   = 0.503   m / s 500   m m / s
“Escape take-off”
v t M D = v t tanh   g t M D v t + t a n h 1 v 0 ,     e s c a p e v t
v = 0.691   m / s 690   m m / s
Therefore, based on the values reported by Zumstein et al. and Card and Dickinson, the initial velocity of putative downjumps is expected to range between 500 mm/s and 830 mm/s.

2.6.3. Expected Initial Velocity for an Arcjump Based on Observed Height of Jump

The expected initial velocity of an arcjump can be calculated using the Newtonian equation for vertical projectile motion:
h m a x =   v t 2 g l n ( 1 +   v 0 2 v t 2 )
where h m a x is the maximum height of the arc. Across all arcjumps, the average observed maximum height of the arc was 0.004 m. Rearranging the equation to solve for the initial velocity and substituting the necessary values provides an initial velocity of:
v 0 =   v t e 2 g h m a x v t 2 1  
v 0 = 0.284   m m / s 280   m m / s
Therefore, the expected initial velocity of an arcjump, based on the observed maximum height of the arc, is 280 mm/s.

2.6.4. Expected Initial Velocity for an Arcjump or Upjump Based on Published Values for Upjumps

The expected initial velocity at time t M D can be calculated using the following equation:
v t = v t tan t a n 1 v 0 v t g t v t  
Substituting the reported take-off velocity value from Zumstein et al. (0.61 m/s) provides an expected initial velocity for an arcjump or upjump of:
v t M D = v t tan t a n 1 v 0 v t g t M D v t
v = 0.339   m / s   340   m m / s
Using the initial velocity values from Card and Dickinson for voluntary ( v 0 = 0.28   m / s ) and escape ( v 0 = 0.48   m / s ) take-offs and correcting for the time difference in observations provides the initial velocity values of:
“Voluntary take-off”
v t M D = v t tan t a n 1 v 0 , v o l u n t a r y v t g t M D v t
v = 0.044   m / s 44   m m / s
“Escape take-off”
v t M D = v t tan t a n 1 v 0 , e s c a p e v t g t M D v t
v = 0.237   m / s 240   m m / s
Therefore, based on previous reports, upjumps and arcjumps are expected to have initial velocities between 44 mm/s and 340 mm/s.

2.6.5. Estimating the Effect of Drag on Initial Velocity

To estimate the effect of drag on the initial velocity of a fall, the drag force is estimated with the standard drag equation:
F d =   1 2 C D A ρ v 2
where:
C D = d r a g   c o e f f i c i e n t ,
A = c r o s s   s e c t i o n a l   s u r f a c e     a r e a ,  
ρ = d e n s i t y   o f   a i r ,   a n d
v = i n s t a n t a n e o u s   v e l o c i t y
The drag coefficient of a de-winged fly was previously estimated as C D = 1 [52]. The cross-sectional surface area of the fly was approximated as a ellipse with length ( l ) = 3 mm and width ( w ) = 2 mm. Therefore:
A =   π 4 l w =   4.71 × 10 6   m 2
The density of air was assumed ρ = 1.2   k g / m 3 , consistent with the air density at sea level. The instantaneous velocity can be taken as the median initial velocity across all observed falls as v = 0.257   m / s . Substituting these values into the equation above provides a drag force of:
F d =   1.87 × 10 7   N
To assess the relative importance of drag, this value was compared to the gravitational force acting on the fly:
F d F g =   F d m g = F d W = 0.0187   ( 1.87 % )
The force of drag is therefore less than 2% the force of gravity at the time of the fly’s initial velocity.

2.7. Software Availability

All software and respective user protocols are available for free public download from the Github repository. The GitHub repository is accessible at https://github.com/johntower/MotionDetectionV2.1, URL accessed on 11 June 2026.

3. Results

3.1. The Dataset

The dataset consists of w[1118]-strain flies of various ages, as well as several transgene combinations in the w[1118] isogenic background (Tables S6–S43). The total number of flies is 232, including 174 males and 58 females. A 30 min video was generated and analyzed for each fly.

3.2. Video Recording and Trajectory Analysis

To analyze movement, individual flies were placed in a glass culture vial covered with a glass coverslip, and illuminated with three white LED lights inside a closed box (Figure 1A). A single video camera was used to record a 30 min video at 58 fps. The resulting video is a 2D representation of the fly’s 3D movement patterns in the vial. Motion Detection (MD) V2.1 software was used to analyze the recorded video. MD identifies the fly in each frame of video as a bright object against a dark background that moves between frames (Figure 1C). MD generates a CSV file with an (x, y) position for the fly, timestamps (in seconds and frames), and bounding box dimensions (width, height, and area) for each frame in which the fly was detected.
MD analyzes the fly movement trajectories and identifies several specific events. Drops are identified by the fly moving rapidly through space from an upper position in the vial to a lower position in the vial, and are identified as movement > 2.8 mm between frame n and frame n + 2. Upward jumps (upjumps) are defined as the fly moving rapidly through space from a lower position in the vial to a higher position in the vial, with movement > 2.3 mm between frame n and frame n + 1. Arced jumps (arcjumps) are defined by the fly moving upwards from a lower position in the vial to a higher position in the vial, and then moving through space in an arced trajectory followed by a landing at a lower position in the vial. Arcjumps are identified by an upjump followed by a drop within 0.26 s.

3.3. Optimization and Testing of Event Scoring

The MDv2.1 software event detection thresholds were optimized using consensus events from a 30 min video that was manually annotated by two independent scorers. The manual annotation identified 32 drops, 6 upjumps and 6 arcjumps, and MDv2.1 accurately identified each event with zero false positives and zero false negatives, for an accuracy of 100% (Supplementary Table S46). The MDv2.1 software was additionally evaluated using a novel 30 min video not used during parameter optimization. Manual annotation of this video by two independent scorers identified consensus events consisting of 10 drops, 2 upjumps and 1 arcjump. MDv2.1 accurately detected 9 drops and 1 arcjump, as well as three false negatives (2 upjumps and 1 drop), and four false positive drops (Supplementary Table S47). Further inspection of the false positives by a third independent scorer indicated that all four false positives were indeed true drop events missed by the two original annotators, resulting in an accuracy of 14/17 events, or approximately 82%.

3.4. PCA/K-Means Analysis of Drops

Drops are expected to include at least two distinct types of events, falls and downjumps. Falls are defined as the fly losing contact with the surface of the vial and then moving downwards through space at an initial velocity determined by acceleration due to gravity. This is expected to result in an initial velocity for a fall of approximately 250 mm/s (Materials and Methods). Downjumps are defined by the fly using its legs to actively propel itself away from the surface of the vial in a downwards direction. Downjumps are expected to result in an initial velocity greater than that resulting from acceleration due to gravity.
Analysis of the total 232 videos using MDv2.1 identified 2299 drops. This group of drops was then analyzed using Principal Component Analysis (PCA) and K-Means Clustering in an effort to distinguish between falls and downjumps. The MD software generates 25 movement metrics, including initial velocity (Table S1). Metrics that capture the change in kinematic parameters across the event (kinematic patterns; Table S1) were excluded, and therefore 18 movement metrics were utilized for the PCA/K-means. The PCA/K-means analysis was partly supervised in that an output of three clusters was specified (Figure 2A). PC1 explains approximately 31.25% of the variance in the dataset, and PC2 explains approximately 19.84% of the variance in the dataset. The PC1 equation indicates that the location of the event cluster on the PC1 axis is determined primarily by velocity metrics, where a higher PC1 value indicates lower initial velocity, lower average and maximum velocity, and reduced maximum acceleration. The PC2 equation indicates that the location of the event cluster on the PC2 axis is determined primarily by the duration of the event and the extent of downwards movement (elapsed time, height at event start, and vertical displacement). A more positive value for a drop event on the PC2 axis indicates a greater duration and greater downwards movement.

3.5. Initial Velocity Correlation with PCA/K-Means Identifies Falls and Downjumps

To analyze drops based on initial velocity, initial velocity was plotted versus the starting height for the event (Figure 2B). The majority of drop events are observed to begin at or near the top of the vial, with a smaller number of drops initiating from lower positions, and the majority of these events had an initial velocity of less than 500 mm/s, consistent with falls. Notably, a number of events began at or near the top of the vial, and had an initial velocity of greater than 500 mm/s, consistent with downjumps. Superimposing the PCA/K-means clusters onto the plot of initial velocity versus starting height indicates a strong correlation. Cluster 1 (green) primarily coincides with events starting near the top of the vial, and has a median initial velocity of 260 mm/s, consistent with falls. Cluster 0 (blue) primarily coincides with events starting from lower positions in the vial, and has a median initial velocity of 226 mm/s, consistent with falls. Finally, cluster 2 (red) primarily coincides with events starting near the top of the vial, and has a median initial velocity of 1005 mm/s, consistent with downjumps. The median initial velocity for the downjump cluster (cluster 2) was significantly different from that for each of the fall clusters (clusters 0 and 1) (Mann–Whitney U test, Bonferroni-adjusted p < 0.0001). Taken together, the PCA/K-Means Clustering and initial velocity distributions indicate that the drops can be divided into three groups, consisting of falls from near the top of the vial, falls from lower positions in the vial, and downjumps from near the top of the vial.

3.6. UMAP/HDBSCAN and SHAP Analysis of Drops

Whereas the PCA revealed a strong linear structure in the dataset, the separation across the K-means clusters was modest (silhouette score = 0.30, Davies–Bouldin index = 1.36, Calinski–Harabasz score = 650.40), suggesting that non-linear relationships that might further differentiate distinct drop behaviors may have been missed. To address this possibility, the unsupervised Unifold Manifold Approximation and Projection (UMAP) analysis was applied to the same dataset to further explore and visualize possible nonlinear relationships between movement metrics. The UMAP visualization revealed four distinct groups of points that were well separated in space (Figure 3A). The unsupervised clustering algorithm Hierarchical Density-Based Spatial Clustering of Applications with Noise (HDBSCAN) was then applied to the UMAP-transformed data to define the clusters. The quality of the HDBSCAN-defined clusters was found to be robust (silhouette score = 0.69, Davies–Bouldin index = 0.33, Calinski–Harabasz score = 3673.14). Significant differences were observed for 14 out of the 18 movement metrics across these clusters using the Kruskal–Wallis test (Table S44). Post hoc pairwise comparisons showed that the largest differences between clusters were observed for maximum velocity, event velocity, and maximum acceleration (Table S45). Moderate to high pairwise differences were observed for initial velocity and average velocity. These findings indicate that velocity metrics primarily drive differentiation across the HDBSCAN-defined clusters.
The analysis presented above reveals which movement metrics differ on average between the HDBSCAN-defined clusters. Additional analyses were conducted to determine the relative importance of each movement metric in determining the assignment of each drop to the HDBSCAN-defined clusters. First, a Random Forest Classifier machine learning algorithm was trained using the movement metrics as predictors and the HDBSCAN-defined cluster identities as the target variable. The classifier achieved high predictive performance on novel data with a test accuracy of 0.978. Additional tests revealed a cross-validated balanced accuracy of 0.988 ± 0.016 and an out-of-bag accuracy of 0.983, indicating that the machine learning model is not over-fitting. The importance of each movement metric in determining the assignment of each drop to a cluster was assessed using Shapley Additive Explanations (SHAP) analysis, which quantifies the contributions of each movement metric to the classifier’s prediction. Cluster-wise SHAP analysis revealed which movement metrics most strongly contributed to the likelihood of drop assignment to each HDBSCAN-derived cluster, and Spearman correlations between raw feature values and the corresponding SHAP values were used to determine whether higher values increased or decreased assignment probability (Tables S2–S5).

3.7. Characterization of UMAP/HDBSCAN-Defined Clusters

Characterization of the UMAP/HDBSCAN-defined clusters reveals their correspondence to falls and downjumps. The strongest predictors of cluster 0 (red) membership were initial velocity, maximum acceleration, maximum velocity, and average velocity. The Spearman correlation analysis revealed that greater velocity and acceleration increased the likelihood of assignment to cluster 0 (Table S2). Cluster 0 had a median initial velocity of 1007 mm/s. This greatly exceeds the initial velocity of 250 mm/s expected from acceleration due to gravity (Figure 3B, indicated with dotted line) consistent with the conclusion that cluster 0 represents downjumps.
Cluster 2 (blue) membership was driven primarily by estimated height at event start, vertical displacement, event velocity, and initial velocity. The Spearman correlation analysis revealed that a lower start point, smaller vertical displacement, and lower velocities increased the likelihood of assignment to cluster 2 (Table S3). Cluster 2 had a median initial velocity of 241 mm/s, consistent with the velocity expected from acceleration due to gravity, and consistent with the conclusion that cluster 2 represents falls beginning from lower positions in the vial (Figure 3D).
Cluster 3 (green) membership was driven primarily by event velocity, maximum velocity, and estimated height at event start. The Spearman correlation analysis revealed that lower velocities and accelerations and a start point near the top of the vial increased the likelihood of assignment to cluster 3 (Table S4). Cluster 3 had a median initial velocity of 261 mm/s, consistent with the velocity expected from acceleration due to gravity, and consistent with the conclusion that cluster 3 represents falls from the top of the vial (Figure 3E).
Finally, cluster 1 (orange) membership was driven primarily by event velocity, maximum instantaneous velocity, and estimated height at event start. The Spearman correlation analysis revealed that lower velocities and accelerations and a start point near the top of the vial increased the likelihood of assignment to cluster 1 (Table S5). Cluster 1 had a median initial velocity of 221 mm/s consistent with the conclusion that cluster 1 also represents falls from the top of the vial (Figure 3C). However, inspection of cluster 1 events revealed that cluster 1 represented events where the fly was not detected in multiple frames between the event start and the event end. Therefore, kinematic metrics such as maximum velocity, average velocity, and maximum acceleration could not be accurately measured. Events in this cluster were confirmed to represent drops by visual inspection of the video. Consequently, cluster 1 drops (108 total) were retained for analysis of event counts but omitted from further analysis of drop kinematics. These results indicate the usefulness of UMAP for identifying data points with reduced information content.
Plots of drop trajectories colored by frame progression reveal a generally linear path for both downjumps (Figure 4A) and falls (Figure 4B,C). In addition, the majority of downjumps and falls are observed to end at the bottom of the vial. Downjumps typically reached the bottom of the vial within three frames, consistent with their greater velocity, whereas falls are observed to span five frames, consistent with their slower velocity.
In conclusion, the UMAP/HDBSCAN analysis results were consistent with the results of the PCA/K-means analysis, in identifying three distinct groups of events: falls from the top of the vial, falls from lower positions in the vial, and downjumps from the top of the vial. For the HDBSCAN-defined clusters, the median initial velocity for the downjump cluster (cluster 0) was significantly different from that for each of the fall clusters (clusters 2 and 3) (Mann–Whitney U test, Bonferroni-adjusted p < 0.0001). In addition, the median initial velocities measured for fall cluster 2 (241 mm/s; Figure 3D) and fall cluster 3 (261 mm/s; Figure 3E) are equivalent to that expected from acceleration due to gravity (250 mm/s). By contrast, the median initial velocity measured for downjump cluster 0 (1007 mm/s; Figure 3B) is significantly greater than that expected from acceleration due to gravity (Wilcoxon signed-rank test, p < 1 × 10−25).

3.8. Analysis of Fall and Jump Trajectories

Event trajectories were plotted for examples of a fall, downjump, upjump and arcjump (Figure 5), and video clips for each event are included in the Supplemental Materials. The trajectories are colored by vertical velocity. The fall trajectory illustrates the moderate increase in downward velocity resulting from acceleration due to gravity (Figure 5A; clip 1). The downjump trajectory is marked by a dramatic increase in downward velocity, as expected (Figure 5B; clip 2). The upjump is marked by a rapid increase in upward velocity (Figure 5C; clip 3). Finally, the arcjump demonstrates a near-parabolic trajectory (Figure 5D; clip 4).

3.9. Effects of Age

To assess how aging might affect movement metrics, the drop frequency, drop movement metrics, and total movement were measured in three groups of young flies (11–13 days old, Tables S6–S8) and two groups of aged flies (40–52 days, Tables S9 and S10). The combined groups of young and old flies were then compared for potential differences in movement. Aged flies of both sexes moved significantly less than their younger counterparts, and male flies spent significantly less time in the upper half of the vial (Table 1 and Table 2), consistent with previous studies [23]. Notably, aged flies took longer to resume movement after a drop as compared to their younger counterparts (Table 1 and Table 2). While the total number of drops (the sum of falls and downjumps) was significantly reduced in aged flies, this contrast disappeared when drops were normalized to total movement, suggesting that the decrease in drops observed in aged flies may be a result of their reduced total movement (Table 1 and Table 2). For each group, accelerations calculated across the entire duration of the fall were less than expected from acceleration due to gravity, particularly for males, suggesting some mid-fall compensatory behavior to slow the fall (Table 3). This effect was reduced in the aged flies, suggesting less compensatory behavior with age. Consequently, values for initial velocity, maximum velocity, average velocity, maximum acceleration and maximum jerk were increased with age for males (Table 1 and Table 2). No statistically significant differences were observed for direct comparisons between male and female flies at either the young or old time points (Tables S11 and S12).

3.10. Effects of Dehydration/Starvation Stress and Genotype

Previous experiments indicated that dehydration/starvation stress resulted in an increase in drop frequency that peaked in the hours immediately preceding death [28]. Here, the effects of dehydration/starvation stress on the frequency of falls and jumps was analyzed in male flies at 24 h of treatment (Table 4). The number of total drops was doubled, but this difference did not reach statistical significance. However, the stressed flies exhibited a small but significant increase in downjumps. No significant changes in drop metrics were observed (Supplementary Table S48).
As a proof of principle, small cohorts of ND model flies and controls were also assayed. Human Abeta42-expressing female flies (AD model) were compared to age-matched controls at three different time points (7 days, 15 days, and 35 days) (Tables S15–S28). Significant differences in drop behavior were not observed in 7-day-old Abeta42 flies relative to controls (Tables S15–S20). At the 15-day time point, the Abeta42 females had significantly decreased fall frequency and total movement compared to control females (Table S21); however, these differences were not mirrored at the 35-day time point (Table S22). In summary, no consistent effect of Abeta42 expression was observed for event counts or movement metrics. In addition, human alpha-synuclein (SNCA)-expressing male flies (PD model) were compared to age-matched controls at three different time points (14 days, 21 days, and 28 days) (Tables S29–S43). SNCA males exhibited reduced total movement relative to controls at 28 days (Table S35). No significant effects were observed for event counts or specific movement metrics. Taken together, these results indicate limited effects of human Abeta42 and alpha-synuclein expression on fall frequency and drop behavior, although further investigations with larger sample sizes and extended age time points are needed.

4. Discussion

4.1. System Design

The goal of this research was to develop an economical and tractable system that would enable quantification of falls and jumps in freely moving flies. A single 58 fps video camera was used to record single flies as they moved freely in a glass culture vial. Custom software was used to track fly movement trajectories in the videos and to derive a series of movement metrics. Statistical analyses enabled identification and quantification of distinct movement behaviors, including falls, downjumps, upjumps and arcjumps. The system was designed with one camera to simplify the data analysis, as well as to favor economy and future scaling. The fly moves freely through 3D space inside the vial while the single camera captures this image as a 2D video. One limitation of this approach is that converting 3D movement patterns to a 2D pattern inherently reduces information. Vertical movement is effectively captured, whereas horizontal movement will sometimes be underestimated depending upon the orientation of the event relative to the camera. The advantages of this approach are that reducing the data to 2D patterns significantly reduces file size and processing needs and simplifies several aspects of the analysis. The present data indicate that this simplified approach is sufficient to distinguish between multiple types of complex movement behaviors, including falls, downjumps, upjumps and arcjumps.
The system presented here has certain advantages relative to the negative geotaxis assay, which is often used to quantify fly locomotor activity [16,19,26,27]. In the negative geotaxis assay, flies are knocked to the bottom of a cylinder, and then are visualized as they walk upwards away from gravity. The number of flies that reach a certain height in a defined period of time is scored. The negative geotaxis assay is generally interpreted to represent an escape response triggered by the knock-down of the fly, and the scores are driven primarily by walking speed [16]. More recent implementations of the negative geotaxis assay utilize video and also score departures from linearity in the upward climbing trajectories [27]. By contrast, when flies move freely through 3D space in a vial, they exhibit a greater variety of spontaneous exploratory and movement behaviors, including walking, turning, jumping, flying and drops. Therefore, the assay of freely moving flies captures a more complex set of movement behaviors, and potentially, a more complex set of nervous system functions. As a consequence, this assay may provide increased sensitivity and reveal additional deficits due to aging and ND models, thereby facilitating future studies of causal mechanisms and possible interventions. Existing video tracking systems could be adapted to enable assay of falls and jumps using video speeds of 58 fps or greater. In the future, it may be of interest to ask how the behavioral repertoire might change with vials of different size, or with vials containing obstacles.

4.2. Quantification of Jumps and Falls

Analysis of the total 232 videos identified 25 upjumps, 43 arcjumps and 2299 drops. Analysis of the drops using UMAP/HBDSCAN revealed that 2149 (93.48%) were falls and 150 (6.52%) were downjumps.

4.3. Comparison of Drop Event Initial Velocities to Expected Values and Previous Studies

The initial velocities measured for the different types of jumps and drops were calculated and compared to the expected initial velocities derived from kinematic calculations (Materials and Methods). As discussed above, as defined by the UMAP/HDBSCAN analysis, falls had an observed median initial velocity of 257 mm/s, consistent with the expected initial velocity resulting from acceleration due to gravity of approximately 250 mm/s. Downjumps had a median initial velocity of 1007 mm/s, which greatly exceeds the velocity expected from simple acceleration due to gravity, consistent with an initial propulsive contribution from the jump. Arcjumps exhibited a median initial velocity of 283 mm/s, which is similar to the value 280 mm/s that results from a calculation based on the maximum height of the arc (Materials and Methods).
Two previous studies have reported initial take-off velocities for upjumps, where flies were assayed as they jumped upwards from a horizontal surface [54,55]. Assuming that the fly generates the same forces when jumping downwards, these values can be utilized to calculate the range of expected initial velocities for upjumps and downjumps, and then compared to values measured in the data presented here. Zumstein et al. [54] estimated the upjump take-off velocity of wild-type flies by measuring horizontal jump distance, assuming a jump angle of 45 degrees and calculating velocity using the horizontal range formula for projectile motion. This calculation resulted in an estimated take-off velocity of approximately 610 mm/s at the moment the fly loses contact with the surface. Using this value, the expected initial velocity for an upjump in our system would be 340 mm/s, which is somewhat greater than our observed median value of 245 mm/s. The expected initial velocity of a downjump in our system using Zumstein et al.’s estimated take-off velocity is approximately 830 mm/s, which is less than our observed value of 1007 mm/s. The reasons for these differences are currently not clear but are likely to be related to differences in the biomechanics of upward jumps beginning from a horizontal surface as in the Zumstein et al. study, versus jumps beginning from a vertical surface or the ceiling of the chamber as assayed here.
Card and Dickinson [55] used video to directly assay the velocity flies jumping upwards from a horizontal surface, and reported two initial upjump velocities at t = 2 ms that they interpreted to represent two distinct jumping behaviors: voluntary take-offs (0.28 m/s) and escape take-offs (0.48 m/s). After correcting for the time interval used in their measurements and in ours, the expected initial velocities for an upjump in our system based on their results are approximately 44 mm/s for a voluntary take-off and approximately 240 mm/s for an escape take-off. The latter is consistent with our observed median of 245 mm/s. Therefore, the initial velocities measured here for upjumps were in general agreement with the values reported from previous studies of upjumps.
Again using the upjump velocities reported by Card and Dickenson [55], and applying a temporal correction for downjumps, where acceleration due to gravity additionally increases velocity, the expected initial velocities in our system are approximately 500 mm/s for voluntary take-off, and approximately 690 mm/s for an escape take-off. These values are significantly lower than our observed initial velocities for a downjump, which had a median of 1007 mm/s. The reason for this difference is currently unresolved, but is likely to be related to biomechanical differences between initiating upjumps versus downjumps.

4.4. Effects of Fly Age

Several movement metrics were observed to be affected by fly age in w[1118]-strain flies. For example, aged flies of both sexes moved less and spent less time in the upper half of the vial, consistent with previous studies [16,21,22]. Notably, mid-event fall accelerations were reduced relative to that expected from acceleration due to gravity, preferentially in younger animals, indicating some compensatory behavior that is reduced with age. It is possible that young animals slow the descent of their fall using their wings, or by touching the wall of the vial with their legs, and older animals are less effective in this response. The estimated force of drag is negligible (less than 2%) relative to the force of gravity during a fall for a wingless fly (Materials and Methods). However, any wing extension would be expected to significantly increase drag and slow the fall. The current system does not enable analysis of the orientation of the fly or its potential use of wings or legs during the fall; however, this may be possible in the future using faster video speeds. This would also facilitate analysis of the possible causes for falls, such as slips, tremors or other movements. In the future, it will be of interest to further explore the effects of age on the biomechanics of falls and jumps.
Aged flies were also observed to take approximately 5 times (males) or 9 times (females) longer than young flies to resume movement after falling to the bottom of the vial, a period referred to here as the recovery time. This increased recovery time might be related to the fact that total movement activity in the aged flies was reduced by approximately 6 times (males) and 3 times (females); however, the fold increase in recovery time is greater than the fold reduction in total movement, at least for females. Another possibility is that the impact from the fall causes some disturbance in the fly that delays the resumption of movement. This is reminiscent of the “bang-senseless” phenotype, which is a temporary paralysis that results when the investigator intentionally knocks a mutant fly to the bottom of a vial. The bang-senseless phenotype is observed in flies with mutations that affect mitochondrial and nervous system functions, and worsens with age [56]. Quantification of the bang-senseless phenotype in aging wild-type flies has generally not been reported; however, our anecdotal observations suggest that flies at late ages express a phenotype resembling bang-senseless. Therefore, one possible interpretation of the increased recovery time observed here for the aged flies is that this represents a brief period of uncoordinated movement or paralysis caused by the impact. Impacts of falling and jumping flies with the sides of the vial may also be relevant. To what extent the repeated impacts of falling and jumping flies with the bottom and sides of the vial might contribute to anatomical damage remains unclear. Notably, flies that are near death exhibit increased supine behavior (fly on its back), and a significant fraction of flies are found dead in the supine position [23,24,25]. In the future, it may be of interest to investigate how falls and the resulting impact might contribute to supine behavior and mortality. In addition, recovery time might prove to be a useful metric in future assays of aging, ND models and interventions.

4.5. Effects of Stress and Genotype

Dehydration/starvation stress was associated with a small but significant increase in the number of downjumps, which might indicate increased foraging activity or a possible maladaptive hyperactivity. Neither AD nor PD model flies showed significant differences in the frequency of falls or jumps, which may result from the small sample sizes and limited age ranges tested.

4.6. Future Directions

Future directions will include further analysis of landings, recovery time and supine behavior. The biomechanics of fall initiations and compensatory behaviors, and how these change with age will be of particular interest. The Drosophila strain used here is the common w[1118] reference strain, which lacks eye pigments and cannot sense visual light. In the future, it will be of interest to compare wild-type and mutant strains to assay the potential effects of vision on falls and jumps and other behaviors. The methods developed here should facilitate further analysis of the effects of aging and ND models on locomotor behaviors and falls, including the testing of potential drug and environmental interventions.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/insects17060624/s1, Supplementary Materials: Supplementary Table S1. Definitions of derived kinematic metrics provided for each event. Supplementary Table S2. Mean absolute SHAP values and Spearman correlation of features for Cluster 0, as defined by HDBSCAN clustering on UMAP-transformed drop data. Supplementary Table S3. Mean absolute SHAP values and Spearman correlation of features for Cluster 2, as defined by HDBSCAN clustering on UMAP-transformed drop data. Supplementary Table S4. Mean absolute SHAP values and Spearman correlation of features for Cluster 3, as defined by HDBSCAN clustering on UMAP-transformed drop data. Supplementary Table S5. Mean absolute SHAP values and Spearman correlation of features for Cluster 1, as defined by HDBSCAN clustering on UMAP-transformed drop data. Supplementary Table S6. Comparing event counts and drop metrics of 12-day-old w[1118] males (n = 6) to 12-day-old w[1118] females (n = 6). Supplementary Table S7. Comparing event counts and drop metrics of 11-day-old w[1118] males (n = 6) to 11-day-old w[1118] females (n = 6). Supplementary Table S8. Comparing event counts and drop metrics of 13-day-old w[1118] males (n = 6) to 13-day-old w[1118] females (n = 6). Supplementary Table S9. Comparing event counts and drop metrics of 52-day-old w[1118] males (n = 8) to 52-day-old w[1118] females (n = 8). Supplementary Table S10. Comparing event counts and drop metrics of 40-day-old w[1118] males (n = 8) to 40-day-old w[1118] females (n = 8). Supplementary Table S11. Comparing event counts and drop metrics of 11-13 day old w[1118] males (n = 18) to 11-13 day old w[1118] females (n = 18). Supplementary Table S12. Comparing event counts and drop metrics of 40-52 day old w[1118] males (n = 16) to 40-52 day old w[1118] females (n = 16). Supplementary Table S13. Comparing event counts and drop metrics of 2-day-old w[1118] males (n = 3) to 2-day-old dehydrated w[1118] males (n = 4), Cohort 1. Supplementary Table S14. Comparing event counts and drop metrics of 2-day-old w[1118] males (n = 3) to 2-day-old dehydrated w[1118] males (n = 3), Cohort 2. Supplementary Table S15. Comparing event counts and drop metrics of 7-day-old control females (n = 4) to 7-day-old Abeta females (n = 4). Supplementary Table S16. Comparing event counts and drop metrics of 7-day-old control males (n = 8) to 7-day-old Abeta males (n = 7), Cohort 1. Supplementary Table S17. Comparing event counts and drop metrics of 7-day-old control males (n = 4) to 7-day-old Abeta males (n = 4), Cohort 2. Supplementary Table S18. Comparing event counts and drop metrics of 7-day-old control males (n = 12) to 7-day-old Abeta males (n = 11). Supplementary Table S19. Comparing event counts and drop metrics of 7-day-old Abeta42 males (n = 12) to 7-day-old Abeta females (n = 4). Supplementary Table S20. Comparing event counts of 7-day-old w[1118] males (n = 12) to 7-day-old w[1118] females (n = 4). Supplementary Table S21. Comparing event counts and drop metrics of 15-day-old control females (n = 4) to 15-day-old Abeta females (n = 4). Supplementary Table S22. Comparing event counts and drop metrics of 35-day-old control females (n = 4) to 35-day-old Abeta females (n = 4). Supplementary Table S23. Comparing event counts and drop metrics of 7-day-old Abeta females (n = 4) to 15-day-old Abeta females (n = 4). Supplementary Table S24. Comparing event counts and drop metrics of 7-day-old w[1118] females (n = 4) to 15-day-old w[1118] females (n = 4). Supplementary Table S25. Comparing event counts and drop metrics of 15-day-old Abeta females (n = 4) to 35-day-old Abeta females (n = 4). Supplementary Table S26. Comparing event counts and drop metrics of 15-day-old w[1118] females (n = 4) to 35-day-old w[1118] females (n = 4). Supplementary Table S27. Comparing event counts and drop metrics of 15-day-old Abeta females (n = 4) to 35-day-old Abeta females (n = 4). Supplementary Table S28. Comparing event counts and drop metrics of 7-day-old w[1118] females (n = 4) to 35-day-old w[1118] females (n = 4). Supplementary Table S29. Comparing event counts and drop metrics of 2-week-old control males (n = 8) to 2-week-old SNCA males (n = 8), Cohort 1. Supplementary Table S30. Comparing event counts and drop metrics of 2-week-old control males (n = 8) to 2-week-old SNCA males (n = 8), Cohort 2. Supplementary Table S31. Comparing event counts and drop metrics of 2-week-old control males (n = 8) to 2-week-old SNCA males (n = 8), Cohort 3. Supplementary Table S32. Comparing event counts and drop metrics of 3-week-old control males (n = 4) to 3-week-old SNCA males (n = 8), Cohort 1. Supplementary Table S33. Comparing event counts and drop metrics of 3-week-old control males (n = 8) to 3-week-old SNCA males (n = 8), Cohort 2. Supplementary Table S34. Comparing event counts and drop metrics of 3-week-old control males (n = 8) to 3-week-old SNCA males (n = 8), Cohort 3. Supplementary Table S35. Comparing event counts and drop metrics of 4-week-old control males (n = 6) to 4-week-old SNCA males (n = 6). Supplementary Table S36. Comparing event counts and drop metrics of 2-week-old control males (n = 24) to 2-week-old SNCA males (n = 24). Supplementary Table S37. Comparing event counts and drop metrics of 3-week-old control males (n = 20) to 3-week-old SNCA males (n = 24). Supplementary Table S38. Comparing event counts and drop metrics of 2-week-old SNCA males (n = 24) to 3-week-old SNCA males (n = 24). Supplementary Table S39. Comparing event counts and drop metrics of 2-week-old w[1118] males (n = 24) to 3-week-old w[1118] males (n = 20). Supplementary Table S40. Comparing event counts and drop metrics of 3-week-old SNCA males (n = 24) to 4-week-old SNCA males (n = 6). Supplementary Tables S41. Comparing event counts and drop metrics of 3-week-old w[1118] males (n = 20) to 4-week-old w[1118] males (n = 6). Supplementary Table S42. Comparing event counts and drop metrics of 2-week-old SNCA males (n = 24) to 4-week-old SNCA males (n = 6). Supplementary Table S43. Comparing event counts and drop metrics of 2-week-old w[1118] males (n = 24) to 4-week-old w[1118] males (n = 6). Supplementary Table S44. Kruskal-Wallis test comparing drop metrics between HDBSCAN-defined clusters. Supplementary Table S45. Post-Hoc Dunn’s Test comparing drop metrics between HDBSCAN-derived clusters. Supplementary Table S46. Comparison of manually-annotated events and events detected by MDv2.1 on reference video. Supplementary Table S47. Comparison of manually-annotated events and events detected by MDv2.1 on novel data. Supplementary Table S48. Comparing drop metrics of 2 day old w[1118] males (n = 6) to 2 day old dehydrated w[1118] males (n = 7). Video clips 1–4.

Author Contributions

Conceptualization, J.T.; methodology, J.T., S.D., Y.P. and K.W.; software, Y.P. and S.D.; validation, J.T., S.D., Y.P. and K.W.; formal analysis, J.T., S.D., Y.P. and K.W.; investigation, J.T., S.D., Y.P. and K.W.; resources, J.T.; data curation, J.T., S.D., Y.P. and K.W.; writing—original draft preparation, J.T. and S.D.; writing—review and editing, J.T. and S.D.; visualization, S.D.; supervision, J.T.; project administration, J.T.; funding acquisition, J.T. All authors have read and agreed to the published version of the manuscript.

Funding

This research was supported in part by an award from the USC Office of Research and Innovation (OORI) Research Catalyst Program.

Data Availability Statement

The raw data supporting the conclusions of this article will be made available by the authors on request.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
PCAPrincipal Component Analysis
UMAPUniform Manifold Approximation and Projection
HDBSCANHierarchical Density-Based Spatial Clustering with Applications to Noise
SHAPShapley Additive Explanations
MDMotion Detection
NDNeurodegenerative disease
ADAlzheimer’s disease
PDParkinson’s disease

References

  1. Yeung, S.S.Y.; Reijnierse, E.M.; Pham, V.K.; Trappenburg, M.C.; Lim, W.K.; Meskers, C.G.M.; Maier, A.B. Sarcopenia and its association with falls and fractures in older adults: A systematic review and meta-analysis. J. Cachexia Sarcopenia Muscle 2019, 10, 485–500. [Google Scholar] [CrossRef]
  2. Joza, S.; Camicioli, R.; Ba, F. Falls in Synucleinopathies. Can. J. Neurol. Sci. 2020, 47, 30–43. [Google Scholar] [CrossRef]
  3. Moreland, B.; Kakara, R.; Henry, A. Trends in Nonfatal Falls and Fall-Related Injuries Among Adults Aged>/=65 Years—United States, 2012–2018. MMWR Morb. Mortal. Wkly. Rep. 2020, 69, 875–881. [Google Scholar] [CrossRef]
  4. Xu, J.Q.; Murphy, S.L.; Kochanek, K.D.; Arias, E. Mortality in the United States, 2021; National Center for Health Statistics: Hyattsville, MD, USA, 2022. [Google Scholar]
  5. Dorkenwald, S.; Matsliah, A.; Sterling, A.R.; Schlegel, P.; Yu, S.C.; McKellar, C.E.; Lin, A.; Costa, M.; Eichler, K.; Yin, Y.; et al. Neuronal wiring diagram of an adult brain. Nature 2024, 634, 124–138. [Google Scholar] [CrossRef] [PubMed]
  6. Schlegel, P.; Yin, Y.; Bates, A.S.; Dorkenwald, S.; Eichler, K.; Brooks, P.; Han, D.S.; Gkantia, M.; Dos Santos, M.; Munnelly, E.J.; et al. Whole-brain annotation and multi-connectome cell typing of Drosophila. Nature 2024, 634, 139–152. [Google Scholar] [CrossRef] [PubMed]
  7. Luan, H.; Diao, F.; Scott, R.L.; White, B.H. The Drosophila Split Gal4 System for Neural Circuit Mapping. Front. Neural Circuits 2020, 14, 603397. [Google Scholar] [CrossRef]
  8. Schnell, B. Flexible circuits for visually guided flight control in Drosophila. Trends Neurosci. 2026, 49, 98–110. [Google Scholar] [CrossRef]
  9. Yoshikawa, S.; Tang, P.; Simpson, J.H. Mechanosensory and command contributions to the Drosophila grooming sequence. Curr. Biol. 2024, 34, 2066–2076 e2063. [Google Scholar] [CrossRef]
  10. Deutsch, D.; Pacheco, D.; Encarnacion-Rivera, L.; Pereira, T.; Fathy, R.; Clemens, J.; Girardin, C.; Calhoun, A.; Ireland, E.; Burke, A.; et al. The neural basis for a persistent internal state in Drosophila females. eLife 2020, 9, e59502. [Google Scholar] [CrossRef] [PubMed]
  11. Schretter, C.E.; Aso, Y.; Robie, A.A.; Dreher, M.; Dolan, M.J.; Chen, N.; Ito, M.; Yang, T.; Parekh, R.; Branson, K.M.; et al. Cell types and neuronal circuitry underlying female aggression in Drosophila. eLife 2020, 9, e58942. [Google Scholar] [CrossRef]
  12. Nisha; Raj, K.; Pragati; Tandon, S.; Chanu, S.I.; Sarkar, S. Aging: Reading, Reasoning, and Resolving Using Drosophila as a Model System. In Models, Molecules and Mechanisms in Biogerontology: Cellular Processes, Metabolism and Diseases; Rath, P.C., Ed.; Springer: Singapore, 2020; pp. 259–302. [Google Scholar]
  13. Flatt, T. Life-History Evolution and the Genetics of Fitness Components in Drosophila melanogaster. Genetics 2020, 214, 3–48. [Google Scholar] [CrossRef]
  14. Tower, J. Drosophila Flies in the Face of Aging. J. Gerontol. A Biol. Sci. Med. Sci. 2019, 74, 1539–1541. [Google Scholar] [CrossRef] [PubMed]
  15. Bolus, H.; Crocker, K.; Boekhoff-Falk, G.; Chtarbanova, S. Modeling Neurodegenerative Disorders in Drosophila melanogaster. Int. J. Mol. Sci. 2020, 21, 3055. [Google Scholar] [CrossRef] [PubMed]
  16. Gargano, J.W.; Martin, I.; Bhandari, P.; Grotewiel, M.S. Rapid iterative negative geotaxis (RING): A new method for assessing age-related locomotor decline in Drosophila. Exp. Gerontol. 2005, 40, 386–395. [Google Scholar] [CrossRef]
  17. Moloney, A.; Sattelle, D.B.; Lomas, D.A.; Crowther, D.C. Alzheimer’s disease: Insights from Drosophila melanogaster models. Trends Biochem. Sci. 2010, 35, 228–235. [Google Scholar] [CrossRef]
  18. Jahn, T.R.; Kohlhoff, K.J.; Scott, M.; Tartaglia, G.G.; Lomas, D.A.; Dobson, C.M.; Vendruscolo, M.; Crowther, D.C. Detection of early locomotor abnormalities in a Drosophila model of Alzheimer’s disease. J. Neurosci. Methods 2011, 197, 186–189. [Google Scholar] [CrossRef]
  19. Liu, H.; Han, M.; Li, Q.; Zhang, X.; Wang, W.A.; Huang, F.D. Automated rapid iterative negative geotaxis assay and its use in a genetic screen for modifiers of Abeta(42)-induced locomotor decline in Drosophila. Neurosci. Bull. 2015, 31, 541–549. [Google Scholar] [CrossRef]
  20. Hong, C.L.; Huang, S.Y.; Chan, C.C. Linking physiology to behavioral individuality in Drosophila melanogaster: Methods and Mechanisms. Physiol. Behav. 2026, 308, 115267. [Google Scholar] [CrossRef]
  21. Gaitanidis, A.; Dimitriadou, A.; Dowse, H.; Sanyal, S.; Duch, C.; Consoulas, C. Longitudinal assessment of health-span and pre-death morbidity in wild type Drosophila. Aging 2019, 11, 1850–1873. [Google Scholar] [CrossRef]
  22. Tower, J.; Agrawal, S.; Alagappan, M.P.; Bell, H.S.; Demeter, M.; Havanoor, N.; Hegde, V.S.; Jia, Y.; Kothawade, S.; Lin, X.; et al. Behavioral and molecular markers of death in Drosophila melanogaster. Exp. Gerontol. 2019, 126, 110707. [Google Scholar] [CrossRef] [PubMed]
  23. Tower, J. Markers and mechanisms of death in Drosophila. Front. Aging 2023, 4, 1292040. [Google Scholar] [CrossRef]
  24. Carey, J.R.; Papadopoulos, N.; Kouloussis, N.; Katsoyannos, B.; Muller, H.G.; Wang, J.L.; Tseng, Y.K. Age-specific and lifetime behavior patterns in Drosophila melanogaster and the Mediterranean fruit fly, Ceratitis capitata. Exp. Gerontol. 2006, 41, 93–97. [Google Scholar] [CrossRef]
  25. Scott, A.W.; Wodrich, A.P.K.; Chaouhan, H.S.; Shukla, A.K.; Johnson, K.; McQueen, P.G.; Giniger, E. Dying occurs as a defined molecular progression in Drosophila rather than as nonspecific physiological collapse. iScience 2025, 28, 113115. [Google Scholar] [CrossRef] [PubMed]
  26. Lobato, A.G.; Ortiz-Vega, N.; Canic, T.; Tao, X.; Bucan, N.; Ruan, K.; Rebelo, A.P.; Schule, R.; Zuchner, S.; Syed, S.; et al. Loss of Fic causes progressive neurodegeneration in a Drosophila model of hereditary spastic paraplegia. Biochim. Biophys. Acta Mol. Basis Dis. 2024, 1870, 167348. [Google Scholar] [CrossRef] [PubMed]
  27. Canic, T.; Lopez, J.; Ortiz-Vega, N.; Zhai, R.G.; Syed, S. High-resolution, high-throughput analysis of Drosophila geotactic behavior. J. Exp. Biol. 2025, 228, JEB248029. [Google Scholar] [CrossRef] [PubMed]
  28. Mattins, F.; Nagrath, S.; Fan, Y.; Manea, T.K.D.; Das, S.; Shankar, A.; Tower, J. Machine Learning Scoring Reveals Increased Frequency of Falls Proximal to Death in Drosophila melanogaster. J. Gerontol. A Biol. Sci. Med. Sci. 2025, 80, glaf029. [Google Scholar] [CrossRef]
  29. Landis, G.N.; Doherty, D.; Tower, J. Analysis of Drosophila melanogaster Lifespan. Methods Mol. Biol. 2020, 2144, 47–56. [Google Scholar] [CrossRef]
  30. Auluck, P.K.; Chan, H.Y.; Trojanowski, J.Q.; Lee, V.M.; Bonini, N.M. Chaperone suppression of alpha-synuclein toxicity in a Drosophila model for Parkinson’s disease. Science 2002, 295, 865–868. [Google Scholar] [CrossRef]
  31. Luo, L.; Liao, Y.J.; Jan, L.Y.; Jan, Y.N. Distinct morphogenetic functions of similar small GTPases: Drosophila Drac1 is involved in axonal outgrowth and myoblast fusion. Genes Dev. 1994, 8, 1787–1802. [Google Scholar] [CrossRef]
  32. Platts, A.E.; Land, S.J.; Chen, L.; Page, G.P.; Rasouli, P.; Wang, L.; Lu, X.; Ruden, D.M. Massively parallel resequencing of the isogenic Drosophila melanogaster strain w(1118); iso-2; iso-3 identifies hotspots for mutations in sensory perception genes. Fly 2009, 3, 192–203. [Google Scholar] [CrossRef]
  33. Ryder, E.; Blows, F.; Ashburner, M.; Bautista-Llacer, R.; Coulson, D.; Drummond, J.; Webster, J.; Gubb, D.; Gunton, N.; Johnson, G.; et al. The DrosDel collection: A set of P-element insertions for generating custom chromosomal aberrations in Drosophila melanogaster. Genetics 2004, 167, 797–813. [Google Scholar] [CrossRef]
  34. Ren, C.; Webster, P.; Finkel, S.E.; Tower, J. Increased internal and external bacterial load during Drosophila aging without life-span trade-off. Cell Metab. 2007, 6, 144–152. [Google Scholar] [CrossRef] [PubMed]
  35. Bradski, G. The OpenCV Library. Dr. Dobb’s J. Softw. Tools 2000, 120, 122–125. [Google Scholar]
  36. Zivkovic, Z. Improved Adaptive Gaussian Mixture Model for Background Subtraction. In Proceedings of the 17th IEEE International Conference on Pattern Recognition (ICPR), Cambridge, UK, 23–26 August 2004; pp. 28–31. [Google Scholar]
  37. Harris, C.R.; Millman, K.J.; van der Walt, S.J.; Gommers, R.; Virtanen, P.; Cournapeau, D.; Wieser, E.; Taylor, J.; Berg, S.; Smith, N.J.; et al. Array programming with NumPy. Nature 2020, 585, 357–362. [Google Scholar] [CrossRef] [PubMed]
  38. Terpilowski, M.A. scikit-posthocs: Pairwise multiple comparison tests in Python. J. Open Source Softw. 2019, 4, 1169. [Google Scholar] [CrossRef]
  39. Seabold, S.; Perktold, J. statsmodels: Econometric and statistical modeling with python. In Proceedings of the 9th Python in Science Conference, Austin, TX, USA, 28 June–3 July 2010; p. 61. [Google Scholar]
  40. Pedregosa, F.; Varoquaux, G.; Gramfort, A.; Michel, V.; Thirion, B.; Grisel, O.; Blondel, M.; Muller, A.; Nothman, J.; Louppe, G.; et al. Scikit-learn: Machine Learning in Python. J. Mach. Learn. Res. 2011, 12, 2825–2830. [Google Scholar] [CrossRef]
  41. Hartigan, J.A. Clustering Algorithms. In Wiley Series in Probability and Mathematical Statistics; John Wiley & Sons Inc.: Hoboken, NJ, USA, 1975; p. 366. [Google Scholar]
  42. McInnes, L.; Healy, J.; Saul, N.; Großberger, L. UMAP: Uniform Manifold Approximation and Projection. J. Open Source Softw. 2018, 3, 861. [Google Scholar] [CrossRef]
  43. Hunter, J.D. Matplotlib: A 2D Graphics Environment. Comput. Sci. Eng. 2007, 9, 90–95. [Google Scholar] [CrossRef]
  44. Waskom, M. seaborn: Statistical data visualization. J. Open Source Softw. 2021, 6, 3021. [Google Scholar] [CrossRef]
  45. Campello, R.J.G.B.; Moulavi, D.; Sander, J. Density-Based Clustering Based on Hierarchical Density Estimates. In Proceedings of the PAKDD 2013, Gold Coast, Australia, 14–17 April 2013. [Google Scholar]
  46. McInnes, L.; Healy, J.; Astels, S. hdbscan: Hierarchical density based clustering. J. Open Source Softw. 2017, 2, 205. [Google Scholar] [CrossRef]
  47. Rousseeuw, P.J. Silhouettes: A graphical aid to the interpretation and validation of cluster analysis. J. Comput. Appl. Math. 1987, 20, 53–65. [Google Scholar] [CrossRef]
  48. Davies, D.L.; Bouldin, D.W. A Cluster Separation Measure. IEEE Trans. Pattern Anal. Mach. Intell. 1979, 1, 224–227. [Google Scholar] [CrossRef]
  49. Calinski, T.; Harabasz, J. A dendrite method for cluster analysis. Commun. Stat. 1974, 3, 1–27. [Google Scholar] [CrossRef]
  50. Lundberg, S.M.; Erion, G.; Chen, H.; DeGrave, A.; Prutkin, J.M.; Nair, B.; Katz, R.; Himmelfarb, J.; Bansal, N.; Lee, S.I. From Local Explanations to Global Understanding with Explainable AI for Trees. Nat. Mach. Intell. 2020, 2, 56–67. [Google Scholar] [CrossRef] [PubMed]
  51. Lundberg, S.M.; Lee, S. A Unified Approach to Interpreting Model Predictions. In Proceedings of the 31st Conference on Neural Information Processing Systems (NIPS 2017), Long Beach, CA, USA, 4–9 December 2017. [Google Scholar]
  52. Bennet-Clark, H.C.; Alder, G.M. The effect of air resistance on the jumping performance of insects. J. Exp. Biol. 1979, 82, 105–121. [Google Scholar] [CrossRef]
  53. Dickinson, M.H.; Gotz, K.G. The wake dynamics and flight forces of the fruit fly Drosophila melanogaster. J. Exp. Biol. 1996, 199, 2085–2104. [Google Scholar] [CrossRef]
  54. Zumstein, N.; Forman, O.; Nongthomba, U.; Sparrow, J.C.; Elliott, C.J. Distance and force production during jumping in wild-type and mutant Drosophila melanogaster. J. Exp. Biol. 2004, 207, 3515–3522. [Google Scholar] [CrossRef]
  55. Card, G.; Dickinson, M.H. Visually mediated motor planning in the escape response of Drosophila. Curr. Biol. 2008, 18, 1300–1307. [Google Scholar] [CrossRef]
  56. Reynolds, E.R. Shortened Lifespan and Other Age-Related Defects in Bang Sensitive Mutants of Drosophila melanogaster. G3 2018, 8, 3953–3960. [Google Scholar] [CrossRef] [PubMed]
Figure 1. Experimental setup and MD pipeline. (A) Schematic of video camera, lighting, and recording chamber vial. (B) Flowchart diagram detailing MD object detection, event detection, and event filtration algorithms. (C) Representative still image of a fly in the recording chamber with the bounding box generated by the MD software. Note several spots of glare are apparent near the top of the vial.
Figure 1. Experimental setup and MD pipeline. (A) Schematic of video camera, lighting, and recording chamber vial. (B) Flowchart diagram detailing MD object detection, event detection, and event filtration algorithms. (C) Representative still image of a fly in the recording chamber with the bounding box generated by the MD software. Note several spots of glare are apparent near the top of the vial.
Insects 17 00624 g001
Figure 2. PCA/K-means analysis. (A) PCA projection of drop events, colored by K-means cluster assignment (k = 3). PC1 =  −0.375 (absolute initial velocity) + 0.375 (initial velocity) + 0.374 (average instantaneous velocity) + 0.371 (initial vertical velocity) + 0.366 (maximum instantaneous velocity) + 0.363 (maximum instantaneous acceleration) + 0.224 (maximum instantaneous jerk) + 0.186 (estimated height at event start) + 0.185 (vertical displacement) + 0.184 (estimated height at vertical trigger) + 0.140 (event velocity) − 0.032 (estimated height at event end) + 0.03 (elapsed time in frames) + 0.03 (elapsed time) − 0.017 (event angle) − 0.012 (estimated X position at event end) − 0.008 (horizontal displacement) − 0.004 (estimated X position at event end). PC2 = 0.469 (elapsed time in frames) + 0.469 (elapsed time in seconds) + 0.409 (vertical displacement) + 0.344 (estimated height at event start) + 0.341 (estimated height at event trigger) − 0.172 (absolute initial velocity) − 0.172 (initial velocity) − 0.159 (initial vertical velocity) − 0.158 (estimated height at event end) + 0.141 (maximum instantaneous jerk) − 0.137 (average instantaneous velocity) + 0.070 (maximum instantaneous velocity) + 0.041 (estimated X position at event start) − 0.040 (event velocity) + 0.037 (estimated X position at event end) + 0.025 (maximum instantaneous acceleration) − 0.011 (horizontal displacement) + 0.004 (event angle). (B) Plot of absolute initial velocity versus estimated height at event start for all drops, with events colored by the PCA/K-means cluster labels.
Figure 2. PCA/K-means analysis. (A) PCA projection of drop events, colored by K-means cluster assignment (k = 3). PC1 =  −0.375 (absolute initial velocity) + 0.375 (initial velocity) + 0.374 (average instantaneous velocity) + 0.371 (initial vertical velocity) + 0.366 (maximum instantaneous velocity) + 0.363 (maximum instantaneous acceleration) + 0.224 (maximum instantaneous jerk) + 0.186 (estimated height at event start) + 0.185 (vertical displacement) + 0.184 (estimated height at vertical trigger) + 0.140 (event velocity) − 0.032 (estimated height at event end) + 0.03 (elapsed time in frames) + 0.03 (elapsed time) − 0.017 (event angle) − 0.012 (estimated X position at event end) − 0.008 (horizontal displacement) − 0.004 (estimated X position at event end). PC2 = 0.469 (elapsed time in frames) + 0.469 (elapsed time in seconds) + 0.409 (vertical displacement) + 0.344 (estimated height at event start) + 0.341 (estimated height at event trigger) − 0.172 (absolute initial velocity) − 0.172 (initial velocity) − 0.159 (initial vertical velocity) − 0.158 (estimated height at event end) + 0.141 (maximum instantaneous jerk) − 0.137 (average instantaneous velocity) + 0.070 (maximum instantaneous velocity) + 0.041 (estimated X position at event start) − 0.040 (event velocity) + 0.037 (estimated X position at event end) + 0.025 (maximum instantaneous acceleration) − 0.011 (horizontal displacement) + 0.004 (event angle). (B) Plot of absolute initial velocity versus estimated height at event start for all drops, with events colored by the PCA/K-means cluster labels.
Insects 17 00624 g002
Figure 3. UMAP and Hierarchical Density-Based Spatial Clustering of Applications with Noise (HDBSCAN) define drops by kinematic metrics. (A) UMAP visualization of drop events colored by HDBSCAN-defined clusters. (BE) Histograms of absolute initial velocities for each HDBSCAN-defined cluster. The dotted line indicates the expected initial velocity due to gravity (250 mm/s). (B) Cluster 0. Downjumps. (C) Cluster 1. Falls with missing frame data. (D) Cluster 2. Falls from lower in vial. (E) Cluster 3. Falls from top of vial.
Figure 3. UMAP and Hierarchical Density-Based Spatial Clustering of Applications with Noise (HDBSCAN) define drops by kinematic metrics. (A) UMAP visualization of drop events colored by HDBSCAN-defined clusters. (BE) Histograms of absolute initial velocities for each HDBSCAN-defined cluster. The dotted line indicates the expected initial velocity due to gravity (250 mm/s). (B) Cluster 0. Downjumps. (C) Cluster 1. Falls with missing frame data. (D) Cluster 2. Falls from lower in vial. (E) Cluster 3. Falls from top of vial.
Insects 17 00624 g003
Figure 4. Trajectories for HDBSCAN-defined cluster events. (AC) Color indicates the event frame progression. (A) Trajectories for cluster 0 downjumps from the top of the vial. (B) Trajectories for cluster 2 falls from lower positions in the vial. (C) Trajectories for cluster 3 falls from top of the vial.
Figure 4. Trajectories for HDBSCAN-defined cluster events. (AC) Color indicates the event frame progression. (A) Trajectories for cluster 0 downjumps from the top of the vial. (B) Trajectories for cluster 2 falls from lower positions in the vial. (C) Trajectories for cluster 3 falls from top of the vial.
Insects 17 00624 g004
Figure 5. Representative trajectory for each event type. (AD) Color signifies vertical velocity. (A) Representative trajectory for a fall (see Video_clip_1_fall.mp4). (B) Representative trajectory for a downjump (see Video_clip_2_downjump.mp4). (C) Representative trajectory for an upjump (see Video_clip_3_upjump.mp4). (D) Representative trajectory for an arcjump (see Video_clip_4_arcjump.mp4).
Figure 5. Representative trajectory for each event type. (AD) Color signifies vertical velocity. (A) Representative trajectory for a fall (see Video_clip_1_fall.mp4). (B) Representative trajectory for a downjump (see Video_clip_2_downjump.mp4). (C) Representative trajectory for an upjump (see Video_clip_3_upjump.mp4). (D) Representative trajectory for an arcjump (see Video_clip_4_arcjump.mp4).
Insects 17 00624 g005
Table 1. Comparing event counts and drop metrics of 11–13-day-old w[1118] males (n = 18) to 40–52-day-old w[1118] males (n = 16). Pooled data from Supplementary Tables S6–S10. p-value for significance is p < 0.05. Metric sub-types are indicated in bold font.
Table 1. Comparing event counts and drop metrics of 11–13-day-old w[1118] males (n = 18) to 40–52-day-old w[1118] males (n = 16). Pooled data from Supplementary Tables S6–S10. p-value for significance is p < 0.05. Metric sub-types are indicated in bold font.
Young w[1118] MaleOld w[1118] Male
MetricMeanSDMedianMeanSDMedianp ValueTest
Event Counts
Upward Jumps0.0000.0000.0000.0000.0000.000-Welch’s t-test
Arcjumps0.2220.7110.0000.0620.2420.0000.623Mann–Whitney U test
Falls9.1119.4107.0001.9383.5791.0002.42 × 10−4Mann–Whitney U test
Downward Jumps0.1670.3730.0000.3120.6820.0000.775Mann–Whitney U test
Drops9.2789.4097.5002.2504.0541.0003.39 × 10−4Mann–Whitney U test
Total Events9.5009.5237.5002.3124.0271.0002.48 × 10−4Mann–Whitney U test
Total Movement (mm)8.95 × 1032.93 × 1039.50 × 1031.72 × 103770.5951.95 × 1031.09 × 10−5Mann–Whitney U test
Time spent in upper half of vial0.6070.1790.6370.4230.1790.4261.26 × 10−3Mann–Whitney U test
Event–Movement ratio9.77 × 10−48.43 × 10−48.06 × 10−41.05 × 10−31.29 × 10−38.60 × 10−40.665Mann–Whitney U test
Drop Metrics
Event duration (frames)4.5880.8784.6824.6921.6174.5000.820Student’s t-test
Event duration (s)0.0790.0150.0810.0810.0280.0780.820Student’s t-test
Vertical displacement (mm)23.4194.93824.37522.5409.52024.2790.751Welch’s t-test
Horizontal displacement (mm)3.6581.5363.8384.4602.4054.1460.264Student’s t-test
Estimated height at event trigger (mm)14.4986.41212.80215.0609.98910.2250.501Mann–Whitney U test
Estimated height at event start (mm)13.5775.55511.76513.8298.38710.2250.546Mann–Whitney U test
Estimated X position at event start (mm)22.1392.02722.69421.9123.79921.3260.832Student’s t-test
Estimated height at event end (mm)36.9962.46236.80936.3698.16338.7260.162Mann–Whitney U test
Estimated X position at event end (mm)21.5771.93721.86020.8273.77521.0910.495Welch’s t-test
Event velocity (mm/s)495.790154.051502.506401.789182.902361.4660.125Student’s t-test
Maximum velocity (mm/s)447.444103.866459.661869.971383.272767.7136.93 × 10−4Welch’s t-test
Average velocity (mm/s)266.25346.940270.112410.761185.553393.1639.39 × 10−3Welch’s t-test
Initial vertical velocity (mm/s)240.86959.731219.909335.335206.500243.1950.523Mann–Whitney U test
Maximum acceleration (mm/s2)1.88 × 1044.52 × 1031.77 × 1044.44 × 1042.24 × 1044.11 × 1044.93 × 10−4Welch’s t-test
Initial velocity (mm/s)255.02355.302243.071389.014208.786342.9680.028Welch’s t-test
Absolute initial velocity (mm/s)255.02355.302243.071389.014208.786342.9680.028Welch’s t-test
Maximum jerk (mm/s3)1.05 × 1066.60 × 1051.06 × 1063.38 × 1062.59 × 1062.57 × 1063.58 × 10−3Welch’s t-test
Lag time (s)2.1221.4831.66210.13210.3545.5050.011Mann–Whitney U test
Event Angle (degrees)88.8959.95290.64391.55311.08694.970.429Mann–Whitney U test
Table 2. Comparing event counts and drop metrics of 11–13-day-old w[1118] females (n = 18) to 40–52-day-old w[1118] females (n = 16). Pooled data from Supplementary Tables S6–S10. p-value for significance is p < 0.05. Metric sub-types are indicated in bold font.
Table 2. Comparing event counts and drop metrics of 11–13-day-old w[1118] females (n = 18) to 40–52-day-old w[1118] females (n = 16). Pooled data from Supplementary Tables S6–S10. p-value for significance is p < 0.05. Metric sub-types are indicated in bold font.
Young w[1118] FemaleOld w[1118] Female
MetricMeanSDMedianMeanSDMedianp ValueTest
Event Counts
Upward Jumps0.1110.3140.0000.1250.3310.0000.926Mann–Whitney U test
Arcjumps0.1110.3140.0000.0620.2420.0000.648Mann–Whitney U test
Falls6.1114.7365.0002.8122.7892.0000.011Mann–Whitney U test
Downward Jumps0.3330.5770.0000.4380.7040.0000.763Mann–Whitney U test
Drops6.4445.0025.0003.2503.2112.0000.022Mann–Whitney U test
Total Events6.6674.9785.5003.4383.2782.0000.020Mann–Whitney U test
Total Movement (mm)7.19 × 1033.50 × 1036.91 × 1032.65 × 1032.01 × 1032.62 × 1039.35 × 10−5Welch’s t-test
Time spent in upper half of vial0.6520.0890.6830.4750.2800.5450.070Mann–Whitney U test
Event–Movement ratio9.84 × 10−44.76 × 10−49.15 × 10−41.22 × 10−31.06 × 10−38.79 × 10−41.000Mann–Whitney U test
Drop Metrics
Event duration (frames)4.5971.5094.6674.9111.6344.2220.783Mann–Whitney U test
Event duration (s)0.0790.0260.0800.0850.0280.0730.820Mann–Whitney U test
Vertical displacement (mm)25.8175.15024.85726.2485.33830.0040.878Student’s t-test
Horizontal displacement (mm)3.4111.2283.3233.6412.3572.4290.784Student’s t-test
Estimated height at event trigger (mm)13.2596.69010.60412.1994.11811.5470.880Mann–Whitney U test
Estimated height at event start (mm)12.3525.7999.98611.5003.84911.1360.820Mann–Whitney U test
Estimated X position at event start (mm)21.9094.67921.34422.8503.65120.7620.697Student’s t-test
Estimated height at event end (mm)38.1693.58038.14237.7483.09937.7390.823Student’s t-test
Estimated X position at event end (mm)21.7184.06121.83321.4365.19722.1530.904Student’s t-test
Event velocity (mm/s)567.627366.109469.709332.59567.137347.0930.039Mann–Whitney U test
Maximum velocity (mm/s)621.872395.772493.323841.449225.654791.4300.058Mann–Whitney U test
Average velocity (mm/s)398.451388.433279.501360.29554.367375.2370.319Mann–Whitney U test
Initial vertical velocity (mm/s)386.151382.422306.397292.713110.141312.6380.940Mann–Whitney U test
Maximum acceleration (mm/s2)2.76 × 1042.27 × 1042.08 × 1043.68 × 1041.66 × 1043.48 × 1040.189Mann–Whitney U test
Initial velocity (mm/s)396.832389.518307.511305.631102.199325.6700.940Mann–Whitney U test
Absolute initial velocity (mm/s)396.832389.518307.511305.631102.199325.6700.940Mann–Whitney U test
Maximum jerk (mm/s3)1.17 × 1068.59 × 1059.55 × 1053.45 × 1061.92 × 1062.99 × 1060.075Welch’s t-test
Lag time (s)3.3264.0222.14631.17247.8776.1200.011Mann–Whitney U test
Event Angle (degrees)90.4975.98589.76391.9027.08392.0570.678Student’s t-test
Table 3. Comparison of fall accelerations and fall initial velocities of young and aged w[1118] flies to those expected from acceleration due to gravity. Fall accelerations were calculated using linear regression of frame-wise velocity values across the fall. The fall acceleration values are compared to that expected from acceleration due to gravity (9810 mm/s2) using a Wilcoxon signed-rank test. Fall initial velocities for each group were compared to that expected from acceleration due to gravity (250 mm/s) using a Wilcoxon signed-rank test. The young groups were 11–13 days old, and the old groups were 40–52 days old. p-value for significance is p < 0.05. Kinematic parameters are indicated in bold font.
Table 3. Comparison of fall accelerations and fall initial velocities of young and aged w[1118] flies to those expected from acceleration due to gravity. Fall accelerations were calculated using linear regression of frame-wise velocity values across the fall. The fall acceleration values are compared to that expected from acceleration due to gravity (9810 mm/s2) using a Wilcoxon signed-rank test. Fall initial velocities for each group were compared to that expected from acceleration due to gravity (250 mm/s) using a Wilcoxon signed-rank test. The young groups were 11–13 days old, and the old groups were 40–52 days old. p-value for significance is p < 0.05. Kinematic parameters are indicated in bold font.
Young w[1118] MalesYoung w[1118]FemalesOld w[1118] MalesOld w[1118] Females
nflies18181616
nfalls104692638
Acceleration (mm/s2)
Expected9810981098109810
Median1843.2792607.1475314.0733488.99
W statistic3212956977
Z-score−7.812−5.546−2.705−4.256
p value2.82 × 10−152.43 × 10−90.0032.07 × 10−6
Initial velocity (mm/s)
Expected250250250250
Median211.838227.233240.798244.346
W statistic1411.01062.0151.0344.5
Z-score−4.277−0.87−0.622−0.377
p value1.89 × 10−50.3840.5480.706
Table 4. Comparing event counts of 2-day-old w[1118] males (n = 6) to 2-day-old dehydrated w[1118] males (n = 7). Pooled data from Supplementary Tables S13 and S14. p-value for significance is p < 0.05. Drop metrics presented in Supplementary Table S48. Metric sub-type is indicated in bold font.
Table 4. Comparing event counts of 2-day-old w[1118] males (n = 6) to 2-day-old dehydrated w[1118] males (n = 7). Pooled data from Supplementary Tables S13 and S14. p-value for significance is p < 0.05. Drop metrics presented in Supplementary Table S48. Metric sub-type is indicated in bold font.
w[1118] MaleDehydrated w[1118] Male
MetricMeanSDMedianMeanSDMedianp ValueTest
Event Counts
Upward Jumps0.0000.0000.0000.4290.4950.0000.097Mann–Whitney U test
Arcjumps0.0000.0000.0000.1430.3500.0000.440Mann–Whitney U test
Falls7.3337.3865.50017.85724.43910.0000.517Mann–Whitney U test
Downward Jumps0.1670.3730.0001.5711.0502.0000.033Mann–Whitney U test
Drops7.5007.2285.50019.42924.76112.0000.431Mann–Whitney U test
Total Events7.5007.2285.50020.00024.64613.0000.391Mann–Whitney U test
Total Movement (mm)7.61 × 1035.08 × 1038.14 × 1037.43 × 1033.98 × 1037.52 × 1030.949Student’s t-test
Time spent in upper half of vial0.5790.0660.5570.5260.1890.6090.565Student’s t-test
Event–Movement ratio7.52 × 10−45.77 × 10−47.39 × 10−41.97 × 10−31.94 × 10−31.81 × 10−30.200Student’s t-test
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Das, S.; Patel, Y.; Wang, K.; Tower, J. Analysis of Fall and Jump Behaviors in Freely Moving Drosophila melanogaster Using 58 fps Video. Insects 2026, 17, 624. https://doi.org/10.3390/insects17060624

AMA Style

Das S, Patel Y, Wang K, Tower J. Analysis of Fall and Jump Behaviors in Freely Moving Drosophila melanogaster Using 58 fps Video. Insects. 2026; 17(6):624. https://doi.org/10.3390/insects17060624

Chicago/Turabian Style

Das, Shoham, Yash Patel, Kyle Wang, and John Tower. 2026. "Analysis of Fall and Jump Behaviors in Freely Moving Drosophila melanogaster Using 58 fps Video" Insects 17, no. 6: 624. https://doi.org/10.3390/insects17060624

APA Style

Das, S., Patel, Y., Wang, K., & Tower, J. (2026). Analysis of Fall and Jump Behaviors in Freely Moving Drosophila melanogaster Using 58 fps Video. Insects, 17(6), 624. https://doi.org/10.3390/insects17060624

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop