Computational modeling of animal behavior in T-mazes: Insights from machine learning