Changing behavior at the right time is crucial for animals to survive in constantly fluctuating environments. In particular, the latency of behavior changes is critical; animals fail to discriminate a long-lasting change from a transient noise if the latency is too short, while they fail to feed and avoid dangers if it is too long. However, molecular and neural mechanisms underlying the regulation of the latency of behavior changes mostly remain elusive. In thermotaxis behavior of C. elegans, animals migrate toward the past cultivation temperature associated with food when put on a thermal gradient without food. A few hours after cultivation temperature is shifted, animals change their preferred temperature to a new cultivation temperature. Here we show that a mutation of
slo-2 gene that encodes a BK-type Ca2+-dependent K+ channel, which was confirmed to be a gain-of-function (gf) mutation by electrophysiological analyses, decelerates the change in preferred temperature in thermotaxis behavior. We further found that the behavior change of the animals doubly mutant for
slo-2 and
slo-1 that encodes another BK-type K+ channel was faster, suggesting that SLO-1 and SLO-2 act redundantly to decelerate behavior change. While gf mutations of human
slo-2 homolog cause epilepsies, we found that the expression of C. elegans
slo-2 with analogous mutations decelerates the change of thermotaxis more than that of wild type
slo-2, implicating similar molecular mechanisms underlying human epilepsies and C. elegans thermotaxis. A major thermosensory neuron AFD increases intracellular Ca2+ concentration in response to a temperature increase near the past cultivation temperature. While the onset temperature of AFD response also changed after cultivation temperature was shifted, the
slo-2(gf) mutation decelerated the change in AFD responses. Furthermore, a mutation in
cng-3 gene that encodes a cyclic nucleotide-gated cation channel suppressed the decelerated phenotypes of both thermotactic behavior and AFD responses caused by the
slo-2(gf) mutation. We also showed by co-immunoprecipitation experiments that SLO-2 and CNG-3 physically interact, suggesting that Ca2+ influx through CNG-3 channel might locally activate SLO-2, which leads to decelerate updating of thermal memory stored in AFD thermosensory neurons and thereby the timing of behavior changes. Our study would serve as a starting point toward comprehensive understanding of neural bases of behavior changes.