Introduction

The detection of temperature, and the related behavioural responses, are an integral part of our sensory interaction with the outside world. Thus, it is not surprising that temperature detection was one of the first sensory modalities to be studied in contemporary neuroscience (1). Early studies concentrated on the characterization of temperature-specific sensory fibres, covering the range from noxious cold, through innocuous cold and warm, to noxious heat (2). However, the molecular mechanism by which temperature activates these fibres remained elusive for decades.

A major breakthrough in the field of somatosensory research was the identification of temperature-sensitive ion channels that belong to the transient-receptor potential (TRP) super family as the molecular sensors responsible for the detection of noxious cold and heat in sensory neurons (35). However, the temperatures in-between noxious cold and heat (25 °C to 43 °C), which are often perceived as non-painful, received less attention. This innocuous temperature range also contains the so-called thermoneutral point (TNP); an ambient temperature (29 °C to 33 °C) at which mice do not exert additional energy to maintain their body temperature (6). This makes the innocuous temperature range crucial for thermoregulation and the animal’s subsequent thermal or comfort choice. Recent studies began to uncover the mechanisms behind innocuous warm-temperature detection, thereby mainly converging on two candidate cation channels, namely TRPV1 and TRPM2 (710). Interestingly, the evidence for the involvement of both channels is seemingly contradictory.

TRPV1 is traditionally associated with the response to noxious temperature stimuli (> 42 °C), with the ability to become sensitive to lower temperatures in inflammatory contexts (3, 1113). However, in vivo calcium imaging of trigeminal sensory neurons in animals lacking TRPV1 showed a complete absence of responses to warm stimuli applied to the oral cavity of mice, while responses to hot temperatures were unchanged. Furthermore, acute inhibition of TRPV1 in animals trained to discriminate innocuous cold from warmth through a nose port led to a reduction in their performance (7). These results stand in contrast to other studies that showed no involvement of TRPV1 in warm-temperature detection, neither in thermal preference assays nor in an operant behaviour task with stimuli applied to the paws (1417).

TRPM2 has reported ex vivo activation temperatures between 35 °C and 40 °C, depending on the cellular context, and was first described as a physiological temperature sensor in pancreatic islet cells (18, 19). Calcium imaging of DRG cultures from animals lacking TRPM2 showed a reduction in the proportion of warm- and heat-responsive neurons in comparison to wildtype sensory neuron cultures (8). Interestingly, Trpm2-/- animals are unable to differentiate temperatures across the innocuous warm range in thermal preference tasks (8, 20), while their ability to avoid noxious temperatures is not affected. However, this result is challenged by the minor deficits observed in the Trpm2-deficient animals trained to report warming of their paws (17).

In summary, both for TRPV1 and TRPM2, there is an apparent disconnect between the observations in cellular assays and the behavioural tasks assessing temperature detection. In vivo calcium imaging coupled with warm-temperature stimuli only shows a relevance of TRPV1, but not TRPM2 in the innocuous temperature range (7). Contrary to that, the lack of TRPM2, but not TRPV1, more consistently affects warm-temperature detection in assays of temperature preference (8, 1416), but not for operant behavioural assays (7, 17).

One main challenge for the analysis of WSNs, neurons that respond to innocuous temperature stimuli between 25 °C and 43 °C, is the low abundance of this neuronal population, which represents about 3 % to 10 % of sensory neurons in rodents (8, 21). Using in-depth functional analysis of 1000s of sensory neurons from multiple animals, we here describe that TRPV1 and TRPM2 are both involved in the detection of innocuous (warm) temperature stimuli. Furthermore, we demonstrate the diverging roles both channels play in warm-temperature detection through a novel thermal preference behaviour assay.

Results

The thermal chamber preference test allows precise discrimination of subtle temperature differences in the innocuous range

Mice prefer 31 °C to warmer temperatures when ambient and floor temperature are controlled

The ability to avoid uncomfortable environmental temperatures or move toward pleasant thermal conditions is fundamental to sustaining life. This process is known as behavioural thermoregulation and can be found in most groups of animals (22). The preference of rodents for temperature is traditionally assessed via paradigms that challenge the animals with differing floor temperatures (2325). This leads to preference development that is based on temperature detection through glabrous skin, such as the paws, tail, and nose. Animals, however, are capable of integrating temperature from glabrous and non-glabrous skin (26). With the aim to probe behavioural thermoregulation in a more holistic context, we developed a thermal discrimination assay where both the floor and ambient temperature are controlled, termed the thermal chamber preference test (CPT) (Figure 1A-D, Figure S1). When presented with warm ambient temperatures (34 °C and 38 °C) and 31 °C as control temperature, mice significantly preferred the 31 °C chamber over the warmer chambers (Figure 1E and F, Table S2). Compared to the classic two-plate preference test (TPT), wildtype animals developed a stronger preference for the 31 °C side in the CPT (Figure S1I). Additionally, animals showed a clear preference for 31 °C when given 34 °C as an option in the CPT. This is not observed in the classic TPT (Figure S1I). This observation suggests that more subtle ambient temperature differences, relating to comfort and thermoregulation, are more faithfully assessed in the CPT assay.

A novel ambient temperature preference test.

A Schematic of the chamber preference test from the top. Grey outlines the outer enclosure and the dashed line the internal cage. Peltier elements (grey oval shapes) were combined with fans for precise control of the temperature. See Figure S1 for a more detailed view. B A representative image of an animal exploring the chambers. Coloured dots represent the tracked keypoints on the animal and reference points in the enclosure. C Tracking of an example animal for 30 minutes at 31 °C (right chamber) and 34 °C (left chamber). D Density maps of the x-position of the animal in C over 30 minutes; binned in three-minute long intervals, concatenated, and interpolated. Dashed lines represent the tunnel connecting both chambers. E Density maps as in D with one-minute bins of all animals from wildtype (n = 48), Trpv1-/- (n = 15) and Trpm2-/- (n = 28) genotypes. F Proportion of time spent in the test chamber for animals shown in E over time, binned in three-minute long intervals. * (p <0.05), ** (p <0.01). See Table S2 for statistical details. G Exemplary behaviour of the animal in C and D over the first 120 seconds of the experiment, highlighting the visit frequency and duration of time spent in each chamber. The dashed line represents the tunnel connecting the chambers. H Overview of the frequency and length of the visits to the test chamber for 15 randomly sampled animals per genotype, shown in E. Each visit is coloured by the log2 of its length to highlight varying visit lengths.

TRPM2 is necessary for establishing a preference in the warm-temperature range

