PT - JOURNAL ARTICLE AU - Huang, Huixin AU - Shah, Garima AU - Adwanikar, Hita AU - Mysore, Shreesh P. TI - Reliable Inference of the Encoding of Task States by Individual Neurons Using Calcium Imaging AID - 10.1523/ENEURO.0378-25.2025 DP - 2026 Jan 01 TA - eneuro PG - ENEURO.0378-25.2025 VI - 13 IP - 1 4099 - http://www.eneuro.org/content/13/1/ENEURO.0378-25.2025.short 4100 - http://www.eneuro.org/content/13/1/ENEURO.0378-25.2025.full SO - eNeuro2026 Jan 01; 13 AB - Investigations into the neural basis of behavior frequently employ calcium imaging to measure neuronal activity. Across studies, however, seemingly reasonable but highly diverse methodological choices are typically made to assess the selectivity of individual neurons to task states. Here, we examine systematically the effect of parameter choices, along the pipeline from data acquisition through statistical testing, on the inferred encoding preferences of individual neurons. We use, as an experimental testbed, calcium imaging in the medial prefrontal cortex of freely behaving mice engaged in a classic exploration-avoidance task with animal-controlled state transitions, namely, navigation in the elevated zero maze. We report that most of the key parameters in the pipeline substantially impact the inferred selectivity of neurons and do so in distinct ways. Using novel accuracy and robustness metrics, we directly compare the quality of inference across combinations of parameter levels and discover an optimal combination. We validate its optimality using resampling methods and demonstrate its generality across the two common analytical approaches used to assess neuronal selectivity—average response rate-dependent selectivity indices and continuous time-dependent regression coefficients. Together, our results not only identify an optimal parameter setting for reliably assessing encoding preferences of cortical excitatory neurons using GCaMP6f calcium imaging but also establish a general data-driven procedure for identifying such optimal settings for other cell types, brain areas, and tasks.