Reliable inference of the encoding of task states by individual neurons using calcium imaging | Synapse