Skip to main content
Biophysical Journal logoLink to Biophysical Journal
. 2012 Nov 7;103(9):2021–2032. doi: 10.1016/j.bpj.2012.09.034

Models of Electrical Activity: Calibration and Prediction Testing on the Same Cell

Maurizio Tomaiuolo , Richard Bertram ‡,, Gareth Leng §, Joël Tabak
PMCID: PMC3491713  PMID: 23199930

Abstract

Mathematical models are increasingly important in biology, and testability is becoming a critical issue. One limitation is that one model simulation tests a parameter set representing one instance of the biological counterpart, whereas biological systems are heterogeneous in their properties and behavior, and a model often is fitted to represent an ideal average. This is also true for models of a cell’s electrical activity; even within a narrowly defined population there can be considerable variation in electrophysiological phenotype. Here, we describe a computational experimental approach for parameterizing a model of the electrical activity of a cell in real time. We combine the inexpensive parallel computational power of a programmable graphics processing unit with the flexibility of the dynamic clamp method. The approach involves 1), recording a cell’s electrical activity, 2), parameterizing a model to the recording, 3), generating predictions, and 4), testing the predictions on the same cell used for the calibration. We demonstrate the experimental feasibility of our approach using a cell line (GH4C1). These cells are electrically active, and they display tonic spiking or bursting. We use our approach to predict parameter changes that can convert one pattern to the other.

Introduction

Mathematical models have become essential tools for understanding complex biological systems. Models are used to formulate hypotheses that can be tested through simulations and can generate new predictions that will in turn be tested experimentally. One limitation of this process is that simulations only test one set of parameter values, whereas biological systems such as cells often form heterogeneous populations, so a single parameter set may not be representative of many of the individuals in a population. However narrowly we try to define a cell population, it seems that substantial heterogeneity remains. For example, pituitary lactotrophs exhibit significant heterogeneity in calcium influx and electrophysiological characteristics (1–3), even within functional subtypes (4). When different parameters are measured in different cells and then averaged, this can lead to an average model that may represent only a subpopulation of cells or, in the worst case, none at all. The behavior of the average model may not represent the average behavior in the cell population (5–7).

One way to overcome this problem is to use tools of dynamical systems theory, such as bifurcation diagrams, to obtain a qualitative understanding of how the system’s dynamics change as parameters are varied (8). A second approach, akin to sensitivity analysis, is to simulate thousands or millions of models built from different parameter combinations, to understand how groups of parameters can compensate each other’s variations and produce a given behavior (9,10). Although these approaches have provided great insight into biological systems, neither provides an accurate mechanistic description of single individuals in a population.

An ideal scenario would be to measure a cell’s activity, build a dynamical model of that cell, and then test the model’s predictions on the same cell. Only then might we be able to fully understand how differences in parameter values translate into differences in cell behavior.

Here, we consider anterior pituitary cells that spontaneously produce patterns of electrical activity. Pituitary lactotrophs and somatotrophs spontaneously generate patterns of Ca2+-dependent spikes and bursts. Bursts create large intracellular Ca2+ transients that are thought to underlie basal hormone secretion (11). We use the GH4C1 lactosomatotroph cell line. These cells generate spiking or bursting activity patterns, with large cell-to-cell variations in electrical activity. What differences in parameters, such as ion channel conductances, underlie the differences in electrical activity patterns? To answer this question, we have developed an approach for testing models of electrical activity on the same cells used to calibrate the model. To do so, we used the parallel processing capability of a programmable graphics processing unit (GPU) that is available at a low cost, and the flexibility of the dynamic-clamp protocol (12,13).

In the following sections, we first show that a simply built model whose electrical activity qualitatively matches spontaneous experimental activity cannot always be used to generate useful predictions, a point demonstrated experimentally in an invertebrate central pattern generator (14). We then describe the strategy used to estimate the parameters of our model and use synthetic data to explore the relationship between the fitness of the best-fit model and the proximity of its parameters to those of the model used to generate the data. It is important to note that we test the ability of the best-fit model to generate qualitative predictions when some parameters are set to an incorrect value or one conductance is missing from the model. Finally, we test the procedure on actual cells. We first record spontaneous activity from a cell, from which we extract features that the model must reproduce. We also measure whole-cell currents generated in response to voltage steps. From this information, we estimate a subset of the parameters of our model of pituitary electrical activity.

The computational speed of the GPU allows the estimation process to be completed in 10 min. Therefore, the vast majority of the cells we record from are still healthy at the end of the calibration and can be used to test model predictions. We show how fits obtained from spiking and bursting cells can be used to predict parameter changes that can switch the electrical activity pattern from spiking to bursting, or vice versa. We then perform such parameter changes experimentally, using the dynamic-clamp technique on the same cells that were used to calibrate the model. Despite the simplicity of our model, we show that it can generate novel predictions that can be tested directly. Thus, we demonstrate that the combination of mathematical modeling, fast parallel processing provided by a GPU, and the dynamic-clamp technique can overcome modeling limitations due to cell heterogeneity.

Materials and Methods

Mathematical model

We use a previously developed mathematical model for the electrical activity and Ca2+ handling in a pituitary lactotroph (15). It consists of voltage-gated Ca2+ and K+ currents (ICa and IK, respectively) for the production of action potentials, a leak current, and a Ca2+-activated K+ current (ISK, a small-conductance K(Ca) current). A voltage-dependent current through large-conductance K+ channels (BK channels) is also included. Although these BK channels are both voltage- and Ca2+-gated, they are typically located adjacent to Ca2+ channels and are gated by Ca2+ nanodomains (16). Because the Ca2+ concentration sensed by the BK channel reaches equilibrium in microseconds, the activation can be modeled as a purely voltage-dependent process (17,18). The following equations describe the dynamics of the model variables V (membrane potential), n (activation of IK), b (activation of IBK) and [Ca] (intracellular Ca2+ concentration):

