We develop a biotracking software, which helps biologists track animals and insects and study their behavior by analyzing videotaped data. To biologists, whose observation and analysis methods are time-consuming, the automated system has been a boon. The idea for the biotracking software was conceived while studying robots. We use hidden Markov models (HMMs) to track the moving robots and extract the behaviors from their motion. The technology also has broader applications; it can be applied to any large group of observable and trackable moving agents. The program tracks objects of the ant color from video frame to video frame. The program makes it easy to view the bee activity logs and label the types of bee activity by combining HMM learning with k-nearest neighbor classification.