Design and Development of an Implantable System for Behavioral Analysis in Rats Using Machine Vision and Deep Neural Networks for Neuroscience Applications
Pages 1-17
Mohammad Ismail Zibaii, Seyedeh Mahshad Hosseini
Abstract Accurate and quantitative monitoring of laboratory animals’ behavior, particularly in neuroscience models, is essential for understanding the neural-circuit function and its relation with complex behaviors. In computational ethology, novel systems and algorithms have been developed to make experiments automated, more precise, and less reliant on human observers, which could improve the reproducibility and repeatability of the results. In this research, a system composed of behavior-monitoring cameras and a miniature cranial implant for rats was designed and fabricated to record the animal’s body movement, track eye movements, and measure head orientation. The implant integrates an Inertial Measurement Unit (IMU) to measure head acceleration and angular velocity, as well as an infrared miniature camera for pupillometry; the total weight was about 4.5 g. A custom-developed software tool is designed to capture, process, and visualize the data. Sensor fusion of accelerometer and gyroscope data was used to compute the Euler angles of head motion. Classical computer-vision and deep neural-network algorithms were utilized for image analysis. Thresholding and edge-detection algorithms enabled real-time tracking of the pupil in pigmented rats and the body center, with a processing speed of 25 frames per second, which is suitable for closed-loop neural control. For body-pose estimation and pupil tracking in albino rats, the DeepLabCut networks were used along with data augmentation and transfer learning methods. This approach reduced the pupil detection error to 3.31 pixels after training on 448 labeled images for 30,000 iterations. While deep learning methods provide high accuracy, they impose substantial computational demands; therefore, the suitable algorithm should be chosen based on the experimental objective and available hardware resources. The proposed behavioral monitoring system can be used simultaneously with optogenetics and electrophysiological recordings, which provides a versatile and beneficial tool for advancing research in cognitive neuroscience.