CmdVdt=(ICa+IK+ISK+IBK+Ileak), (1)
τndndt=n(V)n, (2)
τBKdbdt=b(V)b, (3)
d[Ca]dt=fc(αICa+kc[Ca]), (4)

with ionic currents ICa=gCam(V)(VVCa), IK=gKn(VVK), ISK=gSKs([Ca])(VVK), IBK=gBKb(VVK), and Ileak=gleak(VVleak), and steady-state functions m(V)=[1+exp((vmV)/sm)]1, n(V)=[1+exp((vnV)/sn)]1, s([Ca])=[Ca]2/[Ca]2+ks2, and b(V)=[1+exp((vbV)/sb)]1.

Default parameter values are given in Table 1. Most simulations were run on a GPU using custom code. The simulation package XPPAUT (19) was used to run single instances of the model (forward Euler method, dt = 0.005 ms). Computer codes for this model are freely available at www.math.fsu.edu/∼bertram/software/pituitary.

Table 1.

Parameter values used in the simulations, unless otherwise noted

Parameter Min Default value Max Definition
C 5 10 pF 15 Membrane capacitance
gCa 0.5 2 nS 5 Maximal conductance of Ca2+ channels
VCa 60 mV Reversal potential for Ca2+
vm −30 −20 mV −10 Voltage value at midpoint of m
sm 2 12 mV 24 Slope parameter of m
gK 0.5 4 nS 8 Maximal conductance of K channels
VK −75 mV Reversal potential for K+
vn −10 −5 mV −1 Voltage value at midpoint of n
sn 2 10 mV 20 Slope parameter of n
τn 10 20 ms 30 Time constant of n
gSK 0.5 2 nS 6 Maximal conductance of SK channels
ks 0.1 0.4 μM 1 [Ca] at midpoint of s
gBK 0 0.1 or 0.8 nS 4 Maximal conductance of BK channels
vb −20 mV Voltage value at midpoint of b
sb 2 mV Slope parameter of b
τb 1 5 ms 10 Time constant of b
gleak 0.05 0.2 nS 0.3 Leak conductance
Vleak −50 mV Reversal potential for the leak current
gA 0 0 nS 40 Maximal conductance of A channels
va −20 mV Voltage value at midpoint of a
sa 10 mV Slope parameter of a
vh −60 mV Voltage value at midpoint of h
sh 5 mV Slope parameter of h
τh 20 ms Time constant of h
fc 0.01 Fraction of free Ca2+ ions in cytoplasm
α 0.0015 μMfC−1 Conversion from charges to molar concentration
kc 0.01 0.12 ms−1 0.4 Rate of Ca2+ extrusion

Feature-based fitness function

We used features of the recorded electrical activity trace to create a fitness function that is optimized to calibrate model parameters (20). First we select a voltage trace (usually a few minutes of electrical activity) and then extract features that represent its shape. The features used in this study were the minimum voltage achieved during the trace, the difference between the minimum and the maximum (amplitude), the period of the oscillation (either spiking or bursting), and the ratio of the duration of the silent phase to the period. We computed a silent phase as the time within a period during which the voltage lies below a threshold T = min(V) + 0.35(max(V) – min(V)). For bursting cases, we also used the number of peaks in a burst and the sum of the peak amplitudes as features. The fitness is computed with a Gaussian distance function that uses the extracted features as targets or optima. The fitness of a model is then

w=jcjexp((fjoptj)2σj)jcj, (5)

where cj represents the contribution of feature j to the overall fitness, fj and optj are the computed and target features, respectively, and σj is the reciprocal strength of selection on that feature (small values represent strong selection). The sum in the denominator scales the computed fitness between 0 and 1. A value of 1 indicates a complete agreement between the features extracted from the target voltage trace and those extracted from the best-fit trace. For all simulations, the values used for the fitness coefficients, c, and selection strengths, σ, were min(V), c = 2 and σ = 10 mV2; amplitude, c = 2 and σ = 10 mV2; period, c = 4 and σ = 50 ms2; silent/period ratio, c = 2 and σ = 0.025; burst-peak number, c = 1 and σ = 1; burst-peak amplitude, c = 1 and σ = 1 mV2.

With voltage-clamp data, the fitness function was modified to

w=βwfeatures+(1β)wclamp, (6)

with

RMSE=i(Ii,modelIi,cell)2kr, (7)

and

wclamp=exp(RMSE2σclamp), (8)

where the summation is over the number of different test potentials, Ii,model and Ii,cell are equilibrium currents in the model and the cell, respectively, and the rescaling constant kr is 1 pA2. Parameter β is between 0 and 1 and adjusts the relative weight given to features versus voltage-clamp currents in the model calibration (we used 0.7), σclamp = 500 mV2.

Strategy for model calibration

To calibrate the parameters of the model to match the voltage trace of a cell we developed custom software written in C# and interfaced with a programmable GPU (CUDA parallel computing architecture, NVIDIA, Santa Clara, CA) using OpenCL. The GPU can simultaneously run simulations of thousands of different individuals, corresponding to renditions of the model with different parameter combinations. The forward Euler method was used to integrate the equations with a time step of 0.005 ms. To accelerate the process we also evaluated the features of each individual using the GPU. The features were scored during the second half of the simulation, thus ensuring that transients were eliminated. Each parallel set of simulations is referred to as a generation.

We chose 4096 initial sets of parameters using a Latin hypercube sampling scheme (21), a statistical method to generate a distribution of parameter values from a multidimensional distribution. The parameter ranges used to generate the initial distribution are given in Table 1. Each individual model is simulated for 10 s of electrical activity and receives a fitness score. The best 32 models are used for the next generation. We use these 32 parameter combinations to form 32 blocks of models. The parameter sets for the next generation are generated by creating 128 replicates of each model in each block. We leave one replicate unchanged and mutate the other replicates. This guarantees that we always carry the best 32 parameter combinations to the next generation. The size of a mutation was randomly drawn according to a normal distribution centered at the value of each parameter and with standard deviation σ (we used 0.1). Altogether, this forms 128 × 32 = 4096 model cells. Setting parameters, simulating, and scoring each model takes a little more than 1 min/generation (using an NVIDIA GeForce GTX 560 GPU), and typically 10 generations were sufficient to achieve a good fit.