Previous studies assessing warmtemperature detection using the TPT with animals lacking TRPV1 or TRPM2 showed that Trpm2-/- animals failed to differentiate between 31 °C and 38 °C while Trpv1-/- animals, similar to wildtypes, preferred the 31 °C side (15, 27). Similarly, when using the newly developed CPT, Trpv1-/- animals showed a similar temperature preference to wildtypes while Trpm2-/- animals failed to develop a preference for the thermoneutral (31 °C) side (Figure 1E-F), without affecting their preference at 25 °C ( Figure S2A-B). In addition to the previously described phenotype at 38 °C, Trpm2-/- animals were also unable to discriminate 34 °C from 31 °C, emphasizing the relevance of TRPM2 at milder warm temperatures (Figure 1E-F, and Figure S1). Notably, the phenotype of Trpm2-/- animals was similar to that of animals lacking most, if not all, peripheral (heat and cold) thermosensors (Trpv1Abl, (28), Figure S1J-L). These results confirm previous data demonstrating the requirement for TRPM2 rather than TRPV1, in preference development in the warm-temperature range (8, 15).

TRPV1 and TRPM2 affect different aspects of warm-temperature detection

Traditionally, analyses of temperature preference are limited to reporting the proportion of time an animal spent at the test temperature, without assessing more finegrained thermal preference behaviour, such as the sequence of chamber crossings and intermittent pauses (visit lengths, (23– 25)). We observed that in the CPT, animals cross from one chamber to the other, probing the chamber, before crossing back (Figure 1G). We quantified the number of crossings and the lengths of these episodes throughout the experiments (Figure 1H). At the start of the experiment, mice of all genotypes crossed more often than at the end of the experiment while maintaining similar durations of their visits to the warmer chamber (Figure 1H, Figure S1C-D). Trpv1-/- animals showed a significantly higher crossing rate compared to wildtype animals at both 34 °C and 38 °C (Table S2). Trpm2-/- animals, on the other hand, had significantly longer visits to the warmer chamber compared to wildtype animals, while having either similar (at 38 °C) or a reduced crossing rate (at 34 °C) (Figure 1H, Table S2).

Notably, animals lacking TRPM8, a cold-sensitive TRP-channel that was shown to be critical for reporting warming in an operant behavioural assay (17), showed similar behaviour to wildtype animals across the warm-temperature range, but deficits at 25 °C (Figure S2F-G and Table S2).

Together, these observations suggest that, contrary to previous findings using the TPT, both TRPV1 and TRPM2 contribute to the animals’ ability to detect warm temperatures and to drive associated thermal preference behaviours, albeit through different mechanisms.

Trpv1 and Trpm2 knockouts have decreased proportions of WSNs

A small subpopulation of cultured primary sensory neurons responds to warm temperatures

Trpv1 and Trpm2 are highly expressed in peripheral sensory neurons that reside bilaterally in so-called dorsal root ganglia (DRG) along the spinal cord. To assess the individual contribution of both channels to ambient warm-temperature detection, and to account for the integration of temperature across the whole body of the animal, we cultured primary DRG neurons pooled from across the whole length of the spine.

Historically, experiments studying temperature responses in sensory neurons are performed with DRG neurons cultured for a few hours to overnight (29). However, these cultures did not reflect the distribution of WSNs described from in vivo studies, with 26 ± 9 % of all cells responding to warm temperatures, contrary to 3 % to 10 % of WSNs observed in vivo (Figure S3A-C, (7, 21)). We speculated that this expansion in the proportion of WSNs might reflect a post-injury state in which heat-sensitive neurons become sensitised to lower thermal stimuli (7, 30). Since sensory neuron dissociation resembles an axotomy which activates injury-related pathways (3136), we extended the commonly used DRG primary culture protocol to three days, to allow the cells to recover from the procedure. Three-day cultures harboured approximately 6 ± 3 % WSNs, compared to overnight culture’s 26 ± 9 % (Figure S3C). Furthermore, three-day cultures showed a reduced calcium inflow upon stimulation, and an improved capacity to return to baseline calcium levels upon termination of the stimulus, counteracting hallmarks of post-injury states of sensory neurons (Figure 2D and Figure S3D-E, (33, 34)). These observations are in line with data collected from in vivo calcium imaging preparations of both dorsal root and trigeminal ganglion cells in response to warm temperatures (7, 21) and suggest that three-day cultures – rather than acute/short-term preparations – more accurately reflect the functional properties and abundance of warm-responsive sensory neurons that are found in behaving animals.

Loss of TRPV1 or TRPM2 leads to a reduction in WSN abundance.

A Experimental paradigm of temperature stimulation. Three sequential and increasing temperature stimuli of 25 seconds, with 5 minute inter-stimulus intervals. Traces represent mean temperatures for wildtype, Trpv1-/-, and Trpm2-/- cultures. B Heat map showing representative normalized (ΔF/F0) calcium response of WSNs (60 randomly sampled cells per genotype). C Zoom-in of the mean and standard deviation of the three warm-temperature stimuli shown in A. D The proportions of responders to each stimulus in relation to all imaged neurons from wildtype (7 animals, 21 FOVs, 6928 cells), Trpv1-/- (5 animals, 17 FOVs, 5410 cells), and Trpm2-/- (6 animals, 18 FOVs, 6131 cells). Each dot represents a field of view (FOV). * (p <0.05), ** (p <0.01), *** (p <0.001). See Table S2 for statistical details.

Trpv1 and Trpm2 deletion reduces the proportion of warmth responders

To investigate the effects of TRPV1 and TRPM2 loss on the response of sensory neurons to warm-temperature stimulation, we applied the same stimulation protocol to cultures from Trpv1-/- and Trpm2-/- animals. Lack of TRPV1 or TRPM2 led to a significant reduction in the proportion of WSNs, compared to wildtype cultures (Figure 2D, Table S2). Cultures from Trpv1-/- animals had reduced proportions of responders across the whole range of warm-temperature stimuli (Figure 2B and D), but showed similar proportions of heat responders (neurons responding to T ≥43 °C) when compared to cultures obtained from wildtype animals (Figure S3J). In contrast to a previous study describing WSNs in vivo (7), our Trpv1-/- cultures did not show a complete absence of response to warm temperatures, with some cells in the Trpv1-/- cultures retaining their ability to respond to warm stimuli (Figure 2B and D). Lack of TRPM2, on the other hand, affected the proportions of responders across both the warm and the hot temperature range (Figure 2D and Figure S3J). This is the first cellular evidence for the involvement of TRPM2 on the response of DRG sensory neurons to warm-temperature stimuli, given that previous studies had only assessed noxious/painful heat responses (T ≥ 45 °C (8)).

WSNs vary in their response characteristics

Consistent with the behavioural data (Figure 1), the absence of TRPV1 or TRPM2 led to deficits in the response to warm temperatures in primary sensory neurons. However, how these cellular deficits contribute to the difference in behavioural phenotypes was still unclear. A closer look at the calcium response profiles showed that cells vary in when, and how, they respond to temperature stimuli (Figure 2B and Figure 3B). To capture this variability, we computed the point at which each cell started responding to the stimulus (Figure 3B).

