State space modeling for analysis of behavior in learning experiments