Cell preparations and perforated patch recordings

GH4C1 cells were obtained from ATCC (Manassas, VA) and maintained in culture conditions in supplemented F10 medium (Sigma-Aldrich, St-Louis, MO) according to established procedures (22). During the experiment, cells were superfused with Hepes-buffered saline (138 mM NaCl, 5 mM KCl, 10 mM α-D-glucose, 25 mM HEPES, 0.7 mM Na2HPO4, 1 mM MgCl2, and 2 mM CaCl2) at room temperature. Fire-polished pipettes (resistance 6–9 MOhm) were filled with intracellular solution containing 90 mM KAsp, 60 mM KCl, 10 mM HEPES, 1 mM MgCl2, and 120 μg/ml amphotericin B. Access resistance usually decreased to <50 MΩ within 10 min after seal (>5 GΩ) formation. A junction potential of 6.5 mV was not corrected; an undischarged Donnan potential also exists across the perforated membrane, but it is assumed to be negligible. Bath application of 1 μM paxilline (Tocris, Ellisville, MO) or 100 nM iberiotoxin (Tocris) was used to block BK channels. Note that the perforated patch configuration is critical to perform parameter estimation and model testing on the same cell, because in whole-cell mode, Ca2+ currents responsible for electrical activity run down after a few minutes.

Dynamic clamp

Membrane potential was monitored in current clamp (bridge mode) and acquired from the patch amplifier (Multiclamp 700B, Molecular Devices, Sunnyvale, CA) through an analog-to-digital acquisition card (DAQ) on a separate PC running the software QuB with a dynamic-clamp module (23). Membrane potential (V) was used to compute the current to be injected using the same mathematical expression as for the model simulations. For example, for the BK current, we computed IBK = gBK b (VVK), with b obtained by integrating Eq. 3. This calculated current was injected into the cell through the same DAQ. The equations to compute the currents were evaluated in real time using the forward Euler method (23), with an average time step of dt = 54 μs, maximum = 100 μs, and coefficient of variation ≤1.2.

Results

Models exhibiting similar spontaneous activity can respond very differently to conductance changes

When building a cellular model, usually we combine available experimental data (such as types of channels present on the cells and channel kinetic rates) with our intuition to produce a set of equations that matches the cell’s electrical activity (such as firing rate or pattern). However, models with different parameter sets can produce similar behavior (9,24). If these parameter sets occupy different regions in parameter space, then changes in some parameters (typically the maximal conductances of the various ionic currents) may result in different qualitative changes in the electrical activity pattern. In other words, models that produce similar activity patterns often predict different changes in activity after changes in parameters (14). This is particularly relevant for pituitary cells, since the distribution and properties of ion channels vary among cell types and even within the same cell type, depending on physiological conditions. Thus two cells that exhibit a similar activity pattern might have different reactions to a change in parameters.

We illustrate this in Fig. 1. First we choose three parameter sets (Table 2) that result in tonic spiking. These sets have different values for five maximal conductances: an L-type Ca2+ current (gCa), a delayed-rectifying K+ current (gK), an SK-type K+ current (gSK), a BK-type K+ current (gBK) and a leak current (gleak). A list of the remaining parameters and their values is given in Table 1 (default values). These individuals represent different electrically excitable cells, characterized by different locations in parameter space, yet all exhibit tonic spiking.

Figure 1.

Figure 1

Model calibration is important for reliable predictions. Three different combinations of the conductances gCa, gK, gSK, gBK, and gleak are used in the model (Table 2), with each combination producing tonic spiking. With the first parameter set (model A), increasing gCa (Ab) or gBK (Ac) by 1 nS does not affect the tonic spiking. With the second parameter set (model B), increasing gBK (Bc) results in a transition to bursting, but increasing gCa (Bb) does not. Using the third parameter set (model C), an increase in gCa (Cb) results in a transition to bursting, but an increase in gBK (Cc) does not.

Table 2.

Parameter values used for Fig. 1

gCa gK gSK gBK gleak
Model A 2.36 5.64 3.14 1.91 0.16
Model B 3.80 5.57 3.13 2.06 0.29
Model C 2.38 4.08 2.61 0.15 0.24

All conductance values are expressed in nS.

We start with model cell A (Fig. 1 A a) by increasing gca by 1 nS (Fig. 1 A b) and observing the effect. We then repeat the process with gBK (Fig. 1 A c). Neither modification results in a qualitative change in the tonic spiking pattern; the spike frequency and amplitude are altered, but the spiking pattern persists. We then apply these changes to model cell B (Fig. 1 B, ac), which has different values for the five maximal conductances listed above. In this case, increasing gCa by 1 nS again has no qualitative effect on the tonic spiking pattern, whereas increasing gBK by 1 nS converts the tonic spiking pattern to a bursting pattern that is characteristic of pituitary somatotrophs (25) and lactotrophs (26). The opposite is true for model cell C (Fig. 1 C, ac), in which increasing gCa, but not gBK, results in a change from tonic spiking to bursting.

This example illustrates how cells producing similar spiking patterns can behave very differently in response to changes in one or more conductance. Therefore, predictions made for the different individuals (e.g., that increasing Ca2+ conductance should convert tonic spiking to bursting) would be different. If tested on an actual cell, the outcome of the test would depend on how well the dynamical properties of the chosen cell match those of the individual used to make the prediction. Our goal is to build a cellular model such that the actual cell and the model are in similar regions of parameters space, so they react similarly to parameter changes.

A new process for model building and testing