Trpv1-/- diminishes the response to dynamic temperature changes.

A Temperature traces from three exemplary imaging sessions. B Individual calcium traces (ΔF/F0) of 10 representative thermosensitive neurons from each genotype in response to the applied stimuli. The position of the dashed line indicates the time when the cells exceeded 10 % of their maximum ΔF/F0 during the stimulus. C Mean and standard deviation of the three warm-temperature stimuli shown in A. The dotted line indicates the separation between the dynamic and static phases, defined by the end of the peak of the smoothed temperature change rate. D Response onset of all recorded WSNs. Each row represents a single FOV (see Figure 2D). Each triangle indicates the time point at which the individual cell responds to the stimulus as shown in B. Dotted line as in C. E Density plot of response time points for each genotype and stimulus. * (p <0.05), **** (p <0.0001). See Table S2 for statistical details.

TRPV1 drives the dynamic phase of a warm-temperature response

Each temperature stimulus has two distinct phases: an initial, dynamic phase, in which the temperature rises rapidly. And a second, static phase, in which the temperature stabilizes (Figure 3C). The majority of WSNs from wildtype animals respond during the rising, dynamic phase of the stimulus (Figure 3D and E). In comparison, WSNs from animals lacking TRPV1 predominantly responded during the static phase of the stimulus, while Trpm2-/- cells did not significantly differ in their response onset from wildtype cells (Figure 3D and E and Figure S4A-C). Additionally, TRPV1-positive cells in wildtype cultures – identified by their response to the TRPV1 activator capsaicin (3) – predominantly responded during the dynamic phase of the stimulus, compared to TRPV1-negative cells (Figure S4D-F). Collectively, these observations suggest that TRPV1, but not TRPM2, is involved in the response to dynamic, fast changes in temperature.

Given the strong modulation of the intracellular calcium dynamics observed in Trpv1-/- DRGs exposed to warm stimuli, we speculate that over-expression of Trpv1 would alter the response dynamics of WSNs, particularly during the rising phase of the stimulus. To test this hypothesis, we made use of a previously described animal model which over-expresses Trpv1 in TRPV1-positive cells (Trpv1OX, (37)). WSNs from Trpv1OX animals showed a significantly higher propensity to respond during the dynamic phase of the stimulus, when compared to wildtype cultures (Figure 4A-E, Table S2). These results align with our previous observations and further suggest that TRPV1 abundance directly regulates the onset and speed of a temperature response.

High TRPV1 expression levels promote dynamic warm-temperature detection and enhance temperature preference.

A Mean temperatures from all experiments and imaging sessions for wildtype (3 animals, 6 FOVs, 3133 cells) and Trpv1OX (2 animals, 5 FOVs, 3754 cells) cultures. B Examples of normalized (ΔF/F0) calcium responses of WSNs responding to any of the stimuli depicted in A. 42 randomly sampled cells from each genotype. C Mean and standard deviation of the three warm-temperature stimuli applied. The dotted line indicates the separation between the dynamic phase and the static phase (see Figure 3C). D Response initiation of all WSNs imaged from wildtype and Trpv1OX animals. Each row represents an individual imaging session. Each triangle denotes the time point at which the cell responds to the stimulus, as shown in Figure 3B. Dotted line as in C. E Density representation of response time points for each genotype and stimulus.F Density maps of all wildtype (n = 48) and Trpv1OX (n = 12) animals in the CPT over time. G Proportion of time spent in the test chamber for animals shown in F over time, binned in 3-minute intervals. H Overview of the frequency and length of the visits to the test chamber for all animals shown in F. Each visit is coloured by the log2 of its length to highlight varying visit lengths. * (p <0.05), ** (p <0.01), *** (p <0.001). See Table S2 for statistical details.

Does the enrichment of cells responding during the dynamic stimulus phase affect the behaviour of the animals in the CPT? Indeed, Trpv1 over-expression led to a significantly stronger avoidance of warm temperatures in the CPT (Figure 4F and G, Table S2). Interestingly, Trpv1OX animals crossed significantly less between chambers, compared to wildtype animals, while having similar duration of stays at the test chamber (Figure 4H, Table S2), suggesting that Trpv1OX animals discriminate temperatures more rapidly.

An evidence-accumulation model uncovers differences in evidence accumulation across genotypes

In the previous sections, we have detailed the distinct effects that TRPV1 and TRPM2 exert on the temperature responses of sensory neurons. While these cellular-level findings are illuminating, they present a challenge when it comes to directly relating them to the more complex, multifaceted behaviours observed in our temperature preference assay. To bridge this gap, we conceptualized the temperature preference assay as a continuous decision-making process (Figure 5A and Figure 5B), allowing the use of established evidence accumulation frameworks. These models have been shown to successfully recapitulate animal and human behaviour in sensory decision tasks involving different modalities (3840) and have even been directly linked to neural observations (41, 42).

Modelling the varying roles of TRPV1 and TRPM2 on warm-temperature detection.

A Two example episodes of an animal inside the CPT, crossing from one chamber to the other (see Figure 1G). Dashed line represents crossing time points between chambers. B Examples of possible evidence accumulation process for the two episodes in A using a Drift Diffusion Model (DDM). C and D Simulations of a drift diffusion process with fixed starting points (z = 0.5) and bound (a = 1) while varying drift rates (v in C) and noise (sv in D). E and F depict the resulting distributions of visit lengths when simulating 1000 trials with the parameters from C and D, respectively. G Distributions of visit lengths at 31 °C vs. 34 °C in wildtype animals. Insets show the estimated parameters for v and sv at each temperature and the Kullback-Leibler (KL) divergence between the model (continuous density line) and the empirical data (histogram). See Figure S5 for all model fits. H Drift v and noise sv estimates for both neutral (31 °C, solid line) and test (25 °C to 38 °C, dashed line) chambers for wildtype animals resulting from hierarchical Markov chain Monte Carlo (MCMC) sampling. I Neutral chamber (31 °C) corrected and wildtype-subtracted estimates of drift and noise for all genotypes. The dashed line represents the wildtype reference. Points indicate individual MCMC samples, and vertical lines the median of each distribution.

In our experimental setup, an animal enters a chamber and begins to accumulate evidence (i.e., it continuously collects and computes spatial temperature information) that drives its decision to stay or leave the chamber (Figure 5A). The resulting time spent in each chamber varies from visit to visit (Figure 1G and Figure 5A), highlighting the need to account for a dynamic decision-making process. Crucially, temperature perception is not static; this is particularly evident at the beginning of each visit, when the temperature difference is most pronounced, and changes over time until a threshold is reached that causes the animal to leave (Figure S1H). Traditional approaches to analysing these behaviours have largely overlooked these nuances, focusing instead on final outcomes or mean stay time (8, 15, 43), without considering the fluctuating nature of sensory perception and the variability of decision-making across visits and between individual animals.

