Behavioral Neuroscience · Continuous Monitoring · Computational Analysis

Automated Analysis of Continuous Locomotion Tracks
Morphine Effects in Female Mice

Using high-resolution behavioral monitoring to track acute and long-term drug effects, and to reveal estrous-linked physiological rhythms directly from movement patterns.

Matthew Budding, Michael Vasandani, Pansy Kuang, Kyra Deng

Mentors: Benjamin Smarr, Manny Ruidiaz · UC San Diego, Halicioglu Data Science Institute

Subjects54 Female C57BL/6J Mice
DatasetMorph2REP
Duration13–15 Days Continuous
ResolutionMinute-Level Tracking
01 — The Problem

Why Female Mice Are Underrepresented in Drug Studies

Drug testing in animals is central to determining pharmaceutical safety and effectiveness, yet female mice have historically been underrepresented in these studies. Hormonal variability is often treated as experimental "noise," leading many pipelines to avoid females altogether and leaving drug effects in female biology less systematically measured beyond the immediate dosing window.

As a result, potential long-term or subtle disruptions in physiology and behavior may remain hidden even when the underlying data exist. The estrous cycle — a roughly four-to-five-day reproductive rhythm in female mice — introduces variability that researchers have found difficult to account for without invasive measurements.

Our Approach

Continuous, high-resolution behavioral monitoring allows us to observe mice across multiple days rather than relying on short experimental snapshots. Using locomotor data from the Morph2REP dataset, we apply a label-free analysis pipeline that treats movement patterns as time-series signals of underlying physiology, analyzing dose-dependent behavioral changes and multi-day rhythmic patterns to better understand how drugs influence female physiology over time.

Estrus (Label-Free)

Can estrus-linked behavioral rhythms be detected directly from locomotion without invasive labels, and are these rhythms altered or disrupted following morphine exposure?

Drug Response

Can locomotor dynamics identify dose-dependent responses to morphine, distinguish high vs. low responders, and determine whether behavioral effects persist after dosing?


02 — Automated Cage Monitoring

How We Track Locomotion Continuously

Animals were housed in automated Envision cages equipped with high-resolution behavioral tracking systems. These systems continuously recorded locomotor activity at minute-level resolution, generating rich time series representing movement within the cage across 13–15+ days of observation.

🐁
54 Female Mice
C57BL/6J across 2 replicates
📡
Automated Envision Cages
High-resolution tracking: locomotion, posture, drinking, respiration
📊
Locomotion Time Series
Minute-level resolution, 13–15+ days continuous
Vehicle (Saline) 5 mg/kg Morphine 25 mg/kg Morphine
54
Female mice across two experimental replicates
3
Treatment groups: vehicle, low-dose, high-dose morphine
~15
Days of continuous behavioral recording per mouse
1 min
Temporal resolution of locomotion tracking

03 — Acute Morphine Effects

Baseline Behavior vs. Dose Response

On non-dosing days, all treatment groups showed similar, typical low-level activity fluctuations. Following morphine injection, locomotion increased dramatically in a dose-dependent manner, with the strongest response at 25 mg/kg.

Baseline behavior vs acute morphine response
Figure 1 — Baseline vs. Acute Morphine Response
Baseline locomotion shows typical low-level activity fluctuations with no group differences. Following morphine injection (dashed line), locomotion increases dramatically in a dose-dependent manner. The 25 mg/kg group (pink) shows a sharp spike followed by sustained elevated activity, while the 5 mg/kg group (blue) shows moderate elevation. Vehicle controls (yellow) remain unchanged.
Response magnitude and prediction accuracy by dose
Figure 2 — Response Magnitude & Prediction by Dose
(A) Morphine response magnitude shows a 5.14x difference between low-dose and high-dose groups. The 25 mg/kg group displays substantially greater and more variable locomotor responses. (B) Classification of high vs. low responders achieves 72.2% accuracy for the 25 mg/kg group (well above chance), while the 5 mg/kg group is harder to classify at 27.8%, reflecting lower signal-to-noise at the lower dose.

Daily Ultradian Signals Suggest Long-Term Disruption

Beyond the acute spike in activity, ultradian locomotor signals (1–3 hour rhythms) were extracted from minute-resolution activity using wavelet analysis and normalized to baseline. In positive control mice, the signal shows a clear repeating ~4-day pattern consistent with the estrous cycle. In Morph2REP mice, rhythmic structure is weaker under vehicle and appears disrupted following high-dose morphine, suggesting attenuation of estrous-timescale behavioral organization.

