Real-Time Closed-Loop Feedback in Behavioral Time Scales Using DeepLabCut.

Journal: eNeuro
Published Date:

Abstract

Computer vision approaches have made significant inroads into offline tracking of behavior and estimating animal poses. In particular, because of their versatility, deep-learning approaches have been gaining attention in behavioral tracking without any markers. Here, we developed an approach using DeepLabCut for real-time estimation of movement. We trained a deep-neural network (DNN) offline with high-speed video data of a mouse whisking, then transferred the trained network to work with the same mouse, whisking in real-time. With this approach, we tracked the tips of three whiskers in an arc and converted positions into a TTL output within behavioral time scales, i.e., 10.5 ms. With this approach, it is possible to trigger output based on movement of individual whiskers, or on the distance between adjacent whiskers. Flexible closed-loop systems like the one we have deployed here can complement optogenetic approaches and can be used to directly manipulate the relationship between movement and neural activity.

Authors

  • Keisuke Sehara
    Institute of Biology, Humboldt University of Berlin, Berlin D-10117, Germany keisuke.sehara@gmail.com bs387ster@gmail.com.
  • Paul Zimmer-Harwood
    Department of Physiology, Anatomy and Genetics, University of Oxford, Oxford OX1 3PT, United Kingdom.
  • Matthew E Larkum
    Institute of Biology, Humboldt University of Berlin, Berlin D-10117, Germany.
  • Robert N S Sachdev
    Institute of Biology, Humboldt University of Berlin, Berlin D-10117, Germany keisuke.sehara@gmail.com bs387ster@gmail.com.