Abstract
Temperature responses of many biological traits—including population growth, survival, and development—are described by thermal performance curves (TPCs) with phenomenological models like the Briere function or mechanistic models related to chemical kinetics. Existing TPC models are either simple but inflexible in shape, or flexible yet difficult to interpret in biological terms. Here we present flexTPC: a model that is parameterized exclusively in terms of biologically interpretable quantities, including the thermal minimum, optimum, and maximum, and the maximum trait value. FlexTPC can describe unimodal temperature responses of any skewness and thermal breadth, enabling direct comparisons across populations, traits, or taxa with a single model. We apply flexTPC to various microbial and entomological datasets, compare results with the Briere model, and find that flexTPC often has better predictive performance. The interpretability of flexTPC makes it ideal for modeling how thermal responses change with ecological stressors or evolve over time.
Introduction
A fundamental problem in ecology is to understand how the growth, physiology, and behavior of organisms depend on their environment. Temperature variation is an important environmental characteristic due to its multiple effects on the physiology (Knapp & Huang 2022) and behavior (Ito & Awasaki 2022) of organisms. Through these effects, changes in temperature impact the fitness of organisms (Amarasekare & Savage 2012) and ultimately the distribution of species across geographic space (Jeffree & Jeffree 1994). Understanding the effects of temperature in organisms is thus crucial to predict how climate change will modify the geographic distribution of species and their interactions, as well as its potential impacts on biodiversity (Nunez et al. 2019; Waldock et al. 2018), agriculture (Jägermeyr et al. 2021), the transmission of infectious disease (Rocklöv & Dubrow 2020), and other important ecosystem processes.
Many traits, including rates of metabolism (Schulte 2015), population growth (Savage et al. 2004), and development (Briere et al. 1999) vary continuously and nonlinearly with temperature. This dependence can be represented by a thermal performance curve (TPC) that describes the value or performance of the trait at different temperatures (Huey & Kingsolver 1989). Empirically, TPCs are often unimodal, reaching maximum performance at a single optimum temperature and decreasing to a thermal maximum and minimum where performance goes to zero (Angilletta Jr. 2009; Dell et al. 2011; Huey & Berrigan 2001).
Various mathematical models have been developed to describe TPCs quantitatively (Arroyo et al. 2022; Briere et al. 1999; Hultin et al. 1955; Johnson & Lewin 1946; Ratkowsky et al. 1983, 2005; Ritchie 2018; Schoolfield et al. 1981; Sharpe & DeMichele 1977; Shi & Ge 2010; Yin et al. 1995). These models make it possible to infer useful summaries of the temperature dependence of a trait (such as the optimum, maximum, and minimum temperatures) from experimental data. These summaries can then be compared between different populations of the same species, across species, or across traits (Barton & Yvon-Durocher 2019; Bennett 1980; Buckley & Huey 2016; Couper et al. 2024; Gounot 1976; Knies et al. 2009; Shocket et al. 2020). Models of TPCs are also used as building blocks in more complex mathematical models that describe population dynamics and interactions between species. For instance, due to the sensitivity of ectotherm physiology to environmental temperature, transmission dynamics of vector-borne diseases are often highly sensitive to temperature. Mathematical models for the temperature-dependent transmission of these diseases can be constructed using TPC models for traits of the vector, host, and pathogen that affect disease transmission (Mordecai et al. 2013, 2017; Shocket et al. 2020). Models of predator-prey dynamics that incorporate the effects of temperature are also based on TPC models for traits of the prey and predator (Dell et al. 2014; Gilbert et al. 2014; Pepi et al. 2023).
Thermal performance models can broadly be classified into mechanistic models that derive from an underlying theory (Arroyo et al. 2022; Hultin et al. 1955; Johnson & Lewin 1946; Ratkowsky et al. 2005; Ritchie 2018; Schoolfield et al. 1981; Sharpe & DeMichele 1977) and phenomenological models that fit empirical data without attempting to explain the underlying mechanism that gives rise to the TPC (Briere et al. 1999; Logan et al. 1976; Ratkowsky et al. 1983; Yin et al. 1995). Mechanistic models have some advantages, as they can be used to link TPCs to other biological traits, such as body size or metabolic rate through theoretical frameworks like the metabolic theory of ecology (Kirk et al. 2018; Molnár et al. 2013, 2017; Savage et al. 2004). However, mechanistic TPC models are often parametrized in terms of quantities that can be difficult to interpret in ecological terms (e.g., the activation energy for a potentially rate-limiting chemical reaction for the trait being measured). Because of this, many ecological and epidemiological applications use phenomenological models that are parametrized in terms of more interpretable quantities (such as maximum and minimum temperatures) while still providing a good fit to experimental data, often with fewer parameters than mechanistic models. Moreover, many phenomenological models have explicit thermal limits for trait performance rather than an asymptotic decrease, which is desirable for modeling some traits (e.g., probability of survival to adulthood).
One popular set of phenomenological models—the Briere models—are commonly used to describe the temperature dependence of insect developmental rates (Briere et al. 1999) and have been widely adopted in the ectotherm thermal biology literature (Haye et al. 2014; Lachenicht et al. 2010; Lemoine 2017; Mordecai et al. 2013, 2017; Paaijmans et al. 2009; Sentis et al. 2012; Tochen et al. 2014). These models are based on the same mathematical equation (Equation 1), differing only in the number of free parameters. The sparser three-parameter model—commonly referred to as the Briere1 model (or just the Briere model)—is popular in applications due to its parsimony, the biological interpretability of two of its parameters (the minimum and maximum temperatures), and its ability to describe many left-skewed TPCs for biological rates (Briere et al. 1999; Mordecai et al. 2013, 2017).
However, both Briere models have shortcomings that should be carefully considered before their use. First, the Briere1 model makes a very strong implicit assumption about the relationship between the minimum, maximum, and optimum temperatures that does not have a biological justification and that can potentially bias optimum temperature estimates. Second, due to their mathematical structure, the Briere1 and Briere2 models cannot describe thermal performance curves from psychrophilic organisms that can function below freezing temperatures. Lastly, the Briere models can only describe thermal performance curves that are left-skewed but are unable to describe TPCs with different shapes. This limitation is important when the goal is to compare traits that differ in TPC shape, such as symmetric and asymmetric responses.
As an alternative to the Briere models we present a flexible model for thermal performance curves that addresses these limitations, and can describe left-skewed, symmetric, and right-skewed unimodal TPCs of varying thermal breadth. This model, which we call flexTPC, is mathematically equivalent to the Beta model for crop development as originally presented by (Yin et al. 1995), which has not been widely adopted ectotherm animal physiology and ecology literature, but is reparametrized in terms of biologically interpretable quantities to make it more suitable for applications in ecology and infectious disease modeling. A previous version of this model was derived in (Cruz-Loya et al. 2021) by modifying the Briere2 model (Equation 1) with the goal of describing TPCs of bacterial growth under antibiotics. However, this previous work focused primarily on how antibiotics modify TPCs rather than on the much broader potential applications of the mathematical model, and the model as presented previously had a remaining parameter without a direct biological interpretation.
In this work, we provide a novel, fully biologically interpretable parametrization of the flexTPC model and compare its predictive performance with that of the Briere1 and Briere2 models in real-world datasets. We find that flexTPC has similar or better performance than the Briere models when describing insect development data, while performing much better when describing thermal performance curves of psychrophilic organisms and TPCs that are symmetric or right-skewed. Finally, we show that flexTPC can accurately describe many different mosquito life history traits for which different functional forms (linear, quadratic, and Briere1) were used in the past. Our results show that flexTPC is a flexible and interpretable descriptive model for unimodal TPCs that has some important advantages compared to the Briere models, and that is especially well-suited for applications where TPCs of different shapes need to be compared. Its interpretability is well-suited for Bayesian approaches for parameter inference, enabling the use of informative prior distributions based on biological knowledge such as the thermal range of the species habitat and typical maximum trait values for the same trait in related species.
Methods
The Briere models
Thermal performance curve models describe trait performance as a function of temperature . The Briere2 model is defined as follows:
(1) |
where and are the minimum and maximum temperatures for the trait, respectively, and are arbitrary constants. The Briere1 model is the special case of equation (1) where . In general, has three roots (values of where ), with one at . This makes the Briere models unsuitable to describe TPCs of organisms that have nonzero performance below freezing temperatures. Because of this, the Briere models are restricted to so that there are only two roots and .
The optimum temperature of the Briere models is given by the following expression (Briere et al. 1999):
(2) |
For the Briere1 model (where is fixed), is a deterministic function of and . In other words, it is impossible to vary when and are fixed: the Briere1 model implicitly assumes a strong relationship between these parameters. To our knowledge, this assumption has no biological basis, and as a result, enforcing it will lead to biased inference of these parameters.
The flexTPC model
The flexTPC model is defined as:
(3) |
where is the maximum performance/value of the trait, and and are the minimum and maximum temperatures, respectively. These three parameters determine the scaling of the TPC in the temperature and performance axes (Figure 1, right panel). Two additional parameters determine the shape of the curve. Parameter determines the location of the temperature optimum relative to the maximum and minimum through the relationship
(4) |
This makes it possible for flexTPC to describe unimodal curves of any skewness by varying , where e.g. corresponds to a symmetric curve, and and correspond to and , respectively.
The parameter determines the upper thermal breadth (UTB) of the TPC, with larger values corresponding to broader curves and smaller values to narrower curves. UTB, defined here as the temperature range for which (see Supplemental Information), is approximately
(5) |
As corresponds to the thermal breadth of nonzero performance (defined here as the lower thermal breadth), is the (approximate) ratio of the upper and lower thermal breadths. This approximation has less than 10% relative error for TPCs that are not extremely skewed and not too broad , which encompass the majority of TPC shapes that are likely to be encountered in practice (Figure S4). For large , the interpretation of as the upper thermal breadth at 88% of the peak height, as approximated in Equation 5, will no longer be accurate, but larger always corresponds to broader TPCs, with the limit corresponding to a constant model where in the temperature range. Varying and makes it possible for flexTPC to describe unimodal curves with many different shapes (Figure 1, left panel).
An alternate parametrization of the flexTPC model that replaces (the relative position of the thermal optimum) with the absolute optimum temperature and (the relative approximate upper thermal breadth) with the absolute approximate upper thermal breadth can also be constructed:
(6) |
where and . In general, we expect Equation 6 to be useful for applied scientists who wish to automatically calculate confidence intervals on parameters of interest (absolute and thermal breadth) using standard statistical software that performs nonlinear least squares or maximum likelihood estimation. Using this parametrization will lead to a confidence interval for with no additional effort from the user of the statistical software. However, there can be numerical issues with estimation for highly skewed curves where is close to either or . When numerical issues arise, Equation 3 can be used instead.
Equation 3 is likely to be more useful when fitting TPCs through Bayesian methods, as it is more straightforward to provide a reasonable prior distribution for (which lies in the interval from 0 to 1) than for (which lies in-between two unknown model parameters: and ). It is also simple to obtain posterior samples and credible intervals for from MCMC output through Equation 4.
Equation 3 can also be used for maximum likelihood estimation: it is straightforward to obtain confidence intervals for through bootstrap methods and any numerical issues regarding the optimal temperature “crossing-over” past the maximum or minimum temperatures can be avoided by constraining to be in the unit interval. This parametrization also has the advantage of clearly separating the parameters that determine the shape and location/scaling of the TPC.
Datasets
To illustrate the predictive performance and applications of flexTPC, we compared it with the Briere model in various real-world datasets.
The botrana dataset consists of the developmental time of various life stages of the grapevine moth Lobesia botrana (eggs, instars 1–5, and pupae) measured at 14 temperatures, ranging from 8 to 34°C. This dataset, which was used to motivate development of the Briere models (Briere et al. 1999), was taken from Table 1 in (Briere & Pracros 1998). This dataset is expected to be one in which the Briere models perform well.
Table 1. Model comparison in real-world datasets.
Dataset | ||||
---|---|---|---|---|
| ||||
botrana | life stage | Briere1 | Briere2 | flexTPC |
|
||||
LOOCV-nLL | eggs | 2.00 | −1.79 | −2.20 |
|
||||
instar 1 | −1.46 | −2.32 | −2.64 | |
|
||||
instar 2 | −2.24 | −2.88 | −3.08 | |
|
||||
instar 3 | 7.16 | −1.55 | −2.60 | |
|
||||
instar 4 | 2.14 | −2.61 | −2.51 | |
|
||||
instar 5 | −0.48 | −3.04 | −3.12 | |
|
||||
pupae | 10.80 | −2.95 | −3.95 | |
|
||||
glacierbac | species (strain) | Briere1 | Briere2 | flexTPC |
|
||||
LOOCV-nLL | Arthrobacter sp (55) | 0.27 | −3.35 | −3.61 |
|
||||
Arthrobacter sp (60) | 2.53 | −3.13 | −3.79 | |
|
||||
Pseudomonas (76) | inf | −2.23 | −2.71 | |
|
||||
Arthrobacter glacialis (137) | 0.70 | −3.49 | −4.46 | |
|
||||
Arthrobacter glacialis (158) | −2.64 | −4.23 | −5.68 | |
|
||||
abcoli | antibiotic | Briere1 | Briere2 | flexTPC |
|
||||
LOOCV-nLL | AMP | −0.97 | −1.33 | −2.08 |
|
||||
CLI | −1.43 | −1.47 | −1.67 | |
|
||||
CPR | −0.78 | −1.23 | −1.70 | |
|
||||
ERY | −0.34 | −0.70 | −1.21 | |
|
||||
FOX | −1.87 | −1.88 | −2.36 | |
|
||||
GEN | −0.80 | −1.00 | −1.68 | |
|
||||
LVX | −1.50 | −1.50 | −1.74 | |
|
||||
NTR | −1.72 | −1.89 | −2.10 | |
|
||||
STR | −0.96 | −1.24 | −1.78 | |
|
||||
TET | −1.65 | −1.70 | −1.92 | |
|
||||
TMP | −1.90 | −1.91 | −2.59 | |
|
||||
TOB | −1.08 | −1.39 | −2.10 | |
|
||||
no drug | −0.96 | −1.17 | −2.67 | |
|
||||
lhculex | Culex pipiens | |||
|
||||
DIC | trait | lit. function | lit. model | flexTPC |
|
||||
EV | quadratic | 105.7 | 47.4 | |
|
||||
pLA | quadratic | −17.3 | −14.8 | |
|
||||
MDR | Briere1 | −313.9 | −312.8 | |
|
||||
lf | linear | 280.7 | 280.0 | |
|
||||
Culex quinquefasciatus | ||||
|
||||
trait | lit. function | lit. model | flexTPC | |
|
||||
EV | Briere1 | 979.0 | 370.2 | |
|
||||
pLA | quadratic | −42.6 | −39.2 | |
|
||||
MDR | Briere1 | −152.0 | −149.5 | |
|
||||
lf | linear | 110.3 | 113.5 |
The glacierbac dataset consists of the temperature dependence of the growth rate of bacterial Arthrobacter and Pseudomonas strains isolated from glacial deposits (Gounot 1976). This dataset was chosen to highlight the advantage of flexTPC over Briere in describing TPCs from organisms from cold environments.
The abcoli dataset (Cruz-Loya et al. 2021) consists of measurements of total growth after 24 hours of laboratory cultures of the bacterium Escherichia coli in the presence of various antibiotic backgrounds at seven temperatures. These antibiotics either kill or slow down the growth of E. coli in a temperature-dependent manner, modifying the shape of the TPC. This dataset was chosen to highlight the ability of flexTPC to describe curves of different shapes.
The lhculex dataset (Shocket et al. 2020) corresponds to various mosquito temperature-dependent life history traits (egg viability, probability of larval survival to adulthood, development rate, and female adult lifespan) from Culex pipiens and Culex quinquefasciatus. These traits have been previously modeled with different functional forms (linear, quadratic, and Briere1). This dataset was chosen to highlight the ability of flexTPC to fit curves of various shapes for which different functional forms were previously needed.
Parameter estimation
A nonlinear regression approach was used to fit the Briere1, Briere2, and flexTPC models to the botrana, glacierbac, and abcoli datasets through maximum likelihood estimation. The following model was used for the botrana and glacierbac datasets:
where is the observed response at temperature the standard deviation of the data, the temperature response curve model (either Briere1, Briere2, or flexTPC), and the set of all parameters from the corresponding TPC model being fit. For example, .
In the abcoli dataset, the response variable is optical density, which does not have zero values. For this dataset the model used was:
As a criterion for model selection, we compared the negative log-likelihood obtained under leave one out cross-validation (LOOCV-nLL) for all models in the datasets described above. This is a measure of the predictive out-of-sample model performance that is asymptotically equivalent to AIC (Stone 1977) but makes fewer assumptions, and has been recommended as the approach of choice for model selection when computationally feasible (Yates et al. 2023). It consists of removing each data point in turn, fitting the model with maximum likelihood on the remaining data points, and evaluating the negative log-likelihood (nLL) in the removed data point (which is a measure of the quality of the model prediction for a data point that was not used in fitting). We report the mean nLL when each data point is removed in turn. Alternate model comparison criteria (AIC and BIC) are reported in the Supplemental Information.
Bayesian parameter estimation for mosquito trait data
For the lhculex dataset, we followed a Bayesian approach for parameter estimation. This makes it possible to fit curves with reasonable thermal limits for traits that lack data at low temperatures using weakly informative prior distributions and illustrates the benefits of fitting flexTPC in a Bayesian context. For each mosquito life history trait, flexTPC was compared to a TPC functional form that was used previously to describe the data being modeled, which varied by trait (Shocket et al. 2020). Deviance Information Criterion (DIC) (Spiegelhalter et al. 2002) was used as a model selection criterion. For more details, see Table 1 and the Supplemental Information.
Models were fit using Markov Chain Monte Carlo (MCMC) with the r2jags R package, an interface for JAGS (Just Another Gibbs Sampler) (Plummer 2003). Four independent MCMC chains were run for 300,000 iterations, discarding the first 50,000 iterations as burn-in. The resulting MCMC chains were thinned, saving every eight iterations. Chain convergence was monitored both by visual inspection of trace plots and density plots of the individual chains and by ensuring the potential scale reduction factor for all parameters.
Results
In this work, we present flexTPC—a flexible model for unimodal thermal performance curves (TPCs) in which the optimum temperature can lie at any point in between the minimum and maximum temperatures. This model is parameterized in terms of biologically meaningful quantities and can describe TPCs of a wide variety of shapes (Figure 1). We compare the performance of flexTPC to that of the Briere1 and Briere2 models (Equation 1), which are phenomenological models for TPCs that are popular in applications in various real-world datasets.
Insect developmental rates
The Briere models were initially developed to describe the thermal dependence of insect developmental rates. We compared the flexTPC and Briere models for describing Briere and Pacros’s data on the rates of development of the life stages of the grapevine moth Lobesia botrana (Figures 2 (left panel), S1) to evaluate the relative performance of these models in a real dataset for which the Briere models would be typically used.
Based on leave-one-out cross validation (LOOCV), we found that flexTPC was the best performing model for six life stages (eggs, instars 1, 2, 3, 5 and pupae) while the Briere2 model was the best performing model for one life stage (instar 4; Table 1). The Briere1 model was the worst performing model for all life stages in this dataset.
Organisms that live below freezing temperatures
The Briere models force trait performance to be zero at T = 0°C and are thus unable to describe thermal performance curves for traits of living organisms that function below freezing temperatures. In order to provide a real-world example, we next compared the Briere and flexTPC models for describing the growth rate of three facultative psychrophile bacterial strains (Arthrobacter sp strain SI 55, Arthrobacter sp strain SI 60, and Pseudomonas strain SII 76) and two obligate psychrophile strains (Arthrobacter glacialis strains SI 137 and SI 158) isolated from glaciers (Gounot 1976) (Figures 2 (middle column), S2). We found that flexTPC provides better fits than both Briere models for all bacterial species in the dataset (Table 1). This was especially so for both Arthrobacter glacialis strains since they exhibit substantial growth at and below 0°C, which is impossible to capture with the Briere models.
Thermal performance curves (TPCs) of varying shapes
Thermal performance curves (especially those for growth and developmental rates) are often left-skewed, with the temperature optimum closer to the maximum than the minimum temperature for the trait. However, some traits have symmetric or right-skewed TPCs, and environmental stressors can change the shape of TPCs (Bestion et al. 2018; Brett et al. 1969; Cruz-Loya et al. 2021; Cuppers et al. 1997). As a real-world example, we next considered a dataset consisting of the temperature-dependent growth of Escherichia coli under 12 different antibiotics, and a control condition in the absence of antibiotics (Cruz-Loya et al. 2021). We again compared the fit of the Briere1, Briere2, and flexTPC models (Figures 2 (right column), S3, Table 1).
While the TPC of E. coli growth is left-skewed in the absence of antibiotics, its shape can be modified in their presence because antibiotic effectiveness can vary at different temperatures. Some antibiotics give rise to left-skewed curves (e.g., TET, TMP, FOX), while others result in curves that are closer to symmetric and can be either nearly flat (GEN, TOB, STR) or narrow (ERY). FlexTPC was the best performing model for all 13 antibiotic backgrounds in this dataset (Table 1) and is the only model out of the three that can describe TPCs that are symmetric or right-skewed.
Fitting thermal performance curves that vary in shape across multiple traits and species
Organisms have multiple temperature dependent traits, giving rise to TPCs that can have different shapes. In practice, this has often meant that a different TPC functional form (such as Briere or quadratic) must be chosen for each trait, and sometimes even for the same trait in different species. This raises the issue that the inferred parameters (like minimum, optimal, and maximum temperatures) may differ across traits or species partially because of using different functional forms rather than only because of the data. A flexible model such as flexTPC makes it possible to compare TPCs of different shapes with the same model, allowing the direct comparison of inferred parameters. In addition, having interpretable model parameters allows the use of informative Bayesian priors based on curves fit to related species or knowledge of the temperature range in the habitat of the species of interest.
As an example, we fit TPC models to a dataset with four life history traits (lifespan, egg viability, larval survival to adulthood, and mosquito development rate) of the mosquitoes Culex pipiens and Culex quinquefasciatus using a Bayesian approach (Figure 3). In a previous study (Shocket et al. 2020), these data were analyzed using various different functional forms (linear, quadratic, and Briere), depending on the trait and species (Table 1). We find that flexTPC gives very similar fits to using these different models for lifespan, larval survival, and development rate. Moreover, it provides substantially better fits for egg viability compared to the previous models chosen in the literature (quadratic for Cx. pipiens and Briere1 for Cx. quinquefasciatus). For adult lifespan, flexTPC results in a near-identical fit to that of a piecewise linear model (which was previously used to describe this trait) within the range of the data. Although this dataset does not contain temperatures low enough to observe a reduction in lifespan, it must necessarily decrease at lower temperatures, so it is likely more realistic to model this trait as a right-skewed unimodal TPC (as can be done with flexTPC) rather than a linear model. If Bayesian methods are used, this can be done even in cases where there is a lack of data near temperature extremes.
In Bayesian approaches, uncertainty in model parameters is described by probability distributions. Before the analysis, a prior distribution for each parameter is chosen that represents how likely each parameter value is assumed to be a priori (before observing the data). Prior distributions can be based on biological knowledge from previous experiments in related species or known characteristics of the habitat of the population being studied. For example, as the mosquito species of interest are ectotherms that live in temperate (Cx. pipiens) or tropical/subtropical (Cx. quinquefasciatus) climates, we assume that and for adult lifespan are a priori 95% likely to be in the interval (0°C, 10°C) and (25°C, 45°C), respectively. Choosing reasonable prior distributions based on biological knowledge is much easier when the model parameters are interpretable (e.g., for minimum and maximum temperatures and the maximum trait value) rather than mathematical constants with no direct biological meaning. Because of its interpretable parameters (Figure 4 and Box 1), flexTPC is well-suited for Bayesian parameter estimation.
Box 1: Advantages of thermal performance curve models with biologically interpretable parameters.
For many applications (for example, studying the evolution of TPCs or predicting the effect of thermal adaptation on infectious disease spread), it is of interest to model how thermal performance curves change across time, across space, in the presence of a stressor other than temperature, and/or when exposed to other factors that vary across populations. It is natural to do this by making assumptions about how parameters of interest (e.g., minimum, optimum, or maximum temperatures) change as a function of the variable of interest. However, when some parameters in the chosen TPC functional form are mathematical constants without a clear biological interpretation, this can lead to unintuitive changes in the predicted values for the TPC, even when the parameter being modified is interpretable.
To illustrate this, we show the effects of changing a single parameter while keeping all other parameters constant for the Briere and flexTPC models (Figure 4). In the Briere model there is a multiplicative constant c that is proportional to the height of the curve when all other model parameters are fixed. Changing the value of while keeping the other model parameters constant will change the TPC in a predictable way by modifying its height while keeping the same minimum and maximum temperatures. However, changing the value of a different model parameter in the Briere model (e.g., or , which are interpretable parameters) while keeping all other parameters constant will not keep the height of the curve constant, as the value of c that is needed to keep the same height changes when the other model parameters change. In contrast, in the flexTPC model the maximum trait value (i.e., the curve height) is explicitly a model parameter. Thus, keeping constant will keep the same TPC height regardless of the values of the other parameters. When modeling changes in TPCs, it is advantageous to choose a functional form where parameters are biologically interpretable, especially if it is of interest to assume certain aspects of the TPC remain constant or change in a predictable way. This will lead to a clearer interpretation of changes in model parameters which is not confounded by changes in other aspects of the TPC that are not of interest.
Using TPC models where some of the parameters are mathematical constants without a biological interpretation can lead to potentially misleading conclusions in applications that require the interpretation of partial derivatives of the model or quantities derived from them. Importantly, this includes sensitivity analyses of mathematical models that include TPCs as a submodel (such as infectious disease or predator-prey models) with respect to the underlying parameters of the TPC functional form. For example, sensitivity analysis based on partial derivatives might indicate that the transmission of a disease is very sensitive to the parameter of a TPC modeled with the Briere1 function. However, as increasing (while keeping all other parameters constant) also increases the height of the TPC, this could be either due to the increased maximum temperature or the increased curve height. In contrast, using a model where all parameters have a clear biological interpretation (and where the maximum value of the TPC is an explicit parameter) enables separating the effect of increasing the maximum temperature and increasing the curve height.
In general, parametrizing models in terms of biologically interpretable quantities is useful as it makes it possible to keep them constant or to change them in specified ways when varying other parameters (as needed for modeling change in TPCs). It is also advisable to explore the effects of changing individual parameters in the TPCs to be aware of what aspects of the curve are being modified by the parameter in question when interpreting sensitivity analyses.
Discussion
In this work we introduce flexTPC, a flexible mathematical model for thermal performance curves (TPCs) that can describe unimodal TPCs of various shapes (including left-skewed, symmetric, and right-skewed curves). FlexTPC is mathematically equivalent to the Beta model (Yin et al. 1995), but is reparametrized to be biologically interpretable and better suited for applied ecology and infectious disease applications. We show that this model addresses various limitations of the Briere models, such as not being able to describe TPCs from species that can survive below freezing temperatures, or TPCs that vary in skewness/thermal breadth. This leads to better predictive performance in various real-world datasets. Based on these results, we propose flexTPC as a general-purpose descriptive model to describe unimodal TPCs.
FlexTPC is parametrized in terms of biologically meaningful quantities that are of interest to ecologists: the minimum and maximum temperatures, the maximum value of the trait, a choice of either the relative or absolute position of the optimum temperature, and a choice of the approximate relative or absolute upper thermal breadth. This has several advantages when compared to models in which some parameters are mathematical constants without a clear interpretation. First, the model behaves more predictably when changing its parameter values, since these quantities can be kept constant or modified intentionally as opposed to changing in possibly unintuitive ways as other parameters vary (Figure 4). This aids in the clear interpretation of parameter sensitivity analysis and facilitates modeling how TPCs change over time and/or space (Box 1). Second, it simplifies finding reasonable initial values for the parameters when fitting the model with optimization-based methods (e.g., least squares or maximum likelihood estimation). Third, statistics such as confidence intervals can often be obtained automatically with standard software when a quantity of interest is an explicit parameter of the model. Lastly, an interpretable parametrization makes it easier to incorporate information from previous experiments in similar species or other sources (e.g., the environmental temperature range from the habitat of the organism) when using informative priors in Bayesian approaches to parameter inference.
FlexTPC has several important advantages over other popular models like the Briere models. First, in any model describing TPCs, at least three parameters are necessary in order to set the curve height and the minimum and maximum temperatures independently. Because of this, the optimal temperature in any TPC model that has three parameters or fewer (like the Briere1 model or the quadratic model) will necessarily be a deterministic function of some subset of these parameters. This may lead to biased estimates for the optimum temperature (and the other parameters involved in the deterministic relationship) whenever the true relationship between these parameters deviates from the implicit assumption made by the TPC functional form, which often lacks a biological justification in phenomenological models. FlexTPC (and Briere2) can vary the optimum temperature for fixed values of the minimum and maximum temperature and are thus likely better suited for estimating optimal temperatures, especially when thermal limits are tightly constrained by the data. Conversely, when using the Briere1 function to describe a TPC where most data are near the optimum, the estimated thermal minimum and maximum might be inaccurate due to the constraints imposed by the functional form.
Second, organisms may function below freezing temperatures, and while the Briere1 and the Briere2 models cannot describe positive performance below freezing, flexTPC can describe TPCs at any temperature range (Figures 2, S2). Although it is possible to use the Briere models in these cases by shifting the model in the temperature axis, this requires choosing an arbitrary temperature shift, and the shape of the resulting TPC depends on the chosen shift (Figure S5).
Another advantage of flexTPC over the Briere models is its ability to describe TPCs of many different shapes. This will be especially useful in studies comparing multiple TPCs from different traits and/or from different organisms. Currently, different functional forms are commonly used in these studies when the TPC shape changes across species or traits. This can potentially introduce issues when comparing inferred parameters, as parameters might vary between conditions partially due to the use of a different model rather than because of meaningful differences in the data. This issue can be avoided by using a flexible model that allows fitting all conditions with the same functional form.
As flexTPC is a more complex model that the Briere models, with five free parameters, it is natural to consider whether it can be used in data-limited situations where measurements are only available at a few temperatures, as frequently occurs in lab and field data. In this work we show that, despite this additional complexity, flexTPC has better predictive performance than the Briere1 and Briere2 models in many real-world scenarios. Moreover, as illustrated in the data for mosquito lifespan (Figure 3), flexTPC can be used in situations with limited data at some temperature ranges when using Bayesian methods. Even in cases with severe data limitations, the use of a flexible model with Bayesian methods with strongly informative priors based on biological knowledge of the species being modeled and its habitat may be preferable to the use of a more parsimonious model that assumes a strong relationship between the optimal, minimum, and maximum temperatures without biological justification, especially when the main purpose of the analysis is to estimate an optimal temperature. However, more parsimonious models can be obtained from the flexTPC equation for researchers under severe data constraints that do not wish to take a Bayesian approach to parameter inference (see Supplemental Information).
Our work shows that flexTPC is a general-purpose model for unimodal TPCs that is well-suited for comparing populations or experimental conditions where the curves may vary in thermal breadth and skewness. To our knowledge, flexTPC is the first descriptive TPC model to simultaneously have an explicit parameter corresponding to all of the main TPC features of interest for ecologists—the temperature minimum, maximum, and optimum, along with the maximum trait performance value and thermal breadth. This inclusion of parameters of interest results in a model that is both flexible and interpretable, which we believe will be useful for both fitting empirical data and for theoretical work that models how TPCs change under evolution or in the presence of external factors like other stressors. FlexTPC can also be used as a flexible functional form to describe the response of biological traits to other environmental factors (e.g., precipitation or humidity) when these responses are unimodal.
Supplementary Material
Acknowledgements
MCL and EAM were supported by NIH grants R35GM133439 and R01AI168097. MCL was also supported by a Stanford PRISM Baker Fellowship. EAM was also supported by NSF grant DEB-2011147 with Fogarty International Center, NIH grant R01AI102918, and seed grants from the Stanford Woods Institute for the Environment, King Center on Global Development, and Center for Innovation in Global Health. VMS was supported by a James F. McDonnell Foundation Complex Systems Scholar Award.
Data and code availability
All data and code are provided in a GitHub repository.
References
- Amarasekare P. & Savage V. (2012). A framework for elucidating the temperature dependence of fitness. Am. Nat., 179, 178–191. [DOI] [PubMed] [Google Scholar]
- Angilletta M.J. Jr. (2009). Thermal Adaptation: A Theoretical and Empirical Synthesis. Oxford University Press, Oxford. [Google Scholar]
- Arroyo J.I., Díez B., Kempes C.P., West G.B. & Marquet P.A. (2022). A general theory for temperature dependence in biology. Proc. Natl. Acad. Sci., 119, e2119872119. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Barton S. & Yvon-Durocher G. (2019). Quantifying the temperature dependence of growth rate in marine phytoplankton within and across species. Limnol. Oceanogr., 64, 2081–2091. [Google Scholar]
- Bennett A.F. (1980). The thermal dependence of lizard behaviour. Anim. Behav., 28, 752–762. [Google Scholar]
- Bestion E., Schaum C.-E. & Yvon-Durocher G. (2018). Nutrient limitation constrains thermal tolerance in freshwater phytoplankton. Limnol. Oceanogr. Lett., 3, 436–443. [Google Scholar]
- Brett J.R., Shelbourn J.E. & Shoop C.T. (1969). Growth Rate and Body Composition of Fingerling Sockeye Salmon, Oncorhynchus nerka, in relation to Temperature and Ration Size. J. Fish. Res. Board Can., 26, 2363–2394. [Google Scholar]
- Briere J.F. & Pracros P. (1998). Comparison of temperature-dependent growth models with the development of Lobesia botrana (Lepidoptera: Tortricidae). Environ. Entomol. USA. [Google Scholar]
- Briere J.-F., Pracros P., Roux A.-Y. & Pierre J.-S. (1999). A Novel Rate Model of Temperature-Dependent Development for Arthropods. Environ. Entomol., 28, 22–29. [Google Scholar]
- Buckley L.B. & Huey R.B. (2016). How Extreme Temperatures Impact Organisms and the Evolution of their Thermal Tolerance. Integr. Comp. Biol., 56, 98–109. [DOI] [PubMed] [Google Scholar]
- Couper L.I., Farner J.E., Lyberger K.P., Lee A.S. & Mordecai E.A. (2024). Mosquito thermal tolerance is remarkably constrained across a large climatic range. Proc. R. Soc. B Biol. Sci., 291, 20232457. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Cruz-Loya M., Tekin E., Kang T.M., Cardona N., Lozano-Huntelman N., Rodriguez-Verdugo A., et al. (2021). Antibiotics Shift the Temperature Response Curve of Escherichia coli Growth. mSystems, e0022821. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Cuppers H.G., Oomes S. & Brul S. (1997). A model for the combined effects of temperature and salt concentration on growth rate of food spoilage molds. Appl. Environ. Microbiol., 63, 3764–3769. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Dell A.I., Pawar S. & Savage V.M. (2011). Systematic variation in the temperature dependence of physiological and ecological traits. Proc. Natl. Acad. Sci. U. S. A., 108, 10591–10596. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Dell A.I., Pawar S. & Savage V.M. (2014). Temperature dependence of trophic interactions are driven by asymmetry of species responses and foraging strategy. J. Anim. Ecol., 83, 70–84. [DOI] [PubMed] [Google Scholar]
- Gilbert B., Tunney T.D., McCann K.S., DeLong J.P., Vasseur D.A., Savage V., et al. (2014). A bioenergetic framework for the temperature dependence of trophic interactions. Ecol. Lett., 17, 902–914. [DOI] [PubMed] [Google Scholar]
- Gounot A.M. (1976). Effects of temperature on the growth of psychrophilic bacteria from glaciers. Can. J. Microbiol., 22, 839–846. [DOI] [PubMed] [Google Scholar]
- Haye T., Abdallah S., Gariepy T. & Wyniger D. (2014). Phenology, life table analysis and temperature requirements of the invasive brown marmorated stink bug, Halyomorpha halys, in Europe. J. Pest Sci., 87, 407–418. [Google Scholar]
- Huey R.B. & Berrigan D. (2001). Temperature, demography, and ectotherm fitness. Am. Nat., 158, 204–210. [DOI] [PubMed] [Google Scholar]
- Huey R.B. & Kingsolver J.G. (1989). Evolution of thermal sensitivity of ectotherm performance. Trends Ecol. Evol., 4, 131–135. [DOI] [PubMed] [Google Scholar]
- Hultin E., Uusitalo E., Larsen I. & Prydz H. (1955). The Influence of Temperature on the Rate of Enzymic Processes. Acta Chem. Scand., 9, 1700–1710. [Google Scholar]
- Ito F. & Awasaki T. (2022). Comparative analysis of temperature preference behavior and effects of temperature on daily behavior in 11 Drosophila species. Sci. Rep., 12, 12692. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Jägermeyr J., Müller C., Ruane A.C., Elliott J., Balkovic J., Castillo O., et al. (2021). Climate impacts on global agriculture emerge earlier in new generation of climate and crop models. Nat. Food, 2, 873–885. [DOI] [PubMed] [Google Scholar]
- Jeffree E.P. & Jeffree C.E. (1994). Temperature and the Biogeographical Distributions of Species. Funct. Ecol., 8, 640–650. [Google Scholar]
- Johnson F.H. & Lewin I. (1946). The growth rate of E. coli in relation to temperature, quinine and coenzyme. J. Cell. Comp. Physiol., 28, 47–75. [DOI] [PubMed] [Google Scholar]
- Kirk D., Jones N., Peacock S., Phillips J., Molnár P.K., Krkošek M., et al. (2018). Empirical evidence that metabolic theory describes the temperature dependency of within-host parasite dynamics. PLOS Biol., 16, e2004608. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Knapp B.D. & Huang K.C. (2022). The Effects of Temperature on Cellular Physiology. Annu. Rev. Biophys., 51, 499–526. [DOI] [PubMed] [Google Scholar]
- Knies J.L., Kingsolver J.G. & Burch C.L. (2009). Hotter Is Better and Broader: Thermal Sensitivity of Fitness in a Population of Bacteriophages. Am. Nat., 173, 419–430. [DOI] [PubMed] [Google Scholar]
- Lachenicht M.W., Clusella-Trullas S., Boardman L., Le Roux C. & Terblanche J.S. (2010). Effects of acclimation temperature on thermal tolerance, locomotion performance and respiratory metabolism in Acheta domesticus L. (Orthoptera: Gryllidae). J. Insect Physiol., 56, 822–830. [DOI] [PubMed] [Google Scholar]
- Lemoine N.P. (2017). Predation Risk Reverses the Potential Effects of Warming on Plant-Herbivore Interactions by Altering the Relative Strengths of Trait- and Density-Mediated Interactions. Am. Nat., 190, 337–349. [DOI] [PubMed] [Google Scholar]
- Logan J., Wollkind D., Hoyt S. & Tanigoshi L. (1976). An Analytic Model for Description of Temperature Dependent Rate Phenomena in Arthropods. Environ. Entomol., 5, 1133–1140. [Google Scholar]
- Molnár P.K., Kutz S.J., Hoar B.M. & Dobson A.P. (2013). Metabolic approaches to understanding climate change impacts on seasonal host-macroparasite dynamics. Ecol. Lett., 16, 9–21. [DOI] [PubMed] [Google Scholar]
- Molnár P.K., Sckrabulis J.P., Altman K.A. & Raffel T.R. (2017). Thermal Performance Curves and the Metabolic Theory of Ecology-A Practical Guide to Models and Experiments for Parasitologists. J. Parasitol., 103, 423–439. [DOI] [PubMed] [Google Scholar]
- Mordecai E.A., Cohen J.M., Evans M.V., Gudapati P., Johnson L.R., Lippi C.A., et al. (2017). Detecting the impact of temperature on transmission of Zika, dengue, and chikungunya using mechanistic models. PLoS Negl. Trop. Dis., 11, e0005568. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Mordecai E.A., Paaijmans K.P., Johnson L.R., Balzer C., Ben-Horin T., de Moor E., et al. (2013). Optimal temperature for malaria transmission is dramatically lower than previously predicted. Ecol. Lett., 16, 22–30. [DOI] [PubMed] [Google Scholar]
- Nunez S., Arets E., Alkemade R., Verwer C. & Leemans R. (2019). Assessing the impacts of climate change on biodiversity: is below 2 °C enough? Clim. Change, 154, 351–365. [Google Scholar]
- Paaijmans K.P., Read A.F. & Thomas M.B. (2009). Understanding the link between malaria risk and climate. Proc. Natl. Acad. Sci., 106, 13844–13849. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Pepi A., Hayes T. & Lyberger K. (2023). Thermal asymmetries influence effects of warming on stage and size-dependent predator–prey interactions. Theor. Ecol., 16, 105–115. [Google Scholar]
- Plummer M. (2003). JAGS: A Program for Analysis of Bayesian Graphical Models using Gibbs Sampling. 3rd Int. Workshop Distrib. Stat. Comput. DSC 2003 Vienna Austria, 124. [Google Scholar]
- Ratkowsky D.A., Lowry R.K., McMeekin T.A., Stokes A.N. & Chandler R.E. (1983). Model for bacterial culture growth rate throughout the entire biokinetic temperature range. J. Bacteriol., 154, 1222–1226. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Ratkowsky D.A., Olley J. & Ross T. (2005). Unifying temperature effects on the growth rate of bacteria and the stability of globular proteins. J. Theor. Biol., 233, 351–362. [DOI] [PubMed] [Google Scholar]
- Ritchie M.E. (2018). Reaction and diffusion thermodynamics explain optimal temperatures of biochemical reactions. Sci. Rep., 8, 11105. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Rocklöv J. & Dubrow R. (2020). Climate change: an enduring challenge for vector-borne disease prevention and control. Nat. Immunol., 21, 479–483. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Savage V.M., Gillooly J.F., Brown J.H., West G.B. & Charnov E.L. (2004). Effects of body size and temperature on population growth. Am. Nat., 163, 429–441. [DOI] [PubMed] [Google Scholar]
- Schoolfield R.M., Sharpe P.J. & Magnuson C.E. (1981). Non-linear regression of biological temperature-dependent rate models based on absolute reaction-rate theory. J. Theor. Biol., 88, 719–731. [DOI] [PubMed] [Google Scholar]
- Schulte P.M. (2015). The effects of temperature on aerobic metabolism: towards a mechanistic understanding of the responses of ectotherms to a changing environment. J. Exp. Biol., 218, 1856–1866. [DOI] [PubMed] [Google Scholar]
- Sentis A., Hemptinne J.-L. & Brodeur J. (2012). Using functional response modeling to investigate the effect of temperature on predator feeding rate and energetic efficiency. Oecologia, 169, 1117–1125. [DOI] [PubMed] [Google Scholar]
- Sharpe P.J. & DeMichele D.W. (1977). Reaction kinetics of poikilotherm development. J. Theor. Biol., 64, 649–670. [DOI] [PubMed] [Google Scholar]
- Shi P. & Ge F. (2010). A comparison of different thermal performance functions describing temperature-dependent development rates. J. Therm. Biol. - J THERM BIOL, 35, 225–231. [Google Scholar]
- Shocket M.S., Verwillow A.B., Numazu M.G., Slamani H., Cohen J.M., El Moustaid F., et al. (2020). Transmission of West Nile and five other temperate mosquito-borne viruses peaks at temperatures between 23°C and 26°C. eLife, 9, e58511. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Spiegelhalter D.J., Best N.G., Carlin B.P. & Van Der Linde A. (2002). Bayesian measures of model complexity and fit. J. R. Stat. Soc. Ser. B Stat. Methodol., 64, 583–639. [Google Scholar]
- Stone M. (1977). An Asymptotic Equivalence of Choice of Model by Cross-Validation and Akaike’s Criterion. J. R. Stat. Soc. Ser. B Methodol., 39, 44–47. [Google Scholar]
- Tochen S., Dalton D.T., Wiman N., Hamm C., Shearer P.W. & Walton V.M. (2014). Temperature-Related Development and Population Parameters for Drosophila suzukii (Diptera: Drosophilidae) on Cherry and Blueberry. Environ. Entomol., 43, 501–510. [DOI] [PubMed] [Google Scholar]
- Waldock C., Dornelas M. & Bates A.E. (2018). Temperature-Driven Biodiversity Change: Disentangling Space and Time. BioScience, 68, 873–884. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Yates L.A., Aandahl Z., Richards S.A. & Brook B.W. (2023). Cross validation for model selection: A review with examples from ecology. Ecol. Monogr., 93, e1557. [Google Scholar]
- Yin X., Kropff M.J., McLaren G. & Visperas R.M. (1995). A nonlinear model for crop development as a function of temperature. Agric. For. Meteorol., 77, 1–16. [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
All data and code are provided in a GitHub repository.