Decoding behavior from calcium imaging