Representative mice showing estrous-timescale behavioral rhythms
Figure 3 — Representative Estrous-Timescale Behavioral Rhythms
Ultradian locomotor signals (z_U_1-3h) for three representative mice. Left: Positive control Mouse f7 shows a clear ~4-day repeating pattern (E markers indicate estrous peaks, dashed guides at 4-day intervals). Center: Vehicle Rep1 Mouse 9263 shows weaker but present rhythmic structure; dashed red lines mark dose days. Right: 25 mg Rep2 Mouse 9289 shows disrupted rhythmic structure following morphine exposure, with the signal becoming irregular after dosing events.
Long-Term Disruption

High-dose morphine (25 mg/kg) does not just cause acute locomotor activation — it disrupts the underlying behavioral rhythmic structure that persists across days, potentially masking or interfering with endogenous physiological cycles like the estrous cycle.


04 — Analytical Pipeline

Discovering Estrous Rhythms Within Locomotion

To extract physiological rhythms from behavioral data, we applied a multi-stage computational pipeline combining signal processing, probabilistic modeling, and cyclicity testing — all without requiring invasive estrous labels.

01
Wavelet Transform
CWT with Morlet wavelet on minute-resolution data
02
Ultradian Band
Extract 1–3 hour rhythmic power, MAD-normalize
03
GMM States
Two-component Gaussian mixture: high/low activity states
04
Lag-4 Autocorrelation
Test for ~4-day estrous-consistent periodicity
05
Permutation Testing
Significance via shuffled null distributions

Ultradian Rhythm Extraction

Locomotor time series were transformed using a continuous wavelet transform with a Morlet wavelet. We focused on the ultradian frequency band (1–3 hour cycles), which captures short-timescale behavioral fluctuations associated with structured activity states. Daily power values were normalized relative to baseline using the median and median absolute deviation (MAD), producing a z-scored ultradian signal for each mouse-day.

Behavioral State Modeling

A two-component Gaussian Mixture Model partitions each day into a high or low ultradian power state, producing a daily probability signal (plowU). This probabilistic representation translates raw locomotion into a compact signal suitable for detecting repeating physiological patterns across days.

Cyclicity Detection

Lag-4 autocorrelation of the state probability signal tests for estrous-consistent periodicity. A lag of four days was selected because the estrous cycle in mice typically occurs on a four-day timescale. Both individual-level and population-level analyses were performed, with permutation-based null distributions used for significance testing.


05 — Estrous-Timescale Rhythms

Detecting Cyclicity from Behavior Alone

Individual-Level Detection

While several mice exhibit positive autocorrelation consistent with repeating behavioral structure, most animals do not reach statistical significance individually — only about 5 of 54 mice showed significant cyclicity. This limited detection is expected given the short observation window (~13–15 days), which captures only a few potential estrous cycles and includes behavioral perturbations from experimental events such as dosing and cage changes.

Key Finding

Despite weak individual signals, the presence of significant mice above the expected false-positive rate suggests underlying rhythmic structure exists within the behavioral data, motivating group-level analysis.

Pipeline Validation: Positive & Negative Controls

Before interpreting population-level results, we validated that the analysis pipeline reliably distinguishes genuine estrous-linked signals from noise using three control conditions.

Negative Control 1

De-Aligned Females

When estrus timing was artificially disrupted by de-aligning female cycles, the expected suppression of ultradian power on estrus-labeled days disappeared. Ultradian activity fluctuated without a consistent relationship to the assigned estrus labels, confirming the signal depends on correct temporal alignment rather than random locomotor variation.

Negative Control 2

Male Mice

Male mice, which do not experience estrous cycles, showed no evidence of periodic ultradian suppression or consistent rhythmic structure corresponding to estrus. Autocorrelation and rhythmicity analyses did not reveal a significant ~4-day cyclic pattern, ruling out non-biological artifacts in the pipeline.

Positive Control

Aligned Females (Smarr et al.)

Using the established approach from Smarr et al., aligned female datasets showed ultradian locomotor power consistently decreasing on estrus days with a recurring ~4-day pattern. This periodic structure was detectable through rhythmicity analyses and aligned with known reproductive timing.

Validation Summary

Together, the positive and negative control results demonstrate that the analysis pipeline reliably detects genuine estrus-associated behavioral rhythms while avoiding false cyclic signals when estrus timing is absent or disrupted. This gives us confidence that cyclicity detected in the Morph2REP data reflects real physiological structure.

Population-Level Rhythmicity

When analyzed collectively, mice exhibited consistent lag-4 autocorrelation patterns at the population level. The vehicle group serves as a critical negative control for rhythm disruption: these animals received saline injections on the same schedule as morphine-treated mice, experiencing the same handling, injection stress, and cage disturbances — but no pharmacological agent. Both vehicle replicates showed significant positive lag-4 autocorrelation (r = 0.22 and r = 0.33, both p < 0.05), confirming that the injection procedure and experimental perturbations alone do not disrupt estrous-timescale behavioral rhythms.

