원시데이터 수집 시스템
선정목록으로

A computationally efficient algorithm for fitting ion channel parameters

관련 수소연료전지 · (5) 연료전지용 수분제어장치(가습기)

기본 정보

저자
  1. Zachary R. Teed — Department of Biomedical Engineering, Washington University, St Louis, MO, United States
  2. Jonathan R. Silva — Department of Biomedical Engineering, Washington University, St Louis, MO, United States
DOI
10.1016/j.mex.2016.11.001
저널
MethodsX
발행년도
2016
발행기관
Elsevier BV
피인용수
20
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1016/j.mex.2016.11.001
토픽
Fuel Cells and Related Materials
OpenAlex ID
W2549077068

평가 내용

관련도
관련
사업분야
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '수소연료전지 > 연료전지용 수분제어장치(가습기)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Continuous time Markov models have been widely used to describe ion channel kinetics, providing explicit representation of channel states and transitions. Fitting models to experimental data remains a computationally demanding task largely due to the high cost of model evaluation. Here, we propose a method to efficiently optimize model parameters and structure. Voltage clamp channel protocols can be decomposed into a series of fixed steps of constant voltage resulting in a set of linear systems of differential equations. Given the linear systems, ODE integration can be swapped for the faster matrix exponential routine. With our parallelized implementation, optimized models are able to reproduce a wide range of experimentally collected data within one minute, a 50 times speedup over ODE integration. •The cost of the objective function is reduced by employing the matrix exponential•The likelihood of convergence is improved by applying synchronous start simulated annealing•The approach was tested by optimizing parameters for a model of the cardiac voltage-gated Na+ channel, NaV1.5, and the KCNQ1 K+ channel.

본문 37,257자

