Skip to content

VivianGunawan/ComputerVisionToSupportNeuroscience

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ComputerVisionToSupportNeuroscience

🗓 Spring 2020

Project Description

Mouse Behavioural studies are often conducted in the field of neuroscience. Typically the mouse are monitored for changes in sensory-motor function, social interactions, anxiety/ depressive like behavior and other cognitive functions. Traditionally this is done manually by someone watching the recordings and tracking how the mouse moves and interact with each other. This project uses computer vision to track interactions between mouse and their trajectory.

Demonstration

Mouse Trajectory

trajectory

Mouse Interactions

Striped Tail Mouse initiates approach Plain Tail Mouse initiates approach
m1 m2

Technical Details

  1. Cleaning data data
  • 30 minute footage of two mice in a “shoebox” set up, are cut down into 6 footages each of 5 minutes duration.
  • Frames to be annotated are selected from the videos in a randomly and temporally uniformly distributed way by clustering on visual appearance (K-means).
  1. Annotating frames
  • Selected frames are manually annotated by placing trackers on snout, ears and tail base
  • Usage of pre-trained Resnet 50 networks in transfer learning to annotate frames in between manually annotated frames.
  1. Plot Trajectories received from model

  2. Back Tracking Algorithm with coordinates to analyze interaction backtracking

  • Detect interaction (an interaction as the event when the two mice got into close proximity of each other. (within ear to ear distance of each other)
  • Take the two closest points between the mice and calculated the middle point of these two points to constructed a "collision region".
  • Backtrack through trajectory, the mouse to last enter collision region is the one who initiated the interaction

Tools

python tensorflow pandas DeepLabCut

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published