PT - JOURNAL ARTICLE AU - Mostafa A. Nashaat AU - Hatem Oraby AU - Laura Blanco Peña AU - Sina Dominiak AU - Matthew E. Larkum AU - Robert N. S. Sachdev TI - Pixying Behavior: A Versatile Real-Time and <em>Post Hoc</em> Automated Optical Tracking Method for Freely Moving and Head Fixed Animals AID - 10.1523/ENEURO.0245-16.2017 DP - 2017 Jan 01 TA - eneuro PG - ENEURO.0245-16.2017 VI - 4 IP - 1 4099 - http://www.eneuro.org/content/4/1/ENEURO.0245-16.2017.short 4100 - http://www.eneuro.org/content/4/1/ENEURO.0245-16.2017.full SO - eNeuro2017 Jan 01; 4 AB - Here, we describe an automated optical method for tracking animal behavior in both head-fixed and freely moving animals, in real time and offline. It takes advantage of an off-the-shelf camera system, the Pixy camera, designed as a fast vision sensor for robotics that uses a color-based filtering algorithm at 50 Hz to track objects. Using customized software, we demonstrate the versatility of our approach by first tracking the rostro-caudal motion of individual adjacent row (D1, D2) or arc whiskers (β, γ), or a single whisker and points on the whisker pad, in head-fixed mice performing a tactile task. Next, we acquired high-speed video and Pixy data simultaneously and applied the pixy-based real-time tracking to high-speed video data. With this approach, we expand the temporal resolution of the Pixy camera and track motion (post hoc) at the limit of high-speed video frame rates. Finally, we show that this system is flexible: it can be used to track individual whisker or limb position without any sophisticated object tracking algorithm, it can be used in many lighting conditions including infrared (IR); it can be used to track head rotation and location of multiple animals simultaneously. Our system makes behavioral monitoring possible in virtually any biological setting.