The typical process for model building and testing begins with data collection, often from experiments performed on several cells (Fig. 2 A, cells A, B, C, etc.), and often from different laboratories. The collected data represent a patchwork of results describing the behavior of a cell type, and they are compiled into a model. The model usually reflects the properties of an average or representative cell, assuming all the caveats associated with average/representative models (6,10,27). Once a calibrated model is developed, one or more predictions are generated. In the example in Fig. 2 the prediction is that an increase in the maximal BK conductance will change the cell’s electrical activity from tonic spiking to bursting. Finally, predictions generated by the model are experimentally tested. This testing is done on cells other than those used to develop and calibrate the model. Even if the model’s activity resembles the activity of the cells used to test its predictions, it may correspond to a different location in parameter space and thus react differently to conductance changes (Fig. 1).

Figure 2.

Figure 2

Current and new strategies for model calibration and predictions testing. (A) With the current strategy, a model is tested on cells other than those used for calibration. (B) With the new strategy, the model is tested on the cell used to calibrate it.

Fig. 2 B illustrates our strategy for performing model calibration and testing on the same cell. Before an experiment is begun, a mathematical model is built, and parameter values are set using available data. Parameters of the most interest are then identified, either by a sensitivity analysis of the model, or based on previously recorded experimental data. These parameters of interest (typically the maximal conductances) are then subject to individual-cell calibration using a recording of the cell’s spontaneous electrical activity, as discussed in Materials and Methods. This calibration focuses on features of the voltage trace, such as period or burst duty cycle, rather than on the noisy voltage time course itself. The calibration can be done in ∼10 min using a GPU, which can run thousands of numerical simulations simultaneously. The same process using a standard processor would take approximately 20–30 times longer, depending on the computer. When a best fit is found, predictions are generated with this model and tested on the same cell used to do the model calibration. A key element of this process is the rapid optimization done with the GPU, since it can be completed while the cell is still healthy.

Model calibration on synthetic data

Before illustrating the procedure with actual data, we examine how fitting features of the voltage trace constrains model parameters. That is, we determine how well we can retrieve correct parameters using a fitting procedure based on fitting features of the voltage trace, as well as fitting current under voltage clamp. This is done with simulated or synthetic data, since in this case the values of all parameters used to generate the data are known. We consider the calibration on two different types of simulated electrical activity, tonic spiking and fast bursting, both of which are common types of electrical activity in anterior pituitary cells.

We first simulate the electrical activity using a reference parameter set and extract the features that will represent the set of target features. We then use Latin hypercube sampling to generate 4096 model cells, with different values of the maximal conductances gCa, gK, gSK, gBK, and gleak. We perform up to 10 generations of optimization to find values for these parameters that best fit the features of the reference voltage trace, as discussed in Materials and Methods. The reference parameter sets used to generate spiking and bursting are in Table 1 (default values). Spiking was produced using a low BK conductance (gBK=0.1 nS), and bursting was produced using a larger value (gBK=0.8 nS).

We examine the proximity of the best-fit parameters to the target parameters used to produce the synthetic spiking or bursting data. We define a distance measure as (pipT)/pT, where pi is the estimated parameter and pT is the target value for that parameter. This measure is then the fractional deviation from the target value. A value close to zero signifies almost perfect accuracy, and a value of 1 signifies that the parameter estimated is 100% different from the value of the target parameter.

Fig. 3 shows best-fit solutions for tonic spiking and bursting. Fig. 3 A shows that the best-fit voltage trace completely overlaps that of the target spiking trace; the voltage-clamp currents match very closely (Fig. 3 B) and the parameter distances from the targets (Fig. 3 C) are minimal. The fit is as good and the parameter distances between the best-fit and target parameters are even smaller in the case of a bursting model cell (Fig. 3, DF). This shows that the process of calibrating a model using features of the voltage trace and voltage-clamp data can yield parameter combinations that successfully reproduce a target voltage trace. Few generations are needed, because at each generation we sample a wide region of the parameter space using the parallel computational capabilities of the GPU.

Figure 3.

Figure 3

Calibration on synthetic data. (A and D) Target trace (solid line) and corresponding fit (open triangles) for tonic spiking (A) and bursting (D). (B and E) Target voltage-clamp currents (solid lines) and corresponding fits (open triangles) for tonic spiking (B) and bursting (E). (C and F) Parameter distances for spiking (C) and bursting (F).

We summarize the performance of the calibration process for the spiking and bursting cells, with and without voltage clamp, in Fig. 4. This figure shows, for the best-fit cell, the fitness and the sum of the average absolute parameter distances for the five parameters used in the fitting. The parameter values for the best-fit bursting model cell are closer to the targets (Fig. 4 B, second and fourth bars) than those for the spiking cell (Fig. 4 B, first and third bars), since the bursting pattern is more complex than the spiking pattern, which places more constraints on the parameters. The addition of voltage-clamp data to the calibration process, as well as voltage-trace features, results in a marginal improvement of the fit to the voltage trace (Fig. 4 A), but a great improvement in the accuracy of the parameter estimation (Fig. 4 B).

Figure 4.

Figure 4

Accuracy of calibration depends on the data used and the number of fitting parameters. Each column represents the average of 10 fits. (A) Average fitness score for fits to tonic spiking, bursting, spiking using voltage-clamp (VC) data, and bursting using voltage-clamp data. (B) The average parameter distance (sum of the absolute distances for the five fitting parameters) is greatly reduced when voltage-clamp data are used in the fitting process. (C and D) Fitness and parameter accuracy decline as the number of free parameters is increased. For all fits, we used bursting with voltage-clamp data. Each data point represents the mean of 10 fits, with randomly chosen parameters to be estimated. For each parameter we created a uniform distribution within ±90% of its default value. (C) Fitness decreases as the number of parameters increases. (D) Accuracy of parameter estimation decays (absolute parameter distance increases) as the number of parameters to be estimated increases.

We next consider the relation between the number of parameters to be estimated and the accuracy in estimating them. First, we select the number, N, of parameters to be estimated. We then randomly pick N parameters from all the available model parameters. For each parameter chosen, we define a search space within ±90% of the default value for that parameter. We then run the calibration process for 10 generations and retain the best-fit model. The process is repeated 10 times for each N. Synthetic bursting activity was used as a target.