The 5 mg/kg group showed weakly positive cyclicity: Rep1 was significant (r = 0.18, p < 0.05) while Rep2 was not (r = 0.04, n.s.), suggesting low-dose morphine partially attenuates but does not eliminate rhythmic structure. The 25 mg/kg condition showed a direction flip between replicates (r = 0.20 vs. r = −0.13), indicating that high-dose morphine disrupts behavioral rhythmic structure. This dose-dependent gradient — from preserved rhythms in vehicle controls, to attenuated rhythms at low dose, to disrupted rhythms at high dose — provides evidence that morphine itself interferes with endogenous estrous-timescale behavioral organization.

Dose Rep1 r Rep2 r Pattern
Vehicle 0.22* 0.33* consistent positive
5 mg/kg 0.18* 0.04 (ns) weak positive
25 mg/kg 0.20* −0.13 (ns) direction flip
Table 1 — Lag-4 Autocorrelation of Ultradian Signals
Population-level mean lag-4 autocorrelation across dose × replicate. * = p < 0.05 via permutation testing; ns = not significant. Vehicle (negative control) shows consistent positive cyclicity across both replicates, establishing that experimental procedures alone do not disrupt rhythms. Morphine shows dose-dependent attenuation of rhythmic structure.
Group-level lag-4 autocorrelation comparing Rep1 and Rep2 across treatment groups
Figure 4 — Group-Level Lag-4 Autocorrelation: Rep1 vs. Rep2
Vehicle (negative control): Both replicates show significant positive autocorrelation (r = 0.22, 0.33; p < 0.05), confirming injection procedures alone do not disrupt rhythms. Dose 5 mg/kg: Weakly positive — Rep1 significant (r = 0.18, p < 0.05), Rep2 not (r = 0.04, n.s.). Dose 25 mg/kg: Direction flip between replicates (r = 0.20 vs. r = −0.13), indicating high-dose morphine disrupts estrous-timescale behavioral organization.
Dose-Dependent Rhythm Disruption

The dose-dependent gradient — from preserved rhythms in vehicle controls, to attenuated rhythms at 5 mg/kg, to disrupted rhythms with a direction flip at 25 mg/kg — supports the interpretation that morphine itself interferes with endogenous behavioral rhythms, rather than experimental procedures confounding the signal.

Does Estrous Phase Predict Drug Sensitivity?

To test whether these detectable rhythms actually influence how an animal responds to morphine, estrous-derived features were incorporated into predictive models and statistical tests. Across six machine learning models and four independent statistical tests (all p > 0.3), estrous features did not improve prediction of morphine response.

Prediction Summary

Adding seven estrous features to the 24 baseline behavioral features slightly decreased average prediction accuracy (62.0% to 60.2%). The best model achieved 72.2% accuracy using baseline features alone, with no improvement from estrous metrics.

Strongest predictor: dark-phase locomotor activity (baseline behavior), not estrous phase.
Feature Importance: Baseline Predictors of Morphine Response
Figure 5 — Feature Importance: Baseline Predictors of Morphine Response
Dark-phase mean locomotor activity (dark_mean) emerges as the single strongest predictor of morphine sensitivity, followed by circadian mesor and plateau max. The top predictors are all baseline behavioral features. Notably, no estrous-derived features appear among the top 10, reinforcing that an animal's baseline behavioral phenotype, rather than its hormonal cycle phase, drives individual differences in drug response.

06 — Conclusion

What Continuous Monitoring Reveals

Structured Ultradian Dynamics

Ultradian locomotor dynamics vary systematically across days, indicating structured behavioral state changes detectable through wavelet analysis.

Population-Level Estrous Cyclicity

Vehicle controls (negative control) show consistent positive lag-4 autocorrelation across both replicates, confirming estrous-timescale rhythms survive experimental procedures.

Dose-Dependent Disruption

Morphine disrupts rhythms in a dose-dependent manner: attenuated at 5 mg/kg, direction flip at 25 mg/kg — anchored by the preserved vehicle control baseline.

Label-Free Detection

Estrous-consistent rhythms can be detected computationally from locomotion alone, without invasive vaginal cytology, opening the door to noninvasive physiological monitoring.

Bottom Line

Behavioral monitoring pipelines can reveal physiological rhythms without invasive measurements. While estrous-consistent rhythms are detectable in locomotor behavior, baseline behavioral phenotypes — not hormonal cycle phase — are what predict individual drug response.