본문 펼치기
MethodsX 3 [(2016)](http://dx.doi.org/10.1016/j.mex.2016.11.001) 577–588 Contents lists available at [ScienceDirect](http://www.sciencedirect.com/science/journal/22150161) # MethodsX journal homepage: www.elsevier.com/locate/mex # A computationally efficient algorithm for fitting ion channel parameters Zachary R. Teed, Jonathan R. Silva* Department of Biomedical Engineering, Washington University, St Louis, MO, United States G R A P H I C A L A B S T R A C T A B S T R A C T Continuous time Markov models have been widely used to describe ion channel kinetics, providing explicit representation of channel states and transitions. Fitting models to experimental data remains a computationally demanding task largely due to the high cost of model evaluation. Here, we propose a method to efficiently optimize model parameters and structure. Voltage clamp channel protocols can be decomposed into a series of fixed steps of constant voltage resulting in a set of linear systems of differential equations. Given the linear systems, ODE integration can be swapped for the faster matrix exponential routine. With our parallelized implementation, optimized models are able to reproduce a wide range of experimentally collected data within one minute, a 50 times speedup over ODE integration. - The cost of the objective function is reduced by employing the matrix exponential - The likelihood of convergence is improved by applying synchronous start simulated annealing - The approach was tested by optimizing parameters for a model of the cardiac voltage-gated Na <sup>+</sup> channel, NaV1.5, and the KCNQ1 K <sup>+</sup> channel. ã 2016 The Author(s). Published by Elsevier B.V. This is an open access article under the CC BY license [(http://](http://creativecommons.org/licenses/by/4.0/) [creativecommons.org/licenses/by/4.0/).](http://creativecommons.org/licenses/by/4.0/) - Corresponding author at: Washington University, Campus Box 1097, 1 Brookings Dr., St. Louis, MO 63130, United States. E-mail addresses: [jonsilva@wustl.edu,](mailto:jonsilva@wustl.edu) [jonsilva@gmail.com](mailto:jonsilva@gmail.com) (J.R. Silva). [http://dx.doi.org/10.1016/j.mex.2016.11.001](http://dx.doi.org/10.1016/j.mex.2016.11.001) 2215-0161/ã 2016 The Author(s). Published by Elsevier B.V. This is an open access article under the CC BY license [(http://](http://creativecommons.org/licenses/by/4.0/) [creativecommons.org/licenses/by/4.0/).](http://creativecommons.org/licenses/by/4.0/) 578 Z.R. Teed, J.R. Silva / MethodsX 3 (2016) 577–588 A R T I C L E I N F O Method name: The matrix exponential method for ion channel parameterization Keywords: Cardiac action potential, Ion channels, Computer modeling Article history: Available online 16 November 2016 Method Following the seminal work of Hodgkin and Huxley in 1952 [1], mechanistic ordinary differential equation (ODE) models have been used to simulate dynamics of excitable systems including neurons, myocytes and pancreatic beta cells [2,3]. A persistent challenge in creating these models is the identification of optimal parameters. This difficulty arises from the multi-dimensionality of the search, the exponential form of the rate equations, and the existence of many local minima. Global search methods such as simulated annealing and genetic algorithms have been applied to identify optimal sets of parameters [4–6]. However, these approaches require significant computational resources. The primary bottleneck for optimization is the numerical solution of ODEs needed to simulate experimentally observed dynamics. When evaluating a large set of models with global searches, this step becomes rate-limiting, and is particularly difficult when the equations become stiff, requiring very small time-steps or complicated implicit schemes [7]. We propose to overcome the ODE barrier by solving these differential equations with the matrix exponential, an approach that has been used to analyze channel kinetics and improve the efficiency of action potential simulations [8,9]. We tested this approach on experimental voltage pulse protocols, optimizing a two discrete-state Markov models of the cardiac Na <sup>+</sup> channel and the KCNQ1 K <sup>+</sup> channel. Optimization was performed using multiple chain simulated annealing [10]. Code has been made publically available at, where demos and [https://github.com/silvalab/MMOptimizer](https://github.com/silvalab/MMOptimizer) instructions on model fitting can be found. Example model graphs and fits to Na <sup>+</sup> experimental data are shown in Fig. 1; K <sup>+</sup> fits are shown in Fig. 2. We used the following voltage pulse protocols for Na <sup>+</sup> model fitting: Voltage Dependent Activation (Fig. 1B): A series of depolarizing pulses were applied from �120 mV to 20 mV in 10 mV increments from a resting potential of �100 mV. The voltage-dependence of channel conductance was found from this protocol by finding the peak current during the pulse and dividing by the driving force (V m � ENa), where V m is the membrane potential and ENa is the reversal potential for Na <sup>+</sup> . Steady State Inactivation (Fig. 1B): Cells were held at �120 mV before being exposed to conditioning pulses ranging from �120 mV to 20 mV in 10 mV increments for 200 ms. Voltage was then stepped to �20 mV and peak current was recorded and normalized by dividing by the maximum current. Recovery from Inactivation (Fig. 1C): Cells were held at �120 mV before being exposed to a �20 mV depolarizing pulse for 200 ms. Cells were then allowed to recover at �120 mV for durations ranging from 1 ms to 1000 ms before a final depolarizing pulse at �20 mV where peak current was recorded and normalized across samples. Rise/Fall Time (Fig. 1D): This protocol replicated Voltage Dependent Activation. Rise (10%-90%) measured the amount of time it took for current to rise from 10% to 90% of the maximum recorded current. Fall (90%-20%) characterized fast inactivation kinetics by measuring the time it took for current to fall from 90% to 20% peak current. Conductance Trace (Fig. 1E): In the final protocol we exposed the cell to a single depolarizing pulse and recorded normalized conductance over 5 ms. Similarly, we used the following voltage pulse protocols for K <sup>+</sup> model fitting: Voltage dependent activation (Fig. 2B): A series of depolarizing pulses were applied from �100 mV to 60 mV in 20 mV increments from a resting potential of �100 mV. The voltage-dependent channel Z.R. Teed, J.R. Silva / MethodsX 3 (2016) 577–588 579 Fig. 1. Overview of Na <sup>+</sup> model fitting results. (A) Architecture of the fitted model, open state is shown in green. (B) Voltage dependent activation (G-V) and steady state inactivation (SSI) model simulations compared with experiment using protocols as described in reference [27]. (C) Recovery from single depolarizing pulse model simulation compared with experiment. (D) Rise time (10–90%) and fall time (90–20%) of normalized conductance from model and experiment. (E) Normalized conductance trace �10 mV depolarizing pulse. (F) Simulated state occupancy from a �10 mV pulse. According to the model, a depolarizing voltage pulse causes the channel to transition from the closed state (S2) through S4 to the conducting state (S1). The channel inactivates by transitioning from the conducting through S5 to the inactive state (S3). conductance was calculated by dividing the peak current by the driving force (V m � EK ), where Vm is the membrane potential and EK is the reversal potential for K <sup>+</sup> . Deactivation (Fig. 2C): Cells were held at �80 mV before exposure to a depolarizing pulse at 60 mV for 2 ms. Voltage was then stepped to conditioning pulses ranging from �120 mV to 0 mV for 4 ms. 580 Z.R. Teed, J.R. Silva / MethodsX 3 (2016) 577–588 Fig. 2. Overview of K <sup>+</sup> model fitting results. (A) Architecture of the fitted model, open state is shown in green. (B) Voltage dependent activation model simulations compared with experiment. (C) Deactivation simulation compared to experiment (D) Rise time (10–90%) of conductance from model and experiment. (E) Normalized conductance trace of �20 mV, 0 mV, and 40 mV depolarizing pulses from a resting potential of �80 mV. (F) Simulated state occupancy from a �10 mV pulse. When exposed to a depolarizing pulse, the model transitions from the closed state (S3) through S4 to the open state (S1). (For interpretation of the references to color in this figure legend, the reader is referred to the web version of this article.) Voltage dependent-channel conductance was calculated by dividing the minimum absolute current by the driving force. Rise Time (Fig. 2D): This protocol replicated Voltage Dependent Activation. Rise (10%-90%) measured the amount of time it took for the current to rise from 10% to 90% of the peak. Z.R. Teed, J.R. Silva / MethodsX 3 (2016) 577–588 581 Conductance Traces (Fig. 2E): Cells were exposed to �20 mV, 0 mV, and 40 mV depolarizing pulses and normalized conductance was recorded over a 4 ms interval. Model structure Models are implemented as a connected graph, a sequence of rate parameters, and a boolean conductivity vector. Each node in the graph represents a discrete model state, with transitions between model states denoted by graph edges. The conductivity vector gives the relative conductance for each state. Models are initialized from the space of random connected graphs using an approach described by Wilson et al. [11]. We begin by constructing a minimum spanning tree by performing a random walk over the graph until all nodes have been visited. Every time an unvisited node is encountered, the edge connecting this node to the previous node is added to the graph. Afterwards, new edges are added with constant probability. Initial rate parameters are drawn from independent normal distributions. If we let e 2 E denote the set of edges and r 2 R the set of rates, the transition matrix Q can be generated as follows: rij; ði; jÞeE Q ij ¼ 0; otherwise <sup>f</sup> <sup>ori</sup> <sup>6¼</sup> <sup>j</sup> ð1Þ X Q ii ¼ ði;kÞeE rik ð2Þ Note that each edge is bidirectional, so ði; jÞeE,ðj; iÞeE. With the transition matrix, the model kinetics can be defined by a single differential equation <u>dx</u> dt <sup>¼</sup> <sup>Qx</sup> ð3Þ where <sup>~</sup> x is the vector of state occupancies. The solution to this ODE can be approximated by using standard solvers such as Runge-Kutta methods [12]. If we limit ourselves to the unconstrained case, we can optimize over all r 2 R rate parameters. However, most ion channels are observed to obey microscopic reversibility, or the reversibility of flow in closed loops [13,14], so we instead limit the search space to the set of models that satisfy this principle. Rather than attempting to solve the constrained optimization problem, we follow the approach outlined by Menon et al. [4], where we optimize over a set of independent rate parameters which can be used to generate models that observe microscopic reversibility. Microscopic reversibility requires that in equilibrium, the transition rates between any two connected states must balance each other [15]. Thus, if ði; jÞ 2 E, the following must hold: rijsi ¼ rjisj ð4Þ where si and sj are the steady state occupancies for states i and j respectively. Taking the log of both sides, Eq. (4) can be written in matrix form - ln rij� - ln rji� ¼ ln�sj� - lnðsiÞ ð5Þ DlnðrÞ ¼ I <sup>T</sup> e <sup>ln</sup> ð <sup>s</sup> Þ ð6Þ where I <sup>T</sup> e <sup>is</sup> <sup>the</sup> <sup>transpose</sup> <sup>of</sup> <sup>the</sup> <sup>even</sup> <sup>columns</sup> <sup>of</sup> <sup>the</sup> <sup>graph’s</sup> <sup>incidence</sup> <sup>and</sup> <sup>D</sup> <sup>is</sup> <sup>a</sup> <sup>E</sup> <sup>�</sup> <sup>2E</sup> <sup>difference</sup> matrix with 8 < 1; j ¼ 2i �1; j ¼ 2i þ 1 0; otherwise Dij ¼ �1; j ¼ 2i þ 1 ð7Þ : 582 Z.R. Teed, J.R. Silva / MethodsX 3 (2016) 577–588 This forms a system of equations with 2E unknowns and E equations. To solve for R, we need an additional E independent equations. A simple choice is to define a new variable k to be the product of forward and backward rates kij ¼ rijrji ð8Þ - - - ln kij� ¼ ln rij� þ ln rji ð9Þ or again written in matrix form absðDÞlnðrÞ ¼ lnðkÞ ð10Þ Combining Eq. (9) with Eq. (6) gives an independent linear systems of equations with 2E variables and 2E equations. - - D lnðrÞ ¼ I <sup>T</sup> e D absðDÞ - I <sup>T</sup> e <sup>ln</sup> ð <sup>s</sup> Þ ð11Þ I <sup>T</sup> e <sup>ln</sup> ð <sup>s</sup> Þ lnðkÞ - D ��1 ITe <sup>ln</sup> ð <sup>s</sup> Þ absðDÞ lnðkÞ D lnðrÞ ¼ absðDÞ - ITe <sup>ln</sup> ð <sup>s</sup> Þ ð12Þ Of course, we expect the elements of the rate vector to be voltage-dependent, but microscopic reversibility must also hold for all values of voltage. Eq. (12) shows that lnðrÞ is linear in terms of lnðsÞ and lnðkÞ. Thus, we can define sðvÞ and kðvÞ to the exponent of a linear operation siðvÞ ¼ expðf ðvÞ - aiÞ ð13Þ - kijðvÞ ¼ exp f ðvÞ - bij ð14Þ where f ðvÞ is a vector valued function of voltage, and a; b are vectors of rate parameters which are subject to optimization. Substituting Eqs. (13) and (14) into Eq. (12) - ��1� D I <sup>T</sup> e - ��1 I <sup>T</sup> e <sup>a</sup> f ðvÞ <sup>T</sup> ð15Þ <sup>T</sup> e <sup>a</sup> b - ��1� D I <sup>T</sup> e D lnðrÞ ¼ absðDÞ 1� - I <sup>T</sup> e <sup>af</sup> <sup>ðvÞT</sup> ¼ D bf ðvÞ <sup>r</sup> absðDÞ <sup>T</sup> e <sup>af</sup> <sup>ðvÞT</sup> bf ðvÞ <sup>r</sup> Substituting the voltage constant part of Eq. (15) for u - D ��1 ITe <sup>a</sup> D u ¼ absðDÞ - ITe <sup>a</sup> - ð16Þ b - rðvÞ ¼ exp u - f ðvÞ <sup>T</sup> ð17Þ The results obtained in Eq. (17) can be used to generate the transition matrix as shown in Eq. (2). Because the rate vector is the result of linear operations on s and k it is of the same form as s and k. Voltage dependence In the model, transition rates are given as the exponent of the inner product of a vector valued voltage function and the model parameters. rðvÞ ¼ e <sup>f</sup> ð <sup>v</sup> Þ�u ð18Þ Any rate function that can be written in this form can be made to satisfy microscopic reversibility by the method previously described. The simplest voltage function is a linear model motivated by the Z.R. Teed, J.R. Silva / MethodsX 3 (2016) 577–588 583 constant temperature Eyring rate theory [16], with f ðvÞ ¼ ½ 1 v �. The transition rate then becomes rðvÞ ¼ e <sup>u1þvu2</sup> ð19Þ In practice, the linear model worked well. We were able to obtain good fits for all provided voltage clamp protocols. Nonetheless, the linear model is prone to stiff differential equations. As membrane voltage becomes increasingly large (for u2 - 0) or increasingly small (for u1 < 0), the rðvÞ becomes exponentially larger, often resulting in physically implausible transition rate. A simple solution would be to bound rðvÞ; however, in models where the rates are not linearly independent microscopic reversibility could be violated. Another proposed voltage function extends the linear model by adding higher order polynomial terms [17], with f iðvÞ ¼ v <sup>i�1</sup> and rðvÞ ¼ e <sup>u1þu2vþ...þunvn�1</sup> . We test both second order expansions of this form. The higher order terms gave the model more expressive power and resulted in significantly reduced fitting error. Regardless, the polynomial model showed signs of severe overfitting. Even slight modifications of the protocol parameters resulted in very different behavior, making models ill-suited for larger scale simulations. Finally, we attempted a third voltage dependence function in attempt to circumvent some of the limitations of the linear model by bounding transitions rates while not violating microscopic reversibility. The proposed function is in the form - f ðvÞ ¼ 1 sigð <sup><u>v</u></sup> <sup><u>�</u></sup> <sup><u>a</u></sup> Þ ð20Þ b where sig is the sigmoid function and a and b are fixed parameters shared across all rates. In regions where v - a, the sigmoid model closely approximates the linear model; however, at large or small voltages, the sigmoid function becomes bounded limiting the maximum rate and reducing ODE stiffness. Additionally, this function provided better fits than the linear model. Cost function evaluation Each of the fitted voltage clamp protocols consist of a sequence of discrete voltage steps. The cost function is computed by simulating each of the protocols, recording the results, and using squared error as a metric to evaluate model performance. In this paper, we look at two different ways to simulate the model: traditional ODE solvers and the matrix exponential. A flow chart illustrating the cost function evaluation for both approaches is show in Fig. 3. As the execution time profiling results in Fig. 4A show, ODE integration is the clear bottleneck, accounting for as much as 99% of execution time. ODE solvers were designed to solve a broad class of problems x_ ¼ f ðx; tÞ; xð0Þ ¼ x0 ð21Þ Yet, voltage clamp protocols commonly consist of a series of discrete voltage steps, reducing the system from x <sup>_</sup> ¼ QðvðtÞÞx tox <sup>_</sup> ¼ QðvÞx where QðvÞ is constant over the time t0½k� to t1½k�. We expect that standard ODE solvers are not able to take full advantage of the linear nature of the constant voltage steps. In contrast, using the matrix exponential, the solution is given as xðtÞ ¼ e <sup>tQ</sup> x0 [23]. The matrix exponential can further be used to sample state occupancy over a series of fixed time steps - - x t þ nDt� ¼ Q nxðtÞ ¼ Qx t þ ðn - 1ÞDt ð22Þ showing that it can effectively replace ODE solvers in our cost function evaluation routine. In our implementation we used ExpoKit’s Padé approximation routine [19,23] The resulting speedup is substantial—using a single thread on an Intel Xeon E5-2630 processor, the matrix exponential (EXPM) implementation converges in significantly less time than ode integration (ODE) as shown in Fig. 4B. With a single thread, the EXPM implementation was able fit models in the order of five minutes compared to five hours, a speed-up of more than 50�. Synchronous chain simulated annealing can easily be modified to use more than a single thread. Using 12 threads, model fitting shown in Fig. 1 can be performed in under a minute. 584 Z.R. Teed, J.R. Silva / MethodsX 3 (2016) 577–588 Fig. 3. Cost function evaluation using matrix exponential/ODE solver. The cost function takes the model and protocol definition as input and outputs the squared error between the model and experimental outputs. Detailed information and instructions regarding protocol encoding can be found [https://github.com/silvalab/MMOptimizer.](https://github.com/silvalab/MMOptimizer) The main procedure is repeated for each voltage trace in each protocol. The error for each trace is computed by comparing the simulation outputs to experimentally collected values; whether or not a step produces any output is encoded in the protocol design. First, the steady state occupancy is computed for the resting membrane potential. Next, we iterate through each step in the voltage clamp protocol, beginning at t0½k� and ending with t1½k� with step voltage denoted by v½k�. Qðv½k�Þ is calculated using Eq (2). If the current step does not produce output, we simply compute the state occupancy x½k� at t1½k�. Using ODE integrators we can approximate x½k� by solving x_ ¼ Qðv½k�Þx with initial state xð0Þ ¼ x½k - 1�. Using the matrix exponential we simply compute x½k� ¼ e <sup>Q</sup> ð <sup>t1</sup> ½ <sup>k</sup> ��t0 ½k�Þx½k - 1�. On the other hand, if the step does produce output, we are forced to use a small step size Dt to sample state occupancy over the range t0½k� to t1½k�. Using the ODE solver, intermediate state occupancy is recorded for each time step for all is:t:iDt < t1 - t0. When using the matrix exponential, H is precomputed as H ¼ e <sup>Q�Dt</sup> . Each step is then computed by ‘powering up’ the matrix exponential y½i� ¼ H - y½i - 1�. Both methods then share the next step in which normalized conductivity is computed by performing the dot product of the state occupancy matrix y with the conductivity vector G. This giving the normalized channel conductivity over the timespan t0½k� to t1½k�, providing the raw data necessary to output derived features such as peak conductance, rate constants, and normalized traces. Z.R. Teed, J.R. Silva / MethodsX 3 (2016) 577–588 585 Fig. 4. (A) Execution time profile of model fitting. When using ode solvers, channel simulation accounts for 99% of execution time, compared with 46% in the EXPM implementation. (B) Average model error as a function of execution time for both EXPM and ODE implementations using a single process. Error converges in approximately 300 min when using ode integration; this time is reduced to five minutes with matrix exponentiation. These results agree with [23] where ODE methods were shown to take significantly longer and obtain lower overall accuracy. Fig. 5. (A) Impact of stiffness penalty on fitting error. The stiffness penalty imposes an additional cost on models proportional to the largest eigenvalue of the rate matrix for a range of voltages. (B) Impact of stiffness penalty on ODE integration time. Following the experiment shown in C, the fitted models were again run over the protocols except using an ODE solver. The values show the average per model execution time. Finally, we evaluated a stiffness penalty on the models proportional to the model’s largest eigenvalue over a range of voltages (–120 mV to +20 mV). This penalty constrains the search space and resulting models have slightly higher cost (Fig. 5A). Nonetheless, adding a small penalty proved to be important. Following optimization, we reran the fitted models over the protocols, using ODE solvers rather than the matrix exponential (Fig. 5B). Models with no added penalty took over 50 x longer due to their stiff differential equations. In whole cell simulations, membrane voltage is no longer a series of discrete steps, but rather a continuous variable requiring ODE integration. This penalty ensures that fitted models can be efficiently used in larger scale simulations, while constraining transition rates to physically plausible values. Optimization Similar to Menon et al., we optimize over model architecture as well rate parameters, maintaining microscopic reversibility by encoding rates as a set of independent parameters. Instead of a genetic algorithm, we use simulated annealing to explore the combinatorial search space. Genetic algorithms involve a recombination step, where individuals are selected to form offspring for the next generation [22]. With like structured models, new model rates can simply be drawn from a random distribution parametrized by the parents’ rates. When models have different structures (i.e. different numbers of nodes and connectivity), recombination is less obvious. One option is to only perform recombination over models with the same structure. However, we observed this leads to a collapsed structural search 586 Z.R. Teed, J.R. Silva / MethodsX 3 (2016) 577–588 space, and leads to unsatisfactory local optima. We obtained better convergence results in much less time using simulated annealing. Specifically, we used synchronous chain simulated annealing for model optimization, considering the tradeoff between execution time and model error. Simulated annealing is an iterative stochastic search algorithm which combines local Monte Carlo search with an annealing schedule [10]. It probabilistically guarantees a globally optimal solution provided an infinitely long cooling schedule [20]; however, in practice, we wish to fit good suboptimal models quickly. At each iteration we generate a new model proposal by perturbing the current model m <sup>0</sup> - m. Perturbations are reversible and can alter both model structure and rate parameters taking one or more of the following forms: 1. State Addition: A new state is added to the model. A random edge is formed connecting the new state to a random state drawn from the existing model. The new rate parameters governing the edge and state are drawn from a normal distribution. 2. State Removal: A state is randomly chosen from the existing model and removed; all edges connecting this state are also removed. If removal results in a disconnected graph, the graph is reconnected by forming a random minimum spanning tree over the disconnected components. 3. Edge Addition: Two model states are randomly selected, if these states are not already connected a new edge is formed. Rate parameters are drawn from a normal distribution. 4. Edge Removal: A random model edge is selected and removed. If removal results in a disconnected graph, the graph is reconnected similar to (2). 5. Rate Perturbation: Each rate parameter has probability p of being updated. Updates are performed by adding a random variable drawn from a zero mean normal distribution to the current parameter. Thus, for rate parameter ui ui ¼ ui þ xiyi where xi - BerðpÞ; yi - Nð0; sÞ ð23Þ The locality of the perturbation can be modified by adjusting hyper-parameters p and s. Every perturbation performs a rate update—other structural modifications are performed with a predefined probability. Following perturbation, the cost function for the new model is computed. The new model is accepted with probability �exp�� <sup><u>e0 �</u></sup> <sup><u>e</u></sup> �; 1� ð24Þ - Pðe; e <sup>0</sup> ; TÞ ¼ max exp - <sup><u>e0 �</u></sup> <sup><u>e</u></sup> T where e is the previous model error, e <sup>0</sup> is the perturbed model error, and T the annealing temperature [21]. As the temperature decreases, T ! 0, the probability of making an uphill transition, e <sup>0</sup> - e, becomes increasingly small. In our implementation, we adopt the simple exponential annealing schedule [21] with TðtÞ ¼ T0g <sup>t</sup> or equivalently TðtÞ ¼ Tðt - 1Þg, where g governs the rate of annealing and initial temperature T 0. To avoid getting trapped in local optima and increase the probability of convergence, we run multiple synchronous chains [10]. Rather than a single model, we maintain a set of models, each with their own search path. Model perturbation and acceptance are both performed individually for each chain. The optimization procedure attempts to fit all the voltage clamp protocols while minimizing model complexity. We found that in many cases, several models of similar complexity were able to achieve approximately the same fitting error. Hence, different runs often converged to different model structures. Since model structure is an optimization variable, we make no attempt to distinguish the types of channel states, rather such states naturally emerge as a product of the optimization. Open states can easily be identified by examine the conductivity vector. Similarly, closed and inactivated Z.R. Teed, J.R. Silva / MethodsX 3 (2016) 577–588 587 states can be identified by exposing models to a depolarizing test pulse (Fig. 1F), and looking at the transition of state occupancy. Conclusions Identification of continuous Markov model parameters is a challenging problem due to a large search space and a high cost of function evaluation, often requiring significant computational resources. We propose to overcome these limitations by efficiently encoding the cost function as a sequence of discrete voltage steps, solvable using the matrix exponential. Our implementation successfully captures channel kinetics without requiring excess resources or time. Overall, we observed a 50� speedup when using the matrix exponential implementation of the cost function. One a single processor, optimization could be performed in only 10 min—extended to 12 cores, convergence time dropped to under a 2 min. The encoding of the cost function can be generalized to other voltage clamp protocols, allowing our implementation to be easily adapted to fit other channels types and data. Modern biophysics methods are beginning to reveal molecular details of channel function [24–27], the nanoscale consequences of inherited mutations [27,28], and the precise mechanisms of smallmolecule drug regulation [29]. To rigorously describe these molecular details, the complexity of models and the burden of optimization will increase substantially, necessitating advanced optimization methods and computer hardware. As such we expect that much future work will be needed to develop the methods required to create these models. The matrix exponential method for ion channel parameterization Acknowledgments The authors are thankful to Taylor Voelker and Angela Schubert for help with figure composition, and the laboratory of Prof. Jianmin Cui for providing K <sup>+</sup> channel data. This work was supported by a James M. McKelvey Undergraduate Research Award in Engineering (Z.T.) and a Burroughs Wellcome Fund Career Award at the Scientific Interface 101029 and an American Heart Association grant 16GRNT31200025 (J.S.). MethodsX thanks the reviewers of this article for taking the time to provide valuable feedback. References [1] Alan L. Hodgkin, Andrew F. Huxley, A quantitative [description](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0005) of membrane current and its application to conduction and excitation in nerve, J. Physiol. 4 (1952) 500. [2] Yoram Rudy, Jonathan R. Silva, Computational biology in [the](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0010) study of cardiac ion channels and cell electrophysiology, Q. Rev. Biophys. 39 [(01)](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0010) (2006) 57–116. [3] Jonathan R. Silva, Paige Cooper, Colin G. Nichols, Modeling K, [ATP-dependent](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0015) excitability in pancreatic islets, Biophys. J. 107 (9) (2014) [2016–2026.](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0015) [4] Vilas Menon, Nelson Spruston, William L. Kath, A [state-mutating](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0020) genetic algorithm to design ion-channel models, Proc. Natl. Acad. Sci. U. S. A. [106](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0020) (39) (2009) 16829–16834. [5] Meron Gurkiewicz, Alon Korngreen, A numerical [approach](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0025) to ion channel modelling using whole-cell voltage-clamp recordings and a genetic algorithm, [PLoS](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0025) Comput. Biol. 3 (8) (2007) e169. [6] Lorin S. Milescu, Gustav Akk, Frederick Sachs, Maximum [likelihood](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0030) estimation of ion channel kinetics from macroscopic currents, Biophys. J. [88](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0030) (4) (2005) 2494–2515. [7] David Garfinkel, Carl B. Marbach, Norman Zalmon Shapiro, [Stiff](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0035) differential equations, Annu. Rev. Biophys. Bioeng. 6 (1) (1977) [525–542.](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0035) [8] David Colquhoun, Alan G. Hawkes, A Q-matrix cookbook, [Single-Channel](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0040) Recording, Springer, US, 1995, pp. 589–633. [9] Tomáš Starý, Vadim N. Biktashev, Exponential integrators for a Markov chain model of the fast sodium channel of cardiomyocytes, IEEE Trans. [Biomed.](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0045) Eng. 62 (4) (2015) 1070–1076. [10] Soo-Young Lee, Kyung Geun Lee, Synchronous and [asynchronous](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0050) parallel simulated annealing with multiple Markov chains, IEEE Trans. Parallel [Distrib.](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0050) Syst. 7 (10) (1996) 993–1008. [11] David Bruce Wilson, Generating random spanning trees [more](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0055) quickly than the cover time, Proceedings of the Twenty eighth Annual ACM Symposium [on](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0055) Theory of Computing, ACM, 1996. [12] Uri M. Ascher, Linda R. Petzold, Computer Methods for Ordinary Differential Equations and Differential-algebraic Equations, vol. 61, Siam, 1998. [13] David Colquhoun, et al., How to impose microscopic [reversibility](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0065) in complex reaction mechanisms, Biophys. J. 86 (6) (2004) [3510–3518.](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0065) 588 Z.R. Teed, J.R. Silva / MethodsX 3 (2016) 577–588 [14] Brad S. Rothberg, Karl L. Magleby, Testing for detailed [balance](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0070) (microscopic reversibility in ion channel gating, Biophys. J. 80 (6) [(2001)](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0070) 3025. [15] Frederick P. Boynton, Detailed balance and [microscopic](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0075) reversibility, J. Chem. Phys. 40 (10) (1964) 3124. [16] Peter Hänggi, Peter Talkner, Michal Borkovec, Reaction-rate [theory:](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0080) fifty years after Kramers, Rev. Mod. Phys. 62 (2) (1990) [251.](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0080) [17] Alain Destexhe, John R. Huguenard, Nonlinear [thermodynamic](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0085) models of voltage-dependent currents, J. Comput. Neurosci. 9 (3) [(2000)](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0085) 259–270. [19] Roger Sidje, Expokit: a software package for computing [matrix](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0090) exponentials, ACM Trans. Math. Softw. (TOMS) 24 (1) (1998) [130–156.](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0090) [20] Lester Ingber, Simulated annealing: practice versus theory, Math. Comput. Model. 18 (11) (1993) 29–57. [21] Scott Kirkpatrick, C. Daniel Gelatt, Mario P. Vecchi, [Optimization](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0100) by simulated annealing, Science 220 (4598) (1983) 671– [680.](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0100) [22] Kalyanmoy Deb, et al., A fast and elitist multiobjective [genetic](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0105) algorithm: NSGA-II, IEEE Trans. Evol. Comput. 6 (2) (2002) [182–197.](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0105) [23] Cleve Moler, Charles Van Loan, Nineteen dubious ways to [compute](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0110) the exponential of a matrix, SIAM Rev. 20 (4) (1978) [801–836.](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0110) [24] Wandi Zhu, Zoltan Varga, Jonathan R. Silva, Molecular [motions](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0115) that shape the cardiac action potential: insights from voltage clamp fluorometry, Prog. [Biophys.](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0115) Mol. Biol. 120 (1) (2016) 3–17. [25] Joshua B. Brettmann, et al., Role of protein dynamics in ion [selectivity](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0120) and allosteric coupling in the NaK channel, Proc. Natl. Acad. Sci. U. S. A. 112 [(50)](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0120) (2015) 15366–15371. [26] Michael W. Rudokas, et al., The Xenopus oocyte cut-open [vaseline](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0125) gap voltage-clamp technique with fluorometry, JoVE 85 [(2013).](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0125) [27] Zoltan Varga, et al., Direct measurement of cardiac Na+ [channel](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0130) conformations reveals molecular pathologies of inherited mutations, Circ. Arrhythmia [Electrophysiol.](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0130) 8 (5) (2015) 1228–1239. [28] Jonathan R. Silva, Steve A.N. Goldstein, Voltage-sensor [movements](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0135) describe slow inactivation of voltage-gated sodium channels II: a periodic paralysis mutation in [NaV1.](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0135) 4 (L689I), J. Gen. Physiol. 141 (3) (2013) 323–334. [29] Yukiko Muroi, Baron Chanda, Local anesthetics disrupt [energetic](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0140) coupling between the voltage-sensing segments of a sodium channel, J. Gen. [Physiol.](http://refhub.elsevier.com/S2215-0161%0x2816%0x2930039-5/sbref0140) 133 (1) (2009) 1–15.

섹션 본문 58문단 · 21,218자

(제목 없음)

1Continuous time Markov models have been widely used to describe ion channel kinetics, providing explicit representation of channel states and transitions. Fitting models to experimental data remains a computationally demanding task largely due to the high cost of model evaluation. Here, we propose a method to efficiently optimize model parameters and structure. Voltage clamp channel protocols can be decomposed into a series of fixed steps of constant voltage resulting in a set of linear systems of differential equations. Given the linear systems, ODE integration can be swapped for the faster matrix exponential routine. With our parallelized implementation, optimized models are able to reproduce a wide range of experimentally collected data within one minute, a 50 times speedup over ODE integration.The cost of the objective function is reduced by employing the matrix exponential The likelihood of convergence is improved by applying synchronous start simulated annealing The approach was tested by optimizing parameters for a model of the cardiac voltage-gated Na + channel, Na V 1.5, and the KCNQ1 K + channel.

Method

2Following the seminal work of Hodgkin and Huxley in 1952 [1], mechanistic ordinary differential equation (ODE) models have been used to simulate dynamics of excitable systems including neurons, myocytes and pancreatic beta cells [2,3]. A persistent challenge in creating these models is the identification of optimal parameters. This difficulty arises from the multi-dimensionality of the search, the exponential form of the rate equations, and the existence of many local minima. Global search methods such as simulated annealing and genetic algorithms have been applied to identify optimal sets of parameters [4][5][6]. However, these approaches require significant computational resources.

3The primary bottleneck for optimization is the numerical solution of ODEs needed to simulate experimentally observed dynamics. When evaluating a large set of models with global searches, this step becomes rate-limiting, and is particularly difficult when the equations become stiff, requiring very small time-steps or complicated implicit schemes [7].

4We propose to overcome the ODE barrier by solving these differential equations with the matrix exponential, an approach that has been used to analyze channel kinetics and improve the efficiency of action potential simulations [8,9]. We tested this approach on experimental voltage pulse protocols, optimizing a two discrete-state Markov models of the cardiac Na + channel and the KCNQ1 K + channel. Optimization was performed using multiple chain simulated annealing [10]. Code has been made publically available at, where demos and https://github.com/silvalab/MMOptimizer instructions on model fitting can be found. Example model graphs and fits to Na + experimental data are shown in Fig. 1; K + fits are shown in Fig. 2.

5We used the following voltage pulse protocols for Na + model fitting: Voltage Dependent Activation (Fig. 1B): A series of depolarizing pulses were applied from À120 mV to 20 mV in 10 mV increments from a resting potential of À100 mV. The voltage-dependence of channel conductance was found from this protocol by finding the peak current during the pulse and dividing by the driving force (V m À E Na ), where V m is the membrane potential and E Na is the reversal potential for Na + .

6Steady State Inactivation (Fig. 1B): Cells were held at À120 mV before being exposed to conditioning pulses ranging from À120 mV to 20 mV in 10 mV increments for 200 ms. Voltage was then stepped to À20 mV and peak current was recorded and normalized by dividing by the maximum current.

7Recovery from Inactivation (Fig. 1C): Cells were held at À120 mV before being exposed to a À20 mV depolarizing pulse for 200 ms. Cells were then allowed to recover at À120 mV for durations ranging from 1 ms to 1000 ms before a final depolarizing pulse at À20 mV where peak current was recorded and normalized across samples.

8Rise/Fall Time (Fig. 1D): This protocol replicated Voltage Dependent Activation. Rise (10%-90%) measured the amount of time it took for current to rise from 10% to 90% of the maximum recorded current. Fall (90%-20%) characterized fast inactivation kinetics by measuring the time it took for current to fall from 90% to 20% peak current.

9Conductance Trace (Fig. 1E): In the final protocol we exposed the cell to a single depolarizing pulse and recorded normalized conductance over 5 ms.

10Similarly, we used the following voltage pulse protocols for K + model fitting:

11Voltage dependent activation (Fig. 2B): A series of depolarizing pulses were applied from À100 mV to 60 mV in 20 mV increments from a resting potential of À100 mV. The voltage-dependent channel conductance was calculated by dividing the peak current by the driving force (V m À E K ), where V m is the membrane potential and E K is the reversal potential for K + .

12Deactivation (Fig. 2C): Cells were held at À80 mV before exposure to a depolarizing pulse at 60 mV for 2 ms. Voltage was then stepped to conditioning pulses ranging from À120 mV to 0 mV for 4 ms. Voltage dependent-channel conductance was calculated by dividing the minimum absolute current by the driving force.

13Rise Time (Fig. 2D): This protocol replicated Voltage Dependent Activation. Rise (10%-90%) measured the amount of time it took for the current to rise from 10% to 90% of the peak. Rise time (10-90%) of conductance from model and experiment. (E) Normalized conductance trace of À20 mV, 0 mV, and 40 mV depolarizing pulses from a resting potential of À80 mV. (F) Simulated state occupancy from a À10 mV pulse. When exposed to a depolarizing pulse, the model transitions from the closed state (S3) through S4 to the open state (S1). (For interpretation of the references to color in this figure legend, the reader is referred to the web version of this article.)

14Conductance Traces (Fig. 2E): Cells were exposed to À20 mV, 0 mV, and 40 mV depolarizing pulses and normalized conductance was recorded over a 4 ms interval.

Model structure

15Models are implemented as a connected graph, a sequence of rate parameters, and a boolean conductivity vector. Each node in the graph represents a discrete model state, with transitions between model states denoted by graph edges. The conductivity vector gives the relative conductance for each state. Models are initialized from the space of random connected graphs using an approach described by Wilson et al. [11]. We begin by constructing a minimum spanning tree by performing a random walk over the graph until all nodes have been visited. Every time an unvisited node is encountered, the edge connecting this node to the previous node is added to the graph. Afterwards, new edges are added with constant probability. Initial rate parameters are drawn from independent normal distributions.

16If we let e 2 E denote the set of edges and r 2 R the set of rates, the transition matrix Q can be generated as follows:

17Note that each edge is bidirectional, so i; j ð ÞeE, j; i ð ÞeE. With the transition matrix, the model kinetics can be defined by a single differential equation

18wherex is the vector of state occupancies. The solution to this ODE can be approximated by using standard solvers such as Runge-Kutta methods [12]. If we limit ourselves to the unconstrained case, we can optimize over all r 2 R rate parameters. However, most ion channels are observed to obey microscopic reversibility, or the reversibility of flow in closed loops [13,14], so we instead limit the search space to the set of models that satisfy this principle. Rather than attempting to solve the constrained optimization problem, we follow the approach outlined by Menon et al. [4], where we optimize over a set of independent rate parameters which can be used to generate models that observe microscopic reversibility.

19Microscopic reversibility requires that in equilibrium, the transition rates between any two connected states must balance each other [15]. Thus, if i; j ð Þ 2 E, the following must hold:

20where s i and s j are the steady state occupancies for states i and j respectively. Taking the log of both sides, Eq. (4) can be written in matrix form

21where I T e is the transpose of the even columns of the graph's incidence and D is a E Â 2E difference matrix with

22This forms a system of equations with 2E unknowns and E equations. To solve for R, we need an additional E independent equations. A simple choice is to define a new variable k to be the product of forward and backward rates

23or again written in matrix form

24Combining Eq. (9) with Eq. (6) gives an independent linear systems of equations with 2E variables and 2E equations.

25Of course, we expect the elements of the rate vector to be voltage-dependent, but microscopic reversibility must also hold for all values of voltage. Eq. (12) shows that ln r ð Þ is linear in terms of ln s ð Þ and lnðkÞ. Thus, we can define s v ð Þ and k v ð Þ to the exponent of a linear operation

26where f v ð Þ is a vector valued function of voltage, and a; b are vectors of rate parameters which are subject to optimization. Substituting Eqs. (13) and (14) into Eq. (12) lnðrÞ ¼ D absðDÞ

27Substituting the voltage constant part of Eq. (15) for u

28r

29The results obtained in Eq. (17) can be used to generate the transition matrix as shown in Eq. (2). Because the rate vector is the result of linear operations on s and k it is of the same form as s and k.

Voltage dependence

30In the model, transition rates are given as the exponent of the inner product of a vector valued voltage function and the model parameters.

31Any rate function that can be written in this form can be made to satisfy microscopic reversibility by the method previously described. The simplest voltage function is a linear model motivated by the constant temperature Eyring rate theory [16]

32The transition rate then becomes

33In practice, the linear model worked well. We were able to obtain good fits for all provided voltage clamp protocols. Nonetheless, the linear model is prone to stiff differential equations. As membrane voltage becomes increasingly large (for u 2 > 0) or increasingly small (for u 1 < 0), the r v ð Þ becomes exponentially larger, often resulting in physically implausible transition rate. A simple solution would be to bound r v ð Þ; however, in models where the rates are not linearly independent microscopic reversibility could be violated.

34Another proposed voltage function extends the linear model by adding higher order polynomial terms [17], with f i v ð Þ ¼ v iÀ1 and r v ð Þ ¼ e u 1 þu 2 vþ...þunv nÀ1 . We test both second order expansions of this form. The higher order terms gave the model more expressive power and resulted in significantly reduced fitting error. Regardless, the polynomial model showed signs of severe overfitting. Even slight modifications of the protocol parameters resulted in very different behavior, making models ill-suited for larger scale simulations.

35Finally, we attempted a third voltage dependence function in attempt to circumvent some of the limitations of the linear model by bounding transitions rates while not violating microscopic reversibility. The proposed function is in the form

36where sig is the sigmoid function and a and b are fixed parameters shared across all rates. In regions where v % a, the sigmoid model closely approximates the linear model; however, at large or small voltages, the sigmoid function becomes bounded limiting the maximum rate and reducing ODE stiffness. Additionally, this function provided better fits than the linear model.

Cost function evaluation

37Each of the fitted voltage clamp protocols consist of a sequence of discrete voltage steps. The cost function is computed by simulating each of the protocols, recording the results, and using squared error as a metric to evaluate model performance. In this paper, we look at two different ways to simulate the model: traditional ODE solvers and the matrix exponential. A flow chart illustrating the cost function evaluation for both approaches is show in Fig. 3.

38As the execution time profiling results in Fig. 4A show, ODE integration is the clear bottleneck, accounting for as much as 99% of execution time. ODE solvers were designed to solve a broad class of problems

39Yet, voltage clamp protocols commonly consist of a series of discrete voltage steps, reducing the system from _

40x

41We expect that standard ODE solvers are not able to take full advantage of the linear nature of the constant voltage steps. In contrast, using the matrix exponential, the solution is given as x t ð Þ ¼ e tQ x 0 [23]. The matrix exponential can further be used to sample state occupancy over a series of fixed time steps

42showing that it can effectively replace ODE solvers in our cost function evaluation routine. In our implementation we used ExpoKit's Padé approximation routine [19,23] The resulting speedup is substantial-using a single thread on an Intel Xeon E5-2630 processor, the matrix exponential (EXPM) implementation converges in significantly less time than ode integration (ODE) as shown in Fig. 4B. With a single thread, the EXPM implementation was able fit models in the order of five minutes compared to five hours, a speed-up of more than 50Â. Synchronous chain simulated annealing can easily be modified to use more than a single thread. Using 12 threads, model fitting shown in Fig. 1 can be performed in under a minute. Fig. 3. Cost function evaluation using matrix exponential/ODE solver. The cost function takes the model and protocol definition as input and outputs the squared error between the model and experimental outputs. Detailed information and instructions regarding protocol encoding can be found https://github.com/silvalab/MMOptimizer. The main procedure is repeated for each voltage trace in each protocol. The error for each trace is computed by comparing the simulation outputs to experimentally collected values; whether or not a step produces any output is encoded in the protocol design. First, the steady state occupancy is computed for the resting membrane potential. Next, we iterate through each step in the voltage clamp protocol, beginning at t 0 k ½ and ending with t 1 k ½ with step voltage denoted by v k ½ . Q v k ½ ð Þ is calculated using Eq (2). If the current step does not produce output, we simply compute the state occupancy x k ½ at t 1 k ½ . Using ODE integrators we can approximate x k ½ by solving

43Using the matrix exponential we simply compute x k

44On the other hand, if the step does produce output, we are forced to use a small step size Dt to sample state occupancy over the range t 0 k ½ to t 1 k ½ . Using the ODE solver, intermediate state occupancy is recorded for each time step for all is:t:iDt < t 1 À t 0 . When using the matrix exponential, H is precomputed as H ¼ e QÃDt . Each step is then computed by 'powering up' the matrix exponential y i ½ ¼ H Á y i À 1 ½ . Both methods then share the next step in which normalized conductivity is computed by performing the dot product of the state occupancy matrix y with the conductivity vector G. This giving the normalized channel conductivity over the timespan t 0 k ½ to t 1 k ½ , providing the raw data necessary to output derived features such as peak conductance, rate constants, and normalized traces.

45Finally, we evaluated a stiffness penalty on the models proportional to the model's largest eigenvalue over a range of voltages (-120 mV to +20 mV). This penalty constrains the search space and resulting models have slightly higher cost (Fig. 5A). Nonetheless, adding a small penalty proved to be important. Following optimization, we reran the fitted models over the protocols, using ODE solvers rather than the matrix exponential (Fig. 5B). Models with no added penalty took over 50 x longer due to their stiff differential equations. In whole cell simulations, membrane voltage is no longer a series of discrete steps, but rather a continuous variable requiring ODE integration. This penalty ensures that fitted models can be efficiently used in larger scale simulations, while constraining transition rates to physically plausible values.

Optimization

46Similar to Menon et al., we optimize over model architecture as well rate parameters, maintaining microscopic reversibility by encoding rates as a set of independent parameters. Instead of a genetic algorithm, we use simulated annealing to explore the combinatorial search space. Genetic algorithms involve a recombination step, where individuals are selected to form offspring for the next generation [22]. With like structured models, new model rates can simply be drawn from a random distribution parametrized by the parents' rates. When models have different structures (i.e. different numbers of nodes and connectivity), recombination is less obvious. One option is to only perform recombination over models with the same structure. However, we observed this leads to a collapsed structural search and ODE implementations using a single process. Error converges in approximately 300 min when using ode integration; this time is reduced to five minutes with matrix exponentiation. These results agree with [23] where ODE methods were shown to take significantly longer and obtain lower overall accuracy. space, and leads to unsatisfactory local optima. We obtained better convergence results in much less time using simulated annealing.

47Specifically, we used synchronous chain simulated annealing for model optimization, considering the tradeoff between execution time and model error. Simulated annealing is an iterative stochastic search algorithm which combines local Monte Carlo search with an annealing schedule [10]. It probabilistically guarantees a globally optimal solution provided an infinitely long cooling schedule [20]; however, in practice, we wish to fit good suboptimal models quickly.

48At each iteration we generate a new model proposal by perturbing the current model m 0 $ m.

49Perturbations are reversible and can alter both model structure and rate parameters taking one or more of the following forms:

50The locality of the perturbation can be modified by adjusting hyper-parameters p and s. Every perturbation performs a rate update-other structural modifications are performed with a predefined probability. Following perturbation, the cost function for the new model is computed. The new model is accepted with probability P e; e 0 ; T ð

51where e is the previous model error, e 0 is the perturbed model error, and T the annealing temperature [21]. As the temperature decreases, T ! 0, the probability of making an uphill transition, e 0 > e, becomes increasingly small. In our implementation, we adopt the simple exponential annealing schedule [21] with T t

52Þg, where g governs the rate of annealing and initial temperature T 0 .

53To avoid getting trapped in local optima and increase the probability of convergence, we run multiple synchronous chains [10]. Rather than a single model, we maintain a set of models, each with their own search path. Model perturbation and acceptance are both performed individually for each chain.

54The optimization procedure attempts to fit all the voltage clamp protocols while minimizing model complexity. We found that in many cases, several models of similar complexity were able to achieve approximately the same fitting error. Hence, different runs often converged to different model structures. Since model structure is an optimization variable, we make no attempt to distinguish the types of channel states, rather such states naturally emerge as a product of the optimization. Open states can easily be identified by examine the conductivity vector. Similarly, closed and inactivated states can be identified by exposing models to a depolarizing test pulse (Fig. 1F), and looking at the transition of state occupancy.

Conclusions

55Identification of continuous Markov model parameters is a challenging problem due to a large search space and a high cost of function evaluation, often requiring significant computational resources. We propose to overcome these limitations by efficiently encoding the cost function as a sequence of discrete voltage steps, solvable using the matrix exponential. Our implementation successfully captures channel kinetics without requiring excess resources or time.

56Overall, we observed a 50Â speedup when using the matrix exponential implementation of the cost function. One a single processor, optimization could be performed in only 10 min-extended to 12 cores, convergence time dropped to under a 2 min. The encoding of the cost function can be generalized to other voltage clamp protocols, allowing our implementation to be easily adapted to fit other channels types and data.

57Modern biophysics methods are beginning to reveal molecular details of channel function [24][25][26][27], the nanoscale consequences of inherited mutations [27,28], and the precise mechanisms of smallmolecule drug regulation [29]. To rigorously describe these molecular details, the complexity of models and the burden of optimization will increase substantially, necessitating advanced optimization methods and computer hardware. As such we expect that much future work will be needed to develop the methods required to create these models.

58The matrix exponential method for ion channel parameterization

참고문헌 31건

  1. Proceedings of the twenty-eighth annual ACM symposium on Theory of computing Symposium on the Theory of Computing · 1996
  2. Computer Methods for Ordinary Differential Equations and Differential-Algebraic Equations Society for Industrial and Applied Mathematics eBooks · Society for Industrial and Applied Mathematics · 1998 10.1137/1.9781611971392
  3. Direct Measurement of Cardiac Na <sup>+</sup> Channel Conformations Reveals Molecular Pathologies of Inherited Mutations Circulation Arrhythmia and Electrophysiology · Lippincott Williams & Wilkins · 2015 10.1161/circep.115.003155
  4. Detailed Balance and Microscopic Reversibility The Journal of Chemical Physics · American Institute of Physics · 1964 10.1063/1.1724967
  5. Voltage-sensor movements describe slow inactivation of voltage-gated sodium channels II: A periodic paralysis mutation in NaV1.4 (L689I) The Journal of General Physiology · Rockefeller University Press · 2013 10.1085/jgp.201210910
  6. The &lt;em&gt;Xenopus&lt;/em&gt; Oocyte Cut-open Vaseline Gap Voltage-clamp Technique With Fluorometry Journal of Visualized Experiments · MyJOVE · 2014 10.3791/51040
  7. A quantitative description of membrane current and its application to conduction and excitation in nerve The Journal of Physiology · Wiley · 1952 10.1113/jphysiol.1952.sp004764
  8. Computational biology in the study of cardiac ion channels and cell electrophysiology Quarterly Reviews of Biophysics · Cambridge University Press · 2006 10.1017/s0033583506004227
  9. Exponential Integrators for a Markov Chain Model of the Fast Sodium Channel of Cardiomyocytes IEEE Transactions on Biomedical Engineering · Institute of Electrical and Electronics Engineers · 2014 10.1109/tbme.2014.2366466
  10. Generating random spanning trees more quickly than the cover time 1996 10.1145/237814.237880
  11. Optimization by Simulated Annealing Science · American Association for the Advancement of Science · 1983 10.1126/science.220.4598.671
  12. Testing for Detailed Balance (Microscopic Reversibility) in IonChannel Gating Biophysical Journal · Elsevier BV · 2001 10.1016/s0006-3495(01)76268-6
  13. Simulated annealing: Practice versus theory Mathematical and Computer Modelling · Pergamon Press · 1993 10.1016/0895-7177(93)90204-c
  14. A state-mutating genetic algorithm to design ion-channel models Proceedings of the National Academy of Sciences · National Academy of Sciences · 2009 10.1073/pnas.0903766106
  15. Nineteen Dubious Ways to Compute the Exponential of a Matrix SIAM Review · Society for Industrial and Applied Mathematics · 1978 10.1137/1020098
  16. A Numerical Approach to Ion Channel Modelling Using Whole-Cell Voltage-Clamp Recordings and a Genetic Algorithm PLoS Computational Biology · Public Library of Science · 2007 10.1371/journal.pcbi.0030169
  17. Maximum Likelihood Estimation of Ion Channel Kinetics from Macroscopic Currents Biophysical Journal · Elsevier BV · 2005 10.1529/biophysj.104.053256
  18. Modeling K,ATP-Dependent Excitability in Pancreatic Islets Biophysical Journal · Elsevier BV · 2014 10.1016/j.bpj.2014.09.037
  19. Reaction-rate theory: fifty years after Kramers Reviews of Modern Physics · American Physical Society · 1990 10.1103/revmodphys.62.251
  20. Local Anesthetics Disrupt Energetic Coupling between the Voltage-sensing Segments of a Sodium Channel The Journal of General Physiology · Rockefeller University Press · 2008 10.1085/jgp.200810103
  21. How to Impose Microscopic Reversibility in Complex Reaction Mechanisms Biophysical Journal · Elsevier BV · 2004 10.1529/biophysj.103.038679
  22. A fast and elitist multiobjective genetic algorithm: NSGA-II IEEE Transactions on Evolutionary Computation · Institute of Electrical and Electronics Engineers · 2002 10.1109/4235.996017
  23. Expokit ACM Transactions on Mathematical Software · Association for Computing Machinery · 1998 10.1145/285861.285868
  24. Nonlinear thermodynamic models of voltage-dependent currents. Journal of Computational Neuroscience · Springer Science+Business Media · 2000 10.1023/a:1026535704537
  25. Synchronous and asynchronous parallel simulated annealing with multiple Markov chains IEEE Transactions on Parallel and Distributed Systems · Institute of Electrical and Electronics Engineers · 1996 10.1109/71.539732
  26. STIFF DIFFERENTIAL EQUATIONS Annual Review of Biophysics and Bioengineering · Annual Reviews · 1977 10.1146/annurev.bb.06.060177.002521
  27. Role of protein dynamics in ion selectivity and allosteric coupling in the NaK channel Proceedings of the National Academy of Sciences · National Academy of Sciences · 2015 10.1073/pnas.1515965112
  28. Molecular motions that shape the cardiac action potential: Insights from voltage clamp fluorometry Progress in Biophysics and Molecular Biology · Elsevier BV · 2015 10.1016/j.pbiomolbio.2015.12.003
  29. Simulated annealing: Practice versus theory Lester Ingber Papers · 1993
  30. Single-Channel Recording Springer eBooks · Springer Nature · 1995 10.1007/978-1-4615-7858-1
  31. A Q-Matrix Cookbook Springer eBooks · Springer Nature · 1995 10.1007/978-1-4419-1229-9_20