The results show, not surprisingly, that as the number of parameters increases the quality of the fit decreases and the accuracy in parameter estimation decreases. The impact of increasing parameter number on the fit to the features (Fig. 4 C (vertical axis starts at 0.85)) is much less than the impact on the accuracy of the parameter estimation (Fig. 4 D). However, even when 10 parameters are fit, the mean parameter distance is only 0.4. Of course, different parameters have different impacts on the behavior of the system, as could be deduced by a sensitivity analysis. Parameters with low sensitivity will be harder to estimate than those with high sensitivity, but errors in these parameters will have less impact on qualitative predictions.

Comparing predictive expectations

A model, however sophisticated, will never be exactly like a real cell. There are channels and other cell components not included in the model, and those components that are included have varying degrees of simplification. The calibrated parameters will thus never be absolutely correct. However, what matters most is that the model be complete enough to make nontrivial, testable predictions. Here, we examined whether the calibration process estimates parameter values sufficiently well that testable predictions can be made.

We first established a way to compare how distinct models differ in their ability to generate correct predictions. For each of the six parameters (gCa, gK, gSK, gBK, gleak, and τBK), we increased its value by 50% in 40 simulated model cells, and then determined whether the perturbation resulted in a qualitative change of the electrical activity and if so, of which nature (i.e., spiking to bursting, bursting to spiking, or active to silent). This generated an array containing the values of the qualitative changes for each perturbation in each model cell, which we refer to as the predictive set. The predictive set of the model cell used to produce synthetic data (the target cell) can be compared with those of fitted cells to determine the ability of the fitting process to make correct predictions. The best possible case is that of a calibrated model for which all six perturbations result in a correct prediction. We considered several possible scenarios to assess the predictive ability of the model with the calibration procedure. For each scenario, we scored the percentage of times when at least two, four, or all six predictions were correct.

Scenario 1: No calibration

In the case of a tonically spiking target cell, we compared its predictive set with the predictive set obtained by averaging >20 models, each with five randomly chosen parameters (gCa, gK, gSK, gBK, and gleak), that exhibited tonic spiking. A similar procedure was applied in the case of a bursting target cell. These tests on uncalibrated models enable us to establish a baseline for comparison with calibrated models. The resulting set of predictions (Fig. 5 A CTRL) shows that only about one-third of uncalibrated models can make 2/6 correct predictions (mean, μ = 0.3; standard deviation, σ = 0.46).

Figure 5.

Figure 5

Predictions using different calibration scenarios. The vertical axis shows the fraction of models with ≥2 (black), ≥4 (gray), and 6 (white bars) of 6 correct predictions. (A) First set of bars (CTRL) is for the case where no calibration was used. Second set of bars (Calibration) shows the case where the calibration process was used to fit five parameters. Third set of bars (Missing Current) refers to the case where calibration was used to fit five parameters but a current was missing from the model. (B) CTRL bars refer to no calibration, and all parameters were different from the target. Second set of bars (Incorrect Parameters) refers to the case where the calibration procedure was used to fit five parameters.

Scenario 2: Full calibration

The predictive sets of 40 target cells were compared to the predictive sets of calibrated models with the same free parameters as in the first scenario. In this case, the average percentage of correct predictions (Fig. 5 A, Calibration) is much higher than in the case of predictions made with the uncalibrated models. About 75% of calibrated models make 6/6 correct predictions.

Scenario 3: Missing current

In 40 target cells, we added a fast-inactivating A-type K+ current, IA, which is known to be present in some pituitary cells (28) and can regulate the transition between spiking and bursting (15,29). The IA current is described by the equations

IA=gAa(V)h(VVk), (10)

with inactivation variable h satisfying

τhdhdt=h(V)h, (11)

where

h(V)=[1+exp((vvh)sh)]1 (12)

and

a(V)=[1+exp((vav)sa)]1. (13)

In all target cells, gA was set to 20 nS. We then ran the calibration process on each of the selected cells, but without including the added current. This scenario tests how well predictions can be made even if the model lacks an ionic current that is present in the cell. A significant fraction of models were able to make some correct qualitative predictions. However, the fraction of models making more than 4/6 correct predictions is considerably reduced in this scenario (Fig. 5 A, Missing Current).

Scenario 4: Incorrect parameters

We ran the calibration process using five calibration parameters (gCa, gK, gSK, gBK, and gleak) after introducing changes to all the other parameters (each is subject to a random change of ±10% of its value). The baseline for comparison (the control) was generated as in Scenario 1: if the model cell was spiking (or bursting), we compared its predictive set with the predictive set obtained by averaging >20 randomly chosen model cells exhibiting tonic spiking (or bursting), where each control cell had the same set of incorrect parameters as the set of calibrated cells. Fig. 5 B (CTRL) shows that, with these uncalibrated test cells, very few predictions match the prediction set of the target cells. Thus, although the test cells match the spontaneous behaviors of the target cells, they lead almost uniformly to invalid predictions. When the calibration procedure was applied to the test cells (calibrating five parameters), the results were much improved (Fig. 5 B, Incorrect Parameters). This shows that even if none of the parameter values matches those of the targets, the model can be predictive if the calibration procedure is applied to a subset of the parameters.

Experimental test of the calibration procedure

Here, we provide some examples of the calibration procedure used in experimental settings. We focus our attention on the modulatory effect of the BK current, since it is important for determining whether a cell is spiking or bursting (25,30,31). The dynamic-clamp technique is used to inject an artificial BK current into the cell, as described in Materials and Methods.

Spiking to bursting

In the first experiment, we considered the transition from spiking to bursting (Fig. 6, AD). We asked whether addition of a BK-type current could result in a spiking-to-bursting transition, and if so, what BK maximal conductance would be needed. The experimental cell exhibited spontaneous electrical activity, with spiking and bursting interspersed (not shown). A pharmacological agent was administered that irreversibly blocks the activity of BK channels (paxilline, 1 μM), and a few minutes later the cell displayed tonic spiking (Fig. 6 B, solid trace). This suggests that the BK current was responsible for the bursting mixed in with the spiking in the cell’s spontaneous activity.