A drift diffusion model recapitulates the animals’ behaviour in the CPT

To model this decision-making process, we opted for a drift diffusion model (DDM (44)). This model provides a quantitative framework to delve into how animals integrate sensory information over time, leading to their decision to stay or leave a chamber (Figure 5).

When an animal enters a chamber, it starts at a certain point (z) from which the evidence accumulation begins (Figure 5B). Over time, and while the temperature information is integrated, the evidence is accumulated at a certain rate (drift rate, v) and noise level (sv), which represents the variability in evidence accumulation. This process evolves until the decision bound (a) is reached, which prompts the animal to leave the chamber. Figures 5C and D show simulations of the DDM, which allow an intuition into how varying levels of drift and noise (while keeping the starting point and decision bound fixed) alters the distribution of visit lengths throughout an experiment (Figures 5E and F). Higher rates of drift (with fixed noise levels) led to overall shorter visit lengths (Figure 5E). High noise levels (with fixed drift rates) also led to shorter visit lengths, albeit with larger variability (Figure 5F).

We fit a model with varying drift rate and noise onto the visit length distributions of wildtype animals recorded for each temperature combination in the CPT (Figure 5G and Figure S5). The model suggests higher drift rates at temperatures below and above 31 °C in wildtype animals (Figure 5H). Notably, the drift rates in the corresponding neutral chambers (31 °C) are lower than in the test chambers. Both observations are in line with the development of preference for the 31 °C chamber in the varying temperature conditions. The model also suggests an increase in noise in the test temperatures, hinting that the evidence accumulation at 31 °C is particularly stable (Figure 5H).

Varying effects of TRPM2 and TRPV1 on evidence accumulation

We fit the model onto all behavioural data collected in this study (Figure 5I and Figure S5). For animals lacking TRPM2, the model yields a lower drift rate at 34 °C and 38 °C compared to wildtypes (Figure 5I). This suggests that loss of TRPM2 leads to a slower evidence accumulation at warm temperatures, reflecting an overall failure to develop a preference for 31 °C throughout the experiment (Figure 1). In Trpv1-/- animals, on the other hand, we observed higher drift rates as well as higher noise levels in the warmer (34 °C and 38 °C) chambers. These findings suggest that Trpv1-/- animals accumulate environmental temperature evidence faster than wildtype animals, but the fidelity of the thermal inputs is compromised. We speculate that the balance of these two variables might lead to a similar overall preference development compared to wildtype animals (Figure 1). Interestingly, the over-expression of TRPV1 also leads to an increased drift rate at warm temperatures, albeit with a similar noise level to wildtypes. This combination leads to greater avoidance of 34 °C and 38 °C (as observed in Figure 4).

