Open Field Behavior Analysis
Tracks distance, velocity, zone occupancy, and movement states from open-field behavior videos.
PythonComputer VisionNeuroscienceWork Project
Overview
- Segment animal body per frame using grayscale thresholding, morphological cleanup, and distance-transform refinement.
- Extract centroid and contour-derived metrics per frame.
- Compute displacement, velocity, acceleration, and heading from centroid traces.
- Normalize key summary metrics to each animal's baseline day.
- Quantify center-zone occupancy and crossings into the center box.
- Fit GMMs on smoothed velocity and label frame-level behavior states based on locomotion.
Trajectory Analysis


Trajectory traces are used to quantify total distance traveled, instantaneous velocity, time in the center zone, and crossings into the center.
Behavior Classification

A GMM is fit to baseline velocity to estimate the threshold defining transitions into lingering vs progressing locomotion states, which is used to assess stroke-related locomotion deficits and recovery over time.