Figure 6.

Figure 6

Testing model predictions: bursting from spiking and vice versa via BK modulation. (A and B) Voltage-clamp and voltage-trace model fits. (C) Testing the model prediction (dashed line) that adding 1 nS of BK conductance should convert spiking to bursting. Tested on the same cell used for calibration (solid line). (D) Testing the model prediction that a further increase in BK conductance will increase the duration of the burst active phase. (E and F) Voltage-clamp and voltage-trace model fits. (G) Testing the model prediction that removal of BK conductance should convert bursting to spiking.

With paxilline present, a few minutes of spiking activity were recorded and the features were extracted from the voltage trace. These features and the recorded voltage-clamp protocol (Fig. 6 A, solid trace) were used as a target for the calibration procedure (with nine calibration parameters: C, vm, sm, gCa, gK, τn, gSK, gleak, and Vleak), with the maximal conductance of the BK current (gBK) set to zero. The best-fit model reproduces the period and the mean spike amplitude (Fig. 6 B, dashed trace), as well as the steady-state currents under voltage clamp (Fig. 6 A, dashed trace). Using the model cell, we generated predictions about the effects of adding back a BK with a range of maximum conductances. Simulations of the model cell predicted that addition of BK current would recover bursting with the transition occurring at gBK = 0.5 nS. Further increases of gBK resulted in increasing durations of the burst active phase with little effect on the burst period. We tested these predictions on the same cell using the dynamic clamp. The onset of bursting was first observed when we injected 0.5 nS of BK current (results not shown), and it was mixed with spiking activity. When the BK current injected was increased to 1 nS the bursting activity was consolidated (Fig. 6 C, solid trace). Simulations with the model cell accurately predicted the burst period, the burst amplitude, and the burst duration relative to the silent phase (Fig. 6 C, dashed trace). The model predicted that when the BK conductance was increased to 4 nS, there would be an increase in the active-phase duration with little change in burst period (Fig. 6 D, dashed trace). This was verified when the BK conductance added to the actual cell was increased to 4 nS (Fig. 6 D, solid trace).

Bursting to spiking

In this experiment, we considered the transition from bursting to spiking. We recorded the electrical activity from a cell displaying bursting with a period of ∼0.6 s (Fig. 6 F, solid trace) and used the voltage-trace features and the voltage-clamp data (Fig. 6 E, solid trace) to run the calibration process. We then asked whether subtraction of the estimated BK conductance in the calibrated cell would result in a transition from bursting to spiking. Finally we tested the prediction in the experimental cell.

The calibration procedure (10 free parameters: C, vm, sm, gCa, gK, gBK, τn, gSK, gleak, and Vleak) resulted in a model cell that was consistent with the voltage-clamp data (Fig. 6 E, dashed trace) and the bursting activity (Fig. 6 F, dashed trace). With this calibrated model cell, it is predicted that removing the BK conductance (estimated at gBK = 1.52 nS) should switch the electrical activity from bursting to spiking (Fig. 6 G, dashed trace). We tested this prediction in the same cell by bath application of the BK blocker paxilline (1 μM), and, as predicted, the cell displayed tonic spiking (Fig. 6 G, solid trace).

Interaction between the BK conductance and the BK-channel time constant

In this experiment, we explored how the transition from bursting to spiking is affected by changes to both gBK and the time constant of BK-channel activation (τBK). We previously demonstrated that the ability of a BK current to promote bursting depends on the magnitude of the BK conductance and on the BK-channel activation rate (31). If this activation is not fast enough, the BK current no longer promotes bursting.

We recorded the electrical activity from a cell that exhibits spontaneous tonic spiking (Fig. 7, data) and used part of this trace to compute the features for the calibration procedure (eight calibration parameters: C, gCa, gK, gSK, gBK, kc, gleak, and Vleak). The resulting calibrated cell (Fig. 7, model) matches the period, the shape of the action potential, and the mean amplitude of the experimental cell. Using the model, we explored 1), whether a BK current could promote bursting, and 2), the effect of increasing the BK conductance and the time constant of the BK channel activation. Simulations predicted that the transition to bursting occurs for gBK = 0.2 nS and bursting persists if gBK is increased to 1 nS (Fig. 7, prediction 1). When gBK and τBK are increased to 10 nS and 10 ms, respectively, the model predicts that the duration of the burst active phase should increase, whereas the amplitude should decrease (Fig. 7, prediction 2). Finally, when τBK is increased from 10 to 13 ms, the same addition of BK current (gBK = 10 nS) does not convert spiking to bursting (Fig. 7, prediction 3).

Figure 7.

Figure 7

The model was calibrated to a spiking cell and then several predictions were made and tested with dynamic clamp on the same cell. Prediction 1 was that spikes would convert to bursting when gBK = 1 nS is added. Prediction 2 was that broadening of the active phase and reduction of amplitude would occur when gBK is 10 nS and τBK is increased to 10 ms. Prediction 3was that there would be no conversion to bursting when τBK is 12 ms or more in the added current. The dashed lines indicate breaks in time.

We tested these predictions with the dynamic clamp on the cell used to calibrate the model. The transition to bursting was observed when 0.4 nS of BK conductance was injected (results not shown), as well as when gBK = 1 nS was added (Fig. 7, test 1). Different values of gBK were tested (1, 2, 4, 10, 25, and 100 nS), and bursting oscillations were observed in all cases (results not shown). The value of gBK = 10 nS was chosen to investigate the effect of the time constant of BK-channel opening. Using gBK=10 nS, when the value of τBK was increased from 5 to 10 ms, the burst active phase was increased and the amplitude decreased, as predicted (Fig. 7, test 2). With a longer time constant of τBK = 12 ms, the addition of BK current did not convert the spiking to bursting (Fig. 7, test 3), again consistent with the prediction.

We have evaluated our procedure on six cells so far, for a total of 30 predictions regarding BK and K conductances. Using calibrated models, the percentage of correct predictions (87%) was higher than the percentage of correct predictions using random noncalibrated models (44%).