Notably, all genotypes show similar drift and noise estimates at 25 °C, consistent with their behavioural preference (Figure S2, suggesting that TRPV1 and TRPM2 mainly control responses to warm temperatures (Figure 5I). In summary, we find that the DDM successfully parametrizes the behavioural data obtained from the CPT. Furthermore, the model allowed a more in-depth insight into how the loss of either TRPV1 or TRPM2 differentially alters the detection of warm temperatures, highlighting their importance in behavioural adaptation to innocuous temperatures.

Discussion

Environmental temperatures are detected by sensory nerve fibres innervating the skin. The mechanisms behind warmtemperature detection have recently gained increased attention, with two ion channels, TRPV1 and TRPM2, as the main candidates. In this study, we developed a novel temperature preference assay, integrating ambient and floor temperatures, to investigate the roles of TRPV1 and TRPM2 in temperature detection. Our results reveal distinct behavioural responses to warm temperatures mediated by these channels. Applying a modelling framework to the animal’s behaviour, we observed unique deficits in TRPV1 and TRPM2 knockout animals, compared to wildtype mice. On the cellular level, the loss of either TRPV1 or TRPM2 resulted in a decreased proportion of WSNs, with TRPV1 playing a pivotal role in detecting rapid, dynamic temperature changes.

Behavioural analysis in temperature preference assays

The introduced chamber preference assay, integrating both ambient and floor temperatures, improves on the conventional temperature preference assays. Notably, at 34 °C, a temperature that is close to the thermoneutral 31 °C, animals demonstrated a clear avoidance of the 34 °C in the CPT, but failed to do so in the conventional TPP assay (Figure S1). This preference underscores the importance of integrating multiple sensory inputs — ambient “air” and contact temperatures — in forming a coherent thermal perception, a complexity often overlooked in simpler thermal assays.

Consistent with previous findings, our results reveal that the absence of TRPM2 impedes the development of a preference for warmer temperatures (8, 15). In contrast, animals lacking TRPV1 exhibited behavioural patterns similar to their wildtype counterparts, spending comparable amounts of total time in the warm chamber (Figure 1E-F).

Intriguingly, a finer characterization of the dynamics of the animal behaviour in the assay revealed differences between Trpv1-/- and Trpm2-/- animals, particularly in the frequency of crossings between chambers and the time spent in each chamber (Figure 1G-H). These behavioural nuances were further elucidated by modelling the behaviour with a drift-diffusion model (Figure S5 and Figure 5). This model, a novel approach for such behavioural assays in general and for temperature as a sensory modality in particular, uncovered an impaired process of evidence accumulation within the warm chambers in Trpm2-/- animals. Moreover, we could explain the more frequent chamber crossings of Trpv1-/- animals by the fact that they accumulated evidence more erratically (Figure 5I).

Cellular insights into warm-temperature sensation

Cultures from Trpv1-/- animals exhibited a substantial decrease in the proportion of WSNs (Figure 2). This is similar to previous studies from trigeminal neurons, where the loss of TRPV1 led to a complete loss of warm-temperature responses (7). While the role of TRPV1 was more salient in the warm-temperature range, Trpm2 knockouts displayed a reduction in temperature responsiveness across a broader spectrum, extending into hotter temperatures (Figure 2, Figure S3). This is in line with previous studies highlighting a loss in warmand heat-responsive cells in Trpm2-/- cells (810).

Interestingly, in initial experiments using DRG neurons from Trpm2-/- and Trpv1-/- animals cultured overnight, we were only able to show the necessity of TRPM2 for heat responses but failed to reproduce the previously reported reduction in WSNs in Trpm2-/- and Trpv1-/- sensory neurons (Figure S3F, (7, 8)). The inability to reproduce the aforementioned cellular phenotypes in cultured sensory neurons might be due to two factors: the abundance of WSNs and the variability in their proportions between experiments and animals (Figure 2 and Figure S3). These require a larger sampling of sensory neurons from multiple animals for a reliable estimation of effects, something that is often lacking in previous studies of cellular warm-temperature-detection (8). Furthermore, overnight cultures, which are the de facto standard in the field, might be more akin to an injury model (Figure S3). The three-day cultures presented in this study allow the cells the time to partially regenerate from the harsh dissociation procedure (45), and pose an alternative that more closely resembles the physiological condition.

TRPV1: bridging cellular data with behavioural patterns

The cellular data predict that animals lacking TRPV1 would have large deficits in their ability to detect warm temperatures. Yet, overall, Trpv1-/- animals stay in the thermoneutral chamber for a similar proportion of time as wildtype controls. Analysis of the remaining WSNs in Trpv1-/- animals revealed a critical insight: these neurons predominantly respond during the static phase of the temperature stimuli.

In the CPT, animals frequently transition between chambers, experiencing rapid temperature changes upon crossing, but then spend most of their time in an isothermal environment (Figure S1H). This suggests that Trpv1-/- animals primarily rely on static temperature information for thermal detection, rather than rapidly fluctuating temperatures. This is reflected in the higher number of crossings between the different thermal chambers, coupled with shorter visits to the hotter chambers. This set of results led us to hypothesize that rapidly changing thermal information perceived during the transitions of the animals is not properly detected by Trpv1-/- animals. This hypothesis is further supported by the behavioural model (Figure 5). It indicates that, Trpv1-/- animals exhibit a higher drift rate in warmer test chambers, suggesting an avoidance of these temperatures. However, the increased noise in the driftdiffusion model points to a less reliable temperature detection mechanism. This implies that, despite the substantial loss of WSNs, the remaining neuronal population provides sufficient information for the detection of warmer temperatures, albeit with reduced precision.

The reduced precision might stem from the loss of dynamic temperature responders (Figure 3). These WSNs might be crucial in detecting a rapid change of temperature (e.g. when the animals move across different thermal environments). This is highlighted by findings from TRPV1-overexpressing animals. These animals, equipped with an enhanced ability to respond to dynamic temperature changes (Figure 4), have a higher drift rate and lower noise levels in warmer chambers in the model (Figure 5). These characteristics lead to a faster and more precise choice in the CPT. Combined, these results highlight the direct role of TRPV1, and its expression levels, in the precise temporal detection of warm temperatures.

TRPM2: cellular mechanisms and behavioural implications

A reversed scenario unfolds for TRPM2. The behavioural data suggests a strong deficit of sensory neurons to report warm temperatures. Trpm2-/- WSNs, while less abundant compared to WSNs from wildtype DRG cultures, do not exhibit marked differences in response dynamics. It is tempting to hypothesize, given the results from Trpv1-/--cultures, that TRPM2 affects the static phase of temperature detection. We conducted various analyses on the static responses of Trpm2-/- WSNs (data not shown), but failed to uncover significant differences to wildtype WSNs. This persistent discrepancy raises several hypotheses:

One explanation involves the specific population of WSNs reliant on TRPM2. Single-cell sequencing and functional analyses of dorsal root ganglia suggest that WSNs form two, genetically distinct populations, one of which prominently expresses Trpm2 (46, 47). Different genetic/functional populations of sensory neurons often show diverging spinal innervation, with different upstream processing pathways (4750). The genetic separation could hint at multiple neural innervation routes for innocuous temperature information. In this context, the loss of TRPM2 might specifically impair warm-temperature perception in thermoregulation-specific innervation pathways, without significantly affecting perceptual temperature discrimination performance (17).

The second explanation implies that the role of TRPM2 in temperature detection might extend beyond its expression in sensory neurons. Particularly, it is possible that TRPM2 mediates part of its effect via the hypothalamic preoptic area (POA), a temperature sensitive brain region involved in body temperature regulation (51). Preoptic TRPM2 has been shown to mediate autonomic thermoregulatory responses upon warmtemperature stimulation (5254). Preoptic temperature pathways may not only drive autonomic thermoregulatory responses, but can also influence temperature preference behaviour (27, 51). Considering that, within the time frame of the chamber preference test, ambient temperature changes are directly transferred to the POA, it is possible – but not yet tested – that preoptic TRPM2 is involved in the choice of comfort-temperature.

Implications of findings

This study introduces an innovative behavioural assay, an improved protocol to culture DRG neurons, and methodologies for analysing animal behaviour in temperature preference assays. We emphasize the importance of examining the dynamics of perceptual decision-making and incorporating behavioural modelling. Significantly, we demonstrate that TRPV1 and TRPM2 channels contribute differently to temperature detection, supported by behavioural and cellular data. This research not only advances our understanding of thermal perception mechanisms but also adds new dimensions for integrating cellular and behavioural data to study the neural foundations of temperature sensation.

Acknowledgements

We thank Christina Steinmeier-Stannek, Annika von Seggern, Daniela Pimonov, Lisa Vierbaum, Amandine Cavaroc, and Lisa Weiler for technical support; members of the Siemens lab, particularly Hagen Wende, Katrin Schrenk-Siemens, and Jörg Pohle, for inspiring discussions and critical input. Additionally, the authors thank Juan Boffi, Katharine Shapcott, Natalie Schaworonkow, Marieke Schölvinck, and Martha Nari-Havenith for their support, discussions, scientific input and valuable criticism of the work. Funding: The authors gratefully acknowledge the data storage service SDS@hd supported by the Ministry of Science, Research and the Arts Baden-Württemberg (MWK) and the German Research Foundation (DFG) through grant INST 35/1314-1 FUGG. A.T. acknowledges support from the Margarita Salas Fellowship and the Joachim Herz Stiftung. This work was supported by the European Research Council ERC-CoG-772395 and the German research Foundation SFB/TRR 152 and SFB1158 (to J.S.).

Author contributions

M.A. and J.S. conceptualized the study. M.A. and G.K. designed, tested, and collected data with the CPT. M.A. analysed all the data from the CPT and modelling for the DDM. M.A. performed calcium imaging experiments, processed, and performed analysis for all cellular data. A.T. was involved in the analysis of the response characteristics of WSNs, as well as with model choices of the DDM. M.A. prepared the figures, with input from A.T. and J.S.. J.S. and G.K. acquired funding for the project. M.A. and J.S. wrote and edited the manuscript with input from G.K. and A.T..

Supplementary Information

Key resource table

List of organisms, reagents, software, and algorithms used in the study.

Resource Availability

Lead contact

Requests for resources and reagents should be directed to and will be fulfilled by the lead contact Jan Siemens (jan.siemens@pharma.uni-heidelberg.de).

Materials availability

This study did not generate any unique reagents.

Data and code availability

Data

The datasets supporting the current study have not been deposited in a public repository, but are available from the corresponding author, Muad Abd El Hay, upon request.

Code

Analysis code to reproduce the finding and any additional information required to reanalyse the data reported in this paper is available from the corresponding author, Muad Abd El Hay, upon request.

Methods

Animals and housing

All animal care and experimental procedures were approved by the local council (Regierungspräsidium Karlsruhe, Germany) under protocol numbers G-201/16 and T05-19. Animals were kept under specific-pathogen-free (SPF) conditions and a 12-hour day-night cycle. Housing temperature and humidity were maintained at 22 ± 2 °C and 50 % to 60 %, respectively. Animals were fed ad-libitum with Altromin Rod 16 or Rod 18 animal food. The housing environment was enriched using Crincklets Nest-Pads and ABBEDD LT-E-001 bedding. For this study, only male animals were used, as we aimed to compare our results with previous studies which exclusively used male animals (7, 8, 17, 43). Mice between 6 and 25 weeks of age were used for the experiments.

Thermal preference chamber design, operation, and video capture

The thermal preference chamber consisted of two expanded polystyrene boxes connected using plastic glue and sealed with silicone (Figure S1A) with dimensions of 26.1 cm x 60.3 cm x 19.8 cm (w x l x h). The 4.3 cm-thick Styrofoam walls provided the necessary thermal insulation for the experiments. Inside the enclosure, the animals’ movement was limited by a 13 cm x 31.4 cm x 15.5 cm steel cage placed on top of a stainlesssteel baseplate. To create two thermally isolated chambers, the enclosure, cage, and baseplate were adjusted to form a 4.3 cm x 6.3 cm x 6.3 cm tunnel. The baseplate and cage were custom-built by our institute’s mechanical workshop. The cover combined foam and wood as insulators, with an acrylic glass inset for observation purposes.

Temperature within the chamber was regulated by two Peltier elements attached to heat sinks, each connected to a generic computer fan for efficient temperature distribution. To avoid overheating, the Peltier elements were connected to a Multitemp III circulating water pump (Amersham Biosciences) set to 28 °C. These elements were managed by a modified Siemens LOGO TD! controller, programmed for precise temperature adjustments, and accessed using the LOGO! Soft Comfort (Siemens) software. For monitoring, two Physitemp IT-18 flexible thermocouples were attached to the chamber walls, serving as reference thermometers. Data capture was conducted using a customer-grade webcam (Spedal), linked to the UCLA miniscope project’s capture software, operating at 20 Hz to 30 Hz. The output files from each recording session were concatenated using ffmpeg software for subsequent processing. For control experiments using the two-plate temperature preference test (Figure S1, we used the BIO-T2CT system by BioSeb with the same camera setup as described above.

Thermal preference tests, processing, and analysis

Animals were transported to and acclimatized in the experimental room for at least 24 h before the experiments. The room maintained a dim light setting and a 12-hour day-night cycle. To ensure temperature stability, the setup was allowed to stabilize for 90 min before starting an experiment (Figure S1B-D). Once the setup reached a stable temperature, the lid was briefly opened (Figure S1), and an animal was placed into the enclosure, the lid closed again, and allowed to roam freely for at least 30 min, before replacing it with the next animal.

Due to the dim light conditions and the reflections on the cover of the enclosure (see Figure 1 for an example), conventional animal tracking approaches that rely on image contrast failed to provide robust outputs (data not shown). Therefore, we employed a neural-network based approach, namely DeepLabCut, for tracking the animals in the setup (55). For this purpose, we trained a ResNet50 network to track specific points on the animal: the snout, right ear, left ear, body centre, tail base, and tail tip (Figure 1). Additionally, we tracked eight reference points (four cage corners and four cage tops) in the cage for normalization purposes. The same model was also trained on reference frames acquired using the BIO-T2CT system. The resulting model generalized well to both setups, ensuring comparability of the outputs.

The DeepLabCut predictions were then further curated by replacing bad predictions (< 95% likelihood) with missing values, and removing recording sessions where > 25% were missing (usually due to the animal escaping the inner cage). Furthermore, we removed sessions in which the animals showed excessive climbing behaviour (> 95% of time between upper and lower cage corners). For the remaining sessions, the missing values were linearly interpolated and the centroid of the ears, body centre, and tail-base was used as the position of the animals. The X- and Y-positions of the centroid were then scaled to the tracked cage corner points to correct for minor movements of the camera or the setup. The resulting X- and Y-position time courses were then downsampled to 1 Hz. Only the first 30 min of the recording were kept. Shorter sessions were removed.

Primary sensory neuron culture

Adult primary DRG cultures were prepared from 6-15 week old animals as described previously (37). Briefly, the animals were culled via isoflurane overdose, and their spinal columns excised and separated from muscle tissue. The spinal column was then cut lengthwise and the DRGs collected, freed from nerve branches, halved, and treated with a collagenase solution (1.25 mg/mL in Ringer’s solution) for 1 h at 37 °C with gentle inversion every 15 min. This was followed by a 15 min trypsin digestion (2.5 mg/mL) at 37 °C, repeated trituration and suspension in complete culturing medium (DMEM/F12 w/o Glutamin,10% heat-inactivated FCS, 2 mM L-glutamine (Glutamax), 1x Anti-biotic/mitotic), and centrifugation at 900 rpm for 10 min over a BSA solution (150 mg/mL) to pellet the cells. The supernatant was discarded, the pellet was resuspended in culturing media, and spotted onto PDL- and Laminin-coated glass coverslips (5 mm). The cells were then left to settle onto the coverslip in the incubator for 1 h at 37 °C, and then covered with culturing media. Cultures were either used the following day (overnight) or kept for three days, with a medium change after the first day.

Calcium imaging recordings

For calcium imaging, cells cultured on coverslips were incubated for either one or three days. Before imaging, cells underwent a washing process with Ringer’s solution (140 mM NaCl, 5 mM KCl, 2 mM MgCl2, 2 mM CaCl2, 10 mM glucose, and 10 mM HEPES, adjusted to pH 7.4.), followed by loading with the calcium-sensitive dye Cal520-AM (10 µM) and Pluronic acid F-127 (0.05 %) in Ringer’s solution. The cells were incubated for 1 h at 37 °C, then the dye solution was replaced with Ringer’s solution for a further 30 min at room temperature, minimizing light exposure.

The perfusion system, a ValveBank II (Automate) to control multiple inflows, and an air200 aquarium pump (Eheim) for outflow, was set to a maximum flow rate of 3 mL/min, facilitating laminar flow in the imaging chamber (RC-22, Warner Instruments). The coverslip was placed near the outlet to minimize movement artefacts. An IT-18 thermocouple (physitemp) was placed close to the coverslip to record the chamber temperature. Imaging settings varied based on the camera used: for CoolSnapHQ2 (Photometrics), exposure was set at 5 ms with 3x gain and 3×3 binning, whereas for Zyla 4.2 (Andor Technology), it was 80 ms with 2×2 binning. We used a Lambda DG-4 as a light source, maintained at 30 % intensity to reduce bleaching.

Images were captured using MetaFluor software at 4 Hz or 10 Hz frequencies. Standard experiments involved a 1 min baseline, 25 s stimuli, followed by a 3 min to 5 min recovery period with room-temperature Ringer’s solution (Figures Figure 2 and Figure S3). To identify TRPV1-positive neurons, we used the agonist Capsaicin (1 µM, (3)). A Ringer’s solution with a high potassium concentration (100 mM KCl) was used as a final stimulus to identify neurons. Solutions were heated via glass coils connected to a heated water bath. Each FOV was imaged for a maximum of 60 min, and the usage of coverslips was limited to 2 h post-loading with the dye.

Calcium imaging preprocessing and analysis

Calcium imaging data were motion-corrected and pre-processed using Suite2p (56). Cell regions of interest (ROIs) were identified using the Cellpose package integrated into Suite2p (57). The mean fluorescence of cells and surrounding neuropil was calculated by Suite2p, and neuropil contamination was corrected by subtracting 70 % of the background neuropil traces from each cell’s fluorescence trace. The corrected data was then imported into a custom R-package, neuroimgr, for further analysis in R (https://github.com/hummuscience/neuroimgr).

Normalization was performed using the ΔF/F0 method, where baseline fluorescence (F0) is calculated as the mean fluorescence of the baseline, and ΔF is the change in fluorescence over time. For heatmaps, F0 was estimated using the first 10 s of the experiments. For individual stimuli, the mean of the first 10 frames was used as F0. Heatmaps were generated using the ComplexHeatmap R package. Cells were sorted by the earliest time point where they cross 10 % of their cumulative ΔF/F0 in a given FOV and clustered using the Ward D2 algorithm. ΔF/F0 values smaller than the 0.1 and larger than the 99.9 percentile were clipped.

Due to the temperature-sensitivity and loading variability of the calcium dye, a threshold-based approach failed to reliably identify responding cells across experimental days and FOVs (58). Therefore, we used time series classification to identify temperature-responsive cells. For this, calcium traces for each cell and stimulus were normalized, downsampled to 4 Hz, and a sample of 1000 traces across stimuli was manually labelled to create a training dataset. This ground-truth dataset was used to evaluate multiple time series classification algorithms, with MINIROCKET (as implemented in the sktime Python package, (59)) yielding the best results (data not shown). The trained classifier was then applied to the remaining cells to identify temperature-responsive cells. A similar approach was used to identify capsaicin-responsive cells. Cells that did not respond to any of the applied stimuli were excluded from the analysis.

Drift-diffusion model

We employed a Drift-Diffusion Model (DDM) to analyse the behaviour of mice in thermal chamber experiments. The DDM was preferred over simpler models like the Markov switching model, as the latter did not provide satisfactory fits to our data (data not shown). Each parameter in the model can either be fit as a predictor (dependent on genotype, temperature combination, and temperature), fit to the entire data (floating), or fixed to a certain value. A typical drift diffusion model as described in (44) can drift to the upper or lower bound (representing two choices), but our experimental design only offers one choice (to leave the chamber). To reduce the probability of reaching the lower bound, and thereby improve the fit, we fixed the starting point/bias (z) to 0.9. This ensures that the evidence accumulation starts at a point that is much closer to the upper bound (a) than to the lower bound (−a). To choose the best combination of parameters that fits the data, we fit all the data to all remaining combinations of v, sv, and a (Figure S5A and B) and compared them via the expected log pointwise predictive density (ELPD) by Pareto smoothed importance sampling leave-one-out cross-validation (LOO) (60). Unreliable models as per (60) were discarded. The chosen model was constructed to account for variations in both noise (sv) and drift rate (v) for each genotype, temperature comparison, and chamber/temperature (Figure S5A and B, and Equation 1). To accommodate individual differences among animals, we introduced a random effect for each animal in the model. This approach enabled us to capture the unique behavioural patterns of each subject while assessing the general trends across the population.

To fit the model, we applied a hierarchical Markov Chain Monte Carlo (MCMC) sampling approach as implemented in the HSSM python package. For the implementation of the hierarchical MCMC, we utilized the No-U-Turn Sampler (NUTS) as implemented in NumPyro, a robust algorithm for efficiently sampling from high-dimensional probability distributions. The tuning phase for all fit models involved 2000 samples, ensuring adequate exploration of the parameter space and helping to achieve convergence. The final model was run with four chains, each drawing 2000 samples.

Statistical methods

Statistical analyses were conducted using R software. Two-sample T-tests with False-discovery rate correction (FDR) were utilized for hypothesis testing involving two groups, and Wilcoxon tests with FDR correction were applied for non-parametric data, facilitated by the rstatix package. To assess differences in crossing behaviour, a Cox proportional hazard model was used, as implemented in the survival package. For visit length comparisons, a mixed-effects model was fit using the lme4 package, allowing random effects for animal subjects where appropriate. Multiple comparisons for the mixed-effects and Cox models were accounted for using the FDR approach within the emmeans and multcomp packages. All statistical tests are summarized in S2. Only statistically significant results (p <0.05) are shown, except in cases where none of the tested contrasts were significantly different.

Supplementary tables and figures

Samples sizes and summary statistics. Only significant results (p < 0.05) shown. The exceptions are cases in which no statistically significant result was obtained in all comparisons of a test.

Establishing a novel ambient temperature preference test. Related to Figure 1.

A Schematic of the chamber preference test (CPT) from the top (upper panel) and side (lower panel). A styrofoam enclosure ensures adequate thermal isolation (grey shading). Peltier elements (dark grey ovals) equipped with fans allow the rapid circulation of heat throughout the chamber. Two wall thermometers allow monitoring and regulation of the chamber temperature in a closed-loop fashion. A steel cage (dashed pink line) marks the area where the animals move around freely. A stainless-steel floor (pink) allows easy clean-up and adaptation of the ambient temperature. A transparent top (blue) allows video recording and tracking of the animal position throughout the experiment. Two ambient and floor thermometers were used to calibrate the corresponding wall thermometer to achieve the desired ambient temperature in each chamber. B and D Exemplary temperature development at the beginning of an experimental day for each chamber and thermometer indicated in A. Neutral chamber set to 31 °C shown in D. Test chamber set to 38 °C shown in B. Insets C and E zoom-in onto the temperature recordings once the chambers stabilized (around 90 minutes of pre-warming). F Stability of ambient and wall temperature in chamber 1 (Ch1) and 2 (Ch2) when opening the enclosure to replace animals. The dashed line shows the time point of opening the enclosure. Floor temperature remained unaffected (data not shown). G Shown are wall, ambient, and floor temperatures at 31 °C neutral temperature and 34 °C or 38 °C test temperatures in chamber 1 (Ch1) and chamber 2 (Ch2). H Calculated ambient temperature gradient in the CPT at 31 °C neutral and 38 °C test temperatures. The dashed line shows the tunnel connecting both chambers. I Comparison of CPT and conventional TPT temperature preference assays in the same cohort of wildtype (n = 12) and Trpm2-/- (n = 17) animals, shown in CPT (Figure 1). J Density maps of the x-position of wildtype (n = 41) and thermally ablated animals (Trpv1Abl, n = 13) at 31 °C vs 34 °C. Binned in 1-minute bins, concatenated, and interpolated. Dashed lines represent the tunnel connecting both chambers. K Proportion of time spent on the test side of animals shown in J. L Overview of the frequency and length of the visits to the test chamber 7 randomly sampled animals from J and K. Each visit is coloured by the log2 of its length to highlight varying visit lengths. * (p <0.05), ** (p <0.01), *** (p <0.001). See Table S2 for statistical details.

Temperature preference behaviour of all genotypes to 25 °C including Trpm8-/- animals.

Related to Figure 1. A Density maps of the x-position of the animals shown in CPT (Figure 1) when given the choice of 25 °C and 31 °C (reference temperature), over time. B Proportion of time spent at 25 °C for animals from A. C Visit lengths to the 25 °C chamber over time for 11 randomly sampled animals per genotype from A. D Crossing behaviour of animals from CPT (Figure 1) at different testing temperatures, over time. Each row represents one of 11 randomly sampled animals from each genotype at the indicated temperatures. Each dot is a crossing event from one chamber to the other. The colour denotes the variability in crossing rate (crosses per minute) for each animal. E Density occupation map of the Trpm8-/- animals at different test temperatures, over time. F Proportion of time spent at test side in 3-minute bins of animals from E. Visit lengths to the 25 °C chamber over time for animals in E. G Overview of the frequency and length of the visits to the test chamber for 8 randomly sampled animals per genotype and temperatures from E. Each visit is coloured by the log2 of its length to highlight varying visit lengths. * (p <0.05), *** (p <0.001). See Table S2 for statistical details.

Comparison of culturing conditions for primary sensory neurons and their response to warm and hot temperatures.

Related to Figure 2. A and B Heat map showing normalized calcium responses (ΔF/F0) of individual cells (each row represents 1 cell) of a single FOV of 300 randomly sampled primary DRG neurons cultured overnight (A) or for three days (B) in response to 5 consecutive and increasing temperature stimuli. C Fraction of responding cells in relation to all imaged cells for overnight and three-day cultures in response to the temperature stimuli. Means and SEMs of overnight (4 animals, 8 FOVs, 2028 cells) and three-day (15 animals, 43 FOVs, 21149 cells) cultures. D Split violin plots showing the distributions of the maximum ΔF/F0 for all responding cells during each stimulus. E The post- and pre-stimulus difference for each cell in each stimulus for both conditions. A window of 25 seconds before and after each stimulus was used to calculate the mean ΔF/F0 for each window. A difference of 0 indicates that a cell was able to completely return to its baseline after responding to the stimulus. F The proportions of responders to each temperature stimulus in relation to all imaged neurons in cells cultured overnight from wildtype (4 animals, 8 FOVs, 2028 cells), Trpv1-/- (2 animals, 6 FOVs, 1714 cells), and Trpm2-/- (3 animals, 5 FOVs, 1816 cells). G and H Experimental paradigm of temperature stimulation. Five sequential and increasing temperature stimuli of 25 seconds with 5 minutes inter-stimulus intervals followed by capsaicin (1µM) and high potassium stimulation. Capsaicin was used to identify TRPV1-positive cells and high potassium to identify neuronal cells. The traces represent mean temperatures of the FOV shown in H. H Examples of normalized (ΔF/F0) calcium responses of temperature-sensitive cells sampled from all FOVs and experiments (n = 250 cells per genotype). I Mean and standard deviation of the five temperature stimuli applied. J The proportions of responders to each temperature stimulus in relation to all imaged neurons from wildtype (7 animals, 21 FOVs, 6928 cells), Trpv1-/- (5 animals, 17 FOVs, 5410 cells), and Trpm2-/- (6 animals, 18 FOVs, 6131 cells). Each dot represents an individual FOV. Note that the fraction of WSNs is small (6 ± 3 %) and therefore necessitates large sample sizes for robust estimations of effects caused by gain- and loss-of-function models. * (p <0.05), ** (p <0.01), *** (p <0.001). See Table S2 for statistical details.

Responses to dynamic and static segments of warm and hot temperature stimuli.

Related to Figures 3 and 4. A Mean and standard deviation of the five warm-temperature stimuli applied. The dotted line indicates the transition between the dynamic and the static phases of the temperature stimuli. B Response initiation of all temperature-responsive cells imaged. Each row represents a FOV. Each triangle denotes the time point at which the cell begins to respond to the stimulus. Dotted line as in A. C Density representations of response time points for each genotype and stimulus. D and E same as A and B, except that only wildtype DRG cultures are included; cells are separated into two subgroups based on their responsiveness to capsaicin (orange: responsive, grey: non-responsive). F Density estimates of the response time points shown in E. * (p <0.05), *** (p <0.001), **** (p <0.0001). See Table S2 for statistical details.

Model fits and DDM simulations for all genotypes and test temperatures.

A and B Comparison of different model parameter combinations. To ensure that the DDM only reaches the upper bound, the bias z was kept fixed to 0.9, while all other parameters were allowed to either be predictors or fit to the entire data (floating) (A). Model performance was compared and ranked by calculating the expected log pointwise predictive density (ELPD) by Pareto smoothed importance sampling leave-one-out cross-validation (LOO) (B). Horizontal error bars depict the standard error of the ELPD-LOO. The chosen model is indicated in red. C Density estimates and histograms for collected empirical data (histogram) and 1000 simulated trials (density – solid line) using the medians for drift and noise estimated for each genotype and chamber via Markov chain Monte Carlo (MCMC). Insets detail the temperature of the chamber, the used values for drift (v) and noise (sv), and the Kullback-Leibler divergence (KL) between the simulated distribution and the empirical data. D Simulated evidence accumulation processes for each genotype and test temperature for a 30-minute experiment. Parameters for drift, noise, and bound (starting point fixed to 0.88) were sampled randomly from the MCMC chains. Each line represents a trial. The plots are overlaid with a two-dimensional density of the resulting points, to highlight the general trajectory and the spread of the process.