Discussion

We have presented an approach for confronting heterogeneity in a cell population, wherein we calibrate a model using a single cell and test predictions on that same cell. This has similarities to the approach of Hobbs and Hooper (32), but with our approach the model parameters are estimated while the cell is still being recorded. The speed with which we can find a combination of parameters to match the cell’s activity allows us to test the model on that very same cell.

The fast calibration speed is achieved by using a programmable GPU to inexpensively parallelize computations, and prediction testing is performed using the dynamic-clamp method. The cost to equip a laboratory with these tools is low, ∼5–10% of the price of a patch-clamp setup. Most modern computers come equipped with one GPU, and more can be added; with several GPU units, one could test populations of models with different current combinations. Given these advantages, GPUs are becoming increasingly important in computational biology (33,34).

The number of parameters that can be estimated from noisy data is always limited. Here, we have used a feature-based estimation method (19), because directly fitting a noisy voltage trace is not necessary or desirable. To further constrain parameter values, we have also used voltage-clamp recordings of whole-cell currents. Nevertheless, there is a limit on the number of parameters we can estimate, which places a limit on the level of detail achievable in the model. A possible improvement would be to use wide-dynamic-range voltage-clamp signals (32). Although this could improve the number of parameters we can estimate, there will always be a limit, and a model is always a simplification of the biological system. Thus, we cannot expect to find a unique set of parameters that represents the single cell being studied.

Instead, we seek to develop a model that shares the essential dynamical properties with the cell being investigated. This means that the change in the activity pattern of the model should be qualitatively similar to the change of the cell’s pattern when key parameters, such as maximal conductances, are varied. Here, we looked at the effects of the BK conductance, which has been our recent focus (31). We showed that the models obtained from spiking cells could be converted to bursting with the addition of BK conductance, and using the dynamic-clamp method, we verified these predictions on the same cells that were used to produce the models. We have also shown (using synthetic data) that even if our model does not contain all the conductances present in the cell, it can still produce correct qualitative predictions.

Using this, to our knowledge, new approach it is possible to assemble a population of models, each representing a single individual in a heterogeneous cell population. Each model can be validated using the cell from which it was derived. The ensemble of model cells can then be used to examine the source of heterogeneity in the population and the effects of heterogeneity on the behavior of the population in response to stimuli.

Acknowledgments

We acknowledge Charles Badland for his help with graphic illustrations and Arturo Gonzalez-Iglesias for his help with cell cultures and for critical reading of this manuscript. We also acknowledge Tom Clayton for his help with the GPU coding.

This work was partially supported by National Institutes of Health grant DK43200 (M.T., R.B., J.T.) and by the Wellcome Trust (G.L.)

References

  • 1.Winiger B.P., Wuarin F., Schlegel W. Single cell monitoring of cytosolic calcium reveals subtypes of rat lactotrophs with distinct responses to dopamine and thyrotropin-releasing hormone. Endocrinology. 1987;121:2222–2228. doi: 10.1210/endo-121-6-2222. [DOI] [PubMed] [Google Scholar]
  • 2.Lledo P.M., Guerineau N., Israel J.M. Physiological characterization of two functional states in subpopulations of prolactin cells from lactating rats. J. Physiol. 1991;437:477–494. doi: 10.1113/jphysiol.1991.sp018607. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3.Tomaiuolo M., Bertram R., Tabak J. Investigating heterogeneity of intracellular calcium dynamics in anterior pituitary lactotrophs using a combined modelling/experimental approach. J. Neuroendocrinol. 2010;22:1279–1289. doi: 10.1111/j.1365-2826.2010.02061.x. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.Horta J., Hiriart M., Cota G. Differential expression of Na channels in functional subpopulations of rat lactotropes. Am. J. Physiol. 1991;261:C865–C871. doi: 10.1152/ajpcell.1991.261.5.C865. [DOI] [PubMed] [Google Scholar]
  • 5.Goldman M.S., Golowasch J., Abbott L.F. Global structure, robustness, and modulation of neuronal models. J. Neurosci. 2001;21:5229–5238. doi: 10.1523/JNEUROSCI.21-14-05229.2001. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6.Golowasch J., Goldman M.S., Marder E. Failure of averaging in the construction of a conductance-based neuron model. J. Neurophysiol. 2002;87:1129–1131. doi: 10.1152/jn.00412.2001. [DOI] [PubMed] [Google Scholar]
  • 7.Marder E., Taylor A.L. Multiple models to capture the variability in biological neurons and networks. Nat. Neurosci. 2011;14:133–138. doi: 10.1038/nn.2735. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Sherman A. Dynamical systems theory in physiology. J. Gen. Physiol. 2011;138:13–19. doi: 10.1085/jgp.201110668. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Prinz A.A., Bucher D., Marder E. Similar network activity from disparate circuit parameters. Nat. Neurosci. 2004;7:1345–1352. doi: 10.1038/nn1352. [DOI] [PubMed] [Google Scholar]
  • 10.Foster W.R., Ungar L.H., Schwaber J.S. Significance of conductances in Hodgkin-Huxley models. J. Neurophysiol. 1993;70:2502–2518. doi: 10.1152/jn.1993.70.6.2502. [DOI] [PubMed] [Google Scholar]
  • 11.Van Goor F., Zivadinovic D., Stojilkovic S.S. Dependence of pituitary hormone secretion on the pattern of spontaneous voltage-gated calcium influx. Cell type-specific action potential secretion coupling. J. Biol. Chem. 2001;276:33840–33846. doi: 10.1074/jbc.M105386200. [DOI] [PubMed] [Google Scholar]
  • 12.Prinz A.A., Abbott L.F., Marder E. The dynamic clamp comes of age. Trends Neurosci. 2004;27:218–224. doi: 10.1016/j.tins.2004.02.004. [DOI] [PubMed] [Google Scholar]
  • 13.Sharp A.A., O’Neil M.B., Marder E. Dynamic clamp: computer-generated conductances in real neurons. J. Neurophysiol. 1993;69:992–995. doi: 10.1152/jn.1993.69.3.992. [DOI] [PubMed] [Google Scholar]
  • 14.Nowotny T., Szücs A., Selverston A.I. Models wagging the dog: are circuits constructed with disparate parameters? Neural Comput. 2007;19:1985–2003. doi: 10.1162/neco.2007.19.8.1985. [DOI] [PubMed] [Google Scholar]
  • 15.Tabak J., Toporikova N., Bertram R. Low dose of dopamine may stimulate prolactin secretion by increasing fast potassium currents. J. Comput. Neurosci. 2007;22:211–222. doi: 10.1007/s10827-006-0008-4. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16.Fakler B., Adelman J.P. Control of K(Ca) channels by calcium nano/microdomains. Neuron. 2008;59:873–881. doi: 10.1016/j.neuron.2008.09.001. [DOI] [PubMed] [Google Scholar]
  • 17.Simon S.M., Llinás R.R. Compartmentalization of the submembrane calcium activity during calcium influx and its significance in transmitter release. Biophys. J. 1985;48:485–498. doi: 10.1016/S0006-3495(85)83804-2. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18.Sherman A., Keizer J., Rinzel J. Domain model for Ca2+-inactivation of Ca2+ channels at low channel density. Biophys. J. 1990;58:985–995. doi: 10.1016/S0006-3495(90)82443-7. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19.Ermentrout G.B. SIAM; Philadelphia: 2002. Simulating, Analyzing, and Animating Dynamical Systems: A Guide to XPPAUT for Researchers and Students. [Google Scholar]
  • 20.Druckmann S., Banitt Y., Segev I. A novel multiple objective optimization framework for constraining conductance-based neuron models by experimental data. Front. Neurosci. 2007;1:7–18. doi: 10.3389/neuro.01.1.1.001.2007. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21.McKay M.D., Conover W.J., Beckman R.J. A comparison of three methods for selecting values of input variables in the analysis of output from a computer code. Technometrics. 1979;42:55–61. [Google Scholar]
  • 22.Tashjian A.H., Jr., Yasumura Y., Parker M.L. Establishment of clonal strains of rat pituitary tumor cells that secrete growth hormone. Endocrinology. 1968;82:342–352. doi: 10.1210/endo-82-2-342. [DOI] [PubMed] [Google Scholar]
  • 23.Milescu L.S., Yamanishi T., Smith J.C. Real-time kinetic modeling of voltage-gated ion channels using dynamic clamp. Biophys. J. 2008;95:66–87. doi: 10.1529/biophysj.107.118190. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24.Prinz A.A., Billimoria C.P., Marder E. Alternative to hand-tuning conductance-based models: construction and analysis of databases of model neurons. J. Neurophysiol. 2003;90:3998–4015. doi: 10.1152/jn.00641.2003. [DOI] [PubMed] [Google Scholar]
  • 25.Van Goor F., Li Y.-X., Stojilkovic S.S. Paradoxical role of large-conductance calcium-activated K+ (BK) channels in controlling action potential-driven Ca2+ entry in anterior pituitary cells. J. Neurosci. 2001;21:5902–5915. doi: 10.1523/JNEUROSCI.21-16-05902.2001. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 26.Gonzalez-Iglesias A.E., Jiang Y., Stojilkovic S.S. Dependence of electrical activity and calcium influx-controlled prolactin release on adenylyl cyclase signaling pathway in pituitary lactotrophs. Mol. Endocrinol. 2006;20:2231–2246. doi: 10.1210/me.2005-0363. [DOI] [PubMed] [Google Scholar]
  • 27.Golowasch J., Abbott L.F., Marder E. Activity-dependent regulation of ionic currents in an identified neuron of the stomatogastric ganglion of the crab Cancer borealis. J. Neurosci. 1999;19:31–35. doi: 10.1523/JNEUROSCI.19-20-j0004.1999. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 28.Chung S., Saal D.B., Kaczmarek L.K. Elimination of potassium channel expression by antisense oligonucleotides in a pituitary cell line. Proc. Natl. Acad. Sci. USA. 1995;92:5955–5959. doi: 10.1073/pnas.92.13.5955. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 29.Toporikova N., Tabak J., Bertram R. A-type K+ current can act as a trigger for bursting in the absence of a slow variable. Neural Comput. 2008;20:436–451. doi: 10.1162/neco.2007.08-06-310. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 30.Tsaneva-Atanasova K., Sherman A., Stojilkovic S.S. Mechanism of spontaneous and receptor-controlled electrical activity in pituitary somatotrophs: experiments and theory. J. Neurophysiol. 2007;98:131–144. doi: 10.1152/jn.00872.2006. [DOI] [PubMed] [Google Scholar]
  • 31.Tabak J., Tomaiuolo M., Bertram R. Fast-activating voltage- and calcium-dependent potassium (BK) conductance promotes bursting in pituitary cells: a dynamic clamp study. J. Neurosci. 2011;31:16855–16863. doi: 10.1523/JNEUROSCI.3235-11.2011. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 32.Hobbs K.H., Hooper S.L. Using complicated, wide dynamic range driving to develop models of single neurons in single recording sessions. J. Neurophysiol. 2008;99:1871–1883. doi: 10.1152/jn.00032.2008. [DOI] [PubMed] [Google Scholar]
  • 33.Clayton T.F., Murray A.F., Leng G. Modelling the in vivo spike activity of phasically-firing vasopressin cells. J. Neuroendocrinol. 2010;22:1290–1300. doi: 10.1111/j.1365-2826.2010.02080.x. [DOI] [PubMed] [Google Scholar]
  • 34.Ben-Shalom R., Aviv A., Korngreen A. Optimizing ion channel models using a parallel genetic algorithm on graphical processors. J. Neurosci. Methods. 2012;206:183–194. doi: 10.1016/j.jneumeth.2012.02.024. [DOI] [PubMed] [Google Scholar]

Articles from Biophysical Journal are provided here courtesy of The Biophysical Society

RESOURCES